﻿


/* Flash Load */
	var appname = navigator.appName;
	var useragent = navigator.userAgent;
	if(appname == "Microsoft Internet Explorer") appname = "IE";
	var IE55 = (useragent.indexOf('MSIE 5.5')>0);  //5.5 
	var IE6 = (useragent.indexOf('MSIE 6')>0);     //6.0 
	var IE7 = (useragent.indexOf('MSIE 7')>0);     //7.0 
	var IE8 = (useragent.indexOf('MSIE 8')>0);     //8.0 

	function swfprint(objid,furl,fwidth,fheight,transoption,flashvars) {
		var ieTxt = '<object id="'+ objid +'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">';
		ieTxt += '<param name="allowScriptAccess" value="always"/>';
		ieTxt += '<param name="allowFullScreen" value="true"/>';
		ieTxt += '<param name="movie" value="'+ furl +'"/>';
		ieTxt += '<param name="quality" value="high"/>';
		ieTxt += '<param name="bgcolor" value="#ffffff"/> ';
		ieTxt += '<param name="menu" value="false"/> ';
		if (flashvars) ieTxt += '<param name="flashVars" value="'+ flashvars +'">';
		if (transoption == "t") {
			ieTxt += '<param name="wmode" value="transparent"/>';
		} else if	(transoption == "o") {
			ieTxt += '<param name="wmode" value="opaque"/>';
		}
		ieTxt += '</object>';

		var ffTxt = '<object id="'+ objid +'" type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'" menu="false" ';
		if (flashvars) ffTxt += ' flashVars="'+ flashvars +'" ';
		if (transoption == "t")	{
			ffTxt += ' wmode="transparent"';
		} else if	(transoption == "o") {
			ffTxt += ' wmode="opaque"';
		}
		ffTxt +='allowScriptAccess="always"';
		ffTxt +='allowFullScreen="true"';
		ffTxt += '></object>';

		if(appname=="IE") document.write(ieTxt);
		else  document.write(ffTxt);
	}