			$(document).ready(function(){
			$(".content").jCarouselLite({
    			easing: "easeInOutExpo",
    			speed: 400,	
    			visible: 1,
    			btnGo:
    			[".m-slider .home", ".m-slider .about",
    			".m-slider .services", ".m-slider .faqs",
    			".m-slider .reserve"]
			});	
			$('img.slidemaximage').maxImage({
				isBackground: true,
				slideShow: true,
				position: 'absolute',
				verticalAlign: 'bottom',
				slideShowTitle: false,
				maxFollows: 'both',
				resizeMsg: {show: false}
			});		
			
			$("#about-m").css({
				opacity: 0.5
			});
			$("#services-m").css({
				opacity: 0.5
			});
			$("#faqs-m").css({
				opacity: 0.5
			});	
			$("#reserve-m").css({
				opacity: 0.5
			});
			$("#location-m").css({
				opacity: 0.5
			});				


		
			$(".menu div.button").click(function(){													
			
				$clicked = $(this);				
				// if the button is not already "transformed" AND is not animated
				if ($clicked.css("opacity") != "1" && $clicked.is(":not(animated)")) {					
					$clicked.animate({
						opacity: 1
					}, 600 );
				}				
				//we reset the other buttons to default style
				$clicked.siblings(".button").animate({
					opacity: 0.5
				}, 600 );				
			});
			Cufon.replace('h2');

});
$(function()
{
 	$("a.zoom1").fancybox({ 
				'overlayOpacity'	:	0.9,
				'overlayColor'		:	'#000',
				'frameWidth'		:	610,
				'frameHeight'		:	390
	}); 	
	$("a.zoom2").fancybox({ 
				'overlayOpacity'	:	0.9,
				'overlayColor'		:	'#000',
				'frameWidth'		:	600,
				'frameHeight'		:	280
	}); 
	
	$('.scroll-pane').jScrollPane({scrollbarWidth:4, scrollbarMargin:10});
	thirtyeightSS();

});

	function thirtyeightSS() {
	
		// Hover
		$('#network').find('a').hover(thirtyeightSSExpand,thirtyeightSSContract);
		
	}
			
	function thirtyeightSSExpand() {
		// Stop current animation
		$(this).stop();
		// Get enlarged logo size
		$(this).addClass('hover');
		var largeWidth = $(this).width();
		$(this).removeClass('hover');
		// Animate			
		$(this).animate({
			width: largeWidth,
			backgroundPosition: '-42px 0px'
		});
	}
	
	function thirtyeightSSContract() {
		// Stop current animation
		$(this).stop();
		// Animate
		$(this).animate({
			width: '42px',
			backgroundPosition: '0px 0px'
		}, 400, function() {
			// Reset Styles
			$(this).removeAttr('style');
			$(this).removeClass('hover');
		});	
	}
