var Months = new date("January","February","March","April","May","June","July","August","September","October","November","December");
function date()
	{
	this.length = date.arguments.length
	for (var i = 0; i<this.length; i++)
		{
		this[i+1] = date.arguments[i];
		}
	}
var lastupdated = new Date(document.lastModified);
currYear=lastupdated.getYear();

if (currYear<1000)
	{
	if (document.layers)
		{
		currYear+=2000;
		}
	else
		{
		currYear+=1900;
		}
	}
	
	
function openWindow(theURL,winName,features)
	{
	window.open(theURL,winName,features).focus();
	}
	
function updateVariables(src,id,width,height,bgcolor)
	{
	currVideo=src;
	currVideoID=id;
	currVideoWidth=width;
	currVideoHeight=height;
	currVideoBgColor=bgcolor;
	openWindow('videos.html','video1','menubar=yes,scrollbars=yes,resizable=yes,width=370,height=390');
	}
	
function openVideoWindow(theURL,winName,features)
	{
	window.open(theURL,winName,features).focus();
	}

function closeWindow()
	{
	window.close();
	}
	
function checkOS()
	{
	if (navigator.userAgent.indexOf('Win') != -1)
		{ var OS = "Windows"; }
	else if (navigator.userAgent.indexOf('Mac') != -1)
		{ var OS = "Macintosh"; }
	else { var OS = "Windows"; }
	return OS;
	}
	
function goHistory()
	{
	window.history.go(-1);
	}