//------Közvetlen al-lap hívás esetén átírányítás a főlapra----------------
var site = new String(document.location.href);
site=site.toLocaleLowerCase();
while(site.indexOf('/')>-1)
  site=site.substr(site.indexOf('/')+1,1000);
if(site.indexOf('?')>-1)
  site=site.substr(0,site.indexOf('?'));
//alert(site);
if(site!='default.php' && parent.document.getElementById('tartalom')==null)
  document.location.href='Default.php?site=' + site;
//--------------------------------------------------------------------------
function AutoFit()
  {
    var actHeight;
    if(navigator.userAgent.indexOf('MSIE')>0)
        {
          if(document.body.scrollHeight<=424)
            {
              actHeight=424;
            }
          else
            {
              actHeight=document.body.scrollHeight;
            }
        }
    else
        {
          if(document.body.offsetHeight<=424)
            {
              actHeight=420;
            }
          else
            {
              actHeight=document.body.offsetHeight-4;
            }
        }
    parent.document.getElementById('tartalom').height=actHeight;
  }

function resize_iframe_to_content_from_iframe(iframe_name) {
	content_height=document.body.scrollHeight;
	parent.document.getElementById(iframe_name).style.height=content_height;
}

function link(url) {
	document.getElementById('tartalom').src=url;
}

function link_from_flash(url) {
	document.getElementById('tartalom').src=url;
}

// hl - homelink
// sml - sitemap link
// lo - latogatok osszesen
// lm - latogatok ma
// l1-l6 - a 6db menu linkje
// hunl - magyar oldal linkje
// slol - szlovak oldal linkje

function fejlec_betolt(hl,sml,lo,lm,l1,l2,l3,l4,l5,l6,hunl,slol) {
	var flash_o = new FlashObject("App_Images/fejlec.swf?hl="+hl+"&sml="+sml+"&lo="+lo+"&lm="+lm+"&l1="+l1+"&l2="+l2+"&l3="+l3+"&l4="+l4+"&l5="+l5+"&l6="+l6+"&hunl="+hunl+"&slol="+slol, "fejlec_flash", "831", "232", "8", "#FFFFFF");
	flash_o.addParam("quality", "high");
	flash_o.addParam("bgcolor", "#FFFFFF");
	flash_o.addParam("menu", "false");
	flash_o.write("fejlec_flash");
}

function set_status(erre) {
	status=erre;
}

