// common page titles

function draw_title(what_title, width, height, color, size) {
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {
		document.write('<h1 style="margin-left:-3px;">');
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(
					"src", "/flash/common_page_title",
					"width", ""+width+"",
					"height", ""+height+"",
					"id", "pagetitle",
					"quality", "high",
					"menu", "false",
					"name", "pagetitle",
					"allowScriptAccess","sameDomain",
					"wmode" , "transparent",
					"FlashVars", "title_copy="+what_title+"&font_color=0x"+color+"&font_size="+size+"",
					"type", "application/x-shockwave-flash",
					"codebase", "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab",
					"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
		document.write('</h1>');
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<h1 style="font-size:'+size+'px; color:#'+color+'">'+what_title+'</h1>';
		document.write(alternateContent);  // insert non-flash content
	}
}
