// JavaScript Document
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navigation");
		subNav = navRoot.getElementsByTagName("li");					
		for (i=0; i<subNav.length; i++) {
			sourceNode = subNav[i];
			node=sourceNode.className.split(" ")[0];
			if (node =="topNav") {
				sourceNode.onmouseover=function() {
					this.className+=" over";
				}
				sourceNode.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

addLoadEvent(startList);

startGal = function() {
	if (document.all&&document.getElementById) {
		var galRoot = document.getElementById("thumbsTable");
		if (galRoot) {
			galBtn = galRoot.getElementsByTagName("img");
			for (i=0; i<galBtn.length; i++) {
				node = galBtn[i];
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

addLoadEvent(startGal);

function pop_windowFixedParams(theUrl) {
 popup=window.open(theUrl, 'popup','width=550,height=500,scrollbars=no,location=no,resizable=no,status=no,toolbars=no,top=0,left=0');
	popup.focus()
}
function pop_windowSetParams(theUrl,name,params) {
 popup=window.open(theUrl, name, params);
	popup.focus()
}