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 ) {
		while(nflash.indexOf("+")!=-1){nflash = nflash.replace("+", "%2B");}
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' WIDTH='+width+' HEIGHT='+height+ADstrHspace+'>');
		document.write(' <param name=movie VALUE="'+ nflash +'"><param name=loop VALUE=true><param name=quality VALUE=high><param name=wmode value=transparent>  '); 
		document.write(' <EMBED src="'+ nflash +'" loop=true quality=high wmode=transparent  ');
		document.write(' swLiveConnect=FALSE WIDTH='+width+' HEIGHT='+height+ADstrHspace+'');
		document.write(' TYPE="application/x-shockwave-flash">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
//	} else {
//		showGIF();
//	}
}
function showGIF (){
	document.write('<a href="'+ altlink +'" target="'+target+'"><img src="'+ altimg +'" width='+width+' HEIGHT='+height+' alt="フラッシュコンテンツをご覧頂くには最新版の Adobe Flash Playerが必要です" /></a>');
}
if (ADwinie) {
	if(ADie4) eval('if(self["width"]) ADNisChk=true;');
	else eval('try {if(width) ADNisChk=true;} catch(e){}');
} else {
	if(self["width"]) ADNisChk = true;
}
if (ADNisChk) {
	if (hspace!="0") {
		ADstrHspace += hspace;
	} else {
		ADstrHspace = "";
	}
	if ( plugin ) {
		plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 8;
	} else {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))\n');
		document.write('</SCRIPT\> \n');
	}
	showAD();
}



