//pluginCheck
var flash_version = 8;
var FlashInstalled = false;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var pluginVersion = words[i]; 
	    }
	var FlashInstalled = pluginVersion >= flash_version;
}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('FlashInstalled = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & flash_version)))\n');
	document.write('</SCR' + 'IPT\> \n');
}



//Flash
function embedSwf(flash_name,flash_kidou){
	var f_num=0;
	var query=top.location.search.replace(/^\?/,'');
	var str_array=query.split("&");
	for(i=0;i<str_array.length;i++){
		var param_array = str_array[i].split('=');
		if(param_array[0]=='frame'){f_num=param_array[1];}
	}
	if(FlashInstalled){
		document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"750\" height=\"300\" id=\"school\" align=\"middle\">');
		document.write('<param name=\"allowScriptAccess\" value=\"sameDomain\" />');
		document.write('<param name=\"menu\" value=\"false\" />');
		document.write('<param name=\"movie\" value=\"' + flash_name + ' \" />');
		document.write('<param name=\"quality\" value=\"high\" />');
		document.write('<param name=\"bgcolor\" value=\"#ffffff\" />');
		document.write('<param name=\"flashvars\" value=\"' + flash_kidou + '\">');
		document.write('<embed src=\"' + flash_name + '\" quality=\"high\" bgcolor=\"#ffffff\" width=\"750\" height=\"300\" name=\"FORKLIFT\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"' + flash_kidou + '\" />');
		document.write('</object>');
	}else{
		document.write('<div style="text-align: center; background-color: #FFFFFF;"><br><br><br>');
		document.write('This content requires the Adobe Flash Player version 8 and above.<br></p>');
		document.write('<p><a href=\"http://www.adobe.com/go/getflash/\">Get Flash</a><br><br><br><br><br><br></p>');
		document.write('</div>');
	}
}
//}



