var IE = (navigator.appName == "Microsoft Internet Explorer")
var OP = (window.opera)?true : false; 
var NN = (navigator.appName == "Netscape")

function FlashIsLoaded (theMovie) {
  
 if (typeof(theMovie) != "undefined") {
 	return theMovie.PercentLoaded() == 100;
 } else {
  
return false;
}
}

function CallFLVinFlash() {
	if (IE&!OP) {
		var DemoPlayerObj=document.all.pr17
		
	} else {
		if (OP) {
			f_id = 'pr171'
			var DemoPlayerObj=window.document['pr19']
			}else  {
			f_id = 'pr171'
			var DemoPlayerObj=eval('document.'+f_id)
		}
	}
 if(FlashIsLoaded (DemoPlayerObj) ){
		DemoPlayerObj.SetVariable( "VarSlideTour", 1);
		 return true;
 } else {
 	return false; 
 }
}

	function ov01(flashheight) {
	if (IE & (!OP)) {objectid = 'pr17'
	document.getElementById(objectid).style.height = flashheight;
	}
	else {objectid = '"pr171"'
	document.getElementById('pr171').style.height = flashheight
	}
	document.getElementById('flbl01').style.height = flashheight
	}
function ChangeFrameSwf (presnum) {
if(presnum==1) {
//ov01(400)
dfdghj=1
} else {
ov01(326)
}
}



var plugin = 0;
function check_flash (mver) {
	plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= mver;
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
	   && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+mver+'")))\n');
		document.write('</SCRIPT\> \n');
	}
}




function flash_or_html2 (flash, w, h, func, fver, bid) {

var fver = (fver > 0) ? fver : 3; // min flash version



if (bid) {
var docid = 'id="'+bid+'"'
var docid1 = 'id="'+bid+1+'"'
var docname = 'name="'+bid+'"'


}

check_flash (fver);

	if ( plugin ) {		
		
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+fver+',0,0,0" width='+w+' height='+h+' align="middle" '+docid+'>');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+flash+'" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="'+flash+'" quality="high" name="pr19" width='+w+' height='+h+' swLiveConnect=true '+ docid1 +' align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
		} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
			eval(func);
	}
}

function flash_or_html3 (flash, w, h, func, fver) {

var fver = (fver > 0) ? fver : 3; // min flash version
check_flash (fver);

	if ( plugin ) {		
		

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+fver+',0,0,0" width='+w+' height='+h+'  align="middle" scale="noscale">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+flash+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="salign" value="t" />');
document.write('<param name="bgcolor" value="#FAF9F7" />');
document.write('<embed src="'+flash+'" quality="high" scale="noscale" bgcolor="#ffffff" width='+w+' height='+h+' salign="t" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');



		} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
			eval(func);
	}
}


function tt_check() {
	//alert (plugin)
	if (plugin) {
	CallFLVinFlash(); 
	}
	else {
		var win_w
		if (IE & !OP) {win_w = document.body.offsetWidth;}
		if (OP) {win_w = document.body.offsetWidth;}
		if (NN) {win_w = window.innerWidth;}
		lp01 = (win_w-300)/2 +"px"
	document.getElementById('alertflash').style.display = "block"
	document.getElementById('alertflash').style.left = lp01
	document.getElementById('alertflash').style.top = "100px"
	}
}

function tt_noflal() {
	//alert (plugin)
	if (!plugin) {
		var win_w
		if (IE & !OP) {win_w = document.body.offsetWidth;}
		if (OP) {win_w = document.body.offsetWidth;}
		if (NN) {win_w = window.innerWidth;}
		lp01 = (win_w-300)/2 +"px"
	document.getElementById('alertflash').style.display = "block"
	document.getElementById('alertflash').style.left = lp01
	document.getElementById('alertflash').style.top = "100px"
	}
}

function tt_alertcls() {
	document.getElementById('alertflash').style.display = "none"
}
function flash_param (){
var p=document.location.search;
if (p=='?p=1'){
var par = 1;
tt_check()
}
else {
var par = 0;
}

}