/* Used for embedding flashtext elements such as page titles */

function embedFlashTitle(src, text, subtext) {

	var hasRightVersion = DetectFlashVer(requiredMajorVersion,0,0);
	if(hasRightVersion) { 
		
	    if(src == "subtitle")
	        AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','300','height','20','src','/flash/'+src+'','quality', 'high', 'FlashVars', 'titletext='+text+'&subtitletext='+subtext+'', 'wmode', 'transparent', 'scale','noscale','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','/flash/'+src); //end AC code
        else if(src == "title_short")
	        AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','300','height','26','src','/flash/'+src+'','quality', 'high', 'FlashVars', 'titletext='+text+'&subtitletext='+subtext+'', 'wmode', 'transparent', 'scale','noscale','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','/flash/'+src); //end AC code	        
        else if(src == "sub_title_gray")
	        AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','245','height','26','src','/flash/'+src+'','quality', 'high', 'FlashVars', 'titletext='+text+'&subtitletext='+subtext+'', 'wmode', 'transparent', 'scale','noscale','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','/flash/'+src); //end AC code	        	        	   
	    else 
		    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','560','height','26','src','/flash/'+src+'','quality', 'high', 'FlashVars', 'titletext='+text+'&subtitletext='+subtext+'', 'wmode', 'transparent', 'scale','noscale','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','/flash/'+src); //end AC code
	}else{
		document.write('Unable to load flash, please check your version');
	}
}

function NewWindow(mypage, myname, w, h, scroll) {
	 if (navigator.appName.indexOf ("Microsoft") != -1) {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		
		winprops = "height="+h+",width="+w+",top="+wint+",left="+winl+",scrollbars=yes,resizable=no,alwaysRaised=yes";
		win = window.open(mypage, myname, winprops);
	 }
	 else
	 {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = "height="+h+",width="+w+",top="+wint+",left="+winl+",scrollbars=yes,resizable=no,alwaysRaised=yes";
		win = window.open(mypage, myname, winprops);
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	 }
	}
