/**
 * Funksjon fra alistapart som henter setter hover muligheter på li elementer som inneholder en ul
 *
 * @access	public
 * @since	20041026
 * @return	none
 */
function setHoverEffect() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById('nav');
		if (navRoot) {
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
						this.style.zIndex = 100;
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
						this.style.zIndex = 1;
					}
				}
			}
		}
	}
}


function popimage(strImage,intWidth,intHeight){
	var winWidth 	=intWidth;
	var winHeight = intHeight;
	var myX	= (screen.availWidth/2) - (winWidth/2);
	var myY	= (screen.availHeight/2) - (winHeight/2);	
	var myWin= window.open(strImage,'winpop','screenX='+myX+',screenY='+myY+',left='+myX+',top='+myY+',width='+winWidth+',height='+winHeight+',toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0');
}

function openWindow(mypage,winWidth,winHeight){
	var subWindow;		
	var skjermbredde = screen.availWidth;
	var skjermhoyde = screen.availHeight;
	var koordX = (skjermbredde/2) - (winWidth/2);
	var koordY = (skjermhoyde/2) - (winHeight/2);				
	subWindow = window.open(mypage, 'page', 'width='+winWidth+' ,height='+winHeight+',resizable=yes,screenX=' + koordX + ',screenY=' + koordY + ',scrollbars=yes');
	subWindow.moveTo(koordX,koordY);
}
