// dynamicka výška stránky
if (self.innerWidth) {
	frameWidth = self.innerWidth;
	frameHeight = self.innerHeight;
}	else if (document.documentElement && document.documentElement.clientWidth) {
	frameWidth = document.documentElement.clientWidth;
	frameHeight = document.documentElement.clientHeight;
} else if (document.body) { 
  frameWidth = document.body.clientWidth; 
  freaeHeight  = document.body.clientHeight; 
}

fh = frameHeight;

//document.write(fh);
all_n = Math.round(((fh/2)-16)*(-1));
rightCast_n = fh-36;
obsah_n = fh-216;
footer_n = fh-38;
//document.write("<br/>"+all_n);
//document.write("<br/>"+rightCast_n);
//document.write("<br/>"+obsah_n);
//document.write("<br/>"+footer_n);

//tohle umi FF, Opera - uz vite proc mam rad operu?
document.getElementById("all").setAttribute('style','margin-top: '+all_n+'px;');
document.getElementById("right_cast").setAttribute('style','height: '+rightCast_n+'px;');
document.getElementById("obsah").setAttribute('style','height: '+obsah_n+'px;');
document.getElementById("footer").setAttribute('style','top: '+footer_n+'px;');

//tohle umi Opera, IE - uz vite proc mam rad operu?
all.style.cssText = 'margin-top: '+all_n+'px;';
right_cast.style.cssText = 'height: '+rightCast_n+'px;';
obsah.style.cssText = 'height: '+obsah_n+'px;';
footer.style.cssText = 'top: '+footer_n+'px;';


