function getCSS()
{
datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();

if (thehour > 20)
display = "css/index_twilight.css";
else if (thehour > 17)
display = "css/index_sunset.css";
else if (thehour > 14)
display = "css/index_afternoon.css";
else if (thehour > 11)
display = "css/index_noon.css";
else if (thehour > 7)
display = "css/index_morning.css";
else if (thehour > 4)
display = "css/index_sunrise.css";
else if (thehour > 1)
display = "css/index_twilight.css";
else
display = "css/index_twilight.css";

var css = '<';  css+='link rel="stylesheet" href=' + display + ' \/';  css+='>';

document.write(css);

}

//From 05:00 to 08:00, it displays the "sunrise" theme.
//From 08:00 to 12:00, it displays the "morning" theme.
//From 12:00 to 15:00, it displays the "noon" theme.
//From 15:00 to 18:00, it displays the "afternoon" theme.
//From 18:00 to 21:00, it displays the "sunset" theme.
//And finally, from 21:00 to 5:00, it displays the "twilight" theme.

//display = "tree_twilight.css";
//else if (thehour > 17)
//display = "tree_sunset.css";
//else if (thehour > 14)
//display = "tree_afternoon.css";
//else if (thehour > 11)
//display = "tree_noon.css";
//else if (thehour > 7)
//display = "tree_morning.css";
//else if (thehour > 4)
//display = "tree_sunrise.css";
//else if (thehour > 1)
//display = "tree_twilight.css";
//else
//display = "tree_sunset.css";
