<html>

<head>
<script language="javascript" src="serverDate.js"></script>

</head>

 <script language="javascript">
 // var localTime = new Date();
 // document.write("Local machine time is: " + localTime + "<br>");

var dateString = date;
var myDate = new Date(dateString);
var final_date = myDate.getDate();


//document.write("Server time is: " + final_date);
  </script>

<body>

<script>

        function autoRefresh() {
            window.location = window.location.href;
        }
        setInterval('autoRefresh()', 3600000);


if (final_date == 3 ) {
document.body.style.backgroundImage = "url('advent/332654.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 4 ) {
document.body.style.backgroundImage = "url('advent/431548.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 5 ) {
document.body.style.backgroundImage = "url('advent/532587.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 6 ) {
document.body.style.backgroundImage = "url('advent/632158.jpg')";
document.body.style.backgroundSize = "cover";
}


if (final_date == 7 ) {
document.body.style.backgroundImage = "url('advent/786532.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 8 ) {
document.body.style.backgroundImage = "url('advent/823468.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 9 ) {
document.body.style.backgroundImage = "url('advent/932323.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 10 ) {
document.body.style.backgroundImage = "url('advent/1092120.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 11 ) {
document.body.style.backgroundImage = "url('advent/1148364.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 12 ) {
document.body.style.backgroundImage = "url('advent/1249364.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 13 ) {
document.body.style.backgroundImage = "url('advent/1349364.jpg')";
document.body.style.backgroundSize = "cover";
}


if (final_date == 14 ) {
document.body.style.backgroundImage = "url('advent/1438465.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 15 ) {
document.body.style.backgroundImage = "url('advent/1537253.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 16 ) {
document.body.style.backgroundImage = "url('advent/1639423.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 17 ) {
document.body.style.backgroundImage = "url('advent/1749365.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 18 ) {
document.body.style.backgroundImage = "url('advent/1859463.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 19 ) {
document.body.style.backgroundImage = "url('advent/1949376.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 20 ) {
document.body.style.backgroundImage = "url('advent/2050374.jpg')";
document.body.style.backgroundSize = "cover";
}


if (final_date == 21 ) {
document.body.style.backgroundImage = "url('advent/2159365.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 22 ) {
document.body.style.backgroundImage = "url('advent/2230475.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 23 ) {
document.body.style.backgroundImage = "url('advent/2349364.jpg')";
document.body.style.backgroundSize = "cover";
}

if (final_date == 24 ) {
document.body.style.backgroundImage = "url('advent/2457356.jpg')";
document.body.style.backgroundSize = "cover";
}

</script>
</body>
</html>