<!--

//////////////////////////////////
// DISPLAY HEADER MIDDLE & FIX //
////////////////////////////////
function headerFix()
{
 var browserWidth = GetWidth()-getScrollBarWidth();
 var marginCalc = (browserWidth-921)/2;
 if(marginCalc>0)
 {
  document.getElementById('linkbar').style.paddingLeft = marginCalc+'px';
  document.getElementById('linkbar').style.width = (browserWidth-marginCalc)+'px';
  document.getElementById('headmid').style.width = (921-marginCalc)+'px';
  if(document.getElementById('headerhome')!=null)
  {
   document.getElementById('headerhome').style.marginLeft = marginCalc+'px'; 
   document.getElementById('headerhome').style.width = (browserWidth-marginCalc-10)+'px';
  }
  document.getElementById('main').style.width = browserWidth+'px';
 }
 if(browserWidth<921)
 {
  document.getElementById('linkbar').style.width = (921-marginCalc+10)+'px';
  if(document.getElementById('headerhome')!=null) { document.getElementById('headerhome').style.width = (921-marginCalc)+'px'; }
  document.getElementById('linkbar').style.paddingLeft = '0px';
  if(document.getElementById('headerhome')!=null) { document.getElementById('headerhome').style.marginLeft = '0px'; }
  document.getElementById('main').style.width = (921-marginCalc+10)+'px';
 }
}

/////////////////////////
// MOUSE OVER BUTTONS //
////////////////////////
function buttonMouseEffect(e)
{
 e = document.getElementById(e);
 img = e.src;
 extn = img.substr(img.lastIndexOf("."));
 if(img.indexOf("-over")>0) { e.src = img.replace("-over",""); }
 else { e.src = img.replace(extn,"-over"+extn); }
}
//this.src='images/button-signup-over.jpg

/////////////////////
// Get Page Width //
////////////////////
function GetWidth()
  {
          var x = 0;
          if (self.innerHeight)
          {
                  x = self.innerWidth;
          }
          else if (document.documentElement && document.documentElement.clientHeight)
          {
                  x = document.documentElement.clientWidth;
          }
          else if (document.body)
          {
                  x = document.body.clientWidth;
          }
          return x;
  }

///////////////////////////
// GET Scroll Bar Width //
//////////////////////////
function getScrollBarWidth() {
var vHeight = 0;
if (document.all) {
  if (document.documentElement) {
    vHeight = document.documentElement.clientHeight;
  } else {
    vHeight = document.body.clientHeight
  }
} else {
  vHeight = window.innerHeight;
}

if(document.body.offsetHeight > vHeight && window.innerHeight) {

var inner = document.createElement('p');
inner.style.width = '100%';
inner.style.height = '200px';

var outer = document.createElement('div');
outer.style.position = 'absolute';
outer.style.top = '0px';
outer.style.left = '0px';
outer.style.visibility = 'hidden';
outer.style.width = '200px';
outer.style.height = '150px';
outer.style.overflow = 'hidden';
outer.appendChild (inner);

document.body.appendChild (outer);
var w1 = inner.offsetWidth;
outer.style.overflow = 'scroll';
var w2 = inner.offsetWidth;
if (w1 == w2) w2 = outer.clientWidth;

document.body.removeChild (outer);

return (w1 - w2);
}
return 0;
};

////////////////////
// WINDOW ONLOAD //
///////////////////
//window.onload = init;
FastInit.addOnLoad(init);
function init()
{
 headerFix();
 window.onresize = function(e) { headerFix(); }
}

-->

