var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
var ADwinie = navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0
var ADdcap = (document.all);
var ADgcap = (document.getElementById);
var ADie4 = ADdcap && (!ADgcap);
var ADNisChk = false;
var ADstrHspace = " hspace=";
function showAD(){
	if ( plugin ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' WIDTH='+YFAwidth+' HEIGHT='+YFAheight+ADstrHspace+'>');
		document.write(' <PARAM NAME=movie VALUE="'+ YFAnflash +'"><PARAM NAME=loop VALUE=true><PARAM NAME=quality VALUE=high>  '); 
		document.write(' <EMBED src="'+ YFAnflash +'" loop=true quality=high  ');
		document.write(' swLiveConnect=FALSE WIDTH='+YFAwidth+' HEIGHT='+YFAheight+ADstrHspace+'');
		document.write(' TYPE="application/x-shockwave-flash">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else {
		showGIF();
	}
}
function showGIF (){
	document.write('<A HREF="'+ YFAaltlink +'" target="'+YFAtarget+'"><IMG SRC="'+ YFAaltimg +'" WIDTH='+YFAwidth+' HEIGHT='+YFAheight+' BORDER=0'+ADstrHspace+'></A>');
}
if (ADwinie) {
	if(ADie4) eval('if(self["YFAwidth"]) ADNisChk=true;');
	else eval('try {if(YFAwidth) ADNisChk=true;} catch(e){}');
} else {
	if(self["YFAwidth"]) ADNisChk = true;
}
if (ADNisChk) {
	if (YFAhspace!="0") {
		ADstrHspace += YFAhspace;
	} else {
		ADstrHspace = "";
	}
	if ( plugin ) {
		plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6;
	} 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');
	}
	showAD();
}
