// JavaScript Document

function checkdivheights() {
	var obj1,obj2,obj3,obj4,h1,h2,h3,h4,navh,conth;
	
	
	h1 = 0;
	h2 = 0;
	h3 = 0;
	h4 = 0;
	navh=0;
	conth=0;
	
	obj1=document.getElementById('mainnav');
	if (obj1) {
		h1 += Number(obj1.offsetHeight);	
	}
	obj2=document.getElementById('adressblock');
	if (obj2) {
		h2 =  Number(obj2.offsetHeight);	
	}
	
	obj3=document.getElementById('cont_lvl01');
	if (obj3) {
		h3 = Number(obj3.offsetHeight);	
	}

	obj4=document.getElementById('botbar');
	if (obj4) {
		h4 = Number(obj4.offsetHeight);	
	}
	conth = Number(h3);
	navh=Number(h1+h2);
	
	if (conth<navh) {
		obj3.style.height=Number(navh+10)+"px";
		// obj3.clientHeight=Number(navh+10);
		// obj2.style.height=Number(h2)+"px";
		obj2.style.bottom="1px";
		window.setTimeout("setaddress()",1);
	}
}

function setaddress(obj) {
	var obj2;
	obj2=document.getElementById('adressblock');
	if (obj2) {
		obj2.style.bottom=0+"px";
	}

}