
function imgPreload(){

home_off = new Image();
home_off.src = "/images/nav/home_off.gif";
home_on = new Image();
home_on.src = "/images/nav/home_on.gif";
look_off = new Image();
look_off.src = "/images/nav/look_off.gif";
look_on = new Image();
look_on.src = "/images/nav/look_on.gif";
listen_off = new Image();
listen_off.src = "/images/nav/listen_off.gif";
listen_on = new Image();
listen_on.src = "/images/nav/listen_on.gif";
read_off = new Image();
read_off.src = "/images/nav/read_off.gif";
read_on = new Image();
read_on.src = "/images/nav/read_on.gif";
manifesto_off = new Image();
manifesto_off.src = "/images/nav/manifesto_off.gif";
manifesto_on = new Image();
manifesto_on.src = "/images/nav/manifesto_on.gif";
contact_off = new Image();
contact_off.src = "/images/nav/contact_off.gif";
contact_on = new Image();
contact_on.src = "/images/nav/contact_on.gif";
music_off = new Image();
music_off.src = "/images/nav/music_off.gif";
music_on = new Image();
music_on.src = "/images/nav/music_on.gif";
spokenword_off = new Image();
spokenword_off.src = "/images/nav/spokenword_off.gif";
spokenword_on = new Image();
spokenword_on.src = "/images/nav/spokenword_on.gif";
jingles_off = new Image();
jingles_off.src = "/images/nav/jingles_off.gif";
jingles_on = new Image();
jingles_on.src = "/images/nav/jingles_on.gif";
rave_off = new Image();
rave_off.src = "/images/nav/rave_off.gif";
rave_on = new Image();
rave_on.src = "/images/nav/rave_on.gif";
rap_off = new Image();
rap_off.src = "/images/nav/rap_off.gif";
rap_on = new Image();
rap_on.src = "/images/nav/rap_on.gif";
rant_off = new Image();
rant_off.src = "/images/nav/rant_off.gif";
rant_on = new Image();
rant_on.src = "/images/nav/rant_on.gif";
art_off = new Image();
art_off.src = "/images/nav/art_off.gif";
art_on = new Image();
art_on.src = "/images/nav/art_on.gif";
b3r_off = new Image();
b3r_off.src = "/images/nav/b3r_off.gif";
b3r_on = new Image();
b3r_on.src = "/images/nav/b3r_on.gif";

}

function swapNav(objID, whichWay) {
	document[objID].src = eval(objID + "_" + whichWay + ".src");
}

function showHide(objID) {
	objIDstyle = findDOM(objID,1);
	objIDstyle.display = (objIDstyle.display=='inline'?'none':'inline');
}

function show(objID) {
	objIDstyle = findDOM(objID,1);
	objIDstyle.display = 'inline';
}

function hide(objID) {
	objIDstyle = findDOM(objID,1);
	objIDstyle.display = 'none';
}

function popwindow(url, name, width, height)
{

topmid = ((screen.height / 2) - (height / 2) - 50)
leftmid = (screen.width / 2) - (width / 2)

settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=yes,"+
"resizable=yes,width="+width+",height="+height+
",top="+topmid+",left="+leftmid+";"

MyNewWindow=window.open(url,name,settings);

}

function findLivePageHeight() {
	if (window.innerHeight != null)
		return window.innerHeight; 
	if (document.body.clientHeight != null)
		return document.body.clientHeight;
	return (null);
}

function findLivePageWidth() {
	if (window.innerWidth != null)
		return window.innerWidth;
	if (document.body.clientWidth != null)
		return document.body.clientWidth;
	return (null);
}

function pageDim() {
	livePageHeight = findLivePageHeight();
	livePageWidth = findLivePageWidth();
	alert ('Visible Page Width: ' + livePageWidth + 'px; Visible Page Height: ' + livePageHeight + 'px');
}
