//ローカル時間でcss切替スクリプト
<!--
time=(new Date()).getHours();
if(time>=5 && time<11){
back="morning";
}else if(time>=11 && time<19){
back="day";
}else if(time>=19 && time<23){
back="night";
}else if(time<5 || time>=23){
back="night";
}
document.write("<body id='"+back+"'>");
//document.write("<body style="+"background:url('"+back+"')top center no-repeat"+">");
//document.write("<body background='"+back+"'>");
//-->


//治療　ポップアップウィンドウで使用
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->




//下層ページ　「仲間達」ポップアップウィンドウ表示スクリプト
window.onload = function (){  
var node_a = document.getElementsByTagName('a');  
for (var i in node_a) {  
if(node_a[i].className == 'f_navi03'){  
node_a[i].onclick = function() {  
return winOpen(this.href, this.rel)  
};  
}  
}  
} ;  
function winOpen(url, rel) {  
var split = rel.split(',') ;  
window.open(  
url,'popup',  
'width='+ split[0] +',height='+ split[1] +',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');  
return false;  
}; 



/*ランダムでbodyにクラスを追加するスクリプト
var ranimg = new Array();
ranimg[0]="rea";
ranimg[1]="normal";
ranimg[2]="normal";
ranimg[3]="normal";
ranimg[4]="normal";

xx = Math.floor(ranimg.length*Math.random());
ranimg = ranimg[Math.floor(xx)];
document.write ("<body class='"+ranimg+"'>");
*/