// Función ver/okultar submenus
	function ocultamenu2(){
	  var menu2 = document.getElementById("subMenu_2");
	  menu2.style.display = "none";
	}
	function despliega2(){
	  var menu2 = document.getElementById("subMenu_2");
		if(menu2.style.display == "none"){
		  menu2.style.display = "block";
		}
		else{
		  menu2.style.display = "none";
		}
	}

	function ocultamenu(){
	  var menu = document.getElementById("subMenu");
	  menu.style.display = "none";
	}
	function despliega(){
	  var menu = document.getElementById("subMenu");
		if(menu.style.display == "none"){
		  menu.style.display = "block";
		}
		else{
		  menu.style.display = "none";
		}
	}


var sTit = "/images/subtitulos/stit_"+estaPagina.substring(estaPagina.lastIndexOf("/")+1).split(".")[0]+".jpg";
if((sTit==null)||(sTit=="")){sTit="/images/clearpixel.gif";}
function showSubtitulo(){document.write("<img src=\""+sTit+"\" border=0>");}
function nada(){return;}
function wml_closePopup(){wml_oPopUp.hide();}	
function ocultaespera(){document.getElementById('mesanjeespera').style.display = 'none';}
function muestraespera(){document.getElementById('mesanjeespera').style.display = 'block';}
function cc(id,bcolor){document.all[id].style.backgroundColor = bcolor;}
function cc1(id){document.all[id].style.backgroundColor=bcolor;}
var meses = new Array('enero','febrero','marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre','diciembre');
var dias = new Array('','Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado');
function showDate(){document.write(dias[sWeekDate]+' '+sDay+' de '+meses[sMonth]+' del '+sYear);}
function borraForma(obj){obj.reset();}
function mira(){window.setTimeout ("self.focus()",10000);}
function wml_closePopup(){wml_oPopUp.hide();}	


function viewdemo(type){
	if(type=="jp"){openDialog("jockeyplaza.asp","600","450","resizable=yes,scrollbars=no,status=no");return;}
	if(type=="3d"){openDialog("3dobject.asp","600","450","resizable=yes,scrollbars=no,status=no");return;}
	if(type=="ecatalog"){openDialog("ecatalog","600","450","resizable=yes,scrollbars=no,status=no");return;}
	if(type=="cad"){openDialog("cad.asp","600","450","resizable=yes,scrollbars=no,status=no");return;}
	if(type=="panorama"){openDialog("panorama.asp","600","450","resizable=yes,scrollbars=no,status=no");return;}
}
function togleButtons(obj){
	var cClassName=obj.className;if(cClassName==""){return;}
	if(cClassName.toString().toLowerCase().indexOf("hover")!=-1){obj.className=cClassName.replace("Hover","");}else{obj.className=cClassName+"Hover";}
}
function openDialog(url, width, height, features, normal) {
	if (!features){features="";}
	if (normal==null){normal=false;}
	if (!window.showModalDialog || normal){var win = window.open(url,"_blank","height="+height+",width="+width+","+features);	return;}
	var nWidth = parseInt(width) + 6;
	var nHeight = parseInt(height) + 25;
	var params = 'dialogWidth:'+nWidth+'px;dialogHeight:'+ nHeight + 'px;help:no;'
	features = features.replace(/\,/gi, ';');
	features = features.replace(/\=/gi, ':');
	features = features.replace(/scrollbars/gi, 'scroll');
	features = features.replace(/left/gi, 'dialogLeft');
	features = features.replace(/top/gi, 'dialogTop');
	features = features.replace(/width/gi, 'dialogWidth');
	features = features.replace(/height/gi, 'dialogHeight');
	if ((features.search('scroll')) == -1){params += "scroll:no;";}
	if (features.search('status') == -1) {params += "status:no;";} 
	params += features;
	var win = window.showModalDialog(url, window, params);
	return win
}
function menuAyuda(){
	document.write("<table width=\"180\" height=\"30\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"texto_normal\" style=\"table-layout:fixed;\">");
	document.write("<col width=160><col width=5><col width=30>");
	document.write("<tr>");
    document.write("<td align=right class=\"Texto_plomo\"><a href=\"#\">Envíe esta página a un amigo</a></div></td>");
    document.write("<td width=\"5\">&nbsp;</td>");
	document.write("<td width=\"30\" align=left class=\"Texto_plomo\"><img src=\"/images/iconos/enviar.jpg\" width=\"20\" height=\"20\"></td>");
	document.write("</tr>");
	document.write("<tr>");
    document.write("<td align=right class=\"Texto_plomo\"><a href=\"#\">Imprima esta página</a></div></td>");
    document.write("<td width=\"5\">&nbsp;</td>");
	document.write("<td width=\"30\" align=left class=\"Texto_plomo\"><img src=\"/images/iconos/imprimir.jpg\" width=\"20\" height=\"20\"></td>");
	document.write("</tr>");
	document.write("<tr>");
    document.write("<td align=right class=\"Texto_plomo\"><a href=\"#\">Agregar a Favoritos</a></div></td>");
    document.write("<td width=\"5\">&nbsp;</td>");
	document.write("<td width=\"30\" align=left class=\"Texto_plomo\"><img src=\"/images/iconos/favorito.gif\" width=\"20\" height=\"20\"></td>");
	document.write("</tr>");
	document.write("</table>");
}
function help(){
document.write("<div align=\"center\">");
document.write("<a href=\"/contacto.asp\"><img title=\"pulse aquí para solicitar soporte...\" src=\"/images/help/help_offline.gif\" border=\"0\"></a>");
document.write("</div>");
}
function trimString(str){str=this!=window?this:str;return str.replace(/\s+/g,'');}
String.prototype.trim = trimString;
//function handleError(){return true;}
//window.onerror = handleError;

function showMenu(){
	/*
	if (newMenu.length > 0 ){
		var html = "<div id=\"dMenu\">";
		//html+= "<div id=\"ImagenMenu\"><image src=\"/images/zona/[imagen]\" border=0></div>";
		html+= "<div id=\"ImagenMenu\"></div>";
		html+= "<div class=\"buttonscontainer\">"
		html+= "<div class=\"buttons\">"
		for (var i=0;i<newMenu.length;i++){
			html+= "<a href=\""+newMenu[i][1]+"\" onclick=\"this.className='linkClickeado'\">"+newMenu[i][0]+" &#8226;</a>";
		}
		html+= "</div>";
		html+= "</div>";
		html+= "</div>";
		document.write(html);
	}else{
	*/
		document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ");
		document.write("codebase=\""+protocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"185\" height=\"250\">");
		document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
		document.write("<param name=\"movie\" value=\""+swfMenu+"\">");
		document.write("<param name=quality value=high>");
		document.write("<embed src=\""+swfMenu+"\" quality=high ");
		document.write("pluginspage=\""+protocol+"://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" ");
		document.write("width=\"180\" height=\"200\"></embed></object>");
	//}
}
function showHeader(){
	document.write("<table width=\"762\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"table-layout:fixed;\">");
	document.write("<tr><td height=5></td></tr>");
	document.write("<tr><td bgcolor=\"#EFEFEF\">");
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");
	document.write("codebase=\""+protocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"762\" height=\"88\" id=ShockwaveFlash1>");
	document.write("<param name=\"movie\" value=\"/menuTopn.swf\">");
	document.write("<param name=\"quality\" value=\"high\">");
	document.write("<param name=\"wmode\" value=\"transparent\">");
	document.write("<embed src=\"/menuTopn.swf\" quality=high ");
	document.write("pluginspage=\""+protocol+"://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" ");
	document.write("type=\"application/x-shockwave-flash\" width=\"762\" height=\"88\"></embed> ");
	document.write("</object></td></tr>");
	document.write("</table>");

	document.write("<table width=\"762\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"table-layout:fixed;\">");
	document.write("<tr><td bgcolor=\"#EFEFEF\">");
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"  ");
	document.write("codebase=\""+protocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"762\" height=\"165\" id=ShockwaveFlash2>");
	document.write("<param name=\"movie\" value=\""+swfHeader+"\">");
	document.write("<param name=quality value=high>");
	document.write("<embed src=\""+swfHeader+"\" quality=high ");
	document.write("<param name=\"wmode\" value=\"transparent\">");
	document.write("pluginspage=\""+protocol+"://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" ");
	document.write("type=\"application/x-shockwave-flash\" width=\"762\" height=\"165\"></embed> ");
	document.write("</object></td></tr>");

	document.write("</table>");
	document.write("<table align=\"center\" width=\"762\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"table-layout:fixed;\">");
	document.write("<col width=188><col width=574>");
	document.write("<tr>");
	document.write("<td height=24 width=\"188\"><img src=\""+imaZona+"\" width=\"188\" height=\"24\"></td>");
	document.write("<td height=24 valign=\"middle\" background=\"/images/linea_tit.jpg\"><nobr><img src=\"/images/tit_plom.jpg\" width=\"7\" height=\"24\">");
	document.write("<script language=\"javascript\">");
	document.write("showSubtitulo();");
	document.write("</script></nobr>");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
}
function showHeaderIndex(){
	document.write("<table width=\"762\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"table-layout:fixed;\">");
	document.write("<tr><td height=5></td></tr><tr>   <td valign=\"top\" bgcolor=\"#EFEFEF\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");
	document.write("codebase=\""+protocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" ");
	document.write("width=\"762\" height=\"88\" id=ShockwaveFlash1>");
	document.write("<param name=\"movie\" value=\"/menuTopn.swf\">");
	document.write("<param name=quality value=high>");
	document.write("<embed src=\"/menuTopn.swf\" quality=high ");
	document.write("pluginspage=\""+protocol+"://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" ");
	document.write("type=\"application/x-shockwave-flash\" width=\"762\" height=\"88\"></embed> ");
	document.write("</object></td></tr><tr><td valign=\"top\" bgcolor=\"#EFEFEF\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"  ");
	document.write("codebase=\""+protocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" ");
	document.write("width=\"762\" height=\"223\" id=ShockwaveFlash2>");
	document.write("<param name=\"movie\" value=\"men_fot.swf\">");
	document.write("<param name=quality value=high>");
	document.write("<embed src=\"men_fot.swf\" quality=high pluginspage=\""+protocol+"://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" ");
	document.write("type=\"application/x-shockwave-flash\" width=\"762\" height=\"223\"></embed> ");
	document.write("</object></td></tr></table>");
}
function showPaso(estePaso,nroPasos){
	var html = "<table border=0 cellpadding=0>";
	html+="<tr class=tr1 valign=top align=center>"
	html+="<td width=20 align=right nowrap><b>Paso:</b></td>";
	for (var i=0;i<nroPasos;i++){
		html+="<td width=20 ";if(estePaso==(i+1)){html+="class=pasoOn>";}else{html+="class=pasoOff>";}
		html+=(i+1).toString()+"</td>";
	}
	html+="</tr>";
	html+="</table>";
	document.write(html);
}