function popupplayer(winFile) {
	newWin = window.open(winFile, 'popupplayer', 'height=330,width=300,scrollbars=no');
	newWin.focus();
}

/*
// visible = 0 or 1
function toggleLayer(visible, whichLayer)
{
	// visible = 0 or 1
	alert('visible: '+visible);
	var style2;
	if (document.getElementById) {
		// this is the way the standards work
		style2 = document.getElementById(whichLayer).style;
		//style2.display = style2.display? "":"block";
	} else if (document.all) {
		// this is the way old msie versions work
		style2 = document.all[whichLayer].style;
		//style2.display = style2.display? "":"block";
	} else if (document.layers) {
		// this is the way nn4 works
		style2 = document.layers[whichLayer].style;
		//style2.display = style2.display? "":"block";
	}
	if(visible == 0) {
		//style2.display = style2.display? "":"hidden";
		style2.display = "none";
		//alert('test01 - hidden');
	} else {
		style2.display = style2.display? "":"block";
		//alert('test02 - visible');
	}
}
*/

function toggleLayer(whichLayer) {
	//alert("toggleLayer2:" + whichLayer);

	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}

	if(style2.display=="block") {
		style2.display = "none";
	}
	//alert("style2:" + style2.display);
}





////////////////////
// date stuff
////////////////////
function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "January"
monthNames[2] = "February"
monthNames[3] = "March"
monthNames[4] = "April"
monthNames[5] = "May"
monthNames[6] = "June"
monthNames[7] = "July"
monthNames[8] = "August"
monthNames[9] = "September"
monthNames[10] = "October"
monthNames[11] = "November"
monthNames[12] = "December"
dayNames = new MakeArray(7)
dayNames[1] = "Sunday"
dayNames[2] = "Monday"
dayNames[3] = "Tuesday"
dayNames[4] = "Wednesday"
dayNames[5] = "Thursday"
dayNames[6] = "Friday"
dayNames[7] = "Saturday"

function customDateString() {
	currentDate = new Date()
	var theDay = dayNames[currentDate.getDay() + 1]
	var theMonth = monthNames[currentDate.getMonth() + 1]
	msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	if (msie4) {
	    var theYear = currentDate.getYear()
	}
	else {
	     var theYear = currentDate.getYear() +1900
	}
	return theDay + ", " + theMonth + " " + currentDate.getDate() + ", " + theYear
}