// JavaScript Document

	$(document).ready(function() {

				datetoday = new Date();
				timenow=datetoday.getTime();
				datetoday.setTime(timenow);
				thehour = datetoday.getHours();
				
				if (thehour > 20){
					display = "twilight";
				}
				else if (thehour > 17){
					display = "sunset";
				}
				else if (thehour > 14){
					display = "afternoon";
				}
				else if (thehour > 11){
					display = "noon";
				}
				else if (thehour > 7){
					display = "morning";
				}
				else if (thehour > 4){
					display = "sunrise";
				}
				else if (thehour >= 0){
					display = "twilight";
				}
				else{
					display = "afternoon"; //default
				}
				
				$("body").removeClass("afternoon");//remove default
				$("body").addClass(display);    //replace
	
	});
