// JavaScript Document

//Casio
function fnReservas(){
	
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function fnPacotes(opt, tipo, arg){
	var url = "";
	
	if(arg) arg = arg.toLowerCase();
	
	var soshow = 0;
	
	if("nacionais"==tipo){
	
		if(1==opt){
			url="pacotes/noronha.html";
		} else if(2==opt){
			url="pacotes/serrasgauchas.html";
		} else if(3==opt){
			url="pacotes/rioquente.html";
		} else if(4==opt){
			url="pacotes/sauipe.html";
		} else if(5==opt){
			url="pacotes/riodaspedras.html";
		} else if(6==opt){
			url="pacotes/amazonia.html";
		}
		
	} else if("internacionais"==tipo){
		
		if(1==opt){
			url="pacotes/paris.html";
		} else if(2==opt){
			url="pacotes/australia.html";
		} else if(3==opt){
			url="pacotes/caribe.html";
		} else if(4==opt){
			url="pacotes/dubai.html";
		} else if(5==opt){
			url="pacotes/chile.html";
		} else if(6==opt){
			url="pacotes/disney.html";
		} else if(7==opt){
			url="pacotes/cancun.html";
		} else if(8==opt){
			url="pacotes/africa.html";
		}
		
	} else if("regionais"==tipo){
	
		if(4==opt){
			url = "pacotes/vertarantella.html";
		} else if(2==opt){
			url = "pacotes/verreligioso.html";
		} else if(1==opt){
			url = "pacotes/vercultural.html";
		} else if(3==opt){
			url = "pacotes/verfolclorico.html";
		}

	
	} else if("show"==tipo){
		
		url="";
		
		if("madonna.html"==arg){
			url="pacotes/" + arg;
		}
		soshow = 1;
		
	}
	
	if(soshow){
		var height = 519;
		var width = 700;
		var meuLeft =(screen.width - width)/2;
		var meuTop =20;
		var windowFoto = window.open(url, "Shows", "menubar = no, toolbar = no, locationbar = no, scrollbars = no, directories = no, resizable = no, status = no, personalbar = no, width = " + width + ", height = " + height + ", left = " + meuLeft + ", top = " + meuTop);
		windowFoto.focus();
	} else {
		var height = 800;
		var width = 530;
		var meuLeft =(screen.width - width)/2;
		var meuTop =20;
		var windowFoto = window.open(url, "Pacotes", "menubar = no, toolbar = no, locationbar = no, scrollbars = yes, directories = no, resizable = no, status = no, personalbar = no, width = " + width + ", height = " + height + ", left = " + meuLeft + ", top = " + meuTop);
		windowFoto.focus();
	}
}

function fnLogin(){
	var url = "http://www.viajeviva.com.br/RESERVAS/";
	var height = screen.height;
	var width = screen.width;
	var meuLeft = 0;
	var meuTop = 0;
	var windowFoto = window.open(url, "Reservas", "menubar = no, toolbar = no, locationbar = no, scrollbars = yes, directories = no, resizable = no, status = no, personalbar = no, width = " + width + ", height = " + height + ", left = " + meuLeft + ", top = " + meuTop);
	windowFoto.focus();
}

function fnTarifaAcordo(){
	var url = "http://www.viajeviva.com.br/RESERVAS/tarifa_acordo.asp";
	var height = screen.height;
	var width = screen.width;
	var meuLeft = 0;
	var meuTop = 0;
	var windowFoto = window.open(url, "Reservas", "menubar = no, toolbar = no, locationbar = no, scrollbars = yes, directories = no, resizable = no, status = no, personalbar = no, width = " + width + ", height = " + height + ", left = " + meuLeft + ", top = " + meuTop);
	windowFoto.focus();
}