function getWidth() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } 
  else if( document.documentElement && document.documentElement.clientWidth ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } 
  else if( document.body && document.body.clientWidth ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}

function getHeight() {
  var myHeight = 0;
  if( typeof( window.innerHeight ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } 
  else if( document.documentElement && document.documentElement.clientHeight ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } 
  else if( document.body && document.body.clientHeight ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}


function resizer() {
  var w=getWidth();
  document.getElementById("resizer_container").style.left=((w-1440)/2)+"px";
  document.getElementById("resizer_container").style.width=(w-((w-1440)/2))+"px";
}

function show_animation_fn(tf) {
  show_animation=tf; 
  document.cookie = 'show_animation='+((show_animation)?('yes'):('no'))+'; path=/';
  if(window.build_flash_baloldal_swf!==undefined || window.build_flash_jobboldal_swf!==undefined) {
    //document.getElementById('anim_on_off').innerHTML='háttéranimáció '+((show_animation)?('kikapcsolása'):('bekapcsolása')); 
    document.getElementById('anim_on_off').innerHTML='háttéranimáció '+((show_animation)?('KI'):('BE')); 
  }
  if(window.build_flash_baloldal_swf!==undefined) { build_flash_baloldal_swf(show_animation); } 
  if(window.build_flash_jobboldal_swf!==undefined) { build_flash_jobboldal_swf(show_animation); } 
}

function work_content_fullscreen(tf) {
  document.body.style.overflow="hidden";
  document.getElementById("aloldal_super321banner_div").style.display="none";
  document.getElementById("aloldal_superbanner_div").style.display="none";
  document.getElementById("aloldal_head_banner_div").style.display="none";
  document.getElementById("flash_div").style.position="fixed";
  document.getElementById("flash_div").style.left="0px";
  document.getElementById("flash_div").style.top="0px";
  document.getElementById("flash_div").style.width="100%";
  document.getElementById("flash_div").style.height="100%";
  document.getElementById("flash_div").style.backgroundColor="#ffffff";
}
