/*************************************************************************
	FileName:	GUI_Lib.js
	Author:		Kris Felscher (kfelscher@e-ins.net)
	Description:
		This file handles all GUI javascript functions.
		
	Function Reference:
		switchCSS(obj[DOM Object], class[String])
			- Switches classes for the object specified.
			ex: <td onmouseOver="switchCSS(this,tdOn)" onmouseOut="switchCSS(this,tdOff)">
		
*************************************************************************/		
		
function switchCSS(obj, cls) {
	if(document.getElementById){
		obj.className = cls;
	}
}

function switchImg(obj, img) {
    obj.src = img;
}

function popUp(url) {
    sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
    self.name = "mainWin";
}

function startClock() {
    // 60 minute timeout -- (3600000 / 1000) / 60 = 60 minutes
    setTimeout("document.location.replace('http://www.americanstrategic.com/Tools/Timeout.aspx')", 3600000)
}

startClock();
