

function adjust(){
var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
  
  var linetop = document.getElementById("topmenu-firstlevel-overlay");
  var linebottom = document.getElementById("bottommenu-firstlevel-overlay");
  var footer = document.getElementById("footer");
  
  linetop.style.width = myWidth+"px";
  linetop.style.top = "-13px";

  linebottom.style.width = myWidth+"px";
  linebottom.style.marginTop  = "0px";
  
  footer.style.marginTop = "9px";
}

function resize(){
   if( typeof( window.innerWidth ) != 'number' && navigator.appVersion.indexOf("MSIE 8.0") == -1  )
   {
    adjust();
    window.onresize = adjust;
   }

}