function checkFrame() {
	/*if(document.charset) {
		if (self.parent.head=="[object]") {
			return true;
		} else {
			pUrl=document.location.href;
			self.parent.location.href="index.php?content="+pUrl;
		}
	} else {
		if (self.parent.head) {
			return true;
		} else {
			pUrl=document.location.href;
			self.parent.location.href="index.php?content="+pUrl;
		}
	}	*/
	return true;
}
		
function swapMenu(pImage) {
	if (checkFrame()) {
		if(parent.head.highlite!=pImage) {
			parent.head.swapMenu(pImage);
		}
	}
}

function popUp(pURL,pWidth,pHeight) {
	var w=pWidth;
	var h=pHeight;
	var y=(screen.availHeight-h)/2;
	var x=(screen.availWidth-w)/2;
	var add="";
	
	newwindow=window.open(pURL,'detailfenster','width='+w+',height='+h+',top='+y+',left='+x+',screenX='+x+',screenY='+y+add);
	newwindow.focus();
}

