/*----------------------------------
 JavaScript Document
Date: 12/04/2004
File: 
Author: Josué Adib Cervantes García
Purpose: Different background depending on time
----------------------------------*/

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


		//1-2 Dawm
        if (hours > 24 && hours < 3){
                document.write('<body bgcolor="black"  text="#FFFFFF">') //black
        }
		
		//3-4 Dawm
        if (hours > 2 && hours < 5){
                document.write('<body bgcolor="black" text="#FFFFFF">') //black
        }

		//5-6 Morning
        if (hours > 4 && hours < 7){
                document.write('<body bgcolor="black"  text="#FFFFFF">') //black
				   }
		
        //7-8 Morning
        if (hours > 6 && hours < 9){
                document.write('<body bgcolor="white" text="#FFFFFF">') //White
        }
		
		 //9-11 Morning
        if (hours > 8 && hours < 12){
                document.write('<body bgcolor="white"  text="#FFFFFF">') //White
        }
		
		 //12-14 Day
        if (hours > 11 && hours < 15){
                document.write('<body bgcolor="white"  text="#000000">') //White
        }
		
		//15-17 Day
        if (hours > 14 && hours < 18){
                document.write('<body bgcolor="white" text="#000000">') //White
        }

     	 //18-19 night
        if (hours > 17 && hours < 20){
                document.write('<body bgcolor="white" text="#000000">')  //White
        }

        //20-21 night
        if (hours > 19 && hours < 22){
                document.write('<body bgcolor="black" text="#FFFFFF">') //black
        }

        //22-24 night
        if (hours > 21 || hours < 23){
                document.write('<body bgcolor="black" text="#FFFFFF">') //black
        }

      