// JavaScript Document
function startmenu(){
	menu0.style.display = "none";
	menu1.style.display = "none";
	menu2.style.display = "none";
	menu3.style.display = "none";
	menu4.style.display = "none";
}

function menu0func(){
	if(menu0.style.display != "block"){
		startmenu();
		menu0.style.display = "block";
	}else{
		startmenu();
	}
}

function menu1func(){
	if(menu1.style.display != "block"){
		startmenu();
		menu1.style.display = "block";
	}else{
		startmenu();
	}
}

function menu2func(){
	if(menu2.style.display != "block"){
		startmenu();
		menu2.style.display = "block";
	}else{
		startmenu();
	}
}

function menu3func(){
	if(menu3.style.display != "block"){
		startmenu();
		menu3.style.display = "block";
	}else{
		startmenu();
	}
}

function menu4func(){
	if(menu4.style.display != "block"){
		startmenu();
		menu4.style.display = "block";
	}else{
		startmenu();
	}
}

//FUNÇÕES OPÇÕES DE CURSOS

function fechar(){
	cursos.style.display = "none";
	data.style.display = "none";
	pgto.style.display = "none";
}

function menuCursos(){
	if(cursos.style.display != "block"){
		fechar();
		cursos.style.display = "block";
	}else{
		fechar();
	}
}

function menuData(){
	if(data.style.display != "block"){
		fechar();
		data.style.display = "block";
	}else{
		fechar();
	}
}

function menuPgto(){
	if(pgto.style.display != "block"){
		fechar();
		pgto.style.display = "block";
	}else{
		fechar();
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function limpar(){

	webmail.f_user.value = "";
	webmail.f_pass.value = "";

}

function janela(foto,largura,altura){
	msg=open('','','resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,maximized=yes,copyhistory=no,width='+largura+',height='+altura);
	msg.document.open();
	msg.document.write("<html>");
	msg.document.write("<head><title>.: VipTour :.</title></head>");
	msg.document.write("<body bgcolor='#ffffff' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' onBlur='window.close()'>");
	msg.document.write("<img src=\""+foto+"\" width=\""+largura+"\" height=\""+altura+"\">");
	msg.document.write("</body>");
	msg.document.write("</html>");
	msg.window.focus();
}

//chamar lightbox
function showFoto(src){

    //criando um link falso, para o LightBox captar as informações
    var a_false = document.createElement("A");
    a_false.rel = "lightbox";
    a_false.href = src;
    //chamando a função do lightbox responsável pelo início das ações
    myLightbox.start(a_false);
    //anulando o link
    a_false = null;
	//rel="lightbox[roadtrip]"

}