
var $j = jQuery.noConflict();

$j(function(){

    $j("#sidebar ul li ul li a").hover(function(){
    	$j(this).stop().animate({
    		paddingLeft: 20,
    	}, 400);
    }, function() {
    	$j(this).stop().animate({
    		paddingLeft: 0
    	}, 400);
    });

});

	
var $j = jQuery.noConflict();	
	$j(document).ready(function() {
	// create custom animation algorithm for jQuery called "bouncy"
$j.easing.bouncy = function (x, t, b, c, d) {
    var s = 1.70158;
    if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
    return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}

// create custom tooltip effect for jQuery Tooltip
$j.tools.tooltip.addEffect("bouncy",

	// opening animation
	function(done) {
		this.getTip().animate({top: '+=15'}, 200, 'bouncy', done).show();
	},

	// closing animation
	function(done) {
		this.getTip().animate({top: '-=15'}, 400, 'bouncy', function()  {
			$j(this).hide();
			done.call();
		});
	}
);

$j(".tool img[title]").tooltip({effect: 'bouncy'});


});


