function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_changeProp(objId,x,theProp,theValue) { //v9.0
if (theValue == 'obc'){var theValue = "#6d0e14";}
else{var theValue ="#ae202a";};
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}
     function desplegarContraer(cual,desde) {
          var elElemento=document.getElementById(cual);
          if(elElemento.className == 'elementoVisible') {
               elElemento.className = 'elementoOculto';
               desde.className = 'linkContraido';
          } else {
               elElemento.className = 'elementoVisible';
               desde.className = 'linkExpandido';
          }
}
function MM_changePropImg(theValue) { //v9.0
var objId='placeImages2';
var theProp='backgroundImage';
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function MM_setText(newText) { //v9.0
var objId='placeTitle2';
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}

function MM_changePropImg2(theValue) { //v9.0
var objId='placeImages3';
var theProp='backgroundImage';
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function MM_setText4(newText) { //v9.0
var objId='placeTitle4';
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}

function MM_changePropImg4(theValue) { //v9.0
var objId='placeImages4';
var theProp='backgroundImage';
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}


function MM_changePropBg(objId) { //v9.0

var obj = null; with (document)
  obj = getElementById('btn01');
  obj.style.background='url(base/btns/btns1a.png)';

var obj = null; with (document)
  obj = getElementById('btn02');
  obj.style.background='url(base/btns/btns2a.png)';

var obj = null; with (document)
  obj = getElementById('btn03');
  obj.style.background='url(base/btns/btns3a.png)';

var obj = null; with (document)
  obj = getElementById('btn04');
  obj.style.background='url(base/btns/btns4a.png)';

var obj = null; with (document)
  obj = getElementById('btn05');
  obj.style.background='url(base/btns/btns5a.png)';

var obj = null; with (document)
  obj = getElementById('btn06');
  obj.style.background='url(base/btns/btns6a.png)';

var obj = null; with (document)
  obj = getElementById('btn07');
  obj.style.background='url(base/btns/btns7a.png)';  

var obj = null; with (document)
  obj = getElementById('btInf-4');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-5');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-6');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-7');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-1');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-2');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-3');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById(objId);
  if (objId == 'btn01'){
	  val = 'url(base/btns/btns1b.png)';
	  obj.style.background = val; 
	  baja = true;
	  inf = 'btInf-1'
	}
  if (objId == 'btn02'){
	  val = 'url(base/btns/btns2b.png)';
	  obj.style.background = val;  
	  baja = true;
	  inf = 'btInf-2'
	}
  if (objId == 'btn03'){
	  val = 'url(base/btns/btns3b.png)';
	  obj.style.background = val;  
	  baja = true;
	  inf = 'btInf-3'
	}
  if (objId == 'btn04'){
	  val = 'url(base/btns/btns4b.png)';
	  obj.style.background = val;  
	  baja = false;
	  inf = 'btInf-4'
	}
  if (objId == 'btn05'){
	  val = 'url(base/btns/btns5b.png)';
	  obj.style.background = val;  
	  baja = false;
	  inf = 'btInf-5'
	}
  if (objId == 'btn06'){
	  val = 'url(base/btns/btns6b.png)';
	  obj.style.background = val;  
	  baja = false;
	  inf = 'btInf-6'
	}
  if (objId == 'btn07'){
	  val = 'url(base/btns/btns7b.png)';
	  obj.style.background = val;  
	  baja = false;
	  inf = 'btInf-7'
	}
var obj = null; with (document)
  obj = getElementById('menuL1');
var obj2 = null; with (document)
  obj2 = getElementById('menuL2');
  if (baja == true){
  	  obj.className='dwn';  
  	  obj2.className='up';  
	} else {
  	  obj.className='up';  
  	  obj2.className='dwn';  
	}
var obj = null; with (document)
  obj = getElementById(inf);
  obj.style.display='block';  
}

function MM_changePropBgDef() { //v9.0

var obj = null; with (document)
  obj = getElementById('btn04');
  obj.style.background='url(base/btns/btns4b.png)';  
var obj = null; with (document)
  obj = getElementById('btInf-4');
  obj.style.display='block';  
var obj = null; with (document)
  obj = getElementById('moreInf');
  obj.style.display='';  
}

function MM_changePropShowHide(showHide,desde) { //v9.0
var obj = null; with (document)
  obj = getElementById(showHide);
var obj2 = null; with (document)
  obj2 = getElementById(desde);
  if (obj.style.display==''){
	  obj.style.display='block';	  
      obj2.className = 'linkExpandido';
  	} else {
	  obj.style.display='';
      obj2.className = 'linkContraido';
	}
}

function MM_changePropShowHide2(showHide) { //v9.0
var obj = null; with (document)
  obj = getElementById('moreInfContainer7');
	  obj.style.display='';
var obj = null; with (document)
  obj = getElementById('moreInfContainer8');
	  obj.style.display='';
var obj = null; with (document)
  obj = getElementById('moreInfContainer9');
	  obj.style.display='';
var obj = null; with (document)
  obj = getElementById('moreInfContainer10');
	  obj.style.display='';
var obj = null; with (document)
  obj = getElementById(showHide);
	  obj.style.display='block';	  
}

function MM_changePropBgBT(objId) { //v9.0

var obj = null; with (document)
  obj = getElementById('btnBT01');
  obj.style.background='url(base/btnsBT/btns1a.png)';

var obj = null; with (document)
  obj = getElementById('btnBT02');
  obj.style.background='url(base/btnsBT/btns2a.png)';

var obj = null; with (document)
  obj = getElementById('btnBT03');
  obj.style.background='url(base/btnsBT/btns2a.png)';

var obj = null; with (document)
  obj = getElementById('btnBT04');
  obj.style.background='url(base/btnsBT/btns2a.png)';

var obj = null; with (document)
  obj = getElementById('btnBT05');
  obj.style.background='url(base/btnsBT/btns3a.png)';

var obj = null; with (document)
  obj = getElementById('btnBT06');
  obj.style.background='url(base/btnsBT/btns4a.png)';

var obj = null; with (document)
  obj = getElementById('btnBT07');
  obj.style.background='url(base/btnsBT/btns4a.png)';  

var obj = null; with (document)
  obj = getElementById('btnBT08');
  obj.style.background='url(base/btnsBT/btns4a.png)';  

var obj = null; with (document)
  obj = getElementById('btnBT09');
  obj.style.background='url(base/btnsBT/btns4a.png)';  

var obj = null; with (document)
  obj = getElementById('btInf-1');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-2');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-3');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-4');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-5');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-6');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-7');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-8');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById('btInf-9');
  obj.style.display='';  
var obj = null; with (document)
  obj = getElementById(objId);
  if (objId == 'btnBT01'){
	  val = 'url(base/btnsBT/btns1b.png)';
	  obj.style.background = val; 
	  baja = false;
	  inf = 'btInf-1'
	}
  if (objId == 'btnBT02'){
	  val = 'url(base/btnsBT/btns2b.png)';
	  obj.style.background = val;  
	  baja = false;
	  inf = 'btInf-2'
	}
  if (objId == 'btnBT03'){
	  val = 'url(base/btnsBT/btns2b.png)';
	  obj.style.background = val;  
	  baja = false;
	  inf = 'btInf-3'
	}
  if (objId == 'btnBT04'){
	  val = 'url(base/btnsBT/btns2b.png)';
	  obj.style.background = val;  
	  baja = false;
	  inf = 'btInf-4'
	}
  if (objId == 'btnBT05'){
	  val = 'url(base/btnsBT/btns3b.png)';
	  obj.style.background = val;  
	  baja = true;
	  inf = 'btInf-5'
	}
  if (objId == 'btnBT06'){
	  val = 'url(base/btnsBT/btns4b.png)';
	  obj.style.background = val;  
	  baja = true;
	  inf = 'btInf-6'
	}
  if (objId == 'btnBT07'){
	  val = 'url(base/btnsBT/btns4b.png)';
	  obj.style.background = val;  
	  baja = true;
	  inf = 'btInf-7'
	}
  if (objId == 'btnBT08'){
	  val = 'url(base/btnsBT/btns4b.png)';
	  obj.style.background = val;  
	  baja = true;
	  inf = 'btInf-8'
	}
  if (objId == 'btnBT09'){
	  val = 'url(base/btnsBT/btns4b.png)';
	  obj.style.background = val;  
	  baja = true;
	  inf = 'btInf-9'
	}
var obj = null; with (document)
  obj = getElementById('menuL1');
var obj2 = null; with (document)
  obj2 = getElementById('menuL2');
  if (baja == true){
  	  obj.className='dwn';  
  	  obj2.className='up';  
	} else {
  	  obj.className='up';  
  	  obj2.className='dwn';  
	}
var obj = null; with (document)
  obj = getElementById(inf);
  obj.style.display='block';  
}

function MM_changePropBgDefBT() { //v9.0

var obj = null; with (document)
  obj = getElementById('btnBT01');
  obj.style.background='url(base/btnsBT/btns1b.png)';  
var obj = null; with (document)
  obj = getElementById('btInf-1');
  obj.style.display='block';  
var obj = null; with (document)
  obj = getElementById('moreInf');
  obj.style.display='';  
}

function showPopWin2() {
var Url2 = location.href;
busca = Url2.indexOf("?");
if (busca==-1) {
	} else {
var Url = document.location.href;
Url = Url.replace(/.*\?(.*?)/,"$1");
Variables = Url.split ("&");
for (i = 0; i < Variables.length; i++) {
       Separ = Variables[i].split("=");
       eval ('var '+Separ[0]+'="'+Separ[1]+'"');
}	   	
	lin=document.getElementById(btName);
	lin.focus();
	initPopUp();
	showPopWin(page, Number(wi), Number(he), null);
}
}
