// JavaScript Document
//onloadMenu
function scriptInicio(){
  var ie=document.all && !window.opera
  if (!ie) {
    $opacity('menu',0,100,900)
  }
}

function setOpacity(value,targetobject){
    if (targetobject.filters && targetobject.filters[0]){ //IE syntax
        if (typeof targetobject.filters[0].opacity=="number") //IE6
            targetobject.filters[0].opacity=value*100
        else //IE 5.5
            targetobject.style.filter="alpha(opacity="+value*100+")"
    }
    else if (typeof targetobject.style.MozOpacity!="undefined") //Old Mozilla syntax
        targetobject.style.MozOpacity=value
    else if (typeof targetobject.style.opacity!="undefined") //Standard opacity syntax
        targetobject.style.opacity=value
    else {} //Non of the above, stop opacity animation
}

function initMenu(idobj){
  setOpacity(0,document.getElementById(idobj))
}
