window.onload=resizebar;

function over(was)       { document.getElementById(was).className='navbgaktiv';	}
function out(was)        { document.getElementById(was).className='navbg'; }

function subover(was)    { document.getElementById(was).className='submaktiv';	}
function subout(was)     { document.getElementById(was).className='subm'; }

function showsub(was)    { document.getElementById(was).style.visibility='visible'; }
function hidesub(was)    { document.getElementById(was).style.visibility='hidden'; }

function popup(bild,lng) { window.open('popup.php?bild='+bild+'&amp;lang='+lng,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=100,height=100'); }

function resizebar() 		 {
	var h=0;
	if (document.getElementById('content_main')) { h=parseInt(document.getElementById('content_main').offsetHeight); }
	if (document.getElementById('content_left')) { if (parseInt(document.getElementById('content_left').offsetHeight)>h) { h=parseInt(document.getElementById('content_left').offsetHeight); } }
	if (document.getElementById('content_right')) { if (parseInt(document.getElementById('content_right').offsetHeight)>h) { h=parseInt(document.getElementById('content_right').offsetHeight); } }
	if (document.getElementById('vline1')) { document.getElementById('vline1').style.height=h+"px"; }
	if (document.getElementById('vline2')) { document.getElementById('vline2').style.height=h+"px"; }
}

