								var hours;
 							var path = "background/";
					//	var sunriseBG = path+'cem_sunrise_bg_04.jpg'; // cem_new_bg_05.jpg
//								var sunriseBG = 'cem_sunrise_bg_04.jpg'; // cem_new_bg_05.jpg
								var sunriseBG = path+'cem_sunrise_bg_03.jpg'; // cem_new_bg_05.jpg
								var daytimeBG = path+'cem_daylight_bg_11.jpg';
//								var daytimeBG = 'cem_sunset_bg_04.jpg';
								var sunsetBG = path+'cem_sunset_bg_04.jpg';
								var nightBG = path+'cem_night_bg_05.jpg';
 
								var sunriseBGhex = '#000'; // #f4750e
								var daytimeBGhex = '#000'; // #d1deef
								var sunsetBGhex = '#000'; // #f4750e
								var nightBGhex = '#000'; //#0000
								
								
								function setBG(hour) {
											hours = hour;
												if (hours >= 6 && hours <= 10){
														timeOfDay = "Sunrise";
														$('html').css('background','url(/img/'+sunriseBG+') '+sunriseBGhex+' top center no-repeat fixed');
														// document.write('<body bgcolor="steelblue" text="#FFFFFF"><div style="font-size:26px;">'+hours+':'+min+' - '+timeOfDay+'</div></body>');
												} else if (hours >= 11 && hours <= 16){
															timeOfDay = "Daytime";
															// $('html').css("background","url(/img/) top center no-repeat fixed");
														$('html').css('background','url(/img/'+daytimeBG+') '+daytimeBGhex+' top center no-repeat fixed');
															// document.write('<body bgcolor="deepskyblue" text="#FFFFFF"><div style="font-size:26px;">'+hours+':'+min+' - '+timeOfDay+'</div></body>');
												//18-19 night = Dusk
												} else if (hours >= 17 && hours <= 19){ 
															timeOfDay = "Sunset";
															// $('html').css('background','url(/img/) top center no-repeat fixed');
														$('html').css('background','url(/img/'+sunsetBG+') '+sunsetBGhex+' top center no-repeat fixed');
															// document.write('<body bgcolor="orangered" text="#FFFFFF"><div style="font-size:26px;">'+hours+':'+min+' - '+timeOfDay+'</div></body>');
												//22-4 night = Night
												} else if (hours >= 20 || hours <= 5){
															timeOfDay = "Night";
															// $('html').css('background','url(/img/) top center no-repeat fixed');
														 $('html').css('background','url(/img/'+nightBG+') '+nightBGhex+' top center no-repeat fixed');
															// document.write('<body bgcolor="black" text="#FFFFFF"><div style="font-size:26px;">'+hours+':'+min+' - '+timeOfDay+'</div></body>');
												} 

											// alert('Hour Set To = '+hours+'\nTime of Day ='+timeOfDay);		
 								}
	
								if(hours===undefined) {
	        var now = new Date();
	        hours = now.getHours();
								}
								
							// alert('hours = '+hours);
								
        var m = new Date();
        var min = m.getMinutes();
        var psj=0;
        var timeOfDay;
        
												if (hours >= 6 && hours <= 10){
														timeOfDay = "Sunrise";
														$('html').css('background','url(/img/'+sunriseBG+') '+sunriseBGhex+' top center no-repeat fixed');
														// document.write('<body bgcolor="steelblue" text="#FFFFFF"><div style="font-size:26px;">'+hours+':'+min+' - '+timeOfDay+'</div></body>');
												} else if (hours >= 11 && hours <= 16){
															timeOfDay = "Daytime";
															// $('html').css("background","url(/img/cem_bg_day_01.jpg) top center no-repeat fixed");
														$('html').css('background','url(/img/'+daytimeBG+') '+daytimeBGhex+' top center no-repeat fixed');
															// document.write('<body bgcolor="deepskyblue" text="#FFFFFF"><div style="font-size:26px;">'+hours+':'+min+' - '+timeOfDay+'</div></body>');
												//18-19 night = Dusk
												} else if (hours >= 17 && hours <= 19){ 
															timeOfDay = "Sunset";
															// $('html').css('background','url(/img/wallpaper_07.jpg) top center no-repeat fixed');
														$('html').css('background','url(/img/'+sunsetBG+') '+sunsetBGhex+' top center no-repeat fixed');
															// document.write('<body bgcolor="orangered" text="#FFFFFF"><div style="font-size:26px;">'+hours+':'+min+' - '+timeOfDay+'</div></body>');
												//22-4 night = Night
												} else if (hours >= 20 || hours <= 5){
															timeOfDay = "Night";
															// $('html').css('background','url(/img/wallpaper_gino_13.jpg) top center no-repeat fixed');
														 $('html').css('background','url(/img/'+nightBG+') '+nightBGhex+' top center no-repeat fixed');
															// document.write('<body bgcolor="black" text="#FFFFFF"><div style="font-size:26px;">'+hours+':'+min+' - '+timeOfDay+'</div></body>');
												} 
											$('body').css('background','none');
											$('button.testButton').css('background-color','#800000');

											// alert('Hour Set To = '+hours+'\nTime of Day ='+timeOfDay);		
 
										function testButtons() {
											var buttons = '<div id="bg_buttons" style="display:none;position:absolute; height:50px; width:295px; left:50%; margin-left:-145px; top:165px; z-index:10001;">';
											buttons += '<button class="testButton" onclick="setBG(6);">Sunrise</button>';
											buttons += '<button class="testButton" onclick="setBG(12);">Day</button>';
											buttons += '<button class="testButton" onclick="setBG(18);">Sunset</button>';
											buttons += '<button class="testButton" onclick="setBG(23);">Night</button>';
											buttons += '<button class="testButton" onclick="window.location=\'testBG2.php\'">BG2</button>';
											buttons += '</div>';
											// document.write(buttons);
										}
										testButtons();
										
										$("body").bind("dblclick", function(){
									    // window.location.replace("http://yourdomain.com");
												//	$('#bg_buttons').toggle();
										});

