function busca(){
	if (document.busca_prin.Value.value.length < 3) {
    alert("Debe introducir una cadena de al menos 3 caracteres");
    return;
  }
	if (document.busca_prin.Category2[1].checked == true)
	{
		document.busca_prin.XSLfile.value="ringtone.xsl";
		document.busca_prin.RequestedAttrs.value="RingtoneSMS_ringtonesms_web_longname.code,RingtoneSMS_ringtonesms_web_author.code";
		document.busca_prin.nextPage.value="tonos.html";
		document.busca_prin.Category.value="0";
		document.busca_prin.submit();
	}
	else{
		//alert("es poli");
		document.busca_prin.XSLfile.value="poly.xsl";
		document.busca_prin.RequestedAttrs.value="OTAobject_otaother_namepreview.code,OTAobject_otaother_author.code";
		document.busca_prin.nextPage.value="poly.html";
		document.busca_prin.Category.value="1";
		document.busca_prin.submit();
	}
}
var cualTono = "";
function compatibilidad(){
	window.open('http://www.buongiorno.com/mex/searcher/esmas/compatibilidad_ini.html','_comp','width=650,height=450,status=yes,scrollbars=yes');		
}
function opentono(wtone,tipo){
	cualTono = wtone;
	//alert(cualTono);
	if(tipo == 1){
		window.open(homeURL + 'popup_tono.html?clave=' + wtone,'_det','width=350,height=330');		
	}
	else {
		window.open(homeURL + 'popup_tonopoli.html?clave=' + wtone,'_det','width=350,height=330');			
	}
}

/*if(ext == 1){
	homeURL = "http://www.esmas.com/movil/new/";
}
else {
	homeURL = "";	
}
alert(homeURL);*/

function writeNav(selected, titulo, ext){

out="";	
out += '<table width="750" border="0" cellspacing="0" cellpadding="0">';
out += '  <tr> ';
out += '    <td><img src="images/1_trans.gif" width="3" height="3"></td>';
out += '  </tr>';
out += '  <tr> ';
out += '    <td> ';
out += '      <table width="750" border="0" cellspacing="0" cellpadding="0">';
out += '        <tr> ';
out += '          <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="92"> ';
out += '            <table width="92" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '              <tr> ';
out += '                <td width="3"><img src="' + homeURL + 'images/esq01_inicio.gif" width="3" height="25"></td>';
out += '                <td><a href="' + homeURL + 'index.html" target="_top"><img src="' + homeURL + 'images/nav_inicio.gif" width="86" height="25" border="0"></a></td>';
out += '                <td width="3"><img src="' + homeURL + 'images/esq02_inicio.gif" width="3" height="25"></td>';
out += '              </tr>';
out += '            </table>';
out += '          </td>';
out += '          <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="650"> ';
out += '            <table width="650" border="0" cellspacing="0" cellpadding="0" bgcolor="9A9A9A">';
out += '	<form name="busca_prin" action="http://www.buongiorno.com/mex/searcher/searcherV2.html" method="GET" target="_top">';
out += "	<input type='hidden' name='CustomerID' value='esmas'><input type='hidden' name='sizePage' value='20'><input type='hidden' name='Country' value='mex'>";
out += "	<input type='hidden' name='XSLfile' value=''><input type='hidden' name='nextPage' value=''><input type='hidden' name='RequestedAttrs' value=''><input type='hidden' name='Category' value=''>";
out += '              <tr> ';
out += '                <td width="3"><img src="' + homeURL + 'images/esq01_busq.gif" width="3" height="25"></td>';
out += '                <td width="25"><img src="' + homeURL + 'images/ima01_busq.gif" width="25" height="25"></td>';
out += '                <td width="110"><img src="' + homeURL + 'images/ima02_busq.gif" width="110" height="25"></td>';
out += '                <td width="5"><img src="' + homeURL + 'images/1_trans.gif" width="8" height="5"></td>';
out += '                <td width="22"> ';
out += '                  <input type="radio" name="Category2" value="0">';
out += '                </td>';
out += '                <td width="29"><img src="' + homeURL + 'images/ima05_busq.gif" width="29" height="25"></td>';
out += '                <td width="5"><img src="' + homeURL + 'images/1_trans.gif" width="5" height="5"></td>';
out += '                <td width="22"> ';
out += '                  <input type="radio" name="Category2" value="1" checked>';
out += '                </td>';
out += '                <td width="35"><img src="' + homeURL + 'images/ima06_busq.gif" width="35" height="25"></td>';
out += '                <td width="10"><img src="' + homeURL + 'images/1_trans.gif" width="11" height="4"></td>';
out += '                <td width="20"> ';
out += '                  <input type="text" name="Value" size="20" class="dropmenu">';
out += '                </td>';
out += '                <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="8" height="5"></td>';
out += '                <td width="55"> ';
out += '                  <select name="Attribute" class="dropmenu">';
out += '                    <option value="CR_PRW_TITLE">por t&iacute;tulo</option>';
out += '                    <option value="CR_PRW_AUTHOR">por autor</option>';
out += '                  </select>';
out += '                </td>';
out += '                <td>&nbsp;</td>';
out += '                <td width="18"><a href="#" onClick="javascript:busca();"><img src="' + homeURL + 'images/bt_ir01_azul.gif" width="18" height="18" border="0"></a></td>';
out += '                <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="6" height="4"></td>';
out += '                <td width="3"><img src="' + homeURL + 'images/esq02_busq.gif" width="3" height="25"></td>';
out += '    			<td width="3" bgcolor="#FFFFFF"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '				<td width="3"><img src="' + homeURL + 'images/esq01_roja_snval.gif" width="3" height="25"></td>';
out += '				<td width="115" ><a href="#" onMouseOver="subir(20)" onMouseOut="bajar(20)"><img src="' + homeURL + 'images/bot_snvalentin2.gif" width="115" height="25" border="0"></a></td>';
out += '				<td width="3"><img src="' + homeURL + 'images/esq02_roja_snval.gif" width="3" height="25"></td>';
out += '              </tr>';
out += '	</form>';
out += '            </table>';
out += '          </td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '  </tr>';
out += '  <tr> ';
out += '    <td><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '  </tr>';
out += '  <tr> ';
out += '    <td> ';





out += '<table width="750" border="0" cellspacing="0" cellpadding="0">';
out += '  <tr> ';
out += '    <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '    <td width="121"> ';
out += '      <table width="121" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '        <tr> ';
out += '          <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '          <td width="115"><a href="#" onMouseOver="subir(16)" onMouseOut="bajar(16)"><img src="' + homeURL + 'images/nav_juegos.gif" width="114" height="22" border="0"></a></td>';
out += '          <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '    <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '    <td width="121"> ';
out += '      <table width="121" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '        <tr> ';
out += '          <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '          <td width="115"><a href="#" onMouseOver="subir(17)" onMouseOut="bajar(17)"><img src="' + homeURL + 'images/nav_amor.gif" width="114" height="22" border="0"></a></td>';
out += '          <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '    <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '    <td width="121"> ';
out += '      <table width="121" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '        <tr> ';
out += '          <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '          <td width="115"><a href="#" onMouseOver="subir(18)" onMouseOut="bajar(18)"><img src="' + homeURL + 'images/nav_telenovelas.gif" width="114" height="22" border="0"></a></td>';
out += '          <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '    <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '    <td width="121"> ';
out += '      <table width="121" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '        <tr> ';
out += '          <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '          <td width="115"><a href="' + homeURL + 'int_mujer.html" onMouseOver="subir(19)" onMouseOut="bajar(19)"><img src="' + homeURL + 'images/nav_mujer.gif"  width="114" height="22" border="0"></a></td>';
out += '          <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '    <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '    <td width="120"> ';
out += '      <table width="120" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '        <tr> ';
out += '          <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '          <td width="114"><a href="http://www.esmas.com/movilpromociones" onMouseOver="" onMouseOut=""><img src="' + homeURL + 'images/nav_promociones.gif"  width="114" height="22" border="0"></a></td>';
out += '          <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '    <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '    <td> ';
out += '      <table width="121" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '        <tr> ';
out += '          <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '          <td width="115"><a href="' + homeURL + 'chatmovil.html" onMouseOver="" onMouseOut=""><img src="' + homeURL + 'images/nav_chat.gif" width="114" height="22" border="0"></a></td>';
out += '          <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '  </tr>';
out += '</table>';

/*




out += '      <table width="750" border="0" cellspacing="0" cellpadding="0">';
out += '        <tr> ';
out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="120"> ';
out += '            <table width="120" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '              <tr> ';
out += '                <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '                <td width="140"><a href="#" onMouseOver="subir(16)" onMouseOut="bajar(16)"><img src="' + homeURL + 'images/nav_juegos.gif" width="140" height="22" border="0"></a></td>';
out += '                <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '              </tr>';
out += '            </table>';
out += '          </td>';
out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="120"> ';
out += '            <table width="120" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '              <tr> ';
out += '                <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '                <td width="140"><a href="#" onMouseOver="subir(17)" onMouseOut="bajar(17)"><img src="' + homeURL + 'images/nav_amor.gif" width="140" height="22" border="0"></a></td>';
out += '                <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '              </tr>';
out += '            </table>';
out += '          </td>';
out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td> ';
out += '            <table width="120" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '              <tr> ';
out += '                <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '                <td width="140"><a href="#" onMouseOver="subir(18)" onMouseOut="bajar(18)"><img src="' + homeURL + 'images/nav_telenovelas.gif" width="140" height="22" border="0"></a></td>';
out += '                <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '              </tr>';
out += '            </table>';
out += '          </td>';
out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td> ';
out += '            <table width="120" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '              <tr> ';
out += '                <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '                <td width="140"><a href="' + homeURL + 'int_mujer.html" onMouseOver="subir(19)" onMouseOut="bajar(19)" target="_top"><img src="' + homeURL + 'images/nav_mujer.gif" width="140" height="22" border="0"></a></td>';
out += '                <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '              </tr>';
out += '            </table>';
out += '          </td>';

out += '          </td>';
out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td> ';
out += '          <td> ';
out += '            <table width="120" border="0" cellspacing="0" cellpadding="0" bgcolor="#9B3772">';
out += '              <tr> ';
out += '                <td width="3"><img src="' + homeURL + 'images/esq01_purpura.gif" width="3" height="22"></td>';
out += '                <td width="140"><a href="http://www.esmas.com/movilpromociones" onMouseOver="" onMouseOut="" target="_top"><img src="' + homeURL + 'images/nav_promociones.gif" width="140" height="22" border="0"></a></td>';
out += '                <td width="3"><img src="' + homeURL + 'images/esq02_purpura.gif" width="3" height="22"></td>';
out += '              </tr>';
out += '            </table>';
out += '          </td>';

out += '	</tr>';
out += '      </table>';*/
out += '    </td>';
out += '  </tr>';
out += '  <tr> ';
out += '    <td><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '  </tr>';
out += '  <tr> ';
out += '    <td> ';
out += '      <table width="750" border="0" cellspacing="0" cellpadding="0">';
out += '        <tr> ';
out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="183"> ';
out += '            <table width="183" border="0" cellspacing="0" cellpadding="0" bgcolor="FFBA00">';
out += '              <tr> ';
if((selected == 1)||(selected == 13)){
	out += '                <td width="157"><a href="' + homeURL + 'int_diversion.html" target="_top"><img src="' + homeURL + 'images/nav_int01_diversion.gif" width="158" height="22" border="0"></a></td>';
        out += '        	<td width="25"><a href="javascript:openTutorial();"><img src="' + homeURL + 'images/nav_int02_diversion.gif" width="25" height="22" border="0"></a></td>';
}
else {
        out += '                <td width="3"><img src="' + homeURL + 'images/esq01_amarillo.gif" width="3" height="22"></td>';
	out += '                <td width="177"><a href="' + homeURL + 'int_diversion.html" onMouseOver="subir(12)" onMouseOut="bajar(12)" target="_top"><img src="' + homeURL + 'images/nav_diversion.gif" width="175" height="22" border="0"></a></td>';
	out += '                <td width="3"><img src="' + homeURL + 'images/esq02_amarillo.gif" width="3" height="22"></td>';
}
out += '              </tr>';
out += '            </table>';
out += '          </td>';

out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="183"> ';
out += '            <table width="183" border="0" cellspacing="0" cellpadding="0" bgcolor="9BB315">';
out += '              <tr> ';
if((selected == 2)||(selected == 6)){
	out += '                <td width="157"><a href="' + homeURL + 'int_hotnews.html" target="_top"><img src="' + homeURL + 'images/nav_int01_hotnews.gif" width="158" height="22" border="0"></a></td>';
        out += '        	<td width="25"><a href="javascript:openTutorial();"><img src="' + homeURL + 'images/nav_int02_hotnews.gif" width="25" height="22" border="0"></a></td>';
}
else {
	out += '                <td width="3"><img src="' + homeURL + 'images/esq01_verde.gif" width="3" height="22"></td>';
	out += '                <td width="177"><a href="' + homeURL + 'int_hotnews.html" onMouseOver="subir(13)" onMouseOut="bajar(13)" target="_top"><img src="' + homeURL + 'images/nav_hotnews.gif" width="175" height="22" border="0"></a></td>';
	out += '                <td width="3"><img src="' + homeURL + 'images/esq02_verde.gif" width="3" height="22"></td>';
}
out += '              </tr>';
out += '            </table>';
out += '          </td>';
out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td> ';
out += '            <table width="184" border="0" cellspacing="0" cellpadding="0" bgcolor="3B8FD0">';
out += '              <tr> ';
if(selected == 3){
	out += '                <td width="157"><a href="#"><img src="' + homeURL + 'images/nav_int01_tonos.gif" width="158" height="22" border="0"></a></td>';
        out += '        	<td width="25"><a href="javascript:openTutorial();"><img src="' + homeURL + 'images/nav_int02_tonos.gif" width="25" height="22" border="0"></a></td>';
}
else {
	out += '                <td width="3"><img src="' + homeURL + 'images/esq01_azul.gif" width="3" height="22"></td>';
	out += '                <td width="178"><a href="#" onMouseOver="subir(14)" onMouseOut="bajar(14)"><img src="' + homeURL + 'images/nav_tonos.gif" width="176" height="22" border="0"></a></td>';
	out += '                <td width="3"><img src="' + homeURL + 'images/esq02_azul.gif" width="3" height="22"></td>';
}
out += '              </tr>';
out += '            </table>';
out += '          </td>';
out += '          <td width="3"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td> ';
out += '            <table width="184" border="0" cellspacing="0" cellpadding="0" bgcolor="D8006B">';
out += '              <tr> ';
if(selected == 4){
	out += '                <td width="157"><a href="#"><img src="' + homeURL + 'images/nav_int01_imagenes.gif" width="158" height="22" border="0"></a></td>';
        out += '        	<td width="25"><a href="javascript:openTutorial();"><img src="' + homeURL + 'images/nav_int02_imagenes.gif" width="25" height="22" border="0"></a></td>';
}
else {
	out += '                <td width="3"><img src="' + homeURL + 'images/esq01_magenta.gif" width="3" height="22"></td>';
	out += '                <td width="178"><a href="#" onMouseOver="subir(15)" onMouseOut="bajar(15)"><img src="' + homeURL + 'images/nav_imagenes.gif" width="175" height="22" border="0"></a></td>';
	out += '                <td width="3"><img src="' + homeURL + 'images/esq02_magenta.gif" width="3" height="22"></td>';
}
out += '              </tr>';
out += '            </table>';
out += '          </td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '  </tr>';
out += '</table>';

document.write(out);
submenu = true;
out="";
if(selected == 1){
	esq_01 = "images/esq01_diversion.gif";
	esq_02 = "images/esq02_diversion.gif";
	telefono = "images/dv_telefono.gif";
	clave = "images/dv_clave.gif";
	color_fondo = "#FFBA00";
}
else if(selected == 2){
	esq_01 = "images/esq01_hotnews.gif";
	esq_02 = "images/esq02_hotnews.gif";
	telefono = "images/hn_telefono.gif";
	clave = "images/hn_clave.gif";
	color_fondo = "#9BB315";
}
else if(selected == 3){
	esq_01 = "images/esq01_tonos.gif";
	esq_02 = "images/esq02_tonos.gif";
	telefono = "images/tn_telefono.gif";
	clave = "images/tn_clave.gif";
	color_fondo = "#3B8FD0";
}
else if(selected == 4){
	esq_01 = "images/esq01_ima.gif";
	esq_02 = "images/esq02_ima.gif";
	telefono = "images/ima_telefono.gif";
	clave = "images/ima_clave.gif";
	color_fondo = "#D8006B";
}
else if(selected == 5){
	esq_01 = "images/esq01_all.gif";
	esq_02 = "images/esq02_all.gif";
	telefono = "images/all_telefono.gif";
	clave = "images/mj_clave.gif";
	color_fondo = "#9B3772";
}
else if(selected == 7){
	esq_01 = "images/esq01_all.gif";
	esq_02 = "images/esq02_all.gif";
	telefono = "images/all_telefono.gif";
	clave = "images/1_trans.gif";
	color_fondo = "#9B3772";
}
else if(selected == 6){
	esq_01 = "images/esq01_hotnews.gif";
	esq_02 = "images/esq02_hotnews.gif";
	telefono = "images/hn_telefono.gif";
	clave = "images/hn_clave22566.gif";
	color_fondo = "#9BB315";
}
else if(selected == 8){
	esq_01 = "images/esq01_hotnews.gif";
	esq_02 = "images/esq02_hotnews.gif";
	telefono = "images/hn_telefono.gif";
	clave = "images/hn_clave55455.gif";
	color_fondo = "#9BB315";
}

else if(selected == 9){
	esq_01 = "images/esq01_all.gif";
	esq_02 = "images/esq02_all.gif";
	telefono = "images/all_telefono.gif";
	clave = "images/jg_clave.gif";
	color_fondo = "#9B3772";
}

else if(selected == 10){
	esq_01 = "images/esq01_diversion.gif";
	esq_02 = "images/esq02_diversion.gif";
	telefono = "images/dv_telefono.gif";
	clave = "images/dv_clave77722.gif";
	color_fondo = "#FFBA00";
}
else if(selected == 11){
	esq_01 = "images/esq01_all.gif";
	esq_02 = "images/esq02_all.gif";
	telefono = "images/all_telefono.gif";
	clave = "images/ch_clave41111.gif";
	color_fondo = "#9B3772";
}
else if(selected == 12){
	esq_01 = "images/esq01_sanval.gif";
	esq_02 = "images/esq02_sanval.gif";
	telefono = "images/snv_telefono.gif";
	clave = "images/amor_31111.gif";
	color_fondo = "#E32505";
}
else if(selected == 13){
	esq_01 = "images/esq01_diversion.gif";
	esq_02 = "images/esq02_diversion.gif";
	telefono = "images/dv_telefono.gif";
	clave = "images/dv_clave71111.gif";
	color_fondo = "#FFBA00";
}
else if(selected == 14){
	esq_01 = "images/esq01_sanval.gif";
	esq_02 = "images/esq02_sanval.gif";
	telefono = "images/snv_telefono.gif";
	clave = "images/amor_21111.gif";
	color_fondo = "#E32505";
}
else if(selected == 15){
	esq_01 = "images/esq01_sanval.gif";
	esq_02 = "images/esq02_sanval.gif";
	telefono = "images/snv_telefono.gif";
	clave = "images/amor_61111.gif";
	color_fondo = "#E32505";
}
else {
	submenu = false;	
}

if(submenu){
	
out += '<table width="750" border="0" cellspacing="0" cellpadding="0">';
out += '  <tr> ';
out += '    <td> ';
out += '      <table border="0" cellspacing="0" cellpadding="0">';
out += '  <tr> ';
out += '          <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="183"';
if(selected == 1){
	out += 'bgcolor="#FFBA00"';
}	
out += '><img src="' + homeURL + 'images/1_trans.gif" width="183" height="4"></td>';
out += '          <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="183"';
if((selected == 2)||(selected == 6)){
	out += 'bgcolor="#9BB315"';
}
out += '><img src="' + homeURL + 'images/1_trans.gif" width="183" height="4"></td>';
out += '          <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="184"';
if(selected == 3){
	out += 'bgcolor="#3B8FD0"';
}	
out += '><img src="' + homeURL + 'images/1_trans.gif" width="184" height="4"></td>';
out += '          <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="184"';
if(selected == 4){
	out += 'bgcolor="#D8006B"';
}	
out += '><img src="' + homeURL + 'images/1_trans.gif" width="184" height="4"></td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '  </tr>';
out += '  <tr> ';
out += '    <td> ';
out += '      <table width="750" border="0" cellspacing="0" cellpadding="0">';
out += '        <tr> ';
out += '          <td width="4"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '          <td width="3"><img src="' + homeURL + esq_01 + '" width="3" height="50"></td>';
out += '          <td width="47"><img src="' + homeURL + telefono +  '" width="47" height="50"></td>';
out += '          <td bgcolor="' + color_fondo + '"><img src="' + homeURL + titulo + '" height="50"></td>';
out += '          <td width="106" bgcolor="' + color_fondo + '"><img src="' + homeURL + clave + '" width="106" height="50"></td>';
out += '          <td width="3"><img src="' + homeURL + esq_02 + '" width="3" height="50"></td>';
out += '        </tr>';
out += '      </table>';
out += '    </td>';
out += '  </tr>';
out += '  <tr> ';
out += '    <td height="12"><img src="' + homeURL + 'images/1_trans.gif" width="4" height="4"></td>';
out += '  </tr>';
out += '</table>';
}
document.write(out);

}
