//No fucking frames
if (window != window.top)
         top.location.href = location.href;

//popwin
function popdaWeasel(url,navn,wWidth,wHeight,wLeft,wTop){
	window.name="winFooBar";
	win=window.open (url,navn,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+wWidth+',height='+wHeight+',left='+wLeft+',top='+wTop+'');
	win.creator=self;
	win.focus();
}





function getObj(id){ 
	return document.getElementById( id );
} 
 
 function showMenuItems(divid,visid){
	if (getObj(divid).style.display == "block") {
		getObj(divid).style.display = "none";
		getObj(visid).innerHTML = "<img src=templates/1/images/bullet.gif  border=0>";
	}
	 else {
		getObj(divid).style.display = "block";
		getObj(visid).innerHTML = "<img src=templates/1/images/bullet2.gif border=0>";
	}
}

function daSwap(daImage, daSrc){
	var objStr,obj;
	if(document.images){
		objStr = 'document.' + daImage;
		obj = eval(objStr);
		obj.src = daSrc;
		daImage.src = daSrc;
	}
}

startList = function() {
//load images
//preloadImages();
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
