function openImage(imgfilename,imgwidth,imgheight)
{
 var currentimgwidth = 800;
 var currentimgheight = 730;
 var whichoptions = "width="+currentimgwidth+",height="+currentimgheight+",resizable=yes,status=no,scrollbars=yes";
 var whichurl = "imgopen.php?imgfilename="+imgfilename;
 var whichname = "imgopen";
 window.open(whichurl,whichname,whichoptions);
}

function chngImg(imgname, mousestat)
{
 if (document.images)
 {
  if(mousestat==1)
   document.images[imgname].src = "images/nav/" + imgname + "1.gif";
  else
   document.images[imgname].src = "images/nav/" + imgname + "0.gif";
 }
}

function chngImgGewerbe(imgname, mousestat)
{
 if (document.images)
 {
  if(mousestat==1)
   document.images[imgname].src = "images/nav/" + imgname + "1.gif";
  else
   document.images[imgname].src = "images/nav/" + imgname + "0_g.gif";
 }
}

        function showLayer(layerName){
		
        	if(check){
        		if (what =="none"){
        			return;
        			}
	        	else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="visible";
        			}
        		else{
                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
                  }
		 }
        	else {// alert ("Please wait for the page to finish loading.");
        		return;}
		}

        function hideLayer(layerName){
        	if(check){
        		if (what =="none"){
        			return;
        			}
        		else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="hidden";
        			}
        		else{
                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
				}
        
        	}
        	else {// alert ("Please wait for the page to finish loading.");
        		return;}
        }