var now = new Date();
var hours = now.getHours();


//22-4 night
if (hours > 21 || hours < 5){
document.write('<style type="text/css">body{background: #131E2D;} #sky{background: #131E2D url(/wp-content/themes/house/style/images/sky-gradiant-night.png) repeat-x; }"></style>')
}

//20-21 night
if (hours > 19 && hours < 22){
document.write('<style type="text/css">body{background: #29405E;} #sky{background: #29405E url(/wp-content/themes/house/style/images/sky-gradiant-evening.png) repeat-x; }"></style>')
}

//18-19 night
if (hours > 17 && hours < 20){
document.write('<style type="text/css">body{background: #0F1E3D;} #sky{background: #0F1E3D url(/wp-content/themes/house/style/images/sunset.png) bottom repeat-x;}"></style>')
}

//14-17 day
if (hours > 13 && hours < 18){
document.write('<style type="text/css">body{background: #1E4586;} #sky{background: #1E4586 url(/wp-content/themes/house/style/images/afternoon.png) top right no-repeat;}"></style>')
}

//9-13 day
if (hours > 8 && hours < 14){
document.write('<style type="text/css">body{background: #9FC6DB;} #sky{background: #9FC6DB url(/wp-content/themes/house/style/images/noon.jpg) repeat-x;}"></style>')
}

//7-8 day
if (hours > 6 && hours < 9){
document.write('<style type="text/css">body{background: #0F1E3D;} #sky{background: #0F1E3D url(/wp-content/themes/house/style/images/sunset.png) bottom repeat-x;}"></style>')
}

//5-6 day
if (hours > 4 && hours < 7){
document.write('<style type="text/css">body{background: steelblue;} #sky{background: steelblue url(/wp-content/themes/house/style/images/sky-gradiant.png) repeat-x;}"></style>')
}
