function preloadnavs()
{

}
function dispzindex() {
		if (bTypeNs) {
			var aObj = (NN4) ? document['aboutid'] : document.getElementById(obj).style;
			var iObj = (NN4) ? document['iucfid'] : document.getElementById(obj).style;
			var wObj = (NN4) ? document['whatid'] : document.getElementById(obj).style;
			var hObj = (NN4) ? document['housingid'] : document.getElementById(obj).style;
			var cObj = (NN4) ? document['careersid'] : document.getElementById(obj).style;
		} else {
			var aObj = document.all['aboutid'].style;
			var iObj = document.all['iucfid'].style;
			var wObj = document.all['whatid'].style;
			var hObj = document.all['housingid'].style;
			var cObj = document.all['careersid'].style;
		}

	alert(iObj.zIndex);
	alert(aObj.zIndex);
	alert(wObj.zIndex);
	alert(hObj.zIndex);
	alert(cObj.zIndex);
}
function resetzindex() {
		if (bTypeNs) {
			var aObj = (NN4) ? document['aboutid'] : document.getElementById('aboutid').style;
			var iObj = (NN4) ? document['iucfid'] : document.getElementById('iucfid').style;
			var wObj = (NN4) ? document['whatid'] : document.getElementById('whatid').style;
			var hObj = (NN4) ? document['housingid'] : document.getElementById('housingid').style;
			var cObj = (NN4) ? document['careersid'] : document.getElementById('careersid').style;
		} else {
			var aObj = document.all['aboutid'].style;
			var iObj = document.all['iucfid'].style;
			var wObj = document.all['whatid'].style;
			var hObj = document.all['housingid'].style;
			var cObj = document.all['careersid'].style;
		}

	aObj.zIndex = 2;
	iObj.zIndex = 1;
	wObj.zIndex = 3;
	hObj.zIndex = 4;
	cObj.zIndex = 5;
}
function getRealLeft(el) {
    xPos = el.offsetLeft;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        xPos += tempEl.offsetLeft;
        tempEl = tempEl.offsetParent;
    }
    return xPos;
}

function getRealTop(el) {
    yPos = el.offsetTop;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        yPos += tempEl.offsetTop;
        tempEl = tempEl.offsetParent;
    }
    return yPos;
}
function moveObj(obj,oLeft,oTop)
{
	if (bTypeNs) {
		var pObj = (NN4) ? document[obj] : document.getElementById(obj).style;
	} else {
		var pObj = document.all[obj].style;
	}
	pObj.left = oLeft;
	pObj.top = oTop;
}
function showObj(obj)
{
	if (bTypeNs) {
		var pObj = (NN4) ? document[obj] : document.getElementById(obj).style;
	} else {
		var pObj = document.all[obj].style;
	}
	pObj.visibility = VISIBLE;
}

function hideObj(obj)
{
	if (bTypeNs) {
		var pObj = (NN4) ? document[obj] : document.getElementById(obj).style;
	} else {
		var pObj = document.all[obj].style;
	}
	pObj.visibility = HIDDEN;
}
// determine browser version

var bTypeNs = (navigator.appName=="Netscape" && parseInt(navigator.appVersion) >= 4);
var NN4 = false;
var NN6 = false;
var IE4 = false;
if (bTypeNs) {
	if (parseInt(navigator.appVersion) < 5) {
		NN4 = true;
	} else {
		NN6 = true;
	}
} else {IE4 = true;}

// determine platform
var isMac = navigator.appVersion.indexOf('Mac') > 0 ? 1 : 0 ;

// setup defaults
var HIDDEN = (NN4) ? 'hide' : 'hidden';
var VISIBLE = (NN4) ? 'show' : 'visible';
var navVersion = parseInt(navigator.appVersion);
	//var home_on = new Image();
	//home_on.src="../images/home_on.gif";
	//var about_on = new Image();
	//about_on.src="../images/about_on.gif";
	//var what_on = new Image();
	//what_on.src="../images/what_on.gif";
	//var housing_on = new Image();
	//housing_on.src="../images/housing_on.gif";
	//var careers_on = new Image();
	//careers_on.src="../images/careers_on.gif";
	//var useful_on = new Image();
	//useful_on.src="../images/useful_on.gif";
	//var contact_on = new Image();
	//contact_on.src="../images/contact_on.gif";
	//var FAQ_on = new Image();
	//FAQ_on.src="../images/FAQ_on.gif";
	var home_pon = new Image();
	home_pon.src="../images/home_pon.gif";
	var about_pon = new Image();
	about_pon.src="../images/about_pon.gif";
	var what_pon = new Image();
	what_pon.src="../images/what_pon.gif";
	var housing_pon = new Image();
	housing_pon.src="../images/housing_pon.gif";
	var careers_pon = new Image();
	careers_pon.src="../images/careers_pon.gif";
	var useful_pon = new Image();
	useful_pon.src="../images/useful_pon.gif";
	var contact_pon = new Image();
	contact_pon.src="../images/contact_pon.gif";
	var FAQ_pon = new Image();
	FAQ_pon.src="../images/FAQ_pon.gif";
	var news_on = new Image();
	news_on.src="../images/news_on.gif";
	var resident_on = new Image();
	resident_on.src="../images/resident_on.gif";
	var apply_on = new Image();
	apply_on.src="../images/apply_on.gif";
	var support_on = new Image();
	support_on.src="../images/support_on.gif";
	var afford_on = new Image();
	afford_on.src="../images/afford_on.gif";
	var repairs_on = new Image();
	repairs_on.src="../images/repairs_on.gif";
	var smd_on = new Image();
	smd_on.src="../images/smd_on.gif";
	var rent_on = new Image();
	rent_on.src="../images/rent_on.gif";

