function CheckLocation() {
	var contentfile = parent.content.location.href;
	// parent.menu.document.portfolio.href = "../images/navigation/portfolio_0101.gif"
	// parent.menu.document.referenzen.src = "../images/navigation/referenzen_0101.gif"
	// parent.menu.document.zaehler.src = "../images/navigation/zaehler_0101.gif"
	// parent.menu.document.shop.src = "../images/navigation/shop_0101.gif"
	// if (contentfile.indexOf("portfolio") > 0) {
	//	parent.menu.document.portfolio.src = "../images/navigation/portfolio_0102.gif"
	// }
	//		alert (parent.menu.document.portfolio.src);
	hideLayer("portfoliosub");
	// content file of the portfolio section, show submenu
	if (contentfile.indexOf("portfolio") > 0) {
		showLayer("portfoliosub");
		if (contentfile.indexOf("index") > 0) {
			// ... than hide all submenus
			hideLayer("portfoliosub");
		}	
	}
}

// hide specified layer
function hideLayer(layer) {
	if (parent.menu.document.all) {
		parent.menu.document.all[layer].style.visibility = "hidden";
	} else if (parent.menu.document.layers) {
    	parent.menu.document.layers[layer].visibility = "hidden";
    } else if (parent.menu.document.getElementById) {
    	parent.menu.document.getElementById(layer).style.visibility = "hidden";
    }
}

// show layer, Submenu
function showLayer(layer) {
	if (parent.menu.document.all) {
		//alert("layer found (IE)");
		parent.menu.document.all[layer].style.visibility = "visible";
	} else if (parent.menu.layers) {
		//alert("layer found _ layers");
    	parent.menu.document.layers[layer].visibility = "visible";
	} else if (parent.menu.document.getElementById) {
		//alert("layer found _ id (Netscape 6)");
    	parent.menu.document.getElementById(layer).style.visibility = "visible";
	}
}

function pictureWin(Picture,Breit,Hoch) {
	xsize = Breit+35;// Zusatz für Rand rechts und links
	ysize = Hoch+75; //Zusatz für Rand oben und unten - damit Button angezeit werden kann 
    
	ScreenWidth = screen.width;
	ScreenHeight = screen.height;

	xpos = (ScreenWidth/2)-(xsize/2);
	ypos = (ScreenHeight/2)-(ysize/2);
	
	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<html><head><title>Bildansicht");
	NewWindow.document.write ("</title><link rel='stylesheet' href='../../scripts/styles.css'></head>");
    NewWindow.document.write ("<body bgcolor='#FFFFFF' onload='focus()'>");
	NewWindow.document.write ("<table align='center' border='0'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<table border='1' bgcolor='#000000' cellpadding='0' cellspacing='0'><tr><td align='center'>");
	NewWindow.document.write ("<img src="+Picture+">");
	NewWindow.document.write ("</tr></table>");
	NewWindow.document.write ("</td></tr><tr>");
	NewWindow.document.write ("<td align='center' valign='bottom' class='text'>");
	NewWindow.document.write ("<center><a href='javascript:self.close()'><font face='arial,helvetica' size='1'>Fenster schlie&szlig;en</font></a>");
	NewWindow.document.write ("</td></tr></table>");
	NewWindow.document.write ("</form></body></html>");
	NewWindow.document.close();
   	NewWindow.resizeTo(xsize,ysize); 
}


