this.randomtip = function(){
	var length = $("#photocover li").length; // this is where we put the id of the list
	var ran = Math.floor(Math.random()*length) + 1;
	$("#photocover li:nth-child(" + ran + ")").show();
};

$(document).ready(function(){	
	randomtip();
});




timerID=setTimeout("dateprint()",1000);
function dateprint(){
	clearTimeout(timerID);
	weeks = new Array("日","月","火","水","木","金","土");
	today = new Date();
	y = today.getFullYear();
	m = today.getMonth() + 1; if(m < 10) m = "0" + m;
	d = today.getDate(); if(d < 10) d = "0" + d;
	w = weeks[today.getDay()];

	h = today.getHours(); if(h < 10) h = "0" + h; if (h == 24) h = "00";
	s = today.getMinutes(); if(s < 10) s = "0" + s; else if(s==60) s="00";
	sec = today.getSeconds(); if(sec < 10) sec="0"+sec; else if(sec==60) sec="00";

	//document.form1.text1.value=(y+'.'+m+'.'+d+' '+h+':'+s+':'+sec);
	document.form1.text1.value=(y+'.'+m+'.'+d+' '+h+':'+s);
	timerID = setTimeout("dateprint()",1000);
}




