   var flash = true;
   var yellow = true;
   var line_color;
   var ampm="";
   var ampmhour="";
   var year="";

/*   function setcookie(name,value,duration){
    cookiestring=name+"="+escape(value)+";EXPIRES=Friday, 1-Jan-10 4:59:59 GMT";
    document.cookie=cookiestring;
   }
   function getcookie(cookiename) {
    var cookiestring=""+document.cookie;
    var index1=cookiestring.indexOf(cookiename);
    if (index1==-1 || cookiename=="") return ""; 
    var index2=cookiestring.indexOf(';',index1);
    if (index2==-1) index2=cookiestring.length; 
    return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
   }


   function test_cookie() {
    y=setcookie('test',1,1);
    if(!getcookie("test")){
    document.getElementById('poll').innerHTML("WARNING: Your browser does not accept cookies which may effect the use of this page");
    }
   }
*/
   function get_date(){
     today = new Date();
     dd    = today.getDate();
     mm    = today.getMonth();
     yy    = today.getYear();
     hour  = today.getHours();
     yy    = (yy < 2000) ? yy + 1900 : yy;
     ampmhour  =  (hour > 12) ? hour - 12 : hour;
     ampm  =  (hour >= 12) ? ' PM' : ' AM';
     mins  = today.getMinutes();
     minutes =  ((mins < 10) ? '0' : '') + mins;
     weekday= today.getDay();
     }

   function writeit(){
     get_date();
     flash = !flash;
     if (flash == true) semion = 'black';
     if (flash == false) semion = 'white';
     document.getElementById('time').innerHTML = "<CENTER><div class='clock'>"  + dow[weekday] + " - " + month[mm] + dd + ", " + yy + " - " + ampmhour + "<font color=" + semion + ">:</font>" + minutes + ampm + "</div></CENTER>";
     setTimeout('writeit()', 1000);
     }


//   function show_spotlight(){
//   x = Math.floor(Math.random()*spot_name.length);
//    document.getElementById('spotlight').innerHTML = " \
//    <BR> \
//    <CENTER><img src='" + spot_img[x] + "'><BR> \
//    <SPAN style='font-size: 10pt; padding:2px;'>" + spot_name[x] + "</SPAN><BR><BR> \
//    </CENTER> " + spot_text[x] + " \
//    ";
//   }


   function init(){
//     test_cookie();
     writeit();
//     show_spotlight();
   }


