// This is for pulldown menus //////////////////////////////////////////////////////////

sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



// This is for popup window //////////////////////////////////////////////////////////

var detailsWindow;

function popup (Adresse,detailsWidth,detailsHeight,origWidth,origHeight) {
	if (!detailsWidth) var detailsWidth = 400;
	if (!detailsHeight) var detailsHeight = 350;
	if (origWidth) var origWidth = " width=" + origWidth;
	if (origHeight) var origHeight = " height=" + origHeight;
//	detailsWidth = detailsWidth + 40;
//	detailsHeight = detailsHeight + 47;
//	if (detailsWindow == null || detailsWindow.closed) {
		var detailsWindow = window.open(Adresse , "detailsWindow", "left=20,top=20,status=no,height="+detailsHeight+",width="+detailsWidth+",scrollbars=yes,toolbar=no,menubar=no,location=no,status=no,resizable=yes");
		detailsWindow.opener.name = "Landwirtschaft Oberfeld";
		detailsWindow.focus();
//	}
//	else {
//		detailsWindow.close();
//	}
//	detailsWindow.document.open ("text/html", "replace");
//	detailsWindow.document.write ("<html>");
//	detailsWindow.document.write ("<head>");
////	detailsWindow.document.write ("<title>Detailed view</title>");
////	detailsWindow.document.write ("</head>");
//	detailsWindow.document.write ("<body style='margin:0; padding:0'>");
//	detailsWindow.document.write ("<img src=\"" + detailsURL + "\" " + origWidth + origHeight + " alt=\"\" onclick=\"javascript:window.close();\" title=\"Click on image to close window.\">");
//	detailsWindow.document.write ("</body>");
//	detailsWindow.document.write ("</html>");
//	detailsWindow.document.close ();
//	detailsWindow.focus();
}


// /////////////////////////////////////////////////////////////////////////////////////////

