//SWFt@C\XNvg@Ver.1.20
//2006/8/6 Programed By Rikiya Takazawa

//ݒ肱--------------------

//[hݒi։摜\[h=0,y[W_CNg[h=1j
var Mode = 0;

//o͂swft@C̃o[Wݒ
var FlashVarsion = "0";

//ݒ肱܂ŁAȉҏW֎~--------------------

function checkFlash(varsion){

	var browser = navigator.appName;

	if (browser != "Microsoft Internet Explorer" ){
		for(i = 0; i < navigator.plugins.length; i++) {
			if(navigator.plugins[i].name ==  "Shockwave Flash"){ 
				if(parseInt(navigator.plugins["Shockwave Flash"].description.substring(navigator.plugins["Shockwave Flash"].description.indexOf(".")-1)) < varsion ){ return 2; }
				else{ return 0; }
			}
		}
		return 1;
	}else{ return 0; }

}

function writeSWF(flashObj , Width , Height , noFlash ){

	var flag = checkFlash(FlashVarsion);

	if( flag == "0"){
		document.open();
			document.write('<div>');
				document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"' + Width + '\" height=\"' + Height + '\">');
				document.write('<param name=\"movie\" value=\"' + flashObj + '\">');
				document.write('<param name=\"quality\" value=\"high\">');
				document.write('<param name=\"wmode\" value=\"transparent\">');
				document.write('<param name=\"menu\" value=\"false\">');
				document.write('<embed src=\"' + flashObj + '\" quality=\"high\" width=\"' + Width + '\" height=\"' + Height + '\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" menu=\"false\"></embed>');
				document.write('</object>');
		document.write('</div>' + '\n');
		document.close();
	}else if(Mode == "1"){
		location.href = noFlash ;
	}else if(Mode == "0"){
		document.open();
		document.write('<img src=\"' + noFlash + '\" width=\"' + Width + '\" height=\"' + Height + '\" border=\"0\" alt=\"\">');
		document.close();
	}
}
writeSWF('img/movie.swf','600','313','img/movie_alt.jpg');
