<!--
var mostroContenidoTienda=false;
var entroContenidoTienda=false;

function init() {
	if (document.layers) document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove = storeMousePos;
	onscroll = storeMousePos;
}

init();

function truebody(){
	return (!window.opera && document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body
} 

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft; curtop = obj.offsetTop;
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft; curtop += obj.offsetTop; }	}
	return [curleft,curtop];
}

function storeMousePos(e) {
	if (typeof e != "undefined"){
		minx=e.pageX; miny=e.pageY; X=minx; Y=miny;

	} else if (typeof window.event !="undefined"){
		minx=truebody().scrollLeft; miny=truebody().scrollTop; X=minx+event.clientX; Y=miny+event.clientY }

	if (mostroContenidoTienda && document.getElementById("TIENDA_INF")) {
		X1=parseInt(document.getElementById("showDatosContenido").style.left);
		Y1=parseInt(document.getElementById("showDatosContenido").style.top);
		X2=0; Y2=0;
		if (document.getElementById("TIENDA_INF")) {
			curpos=findPos(document.getElementById("TIENDA_INF"));
			X2=curpos[0]+5; Y2=curpos[1]+5;
			if ((X>=X1 && X<=X2) && (Y>=Y1 && Y<=Y2)) {
				entroContenidoTienda=true;
			} else {
				if (entroContenidoTienda) hideTiendaContenido();
			}
		}
	}
	if (document.getElementById("TIENDA_INFO")) {
		document.getElementById("showDatosContenido").style.left=228 + 'px';  
		document.getElementById("showDatosContenido").style.top=miny+130; }
	if (document.getElementById("TIENDA_INFP")) {
		document.getElementById("showDatosContenido").style.left=335 + 'px';  
		document.getElementById("showDatosContenido").style.top=miny+235; }
}

function showTiendaModulo (nroItem, idCont) {
	entroContenidoTienda=false; mostroContenidoTienda=false;

	MM_showHideLayers('showDatosContenido','','show');
	P7_Snap('TIENDAID_'+nroItem,'showDatosContenido',-25,-25);
	
	strMensaje="<table width='120' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFCC00'><tr valign='top'>";
	strMensaje+="<td width='1'><img src='../maxitienda/images/spacer.gif' width='1' height='70'/></td>";
	strMensaje+="<td align='center' valign='middle' class='modTienPeqCom'>Cargando informaci&oacute;n<br>Espera un momento, por favor...";
	strMensaje+="</td></tr></table>";
	
	document.getElementById("showDatosContenido").innerHTML=strMensaje;

	var connContenido = new XHConn(); 
	if (connContenido) {
		var peticion = function (oXML) {  
			document.getElementById("showDatosContenido").innerHTML = oXML.responseText;
			mostroContenidoTienda=true;
		}; 
		pagina="../maxitienda/showContenidoModulo.asp"
		connContenido.connect(pagina, "post", "a=contenido&id="+idCont, peticion); 
	}
}

function showTiendaArena (nroItem, idCont) {
	entroContenidoTienda=false; mostroContenidoTienda=false;

	MM_showHideLayers('showDatosContenido','','show');
	P7_Snap('TIENDAID_'+nroItem,'showDatosContenido',-25,-25);
	
	strMensaje="<table width='120' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFCC00'><tr valign='top'>";
	strMensaje+="<td width='1'><img src='../maxitienda/images/spacer.gif' width='1' height='70'/></td>";
	strMensaje+="<td align='center' valign='middle' class='modTienPeqCom'>Cargando informaci&oacute;n<br>Espera un momento, por favor...";
	strMensaje+="</td></tr></table>";
	
	document.getElementById("showDatosContenido").innerHTML=strMensaje;

	var connContenido = new XHConn(); 
	if (connContenido) {
		var peticion = function (oXML) {  
			document.getElementById("showDatosContenido").innerHTML = oXML.responseText;
			mostroContenidoTienda=true;
		}; 
		pagina="../maxitienda/showContenido.asp"
		connContenido.connect(pagina, "post", "a=contenido&id="+idCont, peticion); 
	}
}

function showTiendaContenidoModulo (nroItem, idCont) {
//	curX=parseInt(document.getElementById("showDatosContenido").style.left)-200;
	document.getElementById("showDatosContenido").style.left=228 + 'px';

	showTiendaContenido(nroItem, idCont);
}

function showTiendaResumen (nroItem, idCont) {
	entroContenidoTienda=false; mostroContenidoTienda=false;

	MM_showHideLayers('showDatosContenido','','show');
	P7_Snap('TIENDAID_'+nroItem,'showDatosContenido',-25,-25);

	strMensaje="<table width='300' border='0' cellpadding='0' cellspacing='0' class='modTienPeqCol2'><tr valign='top'>";
	strMensaje+="<td width='1'><img src='../maxitienda/images/spacer.gif' width='1' height='70'/></td>";
	strMensaje+="<td align='center' valign='middle' class='modTienPeqTit2'>Cargando informaci&oacute;n<br>Espera un momento, por favor...</td>";
	strMensaje+="</tr></table>";

	document.getElementById("showDatosContenido").innerHTML = strMensaje;

	var connContenido = new XHConn(); 
	if (connContenido) {
		var peticion = function (oXML) {  
			document.getElementById("showDatosContenido").innerHTML = oXML.responseText;
			mostroContenidoTienda=true;
		}; 
		pagina="../maxitienda/showContenidoHome.asp"
		connContenido.connect(pagina, "post", "a=contenido&id="+idCont+"&it="+nroItem, peticion); 
	}
}

function showTiendaResumenpais (nroItem, idCont) {
	entroContenidoTienda=false; mostroContenidoTienda=false;

	MM_showHideLayers('showDatosContenido','','show');
	P7_Snap('TIENDAID_'+nroItem,'showDatosContenido',-25,-25);

	strMensaje="<table width='300' border='0' cellpadding='0' cellspacing='0' class='modTienPeqCol2'><tr valign='top'>";
	strMensaje+="<td width='1'><img src='../maxitienda/images/spacer.gif' width='1' height='70'/></td>";
	strMensaje+="<td align='center' valign='middle' class='modTienPeqTit2'>Cargando informaci&oacute;n<br>Espera un momento, por favor...</td>";
	strMensaje+="</tr></table>";

	document.getElementById("showDatosContenido").innerHTML = strMensaje;

	var connContenido = new XHConn(); 
	if (connContenido) {
		var peticion = function (oXML) {  
			document.getElementById("showDatosContenido").innerHTML = oXML.responseText;
			mostroContenidoTienda=true;
		}; 
		pagina="../maxitienda/showContenidoHomepais.asp"
		connContenido.connect(pagina, "post", "a=contenido&id="+idCont+"&it="+nroItem, peticion); 
	}
}

function showTiendaContenido (nroItem, idCont) {
	entroContenidoTienda=false; mostroContenidoTienda=false;

	strMensaje="<table width='368' border='0' cellpadding='0' cellspacing='0' class='modTienGraCol2'><tr valign='top'>";
	strMensaje+="<td width='1'><img src='../maxitienda/images/spacer.gif' width='1' height='70'/></td>";
	strMensaje+="<td align='center' valign='middle' class='modTienPeqTit2'>Cargando informaci&oacute;n<br>Espera un momento, por favor...</td>";
	strMensaje+="</tr></table>";
	
	document.getElementById("showDatosContenido").innerHTML=strMensaje;

	var connContenido = new XHConn(); 
	if (connContenido) {
		var peticion = function (oXML) {  
			document.getElementById("showDatosContenido").innerHTML = oXML.responseText;
			//mostroContenidoTienda=true;
		}; 
		pagina="../maxitienda/showContenido.asp"
		connContenido.connect(pagina, "post", "a=contenido&id="+idCont, peticion); 
	}
}

function showTiendaCompra (idCont) {
	entroContenidoTienda=false; mostroContenidoTienda=false;

	objCompra=document.getElementById("showPais"); idPais=objCompra.value;
	objCompra=document.getElementById("showOperadora"); idOperadora=objCompra.value;
	objCompra=document.getElementById("showMarca"); idMarca=objCompra.value;
	objCompra=document.getElementById("showModelo"); idModelo=objCompra.value;

	strMensaje="<table width='330' border='0' cellpadding='0' cellspacing='0' class='modTienPeqCol2'><tr valign='top'>";
	strMensaje+="<td width='70' height='80'><img src='../images/espera.gif' /></td>";
	strMensaje+="<td align='center' valign='middle' class='modTienPeqTit2'>Cargando informaci&oacute;n<br>Espera un momento, por favor...</td>";
	strMensaje+="</tr></table>";

	document.getElementById("showDatosContenido").innerHTML = strMensaje;

	var connCompra = new XHConn(); 
	if (connCompra) {
		var peticion = function (oXML) {  
			document.getElementById("showDatosContenido").innerHTML = oXML.responseText;
			//mostroContenidoTienda=true;
		}; 
		pagina="../maxitienda/showContenido.asp"
		connCompra.connect(pagina, "post", "a=compra&id="+idCont+"&pa="+idPais+"&op="+idOperadora+"&ma="+idMarca+"&mo="+idModelo, peticion); 
	}
}

function hideTiendaContenido () {
	mostroContenidoTienda=false; entroContenidoTienda=false;

	document.getElementById("showDatosContenido").innerHTML = "";
	MM_showHideLayers('showDatosContenido','','hidden');
}

function getTiendaOperadora(idCont, idPais) {
    iframe = document.getElementById("frameBack");
    iframe.src="../maxitienda/getWinOptions.asp?accion=operadora&idcont="+idCont+"&id="+idPais+"&ref="+Math.random();
}

function getTiendamarca(idCont, idoper) {
    iframe = document.getElementById("frameBack");
    iframe.src="../maxitienda/getWinOptions.asp?accion=marca&idcont="+idCont+"&id="+idoper+"&ref="+Math.random();
}


function getTiendaModelo(idCont, idMarca) {
    iframe = document.getElementById("frameBack");
    iframe.src="../maxitienda/getWinOptions.asp?accion=modelo&idcont="+idCont+"&id="+idMarca+"&ref="+Math.random();
}

function showPais (idpais) {
	entroContenidoTienda=false; mostroContenidoTienda=false;

	MM_showHideLayers('showDatosContenido','','show');
	P7_Snap('TIENDAID_1', 'showDatosContenido',-20,-20);
	
	strMensaje="<table width='120' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFCC00'><tr valign='top'>";
	strMensaje+="<td width='1'><img src='../maxitienda/images/spacer.gif' width='1' height='70'/></td>";
	strMensaje+="<td align='center' valign='middle' class='modTienPeqCom'>Cargando informaci&oacute;n<br>Espera un momento, por favor...";
	strMensaje+="</td></tr></table>";
	
	document.getElementById("showDatosContenido").innerHTML=strMensaje;
	document.getElementById("showDatosContenido").style.left=780;  
	document.getElementById("showDatosContenido").style.top=miny+128;

	var connContenido = new XHConn(); 
	if (connContenido) {
		var peticion = function (oXML) {  
			document.getElementById("showDatosContenido").innerHTML = oXML.responseText;
			mostroContenidoTienda=true;
		}; 
		pagina="../includes/showPais.asp"
		connContenido.connect(pagina, "post", "a=cambio&idc="+idpais, peticion); 
	}
}

function ventanaWAP() { //v2.0
  window.open('http://www.maximovil.com/maxitienda/020101.asp','WAP','width=597,height=520,scrollbars=yes');
}



//agregado por JLG HIJO


function showGuiaAyuda (idCont) {
	entroContenidoTienda=false; mostroContenidoTienda=false;

	objCompra=document.getElementById("showPais"); idPais=objCompra.value;
	objCompra=document.getElementById("showOperadora"); idOperadora=objCompra.value;
	objCompra=document.getElementById("showMarca"); idMarca=objCompra.value;
	objCompra=document.getElementById("showModelo"); idModelo=objCompra.value;

	strMensaje="<table width='330' border='0' cellpadding='0' cellspacing='0' class='modTienPeqCol2'><tr valign='top'>";
	strMensaje+="<td width='70' height='80'><img src='../images/espera.gif' /></td>";
	strMensaje+="<td align='center' valign='middle' class='modTienPeqTit2'>Cargando informaci&oacute;n<br>Espera un momento, por favor...</td>";
	strMensaje+="</tr></table>";

	document.getElementById("showDatosContenido").innerHTML = strMensaje;

	var connCompra = new XHConn(); 
	if (connCompra) {
		var peticion = function (oXML) {  
			document.getElementById("showDatosContenido").innerHTML = oXML.responseText;
			//mostroContenidoTienda=true;
		}; 
		//pagina="../maxitienda/showContenido.asp"
		pagina="../maxitienda/showAyuda.asp"
		connCompra.connect(pagina, "post", "a=compra&id="+idCont+"&pa="+idPais+"&op="+idOperadora+"&ma="+idMarca+"&mo="+idModelo, peticion); 
	}
}






// -->