      //Menu Vertical
	$(document).ready(function() {
		$('a.nudge').hover(function() { //mouse in
			$(this).animate({ paddingLeft: '35px' }, 400);
		} , function() { //mouse out
			$(this).animate({ paddingLeft: '10px' }, 400);
		});
		/* popup contacto*/
		centerPopup();
		//cerrar el popup
		$("#map_close").click(function(){
			$("#the_lights").fadeTo("slow",0, function() { $(this).css('display', 'none'); } );
			disablePopup();
		});
		//evento scape
		$(document).keypress(function(e){
			if(e.keyCode==27 && popupStatus==1){
				$("#map_close").click();
				disablePopup();
			}
		});
		//the lights
  	/*	$("#the_lights").fadeTo(1,0);
  		$("#turnoff").click(function () {
    			$("#the_lights").css({'display' : 'block'});
   			$("#the_lights").fadeTo("slow",1);
  		});
  		$("#soft").click(function () {
    			document.getElementById("the_lights").style.display="block";
    			$("#the_lights").fadeTo("slow",0.8);
  		});
  		$("#turnon").click(function () {
    			document.getElementById("the_lights").style.display="block";
   		 	$("#the_lights").fadeTo("slow",0);
  		});*/
		  		
                $('#ddorigen').sSelect({spanID : '#dd-origen' });
                $('#dddestino').sSelect({spanID : '#dd-destino' });

                $('#mydropdown3').sSelect();
		
                //set max height
                $('#my-dropdownCountries').sSelect({ddMaxHeight: '300px'});
		
                //set value on click
                $('#setVal').click(function(){
                    $('#my-dropdown5').getSetSSValue('4');
                });

                //get value on click
                $('#getVal').click(function(){
                    alert('The value is: '+$('#my-dropdown5').getSetSSValue());
                });

                //alert change event
                $('#my-dropdownChange').sSelect().change(function(){alert('changed')});

                //add options to select and update
                $('#addOptions').click(function(){
                    $('#my-dropdown6').append('<option value="newOpt">New Option</option>').resetSS();
                });
				
		//cargamos el header swf español
		jQuery('#header').flash({
            	swf: '/swfs/header.swf',
            	width: 1000,
            	height: 240,
            	params: {wmode: 'transparent'}
          	});	
          	
		//cargamos el header swf español
		jQuery('#header_en').flash({
            	swf: '/en/swfs/header_usa.swf',
            	width: 1000,
            	height: 240,
            	params: {wmode: 'transparent'}
          	});      
		//cargamos el mapa swf español
		jQuery('#mapa').flash({
            	swf: '/swfs/mapa_vuelos.swf',
            	width: 540,
            	height: 502,
            	params: {wmode: 'transparent'}
          	});	
		//cargamos el mapa swf ingles
		jQuery('#mapa_en').flash({
            	swf: '/swfs/mapa_vuelos_usa.swf',
            	width: 540,
            	height: 502,
            	params: {wmode: 'transparent'}
          	});		        	
	//Imagenes Destinos
		//Guerrero Negro
         	$('#tran_gn').transition({
            	duration : 4000,
            	images : ['/images/destinos/gn1.png', '/images/destinos/gn2.png', '/images/destinos/gn3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});
         	
		//Cd Constitucion
         	$('#tran_cc').transition({
            	duration : 4000,
            	images : ['/images/destinos/cc1.png', '/images/destinos/cc2.png', '/images/destinos/cc3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});
         	
            //Cd Obregon
         	$('#tran_ob').transition({
            	duration : 4000,
            	images : ['/images/destinos/ob1.png', '/images/destinos/ob2.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});
         	
            //Culiacan
         	$('#tran_cl').transition({
            	duration : 4000,
            	images : ['/images/destinos/cl1.png', '/images/destinos/cl2.png', '/images/destinos/cl3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});   
               
            //Ensenada
         	$('#tran_en').transition({
            	duration : 4000,
            	images : ['/images/destinos/en1.png', '/images/destinos/en2.png', '/images/destinos/en3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});               
               
            //Guaymas
         	$('#tran_gu').transition({
            	duration : 4000,
            	images : ['/images/destinos/gu1.png', '/images/destinos/gu2.png', '/images/destinos/gu3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});           
               
            //Hermosillo
         	$('#tran_hr').transition({
            	duration : 4000,
            	images : ['/images/destinos/hr1.png', '/images/destinos/hr2.png', '/images/destinos/hr3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});    
               
            //Isla de Cedros
         	$('#tran_is').transition({
            	duration : 4000,
            	images : ['/images/destinos/is1.png', '/images/destinos/is2.png', '/images/destinos/is3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});    
         	
            //Loreto
         	$('#tran_lo').transition({
            	duration : 4000,
            	images : ['/images/destinos/lo1.png', '/images/destinos/lo2.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});  
               
            //Los Cabos
         	$('#tran_lc').transition({
            	duration : 4000,
            	images : ['/images/destinos/lc1.png', '/images/destinos/lc2.png', '/images/destinos/lc3.png', '/images/destinos/lc4.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});        
               
            //Los Mochis
         	$('#tran_lm').transition({
            	duration : 4000,
            	images : ['/images/destinos/lm1.png', '/images/destinos/lm2.png', '/images/destinos/lm3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});         
               
            //Mazatlán
         	$('#tran_mz').transition({
            	duration : 4000,
            	images : ['/images/destinos/mz1.png', '/images/destinos/mz2.png', '/images/destinos/mz3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});  
               
            //Santa Rosalía
         	$('#tran_sr').transition({
            	duration : 4000,
            	images : ['/images/destinos/sr1.png', '/images/destinos/sr2.png', '/images/destinos/sr3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});              	
		        
            //La Paz
         	$('#tran_lp').transition({
            	duration : 4000,
            	images : ['/images/destinos/lp1.png', '/images/destinos/lp2.png', '/images/destinos/lp3.png'],
            	type : 'fade' // make this fade, tinker, or leave blank as you prefer
         	});  		   	                                                            	
      });
      
       