<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('advent2/3-99821.jpg')";
document.body.style.backgroundSize = "cover";
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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