var root = "";

function setOnLoad() {
	document.getElementById('nav_1').src = "img/nav/nav_1.gif";
}

function rollOver(nav) {
	document.getElementById('nav_1').src = root + "img/pix.gif";
	document.getElementById('nav_2').src = root + "img/pix.gif";
	document.getElementById('nav_3').src = root + "img/pix.gif";
	document.getElementById('nav_4').src = root + "img/pix.gif";
	document.getElementById('nav_5').src = root + "img/pix.gif";
	document.getElementById(nav).src = root + "img/nav/" + nav + ".gif";
}

function openWindow(image,width,height,title,name,scroll) {
	if (scroll == 'yes') {
		if (navigator.appName == "Microsoft Internet Explorer") {
			w = width + 17;
		} else if (navigator.appName == "Netscape") {
			w = width + 19;
		}
		h = 700;
	} else {
		w = width;
		h = height;
	}
	var properties = "width="+w+",height="+h+",menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars="+scroll+",resizable=no,fullscreen=no";	
	var popup = window.open("popup.html?image="+image+"&width="+width+"&height="+height+"&title="+title,name,properties);
	popup.focus();
}

function getParameter(queryString,parameterName) {
	var parameterName = parameterName + "=";
	if (queryString.length > 0) {
		begin = queryString.indexOf (parameterName);
		if (begin != -1) {
			begin += parameterName.length;
			end = queryString.indexOf ("&",begin);
			if (end == -1) end = queryString.length;
			return unescape(queryString.substring(begin,end));
		}
		return "null";
	}
}