function getBrowser() {
  var ua, s, i;
  this.ie       = false;
  this.opera    = false;
  this.netscape = false;
  this.mozilla  = false;
  this.version = null;
  ua = navigator.userAgent;
  s = "Opera";
  if ((i=ua.indexOf(s))>= 0) {
    this.opera = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.ie = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
  s = "Firefox";
  if ((i = ua.indexOf(s)) >= 0) {
    this.ff = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
}
myBrowser=new getBrowser();

// ------------------------------------------------------------------------------------------------------------------------------------

function getWindowSizes() {
  this.width  = 0;
  this.height = 0;
  if(typeof(window.innerWidth)=="number") {
    this.width  = window.innerWidth;
    this.height = window.innerHeight;
  } else if(document.documentElement &&  document.documentElement.clientHeight) {
    this.width  = document.documentElement.clientWidth;
    this.height = document.documentElement.clientHeight;
  } else if(document.body && document.body.clientHeight) {
    this.width  = document.body.clientWidth;
    this.height = document.body.clientHeight;
  }
}
mySize=new getWindowSizes();

// ------------------------------------------------------------------------------------------------------------------------------------

function ajusteLayout() {
  if(myBrowser.ff) {
    document.body.style.textAlign="-moz-center";
    document.getElementById("mainCon").style.border="3px solid #94c6ba";
    document.getElementById("preCon").style.width=(document.getElementById("preCon").offsetWidth)+"px";
  }
}

// ------------------------------------------------------------------------------------------------------------------------------------

function overMenu(obj) {
	obj.className+="_on";
	obj.style.cursor="pointer";
}

// ------------------------------------------------------------------------------------------------------------------------------------

function outMenu(obj) {
	obj.className=obj.className.substring(0,obj.className.length-3);
	obj.style.cursor="auto";
}

// ------------------------------------------------------------------------------------------------------------------------------------


