$(document).ready(function() { 
			
	/* Super Fish Navigation */
	jQuery('ul.sf-menu').superfish();
	
	/* Cufon Font Replacement */
	Cufon.replace('#navigation ul li, #page .title, #sidebar .box .title, .browse_entries a, #page .author h2, #page #comments h2, #page #reply h2', { fontFamily: 'League Gothic' });
	Cufon.replace('#entries h2, .quick_links h3, #entries .entry h3, #page .author h3', { fontFamily: 'OFL Sorts Mill Goudy' });

	// Activate PrettyPhoto Lightbox handle
	$("a[rel^='gallery']").prettyPhoto();
	
	// PNG Fix
	$(document).pngFix(); 	
	
	// Activate jCarousel
	function mycarousel_initCallback(carousel)
	{
    	// Disable autoscrolling if the user clicks the prev or next button.
    	carousel.buttonNext.bind('click', function() {
    	    carousel.startAuto(0);
    	});
		
    	carousel.buttonPrev.bind('click', function() {
    	    carousel.startAuto(0);
    	});
		
    	// Pause autoscrolling if the user moves with the cursor over the clip.
    	carousel.clip.hover(function() {
    	    carousel.stopAuto();
    	}, function() {
    	    carousel.startAuto();
    	});
	};


    	jQuery('#mycarousel').jcarousel({
    	    auto: 4,
    	    scroll: 2,
    	    wrap: 'last',
    	    animation: 'normal',
    	    initCallback: mycarousel_initCallback
    });

});


