function setSize() {

	//browser ablak belső méretek lekérdezése
	if (navigator.appName.indexOf('Microsoft')!=-1) {
		var winH = Math.max(document.body.offsetHeight-4, 300);
		var winW = Math.max(document.body.offsetWidth-21, 800);
	}else{
		var winH = Math.max(window.innerHeight, 300);
		var winW = Math.max(window.innerWidth, 800);
	}
	
	document.getElementById('alap').style.width = (winW-100)+'px';
		
	document.getElementById('logoback').style.width = (winW-100-50)+'px';
		
	document.getElementById('main').style.height = (winH-205-4-4-48)+'px';
	document.getElementById('footer').style.width = (winH-48)+'px';
	document.getElementById('footer').style.top = (winH-48)+'px';
		
	document.getElementById('content').style.width = (winW-100-159-4)+'px';
	document.getElementById('footer').style.width = (winW-100-159-4)+'px';

	if (document.getElementById('contl')) {
		document.getElementById('contl').style.width = (winW-100-160-4-4-170-10-10)+'px';
		document.getElementById('contl').style.height = (winH-205-4-4-48-10-10)+'px';
	}
		
	if (document.getElementById('continside')) {
		document.getElementById('continside').style.width = (winW-100-160-4-4-170-10-10-25)+'px';
	}
};

window.onload = function() {
	loadData('lib/rolunk.php'+location.search,'content');
	setSize();
}

window.onresize = function() {
	setSize();
}