// JavaScript Document

	var CFLfpver = 6;
	
	
	var CFLiewin = navigator.userAgent.indexOf('Win') && (document.all);
	var CFLflag = false;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	
	
	if (plugin) {
		CFLflag = parseInt(plugin.description.match(/\d+\.\d+/)) >= CFLfpver;
		//CFLflag = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= CFLfpver;
	} else if (CFLiewin) {
		document.write('<script language="VBScript"\> \n');
		document.write('on error resume next \n');
		document.write('CFLflag = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & CFLfpver )))\n');
		document.write('</script\> \n');
	}
	

function setFlash(swfWidth,swfHeight,swfURL,altHtml){

	
	var CFLwidth   = swfWidth;
	var CFLheight  = swfHeight;
	var CFLswfuri  = swfURL;
	var CFLaltHTML = altHtml;
	
	
	

	if ( CFLflag ) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
		document.write(' id="CFL" width="'+ CFLwidth +'" height="'+ CFLheight +'">');
		document.write('<param name="movie" value="'+ CFLswfuri +'">');
		document.write('<param name="wmode" value="opaque">');
		document.write('<param name="loop" value="true">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="menu" value="false">');
		document.write('<param name="scale" value="noscale">');
		document.write('<embed src="'+ CFLswfuri +'" loop="true" wmode="opaque"');
		document.write(' quality="high" swLiveConnect="false" scale="noscale"');
		document.write(' width="'+ CFLwidth +'" height="'+ CFLheight +'"');
		document.write(' type="application/x-shockwave-flash"');
		document.write(' pluginspage="http://www.macromedia.com/go/getflashplayer">');
		document.write('</embed>');
		document.write('</object>');
	} else {
		document.write(CFLaltHTML);
	}
}

function CFLerr() {
	return true;
}

