
	$(function()
	{
		$('.scroll-panel').jScrollPane({dragMinHeight:62, dragMaxHeight:62, scrollbarWidth:9});   
	});
	
	$(function() {         
			
		// initialize scrollable  
		$("div#gallery1").scrollable({ autoplay: true, vertical:true, interval: 1000, loop: true, speed: 600, size:3, next:".nextPage1", prev:".prevPage1",

			onBeforeSeek: function() { 
				this.getItems().fadeTo(300, 0.8);         
			}, 

			onSeek: function() { 
			   this.getItems().fadeTo(300, 1); 
			} 
	
		});  
		
		// initialize scrollable  
		$("div#gallery2").scrollable({ autoplay: true, vertical:true, interval: 1000, loop: true, speed: 600, size:3, next:".nextPage2", prev:".prevPage2",

			onBeforeSeek: function() { 
				this.getItems().fadeTo(300, 0.8);         
			}, 

			onSeek: function() { 
			   this.getItems().fadeTo(300, 1); 
			} 
	
		});  
		
		// initialize scrollable  
		$("div#gallery3").scrollable({ autoplay: true, vertical:true, interval: 1000, loop: true, speed: 600, size:3, next:".nextPage3", prev:".prevPage3",

			onBeforeSeek: function() { 
				this.getItems().fadeTo(300, 0.8);         
			}, 

			onSeek: function() { 
			   this.getItems().fadeTo(300, 1); 
			} 
	
		});  		
		
		// initialize scrollable  
		$("div#gallery4").scrollable({ autoplay: true, vertical:true, interval: 1000, loop: true, speed: 600, size:3, next:".nextPage4", prev:".prevPage4",

			onBeforeSeek: function() { 
				this.getItems().fadeTo(300, 0.8);         
			}, 

			onSeek: function() { 
			   this.getItems().fadeTo(300, 1); 
			} 
	
		});  	
		
		// initialize scrollable  
		$("div#gallery5").scrollable({ autoplay: true, vertical:true, interval: 1000, loop: true, speed: 600, size:3, next:".nextPage5", prev:".prevPage5",

			onBeforeSeek: function() { 
				this.getItems().fadeTo(300, 0.8);         
			}, 

			onSeek: function() { 
			   this.getItems().fadeTo(300, 1); 
			} 
	
		});  	
		
		// initialize scrollable  
		$("div#gallery6").scrollable({ autoplay: true, vertical:true, interval: 1000, loop: true, speed: 600, size:3, next:".nextPage6", prev:".prevPage6",

			onBeforeSeek: function() { 
				this.getItems().fadeTo(300, 0.8);         
			}, 

			onSeek: function() { 
			   this.getItems().fadeTo(300, 1); 
			} 
	
		});  		
		 
	}); 	

	$(function()
	{
		$("#section2 ul#extras2").tabs("div#section2 .panel-content > div", {effect: 'fade', fadeOutSpeed: 400});
		$("#section3 ul#extras3").tabs("div#section3 .panel-content > div", {effect: 'fade', fadeOutSpeed: 400});
		$("#section4 ul#extras4").tabs("div#section4 .panel-content > div", {effect: 'fade', fadeOutSpeed: 400});
		$("#section5 ul#extras5").tabs("div#section5 .panel-content > div", {effect: 'fade', fadeOutSpeed: 400});
		$("#section6 ul#extras6").tabs("div#section6 .panel-content > div", {effect: 'fade', fadeOutSpeed: 400});
		$("#section7 ul#extras7").tabs("div#section7 .panel-content > div", {effect: 'fade', fadeOutSpeed: 400});
		$("#slidenavigation").tabs("div#home .panel-content > div", {effect: 'fade', fadeOutSpeed: 400});
	});

	function mover(variable){     
	  $('#scroll').scrollTo( '#'+variable, 1500,  {axis:'x', easing:'easeInOutQuart'});
	  $("#hostsmenu").fadeOut("fast");
	}
	
	$(document).ready(function(){

		$("#btnwelcome").click(function(){
			 $("#welcome").fadeIn("slow");
			 $("#about").fadeOut("slow");
			 $("#faq").fadeOut("slow");
			 $("#contact").fadeOut("slow");
			 $('#scroll').scrollTo('#home', 1000,  {axis:'x', easing:'easeInOutQuart'});
		});
		
		$("#btnabout").click(function(){
			 $("#about").fadeIn("slow");
			 $("#welcome").fadeOut("slow");
			 $("#faq").fadeOut("slow");
			 $("#contact").fadeOut("slow");
			 $('#scroll').scrollTo('#home', 1000,  {axis:'x', easing:'easeInOutQuart'});
		});	
		
		$("#btnfaq").click(function(){
			 $("#faq").fadeIn("slow");
			 $("#welcome").fadeOut("slow");
			 $("#about").fadeOut("slow");
			 $("#contact").fadeOut("slow");
			 $('#scroll').scrollTo('#home', 1000,  {axis:'x', easing:'easeInOutQuart'});
		});		
		
		$("#btncontact").click(function(){
			 $("#contact").fadeIn("slow");
			 $("#welcome").fadeOut("slow");
			 $("#about").fadeOut("slow");
			 $("#faq").fadeOut("slow");
			 $('#scroll').scrollTo('#home', 1000,  {axis:'x', easing:'easeInOutQuart'});
		});	
		
		$("#btnhost").click(function(){
			 $("#hostsmenu").fadeIn("slow");
		});	
		
		$("#hostsmenu span").click(function(){
			 $("#hostsmenu").fadeOut("fast");
		});				
		
	});	

	$(function() { 
		$("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
	});	