{
	graphic1= new Image();
	graphic1.src = "images/contactOff.gif";
	graphic1on = new Image();
	graphic1on.src = "images/contactOn.gif";

	graphic2= new Image();
	graphic2.src = "images/portfolioOff.gif";
	graphic2on = new Image();
	graphic2on.src = "images/portfolioOn.gif";

	graphic3= new Image();
	graphic3.src = "images/aboutOff.gif";
	graphic3on = new Image();
	graphic3on.src = "images/aboutOn.gif";

}

function imageChange(imageID,imageName) 
{
	{
		document.images[imageID].src = eval(imageName + ".src");
	}
}
function myvoid(){ } 

///////////////////////////////////////
// PopUp script                      //
///////////////////////////////////////

var popup = null;

function openPicWin(page,IWidth,IHeight,flags) 
{ 
 	if (popup)
	{
		if (!popup.closed)
		{
			popup.close();
		}
	}
	popup = null; 

	var ITop = (screen.height/2)-(IHeight/2);
 	var ILeft = (screen.width/2)-(IWidth/2);
 	
	if (flags != null)
	{
		if (flags.substring(0,1) != ",")
		{
			flags = "," + flags;
		}
	}
	
	popup = window.open(page, "AS", "TOP=" + ITop + ",LEFT=" + ILeft + ",HEIGHT=" + IHeight + ",WIDTH=" + IWidth + flags);
	popup.focus();
 }
 
 function SearchQueryStringParam(iName)
{
// This code will pull any parameter value from the URL/QueryString
// Returns the Parameter Value if Found
// Returns Empty String if Param not Found or iName is ""
	var queryString = location.search;
	var startPos = 0;
	var stopPos = 0;
	var tempPos = 0;
	var iValue = "";
	
	if (iName) 
	{				
		if(queryString.indexOf(iName) != -1)
		{
			//Parameter Found - Get Parameter Value
			startPos = queryString.indexOf(iName) + iName.length + 1;
			stopPos = ((tempPos = (queryString.indexOf("&", startPos))) == -1) ? queryString.length : tempPos;
			iValue = queryString.substring(startPos, stopPos);
			iValue = unescape(iValue);
		}
	}
	return iValue;	
}