function getWindowWidthHeaderFooter() {
    var windowWidth = 0;
    if (typeof(document.getElementById('ie6_width').innerWidth) == 'number') {
        windowWidth = document.getElementById('ie6_width').innerWidth;
    }
    else {

        if (document.documentElement && document.documentElement.clientWidth) {
            if (!$.browser.mozilla) {
                windowWidth = document.getElementById('ie6_width').clientWidth;
            }
        }
        else {
            if (document.getElementById('ie6_width') && document.getElementById('ie6_width').clientWidth) {
                windowWidth = document.getElementById('ie6_width').clientWidth;
            }
        }
        
    }
    
    return windowWidth;
}

function getWindowWidth()
{
    var windowWidth = 0;
    if (typeof(window.innerWidth) == 'number')
    {
        windowWidth = window.innerWidth;
    }
    else
    {
        if (document.documentElement && document.documentElement.clientWidth)
        {
            windowWidth = document.documentElement.clientWidth;
        }
        else
        {
            if (document.body && document.body.clientWidth)
            {
                windowWidth = document.body.clientWidth;
            }
        }
    }
    return windowWidth;
}


function setWidth() {
  var windowWidth = getWindowWidthHeaderFooter();

  if (windowWidth > 0) {
      var HeaderWidth  = document.getElementById('header_cont');
      var footerWidth  = document.getElementById('footer_cont');
      HeaderWidth.style.width = windowWidth + 'px';
      footerWidth.style.width = windowWidth + 'px';
  }
}
