var $j = jQuery.noConflict();

$j(function(){

    // Sfrutto il plugin "Read More Right Here" per espandere il post
    $j(".post_espandi").click(function(){
      $j("a[href^='"+$j(this).attr("rel")+"']").click();
      return false;
    });

    // Slider dei post più letti
    $j("#slider").easySlider({
            auto: true,
            continuous: true,
            pause:10000
    });



    $curtainopen = false;

    $j(".rope").click(function(){
        $j(this).blur();
        if ($curtainopen == false){
            $j(this).stop().animate({top: '0px' }, {queue:false, duration:350, easing:'easeOutBounce'});
            $j(".followme").stop().animate({height:'272px'}, {queue:false, duration:2000, easing:'easeInOutBounce'} );
            $j(".followme a").stop().animate({height:'50px'},2000 );
            $curtainopen = true;
        }else{
            $j(this).stop().animate({top: '-40px' }, {queue:false, duration:350, easing:'easeOutBounce'});
            $j(".followme").stop().animate({height:'0px'}, {queue:false, duration:2000, easing:'easeInOutBack'} );
            $j(".followme a").stop().animate({height:'0px'},2000 );
            $curtainopen = false;
        }
        return false;
    });


});

