function pCode0_Initialize(){pResetControlPanel();}function call_pStartScroll(){var sngBias;sngBias=1;if(document.forms["CtrlPanel"].speed[0].checked)sngBias=1.00;if(document.forms["CtrlPanel"].speed[1].checked)sngBias=0.875;if(document.forms["CtrlPanel"].speed[2].checked)sngBias=0.75;if(document.forms["CtrlPanel"].speed[3].checked)sngBias=0.50;window.parent.frames[1].pSetBPMBias(sngBias);window.parent.frames[1].pSetBound(document.forms["CtrlPanel"].bound[0].value,document.forms["CtrlPanel"].bound[1].value);window.parent.frames[1].pStartScroll();}function call_pMouseDown(nEvent){window.parent.frames[1].pMouseDown();}function call_pTimePlus(){window.parent.frames[1].pTimeShift(-50);}function call_pTimeMinus(){window.parent.frames[1].pTimeShift(50);}function pSetBound(xBtm,xTop){var intBgnM,intEndM;if(typeof xBtm=="undefined"){intBgnM=parseInt(document.forms["CtrlPanel"].bound[0].value);intEndM=parseInt(document.forms["CtrlPanel"].bound[1].value);if(isNaN(intBgnM))intBgnM="";if(isNaN(intEndM))intEndM="";}else{if(xBtm==0 && xTop==0){intBgnM="";intEndM="";}else{if(xBtm > xTop){intBgnM=xTop;intEndM=xBtm;}else{intBgnM=xBtm;intEndM=xTop;}}document.forms["CtrlPanel"].bound[0].value=intBgnM;document.forms["CtrlPanel"].bound[1].value=intEndM;}}function pResetControlPanel(){document.forms["CtrlPanel"].speed[0].click();document.forms["CtrlPanel"].pos[0].click();}function pSetFocusLast(){document.forms["CtrlPanel"].pos[document.forms["CtrlPanel"].pos.length-1].click();}function pPutControlPanel(){document.write('<form name="CtrlPanel"><nobr><input type="BUTTON" name="start" value="start" onclick="call_pStartScroll();">&nbsp;<input type="BUTTON" name="start" value="stop" onclick="call_pMouseDown();">&nbsp;<input type="BUTTON" name="start" value="reset" onclick="pResetControlPanel();">&nbsp;&nbsp;&nbsp;<input type="BUTTON" name="start" value=" + " onclick="call_pTimePlus();">&nbsp;<input type="BUTTON" name="start" value=" - " onclick="call_pTimeMinus();"></nobr><br><nobr><input type="RADIO" name="speed" value="1" checked>100%&nbsp;<input type="RADIO" name="speed" value="2">87.5%&nbsp;<input type="RADIO" name="speed" value="3">75%&nbsp;<input type="RADIO" name="speed" value="4">50%&nbsp;</nobr><br>範囲:<br><input type="RADIO" name="pos" onclick="pSetBound(0,0);" checked>全て<br>'+"");document.close();if(typeof pPutPracticingArea=="function")pPutPracticingArea();document.write('<input type="RADIO" name="pos" onclick="pSetBound();">指定<input type="TEXT" name="bound" value="" size="3" onfocus="pSetFocusLast();" onchange="pSetBound()">〜<input type="TEXT" name="bound" value="" size="3" onfocus="pSetFocusLast();" onchange="pSetBound()"></form>'+"");document.close();}function pPutInformation(){document.write('<hr><h2>スクロール譜面の使い方</h2><p>　上にある、start ボタンをクリックすると、その下に表示してある設定値の内容で譜面をスクロールします。スクロールを止める場合は、stop ボタンをクリックするか、譜面の画面の中をクリックするか、または再表示してください。<br>　reset ボタンをクリックすると、設定値がすべて最初の状態に戻ります。<br>　＋と−のボタンは、スクロール位置を微調整するのに使います。</p><p>速さのラジオボタンは、それぞれ元のBPM値の何％のスピードでスクロールするかを設定します。<br></p><p>範囲のラジオボタンは、スクロールする範囲を小節単位で設定します。「指定」を選ぶと、小節数を自由に入力できます（譜面の範囲外の数字は入力しないでください）。</p>');}