var bgclr='ffffff';
var inFocusLineclr='000033';
var newsLineclr='000033';

function putdate(){
 var thisDate=new Date();
 var thismonth=thisDate.getMonth()+1;
 if (thismonth=="1") {monthname="January"}
 if (thismonth=="2") {monthname="February"}
 if (thismonth=="3") {monthname="March"}
 if (thismonth=="4") {monthname="April"}
 if (thismonth=="5") {monthname="May"}
 if (thismonth=="6") {monthname="June"}
 if (thismonth=="7") {monthname="July"}
 if (thismonth=="8") {monthname="August"}
 if (thismonth=="9") {monthname="September"}
 if (thismonth=="10") {monthname="October"}
 if (thismonth=="11") {monthname="November"}
 if (thismonth=="12") {monthname="December"}
 var year=thisDate.getYear();
 if (navigator.appVersion.lastIndexOf('Mac') != -1) 
  if (navigator.appName == ('Microsoft Internet Explorer')) 
  var year = (thisDate.getYear());
  else var year = (thisDate.getYear()+1900);
 if ((navigator.appName=="Netscape") && (navigator.appVersion.indexOf("Win") != -1))
  var year = (thisDate.getYear()+1900);
 currentDate=monthname+' '+thisDate.getDate()+', '+year+'';
 document.write(currentDate);
}

function myUnescape(theWord){
  var x=0;
  var outStr ="";
  var ch="";
  for (x=0; x<theWord.length; x++)
  {
  ch = theWord.substr(x,1);
  if (ch=='+') {ch=" "};
  outStr+=ch;
  }
  return outStr;
}

if (document.images) {
  menu01_a = new Image(144,15); menu01_a.src = "images/menus/menu01_a.jpg";
  menu01_b = new Image(144,15); menu01_b.src = "images/menus/menu01_b.jpg";
  menu02_a = new Image(144,15); menu02_a.src = "images/menus/menu02_a.jpg";
  menu02_b = new Image(144,15); menu02_b.src = "images/menus/menu02_b.jpg";
  menu03_a = new Image(144,15); menu03_a.src = "images/menus/menu03_a.jpg";
  menu03_b = new Image(144,15); menu03_b.src = "images/menus/menu03_b.jpg";
}

function swap(id, newSrc) {
var theImage = wotImage(document, id, 0);
if (theImage) {
theImage.src = newSrc;
}
}

function wotImage(doc, name, j) {
var theImage = false;
if (doc.images) {
theImage = doc.images[name];
}
if (theImage) {
return theImage;
}
if (doc.layers) {
for (j = 0; j < doc.layers.length; j++) {
theImage = wotImage(doc.layers[j].document, name, 0);
if (theImage) {
return (theImage);
}
}
}
return (false);
}

function openWin(wotWin){   
if (document.images)
MessageWindow=window.open(wotWin,'MessageWindow','width=443,height=434,scrollbars=0,location=0,status=0,menubar=1,toolbar=0,resizable=no');
}




function swapImage(imgName,newImg){
  if ((navigator.appName == 'Netscape' && parseFloat(navigator.appVersion) >= 3) || (parseFloat(navigator.appVersion) >= 4)){		
		eval('document.' + imgName + '.src = "' + newImg + '"');
	}
}

function swap(id, newSrc) {
var theImage = wotImage(document, id, 0);
if (theImage) {
theImage.src = newSrc;
}
}

function wotImage(doc, name, j) {
var theImage = false;
if (doc.images) {
theImage = doc.images[name];
}
if (theImage) {
return theImage;
}
if (doc.layers) {
for (j = 0; j < doc.layers.length; j++) {
theImage = wotImage(doc.layers[j].document, name, 0);
if (theImage) {
return (theImage);
}
}
}
return (false);
}

var newwin=null;

function launchCard(whichCard,whichText,whichNum) {
var winFeatures='width=404,height=450,dependent,left=0,top=0';
newwin=window.open('',whichCard,winFeatures);
if(jsvers>1.0){setTimeout('newwin.focus();',250);}
var doc=newwin.document; 
doc.open('text/html','replace');
var sMarkup='<html><head><title>'+whichText+'<'+'/title>';
sMarkup+='<style type="text/css"><!--';
sMarkup+='#zeroBottom{margin-bottom:30px;}';
sMarkup+='//--><'+'/style><'+'/head>';
sMarkup+='<body bgcolor="#e7e7ce" background="images/misc/bgnd.jpg" text="#000000" leftmargin="18" topmargin="10" marginwidth="18" marginheight="10">';
sMarkup+='<table cellspacing="0" cellpadding="0" border="0">';
sMarkup+='<tr><td valign="top"><img src="images/misc/line.jpg" width="236" height="25" border="0"><'+'/td>';
sMarkup+='<td valign="top"><img src="images/misc/smlogo.jpg" width="125" height="25" border="0"><'+'/td><'+'/tr>';
sMarkup+='<tr><td colspan="2" valign="top" id="zeroBottom"><img src="images/cards/'+whichCard+'.jpg" width="361" height="312" border="0"><'+'/td><'+'/tr>';
sMarkup+='<tr><td id="zeroBottom" colspan="2" valign="top"><img src="images/misc/smline.jpg" width="360" height="3" border="0"><'+'/td><'+'/tr>';
sMarkup+='<tr><td align="center" id="zeroBottom" colspan="2" valign="top"><b>'+whichText+'</b><br>'+whichNum+'<'+'/td><'+'/tr>';
sMarkup+='<'+'/table><'+'/center>';
sMarkup+='<'+'/body><'+'/html>';
doc.write(sMarkup);
doc.close();
}
