//　カウントダウン画像表示用スクリプト

zd = new Array(
//　ゼロ・ディを設定
	'2010' , '7' , '23'
) ;

nd = new Date() ;
nd = new Date( nd.getFullYear() , nd.getMonth() , nd.getDate() ) ;
od = new Date( zd[0] , zd[1] - 1 , zd[2] ) ;

d = Math.floor( ( od.getTime() - nd.getTime() ) / ( 24 * 60 * 60 * 1000 ) ) ;


if ( d >= 0 ) {

	document.write ( '<div id="count" class="section">' ) ;

	if ( d > 0 ) {

		day = d.toString() ;
		if ( day.length == 1 ) {
			day = '0' + day ;
		}

		document.write ( '<img src="images/countdown_txt1.png" alt="OPENまであと" width="75" height="69">' ) ;
		for ( i = 0 ; i < day.length ; i ++ ) {
			document.write ( '<img src="images/countdown_no' + day.charAt( i ) + '.png" alt="' + day.charAt( i ) + '">' ) ;
		}
		document.write ( '<img src="images/countdown_txt2.png" alt="日" width="33" height="69">' ) ;

	} else {

		document.write ( '<img src="images/countdown_txt_op.png" alt="本日OPEN!!" width="202" height="69">' ) ;

	}

	document.write ( '</div>' ) ;

}

