function mLoadTop(){
	document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 CLASS="menu_top"><TR ALIGN=center VALIGN=middle>');
	document.write('<TD CLASS="rl"><IMG BORDER=0 WIDTH=7 HEIGHT=23 SRC="/com_img/menu_top_l.gif"></TD>');
	document.write('<TD CLASS="cel"><A HREF="http://odoroku.tv/index.html">ホーム</A></TD>');


	document.write('<TD CLASS="spc"><IMG BORDER=0 WIDTH=10 HEIGHT=23 SRC="/com_img/menu_top_sp.gif"></TD>');
	document.write('<TD CLASS="cel"><A HREF="http://odoroku.tv/vod/index.html">最新オンデマンド</A></TD>');

	document.write('<TD CLASS="spc"><IMG BORDER=0 WIDTH=10 HEIGHT=23 SRC="/com_img/menu_top_sp.gif"></TD>');
	document.write('<TD CLASS="cel"><A HREF="http://odoroku.tv/present/index.html">プレゼント</A></TD>');

	document.write('<TD CLASS="spc"><IMG BORDER=0 WIDTH=10 HEIGHT=23 SRC="/com_img/menu_top_sp.gif"></TD>');
	document.write('<TD CLASS="cel"><A HREF="http://odoroku.tv/ranking/month.html">先月のベスト10</A></TD>');

	document.write('<TD CLASS="spc"><IMG BORDER=0 WIDTH=10 HEIGHT=23 SRC="/com_img/menu_top_sp.gif"></TD>');
	document.write('<TD CLASS="cel"><A HREF="http://odoroku.tv/ranking/day.html">昨日のベスト10</A></TD>');

	document.write('<TD CLASS="spc"><IMG BORDER=0 WIDTH=10 HEIGHT=23 SRC="/com_img/menu_top_sp.gif"></TD>');
	document.write('<TD CLASS="cel"><A HREF="http://odoroku.tv/staff/index.html">局長紹介</A></TD>');

	document.write('<TD CLASS="spc"><IMG BORDER=0 WIDTH=10 HEIGHT=23 SRC="/com_img/menu_top_sp.gif"></TD>');
	document.write('<TD CLASS="cel"><A HREF="http://odoroku.tv/diary/index.html">局長日記</A></TD>');

	document.write('<TD CLASS="spc"><IMG BORDER=0 WIDTH=10 HEIGHT=23 SRC="/com_img/menu_top_sp.gif"></TD>');
	document.write('<TD CLASS="cel"><A HREF="https://www.odoroku.tv/cgi-bin/form/member.cgi">局員ページ</A></TD>');

	document.write('<TD CLASS="rl"><IMG BORDER=0 WIDTH=7 HEIGHT=23 SRC="/com_img/menu_top_r.gif"></TD>');
	document.write('</TR></TABLE>');
}

function mLoadBottom(){
	document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 CLASS="menu_bottom"><TR><TD ALIGN=center>');
document.write('| ');
document.write('<A HREF="http://odoroku.tv/index.html">ホーム</A> | ');
document.write('<A HREF="https://www.odoroku.tv/cgi-bin/form/member.cgi">局員ページ</A> | ');
document.write('<A HREF="http://odoroku.tv/faq/index.html">よくある質問</A> | ');
document.write('<A HREF="mailto:info@odoroku.tv">お問い合わせ</A> | ');
document.write('<A href="http://odoroku.co.jp/company/profile.html">運営会社</A> | ');
	document.write('<A HREF="#top">ページのトップへ</A> | ');
	document.write('</TD></TR></TABLE>');
}

function loadMovPic(){
	document.write('<A HREF="http://odoroku.tv/mobile/" TARGET="atto_main"><IMG BORDER=0 WIDTH=153 HEIGHT=60 SRC="/com_img/disp/mob.gif"></A><BR><A HREF="http://odoroku.tv/member/index.html" TARGET="atto_main"><IMG BORDER=0 WIDTH=153 HEIGHT=60 SRC="/img/saisei-touroku.gif"></A>');
}

function footLoad(){
	document.write('Copyright &copy;  2001-2011 あっ！とおどろく放送局 All rights reserved.');
}

//	Sub
function subLoad(){
loadSubATTO();
loadSubSearch();
subLoadLive();
loadSubBnrPage_1();
loadSubMenu();
loadSubMember();
loadSubPickup();
loadSubWMV();
}

function loadSubSearch(){
	document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 CLASS="sub_search">');
	document.write('<TR><TD><IMG BORDER=0 WIDTH=209 HEIGHT=23 SRC="/com_img/sub/tit_search.gif" ALT=""></TD></TR>');
	document.write('<TR ALIGN=center><TD CLASS="bd"><FORM ACTION="http://www.odoroku.tv/cgi-bin/search/prg.cgi" METHOD="POST">');
	document.write('<INPUT TYPE="text" NAME="key" VALUE="" SIZE=18> ');
	document.write('<INPUT TYPE="submit" VALUE="検索">');
	document.write('</FORM></TD></TR>');
	document.write('</TABLE>');
}

function loadSubMenu(){
	document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2 CLASS="sub_cmt">');
	document.write('<TR><TD ALIGN=center><A HREF="http://www.attoshop.jp/"><IMG BORDER=0 WIDTH=200 HEIGHT=200 SRC="/com_img/sub/ad.png"></A></TD></TR>');

}

function loadSubMember(){
document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 CLASS="sub_member">');
document.write('<TR><TD ALIGN=center><IMG BORDER=0 WIDTH=207 HEIGHT=20 SRC="/com_img/sub/tit_member.gif" ALT="局員入口(ログイン)"></TD></TR>');
document.write('<TR><TD ALIGN=center>');

document.write('<FORM ACTION="https://www.odoroku.tv/cgi-bin/form/member.cgi" METHOD="POST"><INPUT TYPE="hidden" NAME="chk" VALUE="1"><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 CLASS="sub_member_cts">');
document.write('<TR><TD ALIGN=right>局員ID：</TD><TD><INPUT TYPE="text" NAME="id" VALUE="" SIZE=13></TD></TR>');
document.write('<TR><TD ALIGN=right>パスワード：</TD><TD><INPUT TYPE="password" NAME="pass" VALUE="" SIZE=13></TD></TR>');
document.write('<TR><TD></TD><TD><INPUT TYPE="submit" VALUE="ログイン"></TD></TR>');
document.write('</TABLE></FORM>');

document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=1 CLASS="sub_member_cts">');
document.write('<TR><TD ALIGN=center><A HREF="http://odoroku.tv/member/index.html"><IMG BORDER=0 WIDTH=150 HEIGHT=21 SRC="/com_img/sub/btn_mem_new.gif"></A></TD></TR>');
document.write('<TR><TD ALIGN=center><A HREF="https://www.odoroku.tv/cgi-bin/form/mem_mod.cgi"><IMG BORDER=0 WIDTH=150 HEIGHT=21 SRC="/com_img/sub/btn_mem_mod.gif"></A></TD></TR>');
document.write('<TR><TD ALIGN=center><A HREF="https://www.odoroku.tv/cgi-bin/form/mem_pass.cgi"><IMG BORDER=0 WIDTH=150 HEIGHT=21 SRC="/com_img/sub/btn_mem_pass.gif"></A></TD></TR>');
document.write('</TABLE>');

document.write('</TD></TR>');
document.write('</TABLE>');
document.write('<A HREF="/member/index.html"><IMG BORDER=0 WIDTH=209 HEIGHT=82 SRC="/com_img/sub/btn_mem_new2.gif"></A><BR><IMG BORDER=0 WIDTH=1 HEIGHT=5 SRC="/img/spc.gif" ALT="">');

}

function loadSubWMV(){
	document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 CLASS="sub_cmt">');
	document.write('<TR><TD><IMG BORDER=0 WIDTH=209 HEIGHT=23 SRC="/com_img/sub/tit_wmv.gif" ALT=""></TD></TR>');
	document.write('<TR><TD CLASS="bd">このサイトをご利用になるには、WindowsMediaPlayerが必要です。<BR>お持ちでない方は下のマークをクリックし、ダウンロードしてください。</TD></TR>');
	document.write('<TR><TD ALIGN=center><A HREF="http://www.microsoft.com/japan/windows/windowsmedia/download/" TARGET="_blank"><IMG BORDER=0 WIDTH=88 HEIGHT=32 SRC="/com_img/icon/wmv.gif"></A></TD></TR>');
	<!--document.write('<TR><TD ALIGN=center CLASS="bd"><BR><IMG BORDER=0 WIDTH=100 HEIGHT=100 SRC="/com_img/jasrac.png"><BR>JASRAC許諾番号<BR>9011142002Y31015<BR>9011142001Y45038</TD></TR>');-->
	<!--document.write('<TR><TD ALIGN=center CLASS="bd"><BR><BR><A href="http://www.myspace.com/ecotomo" target="_blank"><IMG BORDER=0 WIDTH=200 HEIGHT=167 SRC="/cts/etc/ecotomo_ban_page_under.gif"></A><BR></TD></TR>');-->
	document.write('</TABLE>');
}

function swapImg(pt, img){
	x = new Image();
	x.src = img;
	document.images[pt].src = x.src;
}

function openLive(no, bps){
	w = Math.round((screen.width - 840) / 2);
	h = Math.round((screen.height - 770) / 2);
	window.open("http://www.odoroku.tv/cgi-bin/mov/live_mov.cgi?no="+no+"&bps="+bps, "atto_movie", "width=840,height=770,top="+h+",left="+w+",scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");
}

function openVodMov(file){
	w = Math.round((screen.width - 840) / 2);
	h = Math.round((screen.height - 770) / 2);
	window.open("http://odoroku.tv/vod/"+file, "atto_movie", "width=840,height=770,top="+h+",left="+w+",scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");
}

function openVodAnq(file){
	w = Math.round((screen.width - 479) / 2);
	h = Math.round((screen.height - 600) / 2);
	window.open(file, "atto_vod_anq", "width=479,height=600,top="+h+",left="+w+",scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");
}

function openLiveWeek(no){
	var w = screen.width - 20 ;
	var h = screen.height - 68 ;
	var now = new Date() ;
	now.setHours(now.getHours() - 6) ;
	var y = now.getFullYear() ; var m = now.getMonth() + 1 ; var d = now.getDate() ;
	window.open("/channel/"+no+"/"+y+"-"+m+"-"+d+".html", "atto_week", "width="+w+",height="+h+",top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");
}

function openStaffDtl(no){
	l = Math.round((screen.width - 610) / 2);
	t = Math.round((screen.height - 700) / 2);
	window.open("/staff/"+no+"/index.html", "atto_staff", "width=610,height=700,top="+t+",left="+l+",scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");
}

function openMailList(){
	h = screen.height - 98 ;
	window.open("/mail/index.html", "atto_mail", "width=392,height="+h+",top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");
}

function loadVodMovie(no, bps){
	document.write('<OBJECT ID="player" WIDTH=640 HEIGHT=552 CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject">') ;
	document.write('<param name="FileName" value="http://www.odoroku.tv/cgi-bin/mov/vod.cgi?no='+no+'&bps='+bps+'">') ;
	document.write('<param name="enableContextMenu" value="0">') ;
	document.write('<param name="EnableTracker" value="0">') ;
	document.write('<param name="ShowTracker" value="1">') ;
	document.write('<param name="ShowControls" value="1">') ;
	document.write('<param name="ShowStatusBar" value="1">') ;
	document.write('<param name="ShowAudioControls" value="1">') ;
	document.write('<param name="ShowPositionControls" value="0">') ;
	document.write('<param name="ShowDisplay" value="0">') ;
	document.write('<param name="AllowChangeDisplaySize" value="1">') ;
	document.write('<param name="AutoSize" value="0">') ;
	document.write('<param name="DisplaySize" value="2">') ;
	document.write('<param name="ClickToPlay" value="1">') ;
	document.write('<param name="AutoStart" value="1">') ;
	document.write('<param name="TransparentatStart" value="true">') ;
	document.write('<param name="AnimationatStart" value="false">') ;
	document.write('<param name="loop" value="false">') ;
	document.write('<EMBED TYPE="application/x-mplayer2" PLUGINSPAGE="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="http://www.odoroku.tv/cgi-bin/mov/vod.cgi?no='+no+'&bps='+bps+'" WIDTH=640 HEIGHT=552 enablecontextmenu=0 showtracker=0 showcontrols=1 showstatusbar=1 showaudiocontrols=1 showpositioncontrols=0 showdisplay=0 allowchangedisplaysize=1 autosize=0 displaysize=0 AutoStart=1 TransparentatStart=true AnimationatStart=false loop=true>') ;
	document.write('</EMBED>') ;
	document.write('</OBJECT>') ;
}

function loadLiveMovie(no, bps){
	document.write('<OBJECT ID="player" WIDTH=640 HEIGHT=552 CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject">') ;
	document.write('<param name="FileName" value="http://www.odoroku.tv/cgi-bin/mov/live.cgi?no='+no+'&bps='+bps+'">') ;
	document.write('<param name="enableContextMenu" value="0">') ;
	document.write('<param name="EnableTracker" value="0">') ;
	document.write('<param name="ShowTracker" value="1">') ;
	document.write('<param name="ShowControls" value="1">') ;
	document.write('<param name="ShowStatusBar" value="1">') ;
	document.write('<param name="ShowAudioControls" value="1">') ;
	document.write('<param name="ShowPositionControls" value="0">') ;
	document.write('<param name="ShowDisplay" value="0">') ;
	document.write('<param name="AllowChangeDisplaySize" value="1">') ;
	document.write('<param name="AutoSize" value="0">') ;
	document.write('<param name="DisplaySize" value="0">') ;
	document.write('<param name="ClickToPlay" value="1">') ;
	document.write('<param name="AutoStart" value="1">') ;
	document.write('<param name="TransparentatStart" value="true">') ;
	document.write('<param name="AnimationatStart" value="false">') ;
	document.write('<param name="loop" value="false">') ;
	document.write('<EMBED TYPE="application/x-mplayer2" PLUGINSPAGE="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="http://www.odoroku.tv/cgi-bin/mov/live.cgi?no='+no+'&bps='+bps+'" WIDTH=640 HEIGHT=552 enablecontextmenu=0 showtracker=0 showcontrols=1 showstatusbar=1 showaudiocontrols=1 showpositioncontrols=0 showdisplay=0 allowchangedisplaysize=1 autosize=0 displaysize=0 AutoStart=1 TransparentatStart=true AnimationatStart=false loop=true>') ;
	document.write('</EMBED>') ;
	document.write('</OBJECT>') ;
}

