// JavaScript Document
function getRefToDiv(divID,oDoc) {
    if( !oDoc ) { oDoc = document; }
    if( document.layers ) {
        if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
            //repeatedly run through all child layers
            for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
                //on success, return that layer, else return nothing
                y = getRefToDiv(divID,oDoc.layers[x].document); }
            return y; } }
    if( document.getElementById ) {
        return document.getElementById(divID); }
    if( document.all ) {
        return document.all[divID]; }
    return false;
}

function showDiv(divID_as_a_string) {
    //get a reference as above ...
    myReference = getRefToDiv(divID_as_a_string);
    if( !myReference ) {
        window.alert('Nothing works in this browser');
        return false; //don't go any further
        //return anything would work,
        //but I am using false to show failure
    }
    //now we have a reference to it
    if( myReference.style ) { //DOM & proprietary DOM
        myReference.style.visibility = 'visible';
    } else {
        if( myReference.visibility ) { //Netscape
            myReference.visibility = 'show';
        } else {
            window.alert('Nothing works in this browser');
            return false; //don't go any further
        }
    }
    return true;
}

function hideDiv(divID_as_a_string) {
    //get a reference as above ...
    myReference = getRefToDiv(divID_as_a_string);
    if( !myReference ) {
        window.alert('Nothing works in this browser');
        return false; //don't go any further
        //return anything would work,
        //but I am using false to show failure
    }
    //now we have a reference to it
    if( myReference.style ) { //DOM & proprietary DOM
        myReference.style.visibility = 'hidden';
    } else {
        if( myReference.visibility ) { //Netscape
            myReference.visibility = 'hide';
        } else {
            window.alert('Nothing works in this browser');
            return false; //don't go any further
        }
    }
    return true;
}

function changeLinkClass(id,value){
	var link_id=document.getElementById(id);
	link_id.className = value; 
}

function showLayer(x){
//equipo profesional		
  if (x=="not1") {
	showDiv('not1');
	hideDiv('not2');
	hideDiv('not3');
	hideDiv('not4');
	hideDiv('not5');
	hideDiv('not6');
	hideDiv('not7');
  }
  if (x=="not2") {
	showDiv('not2');
	hideDiv('not1');
	hideDiv('not3');
	hideDiv('not4');
	hideDiv('not5');
	hideDiv('not6');
	hideDiv('not7');
  }
  if (x=="not3") {
	showDiv('not3');
	hideDiv('not1');
	hideDiv('not2');
	hideDiv('not4');
	hideDiv('not5');
	hideDiv('not6');
	hideDiv('not7');
  }
  if (x=="not4") {
	showDiv('not4');
	hideDiv('not1');
	hideDiv('not2');
	hideDiv('not3');
	hideDiv('not5');
	hideDiv('not6');
	hideDiv('not7');
  }
  if (x=="not5") {
	showDiv('not5');
	hideDiv('not1');
	hideDiv('not2');
	hideDiv('not3');
	hideDiv('not4');
	hideDiv('not6');
	hideDiv('not7');
  }
  if (x=="not6") {
	showDiv('not6');
	hideDiv('not1');
	hideDiv('not2');
	hideDiv('not3');
	hideDiv('not4');
	hideDiv('not5');
	hideDiv('not7');
  }
  if (x=="not7") {
	showDiv('not7');
	hideDiv('not1');
	hideDiv('not2');
	hideDiv('not3');
	hideDiv('not4');
	hideDiv('not5');
	hideDiv('not6');
  }
}