function init(){
	for(i = 0; i < PopMenu.length; i++){
		PopMenu[i].style.position = "absolute";
	}
}

function showPopup(id){
	PopMenu[id].style.visibility = "visible";
	PopMenu[id].style.left = window.event.clientX + document.documentElement.scrollLeft;
	PopMenu[id].style.top = window.event.clientY + document.documentElement.scrollTop;
}

function hidePopup(id)
{
	PopMenu[id].style.visibility = "hidden";
}


function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}

function myChgPic(myPicURL){
	document.images["myBigImage"].src = myPicURL;
}