// JavaScript Document


var plugin = 0;
if(navigator.mimeTypes &&
	 navigator.mimeTypes["application/x-shockwave-flash"] &&
	 navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
	if(navigator.plugins && navigator.plugins["Shockwave Flash"]){
		plugin = 1;
	}
}
else if(navigator.userAgent && (navigator.userAgent.indexOf("MSIE") >= 0) &&
	(navigator.userAgent.indexOf("Win") >= 0)){
	document.write('<SCRIPT LANGUAGE="VBScript"\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
	document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
	document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('</SCRIPT\> \n');
}


function flatop(){
	if(plugin){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="960" height="760" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="top.swf" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="quality" value="high" />');
	document.write('<embed src="top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="960" height="760" wmode="transparent"></embed>');
	document.write('</object>');

	}else{
		document.write('<div style="width:960px; height:560px; background:url(swf/noscript.jpg) no-repeat; padding-top:200px;"><p style=" padding:10px; background:#f24892; font:16px bold; color:#ffffff;">このサイトをご覧いただくにはFLASH PLAYERが必要です</p></div>');
	}
}

function story_next(){
	if(plugin){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="431" height="271" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="www.ytv.co.jp.hana_next.swf" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="quality" value="high" />');
	document.write('<embed src="www.ytv.co.jp.hana_next.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="431" height="271" wmode="transparent"></embed>');
	document.write('</object>');

	}else{
		document.write('<div style="width:431px; height:271px; background:url(story/hana_flv_base.jpg) no-repeat; padding-top:200px;"><p style=" padding:10px; background:#f24892; font:16px bold; color:#ffffff;">このサイトをご覧いただくにはFLASH PLAYERが必要です</p></div>');
	}
}

function fashion_fla(){
	if(plugin){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="690" height="600" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="fashion.swf" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="quality" value="high" />');
	document.write('<embed src="fashion.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="690" height="600" wmode="transparent"></embed>');
	document.write('</object>');

	}else{
		document.write('<img src="images/flash.jpg" alt="このサイトをご覧いただくにはFLASH PLAYERが必要です" border="0" usemap="#Map">');
		document.write('<map name="Map" id="Map">');
  		document.write('<area shape="circle" coords="184,320,64" href="about/index.html" alt="夢パティとは" />');
  		document.write('<area shape="circle" coords="328,349,64" href="next/index.html" alt="次回予告" />');
 		document.write('<area shape="circle" coords="475,360,64" href="story/index.html" alt="ストーリー" />');
 		document.write('<area shape="circle" coords="728,363,64" href="chara/index.html" alt="キャラクター" />');
 		document.write('<area shape="circle" coords="877,349,64" href="staff/index.html" alt="スタッフ・原作" />');
 		document.write('<area shape="circle" coords="1018,321,64" href="music/index.html" alt="音楽情報" /></map>');
	}
}


