//File Name:	utils.js
//File Date:	July 27, 2005
//Version:	1.0
//Main Purpose:	Used for image rollovers and other needs

path = "images/";

//image swapping
function SwapOut(imgName,name) {
	imgName.src = path + "btn_" + name + "_dn.gif"; return true;
}
function SwapBack(imgName,name) {
	imgName.src = path + "btn_" + name + "_up.gif"; return true;
}

//opening a new window
function OpenWin(pgName) {
	var PgWidth = 550 //screen.width;
	var PgHeight = 500 //screen.height;
	var winLocationX = screen.width/2 - PgWidth/2;
	var winLocationY = screen.height/2 - PgHeight/2;
	window.open(pgName,'Timron','width='+PgWidth+',height='+PgHeight+',scrollbars=1,screenY='+winLocationY+',screenX='+winLocationX+',top='+winLocationY+',left='+winLocationX);
}

//slideshows
function OpenPage(pgName) {
	location.href = pgName; return true;
}