function writeFlash(){
	if(PermitFlag){
		var so = new SWFObject("swf/index.swf", "movie", "100%", "100%", "8", "#FFFFFF");
		so.addVariable("flashVarText", "this is passed in via FlashVars for example only");
		so.addParam("scale", "noscale");
		so.write("flashcontent");
	}else{
		with( document ){
			write("<img src='images/noFlash.jpg' alt='noFlash.jpg' width='600' height='320' border='0' usemap='#Map2'><map name='Map2'><area shape='rect' coords='0,0,600,320' href='http://www.adobe.com/go/getflashplayer_jp' target='_blank' alt='Get Adbe Flash Player' title='Get Adbe Flash Player'></map>");
		}
	}
}