// JavaScript Document


/*
function show(image) {
   var a = document.getElementById("ancoraggio"+image+"");
   var f = new Array()
   img_url[1] = "img/poster_iwaigawa.jpg";
   img_url[2] = "images/image-2.jpg";
   img_url[3] = "images/image-3.jpg";
   img_url[4] = "images/image-4.jpg";
   var url = img_url[image];
   a.setAttribute('href', url);
   myLightbox.start(a);
}


function pagejump(){
	date_obj = new Date();
	
	yy = date_obj.getFullYear();
	mm = date_obj.getMonth();
	dd = date_obj.getDate();
	hour = date_obj.getHours();
	mim = date_obj.getMinutes();
	sec = date_obj.getSeconds();
	
	//1970年1月1日からイベント(2010/1/14 0時0分0秒)までの時間をミリ秒で取得
	eventUTC = Date.UTC( 2010 , 1 - 1 , 14 , 00 , 00 , 00 );

	//1970年1月1日から今日までの時間をミリ秒で取得
	todayUTC = Date.UTC( yy , mm , dd , hour , mim , sec );
	
	//イベントまでの時間を秒単位に直す
	remain = eventUTC - todayUTC;
	
	if ( remain < 0 ) {
		location.href = "index.html";
	}
}

function styleSelect(){
	DD = new Date();
	now = DD.getHours();
	if ( 6<=now && now<15 ) {
		document.write('<link href="css/color01.css" rel="stylesheet" type="text/css" />')
	} else if ( 15<=now && now<18 ) {
		document.write('<link href="css/color02.css" rel="stylesheet" type="text/css" />')
	} else {
		document.write('<link href="css/color03.css" rel="stylesheet" type="text/css" />')
	}
}
*/