// JavaScript Document
function resizeDiv(){
var fm_id='flashcontent';
//numW = parseInt(w);
//numH = parseInt(h);
//alert(ertek);
winW = document.body.offsetWidth;
winH = document.body.offsetHeight;
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
  winH = window.innerHeight;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
  winH = document.body.offsetHeight;
 }
}

w = (winW>980) ? 100 : 980;
h = (winH>600) ? 100 : 600;
//alert("szel: "+w+"\nmag: "+h);
//alert("szel: "+winW+"\nmag: "+winH);

mitH = (h == 100) ? '%' : 'px';
mitW = (w == 100) ? '%' : 'px';
var floating_menu = document.getElementById ? document.getElementById(fm_id) : document.all ? document.all[fm_id] : document.layers[fm_id];
    if (document.layers)
    {
        floating_menu.width = String(w);
		floating_menu.height = String(h);
		//floating_menu.margin-top = '-' + String(Math.floor(num/2));
    }
    else
    {
        floating_menu.style.height = String(h) + mitH;
		floating_menu.style.width = String(w) + mitW;
		//floating_menu.margin-top = '-' + String(Math.floor(numk/2)) + 'px';
    }
	if(h == 100 && w == 100){
		document.all["myBody"].scroll = 'no';
	} else {
		document.all["myBody"].scroll = 'yes';
	}
}
