function dispMenu (elm, w) {

	switch (elm) {
	
		case "footer":
		var f = 1;
		if (w == 0) {
			w = 580;
			f = 0;
		}
		document.writeln ('<div style="width:'+w+';height:80px;position:relative;margin-top:10px;text-align:left">');
		document.writeln ('<div style="position:absolute;left:0px;top:0px"><img src="img/common_footer_copyright.gif" width="288" height="39"></div>');
		if (f) document.writeln ('<div style="position:absolute;right:0px;top:0px"><a href="javascript:openWin(\'link.html\',640,640)"><img src="img/common_footer_link.gif" width="75" height="14"></a><a href="javascript:openWin(\'otoiawase.html\',640,640)"><img src="img/common_footer_toiawase.gif" width="75" height="14"></a></div>');
		break;
		
		
		case "menu":
		document.writeln ('<div style="margin-left:9px"><div class="subbtn1"><a href="index.html"><img src="img/common_menu_txt1.gif" width="112" height="31" alt="TOPページ"></a></div>');
		document.writeln ('<div class="subbtn1"><a href="news.html"><img src="img/common_menu_txt7.gif" width="112" height="31" alt="新着情報？"></a></div>');
		document.writeln ('<div class="subbtn1"><a href="about.html"><img src="img/common_menu_txt2.gif" width="112" height="31" alt="うさるさんって？"></a></div>');
		document.writeln ('<div class="subbtn1"><a href="book.html"><img src="img/common_menu_txt3.gif" width="112" height="31" alt="キャラクターブック"></a></div>');
		document.writeln ('<div class="subbtn1"><a href="song.html"><img src="img/common_menu_txt4.gif" width="112" height="31" alt="うさるソング"></a></div>');
		document.writeln ('<div class="subbtn1"><a href="http://kids.mediafactory.co.jp/goods_lineup.php?group=usaru" target="_blank"><img src="img/common_menu_txt8.gif" width="112" height="31" alt="グッズ"></a></div>');
		document.writeln ('<div class="subbtn1"><a href="download.html"><img src="img/common_menu_txt6.gif" width="112" height="31" alt="ダウンロード"></a></div></div>');

		
		case "banner":
		document.writeln ('<a href="book.html"><img src="img/common_bnr_book.gif" width="130" height="100" alt="「うさるさん」発売中！" class="bannarmgn"></a><br>');
		document.writeln ('<a href="http://kids.mediafactory.co.jp/goods_lineup.php?group=usaru" target="_blank"><img src="img/common_bnr_goods.gif" width="130" height="100" alt="グッズもいっぱい！" class="bannarmgn"></a><br>');
		document.writeln ('<a href="javascript:openWin(\'shop.html\',640,640)"><img src="img/common_bnr_shop.gif" width="130" height="100" alt="グッズもいっぱい！" class="bannarmgn"></a><br>');
		document.writeln ('<a href="scsaver/index.html" target="_blank"><img src="img/common_bnr_ss.gif" width="130" height="100" alt="グッズもいっぱい！" class="bannarmgn"></a><br>');
		document.writeln ('<a href="http://www.zenryoku-usagi.com/" target="_blank"><img src="img/common_bnr_zenryoku.gif" width="116" height="30" style="margin-left:7;margin-bottom:10px"></a><br>');
		document.writeln ('<a href="http://www.bankenya.com/" target="_blank"><img src="img/link_marubanner_xs.gif" width="116" height="30"  style="margin-left:7;margin-bottom:10px""></a><br>');
		document.writeln ('<a href="http://www.mediafactory.co.jp/chara-book/" target="_blank"><img src="img/charabook.gif" width="100" height="138" alt="charabook.gif" style="margin-left:15;margin-bottom:10px""></a><br>');
		break;

	
		case "songflash":
		document.writeln ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="118" height="34" id="song" align="middle">');
		document.writeln ('<param name="allowScriptAccess" value="sameDomain" />');
		document.writeln ('<param name="movie" value="img/song.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="img/song.swf" quality="high" bgcolor="#ffffff" width="118" height="34" name="song" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
		break;
		
		
		case "songflash2":
		document.writeln ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="118" height="34" id="song" align="middle">');
		document.writeln ('<param name="allowScriptAccess" value="sameDomain" />');
		document.writeln ('<param name="movie" value="img/song2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#f5fafa" /><embed src="img/song2.swf" quality="high" bgcolor="#f5fafa" width="118" height="34" name="song" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
		break;
		
		
		case "topflash":
		document.writeln ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="680" height="410" id="top" align="middle">');
		document.writeln ('<param name="allowScriptAccess" value="sameDomain" />');
		document.writeln ('<param name="movie" value="img/top.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ad7b3d" /><embed src="img/top.swf" loop="false" menu="false" quality="high" bgcolor="#ad7b3d" width="680" height="410" name="top" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
		break;
	}
}


function openWin (s, x, y,sc) {
	var nsc = 1;
	if (sc == "no") nsc = 0;
	XSize = x; YSize = y;
	window.open(s,"GOIKENWIN","WIDTH="+XSize+",HEIGHT="+YSize+",SCROLLBARS="+nsc+",RESIZABLE=0,TOOLBAR=0,MENUBAR=0,LOCATION=0 DIRECTORIES=0,STATUS=0");
}


function openPV () {
	openWin("video/pv.html",480,385,"no")
}
function openPV2 () {
	openWin("video/pv2.html",420,385,"no")
}
function openPV3 () {
	openWin("video/pv3.html",420,385,"no")
}
