var pg = "";

function rollOver()
{
	for (i=0; i < rollOver.arguments.length; i++){
		id = rollOver.arguments[i];
		theSrc = document.getElementById(id).src;
		dPos = theSrc.lastIndexOf(".");
		thePath = theSrc.substr(0 , dPos);
		d2Pos = thePath.lastIndexOf(".");
		theStr =  thePath.substr(d2Pos+1, thePath.length);
		if (theStr != "o"){
			document.getElementById(id).src = thePath+".o.gif";
		}
	}
}

function rollOut()
{	
	for (i=0; i < rollOut.arguments.length; i++){
		id = rollOut.arguments[0];
		theSrc = document.getElementById(id).src;
		dPos = theSrc.lastIndexOf(".");
		thePath = theSrc.substr(0 , dPos);
		d2Pos = thePath.lastIndexOf(".");
		theStr =  thePath.substr(d2Pos+1, thePath.length);
		if (theStr == "o"){
			thePath = theSrc.substr(0 , dPos-2)+".gif";
			document.getElementById(id).src = thePath;	
		}
	}
}

function page()
{
	pg = page.arguments[0];
	document.location = "index.php"+"?pg="+pg
	
}

function popup(p,w,h)
{
	var wLeft = (screen.width - w) / 2;
	var wTop = (screen.height - h) / 2;
		
	window.open(p,"_blank","left="+wLeft+",top="+wTop+",width="+w+",height="+h+",scrollbars,statusbar,resizable");
		
}
