now = new Date();
hour = now.getHours();


if(hour >=0 && hour <=5){
	img='/common/images/top/night.jpg';
	
	if(document.layers || document.all && !window.opera && document.compatMode!='CSS1Compat') {
		document.write('<style type="text/css"> body.top #backgroundTop { background: url("'+img+'") #050D11 no-repeat center bottom; } </style>');
	}
	else if(document.all || document.getElementById) {
		document.write('<style type="text/css">  body.top #backgroundTop { background: url("'+img+'") #050D11 no-repeat center bottom; }  </style>');
	}
}
	
else if(hour >=6 && hour <=11){
	img='/common/images/top/morning.jpg';

if(document.layers || document.all && !window.opera && document.compatMode!='CSS1Compat') {
	document.write('<style type="text/css"> body.top #backgroundTop { background: url("'+img+'") #0F6CA7 no-repeat center bottom; } </style>');
	}
else if(document.all || document.getElementById) {
	document.write('<style type="text/css"> body.top #backgroundTop { background: url("'+img+'") #0F6CA7 no-repeat center bottom; }  </style>');
	}
}

else if(hour >=12 && hour <=17){
	img='/common/images/top/morning.jpg';
	
if(document.layers || document.all && !window.opera && document.compatMode!='CSS1Compat') {
	document.write('<style type="text/css"> body.top #backgroundTop { background: url("'+img+'") #0F6CA7 no-repeat center bottom; } </style>');
	}
else if(document.all || document.getElementById) {
	document.write('<style type="text/css"> body.top #backgroundTop { background: url("'+img+'") #0F6CA7 no-repeat center bottom; }  </style>');
	}
}

else if(hour >=18 && hour <=23){
	img='/common/images/top/night.jpg';
	
if(document.layers || document.all && !window.opera && document.compatMode!='CSS1Compat') {
	document.write('<style type="text/css"> body.top #backgroundTop { background: url("'+img+'") #050D11 no-repeat center bottom; } </style>');
	}
else if(document.all || document.getElementById) {
	document.write('<style type="text/css"> body.top #backgroundTop { background: url("'+img+'") #050D11 no-repeat center bottom; }  </style>');
	}
}
