var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
var DEFFflv = 6;
var DEFFwinie = navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0
var DEFFdcap = (document.all);
var DEFFgcap = (document.getElementById);
var DEFFie4 = DEFFdcap && (!DEFFgcap);
var DEFFNisChk = false;

function printIMG (){
	document.write('<a href="'+ CAU1altImgURL +'"><img src="'+ CAU1altimg +'" width='+CAU1width+' height='+CAU1height+' border="0"></A>');
}

function printSWF(){
	if ( plugin ) {
//		document.write("aaaaa");
		while(CAU1flash.indexOf("+")!=-1){CAU1flash = CAU1flash.replace("+", "%2B");}
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' width='+CAU1width+' height='+CAU1height+'>');
		document.write(' <param name="movie" value="'+ CAU1flash +'"><param name="loop" value="true"><param name="quality" value="high"><param name="allowScriptAccess" value="always">  '); 
		document.write(' <embed src="'+ CAU1flash +'" loop="true" quality="high" allowScriptAccess="always" ');
		document.write(' swLiveConnect="false" width='+CAU1width+' height='+CAU1height);
		document.write(' type="application/x-shockwave-flash">');
		document.write(' </embed>');
		document.write(' </object>');
	} else {
		printIMG();
	}
}
if (DEFFwinie) {
	if(DEFFie4) eval('if(self["CAU1width"]) DEFFNisChk=true;');
	else eval('try {if(CAU1width) DEFFNisChk=true;} catch(e){}');
} else {
	if(self["CAU1width"]) DEFFNisChk = true;
}
if (DEFFNisChk) {
	if ( plugin ) {
		plugin = (plugin.description.split(" ")[2].split(".")[0]) >= DEFFflv;
	} else {
		document.write('<script language=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
		document.write('</script\> \n');
	}
	printSWF();
}
