var imgStats = 1;
var imgSWF = "top.swf";
var imgAlt = "image_alternate.jpg";
var sWidth = 900;
var sHeight = 440;
var imgJpeg = 'image_alternate.jpg';
var pWidth = 900;
var pHeight = 440;
var htmlsrc = '<img src="assets/images/toppage/img_001_main.jpg" width="900" height="440" alt="Ladys&amp;Mens Casual Clothing Tachibanaya" />'
var plginF = 2;
var imgPath = "swf";

var movieHTML = '';

if (imgStats == 3){
	document.write(htmlsrc);
}else if(imgStats == 2){
	document.write('<img src="' + imgPath + '/' + imgJpeg + '" width="' + pWidth + '" height="' + pHeight + '" border="0">');
}else{

	var MM_contentVersion = 6;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
			var words = navigator.plugins["Shockwave Flash"].description.split(" ");
			for (var i = 0; i < words.length; ++i)
			{
			if (isNaN(parseInt(words[i])))
			continue;
			var MM_PluginVersion = words[i]; 
			}
		var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
	   && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	if ( MM_FlashCanPlay ) {
        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="440" id="top_movie" align="middle">\n');
        document.write('<param name="movie" value="assets/flash/top.swf">\n');
        document.write('<param name="quality" value="high">\n');
        document.write('<param name="bgcolor" value="#FFFFFF">\n');
        document.write('<palam name="autoplay" value="true">\n');
        document.write('<param name="loop" value="true">\n');
        document.write('<embed src="assets/flash/top.swf" quality="high" bgcolor="#FFFFFF" width="900" height="440" align="middle"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>\n');
		document.write('</object>');
	} else{
		if(plginF == 2){
			document.write(htmlsrc);
		}else{
			document.write('<img src="img/' + imgAlt + '" width="' + sWidth + '" height="' + sHeight + '" border="0">');
		}
	}
}
chFirstFlag = false;
