/* Author: 

*/


	  // When the document loads do everything inside here ...
	  $(document).ready(function(){

		// When a link is clicked
		$("a.tab").click(function () {

			// switch all tabs off
			$(".active").removeClass("active");

			// switch this tab on
			$(this).addClass("active");

			// slide all elements with the class 'content' up
			$(".contentT").hide();

			// Now figure out what the 'title' attribute value is and find the element with that id.  Then slide that down.
			var content_show = $(this).attr("title");
			$("#"+content_show).fadeIn();

		});

	  });
	  
	  
//Quicksand

  /*$(function() {
    $('#dine-options a.button').click(function(e) {
      $.get( $(this).attr('href'), function(data) {
          $('.dining').quicksand( $(data).find('li article'), 
            {
              adjustHeight: 'dynamic',
              attribute: function(v) {
                return $(v).find('article').attr('src');
              }
            } );
      });  
      e.preventDefault();  
    });
  });*/
  
$	(function() {
    $('#dine-options a.button').click(function(e) {
      $.get( $(this).attr('href'), function(data) {
          $('.dining').quicksand( $(data).find('li'), { adjustHeight: 'dynamic' } );
      });  
      e.preventDefault();  
    });
  });
  
  
$(document).ready(function () {	
	
	$('#nav li').hover(
		function () {
			//show its submenu
			$('ul', this).fadeIn(100);

		}, 
		function () {
			//hide its submenu
			$('ul', this).fadeOut(400);			
		}
	);
	
	
	
});


//Carou Slide

			$(document).ready(function(){
				$(".s1").CarouSlide({
					animTime:1500
				});
				$(".s2").CarouSlide({
					animType:"slide",
					showBackNext:true
				});
				$(".s3").CarouSlide({

					animInfinity:true,
					showSlideNav:true,
					autoAnim:true,
					animTime:1200,
					slideTime:5000
				});
				$(".s4").CarouSlide({
					animType:"slide",
					animTime:500,
					alwaysNext:true
				});
				$(".s5").CarouSlide({
					animType:"none",
					hoverLinks: true,
					showBackNext: true
				});
			});


