
function whichis() {
 var agent = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion);
 this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
 this.ns4 = (this.ns && (this.major == 4));}
var is = new whichis();

function MM_reloadPage(init) {  //reloads the window if Netscape4 resized due to bug
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();}
MM_reloadPage(true);


preloadflag= false;
function newImage(arg) {if (document.images) {result= new Image(); result.src= arg; return result;}}
NS4= (document.layers) ?1 :0;
is_gecko= navigator.userAgent.toLowerCase().indexOf('gecko')!=-1;


function rollover(N,ON,M) {
 if (document.images && (preloadflag==true)) {document[M].src= "images/" +M +((ON)?"_on":"") +".jpg"; document[N].src= "images/" +N +((ON)?"_on":"") +".jpg"; document["pt_" +N].src= "images/spacer" +((ON)?"_b":"") +".gif";}
 str= "Text" +N
 if (is_gecko){ str= document.getElementById(str).style}
        else  {str= (NS4) ?document.layers[str] :document.all[str].style;}
 str.visibility= (ON) ?"visible" :"hidden";
 if (NS4) str.visibility= (ON) ?"show" :"hide";}

function rollover2(N,ON,M) {
 if (document.images && (preloadflag==true)) {document[M].src= "../images/" +M +((ON)?"_on":"") +".jpg"; document[N].src= "../images/" +N +((ON)?"_on":"") +".jpg"; document["pt_" +N].src= "../images/spacer" +((ON)?"_b":"") +".gif";}
 str= "Text" +N
 if (is_gecko){ str= document.getElementById(str).style}
        else  {str= (NS4) ?document.layers[str] :document.all[str].style;}
 str.visibility= (ON) ?"visible" :"hidden";
 if (NS4) str.visibility= (ON) ?"show" :"hide";}

function init4d() {
 if (document.images) {MG4d_on = newImage("images/MG4d_on.jpg"); MG4dnav_on = newImage("images/MG4dnav_on.jpg"); SG4d_on = newImage("images/SG4d_on.jpg"); SG4dnav_on = newImage("images/SG4dnav_on.jpg"); TO4d_on = newImage("images/TO4d_on.jpg"); TO4dnav_on = newImage("images/TO4dnav_on.jpg");
  preloadflag = true; }}

function NewWindow2(subpage) {
level2=window.open("","kid","width=650,height=580,toolbar=no,directories=no,status=no,location=no,history=no,scrollbars=yes,resizable=no,menubar=no" );
level2.location=subpage;}
function CloseWindow2() {window.close("top");}


function NewWindow(mypage, myname, w, h, scroll) {
        var mypage2 = mypage + add_print;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage2, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

   var klthhrs,klthmins,day,klthd0,klthd1,nth,month,klthm0,klthyy;
   month = new Array(12); month[0]="January";month[1]="February";month[2]="March";month[3]="April";month[4]="May"; month[5]="June";month[6]="July";month[7]="August";month[8]="September";month[9]="October";month[10]="November";month[11]="December";
   day = new Array(7); day[0]="Sunday";day[1]="Monday";day[2]="Tuesday";day[3]="Wednesday";day[4]="Thursday";day[5]="Friday";day[6]="Saturday";
   nth = new Array(31); for (i=0;i<31;i+=1)nth[i]="th"; nth[0]="st";nth[1]="nd";nth[2]="rd";nth[20]="st";nth[21]="nd";nth[22]="rd";nth[30]="st";
   today=new Date(); d0=today.getDay(); m0=today.getMonth(); d1=today.getDate(); yy=(today.getFullYear());msecs=today.getTime(); offset=today.getTimezoneOffset(); klthmsecs=(msecs+(offset*1000*60));klthmsecs=klthmsecs+(8*60*60*1000); 
   klthtoday=new Date(); klthdate=klthtoday.setTime(klthmsecs);klthd0=klthtoday.getDay(); klthm0=klthtoday.getMonth(); klthd1=klthtoday.getDate(); klthyy=(klthtoday.getFullYear());klthhrs=klthtoday.getHours(); klthmins=klthtoday.getMinutes();
   if(klthmins<10)klthmins='0' + klthmins; if(klthhrs<10)klthhrs='0' + klthhrs;
