
        var now = new Date();
        var hours = now.getHours();
        var daywk = now.getDay();
        var month = now.getMonth();
        var rpg=0;
   //   0=Sunday, 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday
   //   0=Jan, 1=Feb, 2=Mar, 3=Apr, 4=May, 5=Jun, 6=Jul, 7=Aug, 8=Sep, 9=Oct, 10=Nov, 11=Dec, 
   
   var weekdayColor;
   var backgrdColor;
   if(daywk == 0)
   {weekdayColor = 'black';}     //black   Sunday
   else if(daywk == 1)
   {weekdayColor = 'blue';}      //blue    Monday
   else if(daywk == 2)
   {weekdayColor = '#32CD32';}   //green   Tuesday
   else if(daywk == 3)
   {weekdayColor = '#FF00FF';}   //magenta Wednesday
   else if(daywk == 4)
   {weekdayColor = 'orange';}    //orange  Thursday
   else if(daywk == 5)
   {weekdayColor = 'red';}       //red     Friday
   else if(daywk == 6)
   {weekdayColor = 'cyan';}      //cyan    Saturday
   
   //5-6 day =   (5am-6am)	 			Forground=darkgray
   if (hours > 4 && hours < 7)
   {
      //------Morning-------
      if( (month == 2) ||  (month == 3) || (month == 4) )
      {  //Mar.Apr.May.                                          Mar.Apr.May.
         document.write('<body bgcolor="#6DD000" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#6DD000';
         //document.write("Hello Its Spring"); 
      }
      else if( (month == 5) || (month == 6) || (month == 7) )
      {  //Jun.Jul.Aug.                Dkryellow=#FFA000        Jun.Jul.Aug. //Aug.11.2006 (bgd.jpg)
         document.write('<style type="text/css">body {background: #FDEFC0 url(images/thms/SunSet864c.jpg) repeat-x;} </style>');  backgrdColor = '#FDEFC0';
         document.write('<body bgcolor="#FDEFC0" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');
         //document.write("Hello Its Summer"); 
      }
      else if( (month == 8) || (month == 9) )
      {  //Sept.Oct.                    #0070A2                 Sept.Oct.
         document.write('<style type="text/css">body {background: #FDEFC0 url(images/thms/SunSet864c.jpg) repeat-x;} </style>');  backgrdColor = '#FDEFC0'; 
         document.write('<body bgcolor="#FDEFC0" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');
         //document.write("Hello Its Fall"); 
      }
      else if( (month == 10) || (month == 11) || (month == 0) || (month == 1) )
      {  //Nov.Dec.Jan.Feb.                                     Nov.Dec.Jan.Feb.
         document.write('<body bgcolor="#FF5F00" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#FF5F00';
         //document.write("Hello Its Winter"); 
      }
      else
      {
          document.write('<body bgcolor="steelblue" text="#4c4c4c" LINK="#4c4c4c" VLINK="#6B8E23" ALINK="#4c4c4c">');              backgrdColor = 'steelblue';
      }
   }
   //7-9 day =   (7-9am)  				Forground=darkred
   if (hours > 6 && hours < 10)
   {
      //------Morning-------
      if( (month == 2) ||  (month == 3) || (month == 4) )
      {  //Mar.Apr.May.                                          Mar.Apr.May.
         document.write('<body bgcolor="#6DD000" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#6DD000';
         //document.write("Hello Its Spring"); 
      }
      else if( (month == 5) || (month == 6) || (month == 7) )
      {  //Jun.Jul.Aug.                Dyellow                  Jun.Jul.Aug.
         document.write('<body bgcolor="#FFCD00" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#FFCD00';
         //document.write("Hello Its Summer"); 
      }
      else if( (month == 8) || (month == 9) )
      {  //Sept.Oct.                                            Sept.Oct.
         document.write('<body bgcolor="#50CAFF" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#50CAFF';
         //document.write("Hello Its Fall"); 
      }
      else if( (month == 10) || (month == 11) || (month == 0) || (month == 1) )
      {  //Nov.Dec.Jan.Feb.                                     Nov.Dec.Jan.Feb.
         document.write('<style type="text/css">body {background: #FDEFC0 url(images/thms/SunSet864c.jpg) repeat-x;} </style>');  backgrdColor = '#FDEFC0';
         document.write('<body bgcolor="#FDEFC0" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');
         //document.write("Hello Its Winter"); //#FF5F00
      }
      else
      {
          document.write('<body bgcolor="skyblue" text="#b30000" LINK="#b30000" VLINK="#b30000" ALINK="#b30000">');               backgrdColor = 'skyblue';
      }
   }

   //----------------------lightblue&olivgreen change to a hotter color
   //10-13 day = (10am-12:59pm)  			Forground=lightskyblue txt=olivgreen 
   if (hours > 9 && hours < 13)
   {
      //Morning-NOON+
      if( (month == 2) ||  (month == 3) || (month == 4) )
      {  //Mar.Apr.May.                                          Mar.Apr.May.
         document.write('<body bgcolor="#6DD000" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#6DD000';
         //document.write("Hello Its Spring"); 
      }
      else if( (month == 5) || (month == 6) || (month == 7) )
      {  //Jun.Jul.Aug.              almstyellow                Jun.Jul.Aug.
         document.write('<body bgcolor="#EEE100" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#EEE100';
         //document.write("Hello Its Summer"); 
      }
      else if( (month == 8) || (month == 9) )
      {  //Sept.Oct.                                            Sept.Oct.
         document.write('<body bgcolor="#FFE450" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#FFE450';
         //document.write("Hello Its Fall"); 
      }
      else if( (month == 10) || (month == 11) || (month == 0) || (month == 1) )
      {  //Nov.Dec.Jan.Feb.                                     Nov.Dec.Jan.Feb.
         document.write('<body bgcolor="#FF5F00" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#FF5F00';
         //document.write("Hello Its Winter"); 
      }
      else
      {
          document.write('<body bgcolor="#00FFFF" text="#6B8E23" LINK="#6B8E23" VLINK="#6B8E23" ALINK="#6B8E23">');               backgrdColor = '#00FFFF';
      }
   }
   //13-16 day = (1pm-4pm) <5pm           Forground=darkyellow #00FFFF deepskyblue
   if (hours > 12 && hours < 17)
   {
      //MID AFTER-NOON
      if( (month == 2) ||  (month == 3) || (month == 4) )
      {  //Mar.Apr.May.                                          Mar.Apr.May.
         document.write('<body bgcolor="#6DD000" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#6DD000';
         //document.write("Hello Its Spring"); 
      }
      else if( (month == 5) || (month == 6) || (month == 7) )
      {  //Jun.Jul.Aug.                                         Jun.Jul.Aug.
         document.write('<body bgcolor="yellow" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                 backgrdColor = 'yellow';
         //document.write("Hello Its Summer"); 
      }
      else if( (month == 8) || (month == 9) )
      {  //Sept.Oct.                                            Sept.Oct.
         document.write('<body bgcolor="#FF8850" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#FF8850';
         //document.write("Hello Its Fall");  //done
      }
      else if( (month == 10) || (month == 11) || (month == 0) || (month == 1) )
      {  //Nov.Dec.Jan.Feb.                                     Nov.Dec.Jan.Feb.
         document.write('<body bgcolor="#FF5F00" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#FF5F00';
         //document.write("Hello Its Winter"); 
      }
      else
      {
          document.write('<body bgcolor="deepskyblue" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');           backgrdColor = 'deepskyblue';
      }
   }

   //==================================================#8B0000darkred 
   //17-18 night = (5-6pm)  			Forground=darkblue orange & #0000ff
   if (hours > 16 && hours < 18)
   {
      //{ document.write("<FONT COLOR=weekdayColor>Hello Its Wednesday<BR></FONT>"); }
      //EVENING
      if( (month == 2) ||  (month == 3) || (month == 4) )
      {  //Mar.Apr.May.                                          Mar.Apr.May.
         document.write('<body bgcolor="#6DD000" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#6DD000';
         //document.write("Hello Its Spring"); 
      }
      else if( (month == 5) || (month == 6) || (month == 7) )
      {  //Jun.Jul.Aug.               almstyellow               Jun.Jul.Aug.
         document.write('<body bgcolor="#EEE100" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                 backgrdColor = '#EEE100';
         //document.write("Hello Its Summer"); 
      }
      else if( (month == 8) || (month == 9) )
      {  //Sept.Oct.                                            Sept.Oct.
         document.write('<body bgcolor="#5098FF" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                 backgrdColor = '#6DD000';
         //document.write("Hello Its Fall"); 
      }
      else if( (month == 10) || (month == 11) || (month == 0) || (month == 1) )
      {  //Nov.Dec.Jan.Feb.                                      Nov.Dec.Jan.Feb.
         document.write('<style type="text/css">body {background: #FDEFC0 url(images/thms/SunSet864c.jpg) repeat-x;} </style>');  backgrdColor = '#FDEFC0';
         document.write('<body bgcolor="#FDEFC0" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');
         //document.write("Hello Its Winter"); //#0000AA
      }
      else
      {
          document.write('<body bgcolor="orange" text="#0000ff" LINK="#0000ff" VLINK="#0000ff" ALINK="#0000ff">');                 backgrdColor = 'orange';
      }
   }
   //18-19 night = (6-6:59pm) 			Forground=darkblue orange & #0000ff
   if (hours > 17 && hours < 20)
   {
      //NIGHT
      if( (month == 2) ||  (month == 3) || (month == 4) )
      {  //Mar.Apr.May.                                          Mar.Apr.May.
         document.write('<body bgcolor="hotpink" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                 backgrdColor = 'hotpink';
         //document.write("Hello Its Spring"); 
      }
      else if( (month == 5) || (month == 6) || (month == 7) )
      {  //Jun.Jul.Aug.                 gold1                   Jun.Jul.Aug.
         document.write('<body bgcolor="#EEC900" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#EEC900';
         //document.write("Hello Its Summer"); 
      }
      else if( (month == 8) || (month == 9) )
      {  //Sept.Oct.                                            Sept.Oct.
         document.write('<style type="text/css">body {background: #FDEFC0 url(images/thms/SunSet864c.jpg) repeat-x;} </style>');  backgrdColor = '#FDEFC0';
         document.write('<body bgcolor="#FDEFC0" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');
         //document.write("Hello Its Fall"); //#5071FF
      }
      else if( (month == 10) || (month == 11) || (month == 0) || (month == 1) )
      {  //Nov.Dec.Jan.Feb.                                     Nov.Dec.Jan.Feb.
         document.write('<body bgcolor="#000077" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#000077';
         //document.write("Hello Its Winter"); 
      }
      else
      {
          document.write('<body bgcolor="hotpink" text="#0000a0" LINK="#0000a0" VLINK="#0000a0" ALINK="#0000a0">');               backgrdColor = 'hotpink';
      }
   }

   //====================================================#0000a0================
   //20-22 night = (8-10:59pm)			Background=orangered	Forground=verydarkblue
   if (hours > 18 && hours < 23)
   {
      //NIGHT
      if( (month == 2) ||  (month == 3) || (month == 4) )
      {  //Mar.Apr.May.                                         Mar.Apr.May.
         document.write('<body bgcolor="hotpink" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = 'hotpink';
         //document.write("Hello Its Spring"); 
      }
      else if( (month == 5) || (month == 6) || (month == 7) )
      {  //Jun.Jul.Aug.               goldenrod3=#CD9B1D        Jun.Jul.Aug. //Aug.11.2006 (bgd.jpg)
         document.write('<style type="text/css">body {background: #FDEFC0 url(images/thms/SunSet864c.jpg) repeat-x;} </style>');  backgrdColor = '#FDEFC0';
         document.write('<body bgcolor="#FDEFC0" text="#C71585" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');
         //document.write("Hello Its Summer"); //goldenrod2=EEB422
      }
      else if( (month == 8) || (month == 9) )
      {  //Sept.Oct.                                            Sept.Oct.
         document.write('<body bgcolor="#000066" text="#FFA9DF" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');                backgrdColor = '#000066';
         //document.write("Hello Its Fall"); 
      }
      else if( (month == 10) || (month == 11) || (month == 0) || (month == 1) )
      {  //Nov.Dec.Jan.Feb.                                     Nov.Dec.Jan.Feb.
         document.write('<body bgcolor="#000066" text="#FFA9DF" LINK="#C71585" VLINK="#C71585" ALINK="#C71585">');  backgrdColor = '#000066';
         //document.write("Hello Its Winter"); 
      }
      else
      {
          document.write('<body bgcolor="#2F4F4F" text="#FF1493" LINK="#FF1493" VLINK="#FF1493" ALINK="#FF1493">');  backgrdColor = '#2F4F4F';
      }
   }

   //23-4 night = (11pm-4am)	#696969=Dgray		Background=lightPurple #eeb3ff 
   if (hours > 22 || hours < 5)
   {
          document.write('<body bgcolor="black" text="#eeb3ff" LINK="#eeb3ff" VLINK="#eeb3ff" ALINK="#eeb3ff">');  backgrdColor = 'black';
   }



