function mycarousel_initCallback(carousel) {
    jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });

    jQuery('.jcarousel-control a').bind('click', function() {
		carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });

};

Cufon.replace('.image-holder h2' , { textShadow: '-1px -1px rgba(37, 26, 74, 0.6)'});

jQuery(document).ready(function()
{
	jQuery('#mycarousel').jcarousel({
        wrap: "both",
        scroll: 1,
        initCallback: mycarousel_initCallback,
        buttonNextHTML: null,
        buttonPrevHTML: null

    });
    
    jQuery('#another-carousel').jcarousel({
        wrap: "both",
        scroll: 1
    });
	
    $('#nav li').hover(
    	function(){ $(this).find('.sub-nav').fadeIn(); },
		function(){ $(this).find('.sub-nav').hide();  }
    );

	$("a[rel^='prettyPhoto']").prettyPhoto({ 
		theme: 'dark_rounded',
		autoplay: true
	
	});
});


      


