
/* 
Essa funcao detecta a resolucao do monitor (IE ou FIRE)
Uso: 
var res = detectaResolucaoMonitor();
alert("Largura "+res.largura+" Altura: "+res.altura);
*/
function detectaResolucaoMonitor(){
	// Detectar resolucao da tela - Fire e IE
	return {largura:screen.width, altura:screen.height};
}



/* 
Essa funcao detecta a area util do browser (IE ou FIRE)
Uso: 
var tela = detectaAreaUtil();
alert("Largura "+tela.largura+" Altura: "+tela.altura);
*/
function detectaAreaUtil() {
  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;
  }
  return {largura:myWidth, altura:myHeight};
}



function $(id){
	return document.getElementById(id);
}