jQuery(document).ready(function($){
	
		//Caption Sliding (Partially Hidden to Visible)
		$('.boxgrid.captionfull').hover(function(){
			 $(".cover", this).stop().animate({top:'80px'},{queue:false,duration:160});
		}, function() {
			$(".cover", this).stop().animate({top:'150px'},{queue:false,duration:160});
		});
		
    	/*$(function(){
        	$("div.carousel").carousel(
        		{ 	
        			effect: "fade",
        			autoSlide: true, 
        			autoSlideInterval: 5000,
        			animSpeed: "slow"
				}
        	);
    	});*/
    	
    	//$(".list_wrap").hide();
    	
    	$(".list_head").click(function () {
			if ($(this).next().is(":visible")) {
				$(this).next().slideUp("slow");
			}
			else {
				$(this).next().slideDown("slow");
			}
      		return false;
		});
		
		
		/*$("#slider").easySlider({
			auto: true,
			continuous: true,
			nextId: "slider1next",
			prevId: "slider1prev"
		});*/
		
		$("#home_pic").easySlider({ 
			auto: true,
			speed: 2500,
			continuous: true,
			controlsShow: false,
			numeric: false
		});		

		$("#control").easySlider({ 
			numericId: "controls1",
			numeric: true
		});
		
		$("#perf_a").easySlider({ 
				numericId: "controls2",
				numeric: true
		});
		$("#perf_b").easySlider({ 
				numericId: "controls3",
				numeric: true
		});
		$("#perf_c").easySlider({ 
				numericId: "controls4",
				numeric: true
		});
		$("#perf_d").easySlider({ 
				numericId: "controls5",
				numeric: true
		});
		
		$("#roomtabs").tabs();
		
		
		
		jQuery.fn.idle = function(time){
			var i = $(this);
			i.queue(function(){
				setTimeout(function(){
				i.dequeue();
				}, time);
			});
		};
		//$('#leftsidebar li').hide();
		
		/*$('#leftsidebar li').css('margin-left','-10000px');
		$('#leftsidebar li').each(function(){
			//$(this).animate({ "width": 'show' }, "slow");  
			//$(this).animate({"width": 'show'}, {duration: 1000, queue: "global"});
			$(this).animate({marginLeft: '0'}, {duration: 500, queue: "global"});
		});*/
		
		$('#leftsidebar li span').hide();
		
		$('#leftsidebar li span').each(function(){
			//$(this).animate({ "width": 'show' }, "slow");  
			//$(this).animate({"width": 'show'}, {duration: 200, queue: "global"});
			$(this).fadeIn({duration: 350, queue: "global"});
		});
		
		
		/*$('.page-item-17').animate({"width": 'show'}, {duration: 1000, queue: "global"}); 
		$('.page-item-15').animate({"width": 'show'}, {duration: 1000, queue: "global"});
		$('.page-item-13').animate({"width": 'show'}, {duration: 1000, queue: "global"});*/
});