//util

//if your location is the href of an <a> element, set its class to on.
function setOn(pageProperty, forceMeOn)
{
	function checkURL(whereWeAre, areWeHere)
	{
	    whereWeAre = whereWeAre.toString();
	    whereWeAre = whereWeAre.toUpperCase();
	    areWeHere = areWeHere.toString();
	    areWeHere = areWeHere.toUpperCase();
		if(whereWeAre.indexOf(areWeHere)>-1) return true;
	}
	var hrefs = document.getElementsByTagName("a");//all a tags
	for(i=0;i<hrefs.length;i++)
	{
		if(checkURL(window.location, hrefs[i].href)) hrefs[i].className += " on";
	}
}

function popItUp(url)
{
	window.open(url, "id", "width=450, height=900,scrollbars=yes,resizeable=no");
}