function correct_layout() {
if(document.getElementById('inhalt').offsetHeight) {
var div_heights = new Array(
document.getElementById('inhalt').offsetHeight,
document.getElementById('navigation').offsetHeight,
document.getElementById('koop').offsetHeight
);
div_heights = div_heights.reverse(div_heights.sort(num_sort));
var style_height = div_heights[0] + "px";
document.getElementById('navigation').style.height = style_height;
document.getElementById('inhalt').style.height = style_height;
document.getElementById('koop').style.height = style_height;
}
}
function num_sort(a,b) {
return a-b;
}

function fVisible(strElementById, intPosLinks, intPosTop) {
	document.getElementById(strElementById).style.visibility='visible';
	if(typeof(intPosLinks) == 'number') {
		document.getElementById(strElementById).style.left = document.getElementById('seite').offsetLeft + intPosLinks;	
	}
	if(typeof(intPosTop) == 'number') {
		document.getElementById(strElementById).style.top = intPosTop;	
	}
}
function fHidden(strElementById) {
	document.getElementById(strElementById).style.visibility='hidden';
}

function fHL(strElementById) {
	document.getElementById(strElementById).style.fontWeight = 'bold';
	document.getElementById(strElementById).style.color = '#000000';
	document.getElementById(strElementById).style.backgroundImage  = 'url(../grafik/07/navigation_bg_hl.gif)';
}

function fKHL(strElementById) {
	document.getElementById(strElementById).style.fontWeight = '';
	document.getElementById(strElementById).style.color = '';
	document.getElementById(strElementById).style.backgroundImage  = '';
}



function popup_druckversion(guid,rid){
            dv=open("popup_druckversion.php?guid="+guid+"&rid="+rid,"Drucken","width=520,height=500,resizable=yes,scrollbars=yes,dependent=no");
            dv.focus();
        }
        function popup_kontakt(rid,lang){
            win=open("popup_kontakt.php?rid="+rid+"&lang="+lang,"kontakt_popup","width=458,height=400,resizable=yes,scrollbars=yes,dependent=no");      
            win.focus();
        }
