$.easing.bouncy = function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	}


$(document).ready(function () {
	$('div.scrollable').scrollable({
	size: 1,
	clickable:false,
	easing:'bouncy',
	speed: 400
	}).circular();
	$('#carousel a').removeClass('hide');
	$('div.entry-nested').removeClass('entry-nested-open');
	$('.associates img[title]').tooltip({ 
    /* tooltip configuration goes here */ 
 	tip: '#associatesTip',
    position: 'top right', 
	offset: [5, -5], 
	effect: 'fade',
    opacity: 0.9, 
});
	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("slow");
		return false;
	
	});	
	
	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("slow");	
		return false;
	});		
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
	});	
	
	$('div.post-image').hover(function(){
	$('.entry-nested', this).stop().animate({left:'0px'},{queue:false,duration:360});
	},
	function(){
		$('.entry-nested', this).stop().animate({left:'-150px'},{queue:false,duration:100});
	});
	  
	  
	  $('div.block').hover(function(){
	  $('.entry-vertical-nested', this).stop().animate({top:'65px'},{queue:false,duration:360});
	},
	function(){
		$('.entry-vertical-nested', this).stop().animate({top:'150px'},{queue:false,duration:100});
	});
	
	
	  
});

