/* font replace */
Cufon.set('fontFamily','Avenir');
Cufon('#search label, button, #aside h3, .supertitle, h1, .blog_comments h2');
Cufon('#main h2',{hover:true});
//Cufon('.prevnext a', { hover: true });

$(document).ready(function($) {
	
	$("input[type='text']").ghostText();
    
    $('#navigation > li').hover(
        function() { $(this).addClass('hover').find('div').show(); },
        function() { $(this).removeClass('hover').find('div').hide(); }
    );

    // initialize scrollable
    if ($(".scrollable")!=null)
    {
        // set a fixed width for the scrollable area
        var count = $(".scrollable>.items>div").size();
        var itemwidth = $(".scrollable").width();
        $(".scrollable>.items").width(count*itemwidth);
        // activate scrollable
        //alert('activating scrollable');
        $(".scrollable").scrollable({circular:true}).autoscroll({interval:6000,autoplay:true});
        //alert('end scrollable2');
    }
    
});

        
