

function changeImgLeftNav(iMenu,bStatus){

  if(document.images){

    if(bStatus == 1){
      eval("document.led" + iMenu + ".src='img/leftnav_led-on.gif'");
    }
    else if(bStatus == 0){
      eval("document.led" + iMenu + ".src='img/leftnav_led-off.gif'");
    }
  
  }

}



var sLegenda = "";

function checkBrowser() {
  this.ver=navigator.appVersion;
  this.dom=document.getElementById?1:0;
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
  this.ie4=(document.all && !this.dom)?1:0;
  this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1;
  this.ie5mac=this.ie5 && navigator.userAgent.indexOf("Mac")>-1;
  this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0;
  this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie5mac)
  return this;
}

bw = new checkBrowser();

function mostrarMenu(sMenu) {
  bw.ns4?document.layers[sMenu].visibility = "show":bw.ie4?document.all[sMenu].style.visibility = "visible":bw.dom?document.getElementById(sMenu).style.visibility = "visible":0;
}

function esconderMenu(sMenu) {
  bw.ns4?document.layers[sMenu].visibility = "hide":bw.ie4?document.all[sMenu].style.visibility = "hidden":bw.dom?document.getElementById(sMenu).style.visibility = "hidden":0;
}






function init(){

  if(document.images){
    preLoadImages = new Array();
    preLoadImages[0] = 'img/menu-home.gif';
    preLoadImages[1] = 'img/buzios-cine_menu-filmes-on.gif';
    preLoadImages[2] = 'img/buzios-cine_menu-visavis-on.gif';

    for(i=0;i<preLoadImages.length;i++){
      eval('preLoad'+i+'= new Image()');
      eval('preLoad'+i+'.src="'+preLoadImages[i]+'"');

    }
  }
}

   