function Salto(Campo) {
	if (Campo.selectedIndex != 0) {
		var URL = Campo.options[Campo.selectedIndex].value;
		window.location.href = URL;
	}
};

function mClk(src) {
	//if(event.srcElement.tagName=='TD'){
		src.children.tags('A')[0].click();
	//}
}

function Precargar() { 
  var d=document;
 	 if(document.images) { 
		if(!document.Prec) document.Prec=new Array();
		var i, j=document.Prec.length, a=Precargar.arguments; 
		for(i=0; i<a.length; i++) { 
			if (a[i].indexOf("#")!=0) { 
				document.Prec[j]=new Image; 
				document.Prec[j++].src=a[i];
			}
		}
	}
};

function mipop(url,width,heigh,nm) {
	if (width =="") width=620;
	if (heigh =="") heigh=460;
	if (nm =="") nm = "ventana";
	var mipop = window.open(url,nm,"resizable=yes,scrollbars="+ scroll + ",width="+ width + ",height="+ heigh +",top=1,left=1")
	mipop.focus();
};

function ventana(url,width,heigh,nombre) {
	if (width =="") width=620;
	if (heigh =="") heigh=460;
	if (nombre =="") nombre = "ventana";
	var ventana = window.open("about:blank",nombre,"resizable=yes,scrollbars=yes,width="+ width + ",height="+ heigh +",top=1,left=1")
	var frms = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>";
	frms += "<html>";
	frms += "<head>";
	frms += "<title>Grupo Travel</title>";
	frms += "</head>";
	frms += "<frameset rows='35,*' frameborder='no' border='0'>";
	frms += "<frame src='/i-TravelSoft/minoristas/menu_mino.html' name='menu' id='menu' frameborder='0' scrolling='No' marginwidth='0' marginheight='0'>";
	frms += "<frame name='Resultado' id='Resultado' src='" + url + "' marginwidth='0' marginheight='0' scrolling='auto' frameborder='0'>";
	frms += "</frameset>";
	frms += "</html>";
	ventana.document.write(frms);
	ventana.focus();
};

function VaciaCampo(VaCpo,DefVal) {
	if (VaCpo.value == DefVal) { VaCpo.value = ""; }
};

// INICIAN FUNCIONES DEL MENU DE DESTINOS//
var timeoutid;
function ShowDestinosMenu(URL) {
	var BrouserVersion=parseFloat(navigator.appVersion.indexOf("MSIE")>0?navigator.appVersion.split(";")[1].substr(6):navigator.appVersion);
	if (timeoutid != "") { window.clearTimeout(timeoutid); }
	if (navigator.appName == "Netscape") { 
		if (BrouserVersion < 5) { MenuNoDisponible(); }
		else { OpenMenuDest(); }
	}
	else if (navigator.appName == "Microsoft Internet Explorer") { 
		if (BrouserVersion < 5) { MenuNoDisponible(); }
		else { OpenMenuDest(); }
	}
	else { 
		MenuNoDisponible(URL); 
	}
};

function OpenMenuDest(menudiv) {
	var menudiv = document.getElementById('destmenu');
	var mitdid = document.getElementById('NS5');
	menudiv.style.left = mitdid.offsetWidth + mitdid.offsetLeft + 2;
    menudiv.style.top = mitdid.offsetTop - 3;
	menudiv.style.display = "inline";
};
function MenuNoDisponible(URL) {
	//var URL = "http://www.i-que.com.mx";
	var elmmsg = "Este menú solo esta disponible para Netscape 5 o Internet Explorer 5.\\n\\n¿Desea ser enviado a nuestra página inicial desde donde podrá encontrar todos nuestros programas?";
	if(confirm(elmmsg)==true) {
		document.location = URL;
	}
};

function CerrarMenu() {
	timeoutid = window.setTimeout(CerrarMenuDos, 800);
};
function CerrarMenuDos() {
	var menudiv = document.getElementById('destmenu');
	menudiv.style.display = "none";
}

function mantenerMenu() {
	if (timeoutid != "") { window.clearTimeout(timeoutid); }
}

// FINALIZAN FUNCIONES DEL MENU DE DESTINOS//