(function($) {
			$(document).ready(function() {
				
				
				$('#clouds').pan({fps: 30, speed: 0.7, dir: 'left', depth: 10});
				$('#sol').pan({fps: 30, speed: 0.1, dir: 'left', depth: 40});
				
				window.page = {
					hide_panels: function() {
						$('.panel').hide(300);
					},
					show_panel: function(el_id) {
						this.hide_panels();
						$(el_id).show(300);
					}
				}
					
		$('#parallax').jparallax({triggerExposesEdges: true}).append();
		
		
		
		
		$('a.goto').click(function(){
		var ref=$(this).attr("href");
		 console.log(ref);
		$('#parallax').trigger("jparallax", [ref]);
		return false;
		});
			});
		})(jQuery);













function cambiar_pagina_club(){
				
//$("#contenido").ajaxStart(function(){$(this).fadeTo("slow", 0);});
//$.ajaxTimeout(5000);
$("#tab4").fadeOut("slow",function(){ 
$("#tab4").html("");
  cargar_club();
});
}
function cargar_club(){
$("#tab4").load("paginas/instalaciones.php");
$("#tab4").ajaxStart(function(){ 
  $("#tab4").html("Cargando"); 
});

$("#tab4").fadeIn("slow",function(){ 
  //$("#contenido").load("contenido.php?contenido="+c);
});

}
