// Instanciar un nuevo objeto XMLHttpRequest

var xmlHttp

function showImage(srt){
	document.getElementById("imgWindow").innerHTML.style.visibility="show"
	
}


function stateChanged() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
		document.getElementById("imgwindow").innerHTML=xmlHttp.responseText;
		document.getElementById("imgwindou").style.visibility=show
	}
}


function GetXmlHttpObject() {
	var xmlHttp = null;
	try {
		//Firefix, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	} catch (e) {
		//Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}


function HeightMenuProductos(){
	 if (document.getElementById('Cont').offsetHeight > ((document.getElementById('MenuProductos').offsetHeight - 80))){
		document.getElementById('MenuProductos').style.height = document.getElementById('Cont').offsetHeight + 80 + "px";
	 }
}

function showSubMenu(nombre,sn,seccion){
	obj = document.getElementById(nombre);
	menu = document.getElementById(seccion);
	if (sn>0){
		obj.style.visibility = "visible";
		menu.style.background = "orangered";
	} else {
		obj.style.visibility = "hidden";
		menu.style.background = "red";
	}
}

function loadContent (){

}	
