function activarCSScomplementaria (nombre, activo){
	if (activo == undefined)	activo =true;
	cssAr =document.getElementsByTagName ('link');
	for (var a=0; a<cssAr.length; a++){
		if (cssAr[a].getAttribute('href').indexOf(nombre)!=-1)
			cssAr[a].disabled=!activo;
	}
}

function loadXMLDoc(url){
	xmlhttp=null
	if (window.XMLHttpRequest){ // code for Mozilla, etc.
			xmlhttp=new XMLHttpRequest()
		} else if (window.ActiveXObject) { // code for IE
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	if (xmlhttp!=null){
			xmlhttp.onreadystatechange=state_Change
			xmlhttp.open("GET",url,true)
			xmlhttp.send(null)
		} else {
			alert("Your browser does not support XMLHTTP.")
	}
	return false;
}

function state_Change(){
	if (xmlhttp.readyState==4){ // if xmlhttp shows "loaded"
		if (xmlhttp.status==200){// if "OK"
				var contenido =document.getElementById('contenido');
				contenido.innerHTML =xmlhttp.responseText;
				contenido.style.width ="740px";
				document.getElementById('menuder').style.display ='none';
				
//				activarCSScomplementaria ('home', false);
			} else {
				alert("Problem retrieving XML data")
		}
	}
}

function mostrarImagen (url, w, h, hasReturn){
	if (hasReturn==undefined)	hasReturn =true;
	if (w==undefined)	w=510;
	if (h==undefined)	h=400;
	fotowd =window.open (url, 'vista', 'toolbar=0, location=0, status=0, menubar=0, resizable=1, scrollbars=1, width='+w+', height='+h);
	fotowd.resizeTo (w, h);
	fotowd.focus ();
	if (hasReturn==true)
		return false;
}