var myW = 0;
var myH = 0;

var today   = new Date();
var myDay   = today.getDate();
var mymonth = today.getMonth() +1;
var myyear  = today.getFullYear();
var myfile  = (myyear*100)+mymonth;

var mymonthname = new Array();
mymonthname[0] = 'No Month';
mymonthname[1] = 'January';
mymonthname[2] = 'February';
mymonthname[3] = 'March';
mymonthname[4] = 'April';
mymonthname[5] = 'May';
mymonthname[6] = 'June';
mymonthname[7] = 'July';
mymonthname[8] = 'August';
mymonthname[9] = 'September';
mymonthname[10] = 'October';
mymonthname[11] = 'November';
mymonthname[12] = 'December';

function printMonthDay() {
	document.write(mymonthname[mymonth]+' '+myDay);
}

function printMonth() {
	document.write(mymonthname[mymonth]);
}

function getDiv(divID) {
    if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
        return document.getElementById(divID); }
    if( document.layers ) { //Netscape layers
        return document.layers[divID]; }
    if( document.all ) { //Proprietary DOM; IE4
        return document.all[divID]; }
    if( document[divID] ) { //Netscape alternative
        return document[divID]; }
    return false;
}

function showDiv(divID,source) {
myRef = getDiv(divID,source);
if (source !="") {myRef.src=source;}
if( myRef )
	{
	if( myRef.style )	//DOM & proprietary DOM
		{
		if(myRef.style.visibility == 'visible') {myRef.style.visibility = 'hidden';}
		else { myRef.style.visibility = 'visible';}
		}
	else	{		//Netscape
		if( myRef.visibility )
			{
			if(myRef.visibility = 'show') {myRef.visibility = 'hide';}
			else {myRef.visibility = 'show';}
			}
		}
	}
	//else {alert("Oops, No Object!");}
}

function hideDiv(divID) {
myRef = getDiv(divID);
if( myRef )
	{
	if (myRef.style) {myRef.style.visibility = 'hidden';}
	else		 {myRef.visibility = 'hide';}
	}
}

function winW() {
//var myW = 0;
if( typeof( window.innerWidth ) == 'number' )
	{ myW = window.innerWidth; }	// Non-IE
else
	{ myW = screen.availWidth; }	// IE
return myW;
}

function winH() {
//var myH = 0;
if( typeof( window.innerHeight ) == 'number' )
	{ myH = window.innerHeight; }	// Non-IE
else
	{ myH = screen.availHeight - 135; }	// IE
return myH;
}

var popwin = null;
window.name = "main";
function popup(url, w, h)
{
if (popwin && popwin.open && !popwin.closed)
{
if (popwin.window.focus) {popwin.window.focus();}
popwin.location.href = url;
}
else
{
vparm = 'height='+h+',width='+w+',top=100,left=100,scrollbars=no,status=no,directories=no,location=no,menubar=no,toolbar=no';
popwin = window.open(url,'newwin',vparm);
if (popwin.window.focus) {popwin.window.focus();}
}
}

var redir = 5000;

var xwmid = winW();
var xhmid = winH();

var homeWmid = winW() / 2;
var homeHmid = (winH() / 2) + 225;


