function changehead(path){
	var now = new Date();
	var GHours = now.getHours();
	var GMinutes = now.getMinutes();

	if(path==0)		imageFile = "./";
	else if(path==1)	imageFile = "../";
	else if(path==2)	imageFile = "../../";
	else if(path==3)	imageFile = "../../../";

	if(GHours < 6 ){
		if(GHours==2 && GMinutes<4)	imageFile = imageFile + "index_pm_ufo_00.swf";
		else imageFile = imageFile + "index_pm_img_00.swf";
	} else if(GHours < 19 ){
		if(GHours==11 && GMinutes<4)	imageFile = imageFile + "index_am_full_00.swf";
		else if(GHours==12 && GMinutes<4)	imageFile = imageFile + "index_am_dragon_00.swf";
		else imageFile = imageFile + "index_am_rare_00.swf";
	} else {
		if(GHours==23 && GMinutes<4)	imageFile = imageFile + "index_pm_ghost_00.swf";
		else imageFile = imageFile + "index_pm_img_00.swf";
	}

	document.open();

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="140" id="'+imageFile+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+imageFile+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="'+imageFile+'" quality="high" bgcolor="#ffffff" width="800" height="140" name="'+imageFile+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');

	document.close();
}

