//トップページ発売日カウント
function topCountDown(){
var now = new Date();
var xday = new Date(2006,12-1,6);
count = Math.ceil((xday.getTime()-now.getTime())/(24*60*60*1000));
if(count>=10){
	var d = count - 10;
	document.write('<div align="center" style="padding-top: 20px;">');
	document.write('<table border="0" cellpadding="0" cellspacing="0"><tr>');
	document.write('<td><img src="img/word.gif" width="440" height="28" border="0" alt="NEW ALBUM「ORANGE RANGE」発売まで" vspace="5" /></td><td>');
	document.write('<td><img src="img/ato.gif" width="79" height="45" border="0" alt="あと" hspace="5" /></td><td>');
	document.write('<img src="img/1.gif" width="62" height="83" border="0" alt="" hspace="3" vspace="10" /><img src="img/' + d + '.gif" width="62" height="83" border="0" alt="" hspace="3" vspace="10" />');
	document.write('</td><td><img src="img/nichi.gif" width="71" height="51" border="0" alt="日" hspace="10" /></td>');
	document.write('</tr></table>');
	document.write('</div>');
	}
else if (10 > count && count > 0){
	document.write('<div align="center" style="padding-top: 20px;">');
	document.write('<table border="0" cellpadding="0" cellspacing="0"><tr>');
	document.write('<td><img src="img/word.gif" width="440" height="28" border="0" alt="NEW ALBUM「ORANGE RANGE」発売まで" vspace="5" /></td><td>');
	document.write('<td><img src="img/ato.gif" width="79" height="45" border="0" alt="あと" hspace="5" /></td><td>');
	document.write('<img src="img/0.gif" width="62" height="83" border="0" alt="" hspace="3" vspace="10" /><img src="img/' + count + '.gif" width="62" height="83" border="0" alt="" hspace="3" vspace="10" />');
	document.write('</td><td><img src="img/nichi.gif" width="71" height="51" border="0" alt="日" hspace="10" /></td>');
	document.write('</tr></table>');
	document.write('</div>');
	}
else if (count <= 0){
	document.write('<div align="center" style="padding-top: 20px;">');
	document.write('<img src="img/word02.gif" width="577" height="32" border="0" alt="NEW ALBUM「ORANGE RANGE」発売中!!" vspace="45" />');
	document.write('</div>');
	}
}


//R指定オバちゃんは見た!発売日カウント
function dateCountDown(){
var now = new Date();
var xday = new Date(2006,12-1,6);
count = Math.ceil((xday.getTime()-now.getTime())/(24*60*60*1000));
if(count>=10){
	var d = count - 10;
	document.write('<img src="img/word.gif" width="488" height="29" border="0" alt="NEW ALBUM「ORANGE RANGE」発売まで" vspace="5" /><br />');
	document.write('<div align="right">');
	document.write('<table border="0" cellpadding="0" cellspacing="0"><tr>');
	document.write('<td><img src="img/ato.gif" width="79" height="45" border="0" alt="あと" hspace="10" /></td><td>');
	document.write('<img src="img/1.gif" width="62" height="83" border="0" alt="" hspace="3" /><img src="img/' + d + '.gif" width="62" height="83" border="0" alt="" hspace="3" />');
	document.write('</td><td valign="bottom"><img src="img/nichi.gif" width="71" height="51" border="0" alt="日" hspace="10" /></td>');
	document.write('</tr></table>');
	document.write('</div>');
	}
else if (10 > count && count > 0){
	document.write('<img src="img/word.gif" width="488" height="29" border="0" alt="NEW ALBUM「ORANGE RANGE」発売まで" vspace="5" /><br />');
	document.write('<div align="right">');
	document.write('<table border="0" cellpadding="0" cellspacing="0"><tr>');
	document.write('<td><img src="img/ato.gif" width="79" height="45" border="0" alt="あと" hspace="10" /></td><td>');
	document.write('<img src="img/0.gif" width="62" height="83" border="0" alt="" hspace="3" /><img src="img/' + count + '.gif" width="62" height="83" border="0" alt="" hspace="3" />');
	document.write('</td><td valign="bottom"><img src="img/nichi.gif" width="71" height="51" border="0" alt="日" hspace="10" /></td>');
	document.write('</tr></table>');
	document.write('</div>');
	}
else if (count <= 0){
	document.write('<img src="img/word02.gif" width="555" height="31" border="0" alt="NEW ALBUM「ORANGE RANGE」発売中!!" vspace="45" />');
	}
}

//R指定オバちゃんは見た!一言画像カウントダウン
function imgCountDown(){
var now = new Date();
var xday = new Date(2006,11-1,24);
count = Math.ceil((xday.getTime()-now.getTime())/(24*60*60*1000));
	if(count < -17) {
	document.write('<img src="img/img0.jpg" width="555" height="385" border="0" alt="" />');
}else{
	document.write('<img src="img/img' + -count + '.jpg" width="555" height="385" border="0" alt="" />');
	}
}