// BGMフレームと星空 stars.js


// ▼BGMフレーム
if(bgm != '')
	document.write('<iframe src="../bgm/' + bgm + '.html" name="bgmFrame" width="0" height="0" frameborder="0"></iframe>');


// ▼星空とロゴ
if(screen.availWidth < 1003 && bgm == 'bird')	// 画面の幅が 1003px なければ指定
	document.write('<table cellpadding="0" cellspacing="0" class="p2 stars" style="width:1003px"');
else
	document.write('<table cellpadding="0" cellspacing="0" class="p2 stars"');
if(time == 0)	document.write(' style="background:url(../img/back/stars.gif) repeat-x"');	// 夜は星を表示
document.write('><tr>');
document.write('	<td>.</td>');
document.write('	<td width="223" class="rig">');
document.write('		<a href="http://tomoshibi-world.com/" target="_top"');
if(bgm == 'bird'){					// 小鳥の囀り (ヒルズ)
	document.write('		onMouseover=usrTxton(0,"usa","ともしびワールドの入口にもどるでしゅ。") onMouseout=usrTxtof()>');
}else								// それ以外
	document.write('		title="ともしびワールドの入口にもどります">');
document.write('		<img src="../img/other/title-l.gif"><img src="../img/map/lamp.gif"><img src="../img/other/title-r.gif"></a><br>');


// ▼BGMスイッチ
if(bgm == 'mbox' || bgm == 'mbox1')	// オルゴール
	document.write('	♪<i class="tnr">Music box</i> [ <a href="../bgm/' + bgm + '.html" target="bgmFrame" title="オールゴールが鳴ります" class="y">ON</a> / <a href="../bgm/no.html" target="bgmFrame" title="オールゴールが止まります" class="y">OFF</a> ]');
else if(bgm == 'bird')				// 小鳥の囀り (ヒルズ)
	document.write('	♪<i class="tnr">Bird voice</i> [ <a href="../bgm/bird.html" target="bgmFrame" class="y" onMouseover=usrTxton(0,"usa","小鳥の声が、きこえるようになるでしゅ♪") onMouseout=usrTxtof()>ON</a> / <a href="../bgm/no.html" target="bgmFrame" class="y" onMouseover=usrTxton(0,"usa","小鳥の声が、きこえなくなるでしゅ。") onMouseout=usrTxtof()>OFF</a> ]');
else								// BGMなし
	document.write('	<center></center>');

document.write('		</td>');
document.write('</tr>');
document.write('</table>');
