
// timeouts per slide (in seconds) 
var timeouts = [3,3,30,3]; 
function calculateTimeout(currElement, nextElement, opts, isForward) { 
    var index = opts.currSlide; 
    return timeouts[index] * 1000; 	}

	

/***************************************************
		CAROUSEL
***************************************************/
function mycarousel_initCallback(carousel) {
    jQuery('.carousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

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

jQuery(document).ready(function() {
    jQuery(".carousel").jcarousel({
        scroll: 1,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});

 

/***************************************************
		IMAGE ZOOM
***************************************************/
$(document).ready(function() {
	$("a.zoom img").mouseover(function(){
		$(this).stop(true,true);
		$(this).fadeTo(300, 0.6);
	});
	
	$("a.zoom img").mouseout(function(){
		$(this).fadeTo(400, 1.0);
	});

});

/***************************************************
		PRETTYPHOTO
***************************************************/

$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'light_square',autoplay_slideshow: false});
});


$(document).ready(function(){
     <!-- lightbox itialize script -->
 		$(function() {
		   $('a.lightbox').lightBox();
		});
     //Initiate Featured Content Slider  
    $('#slider') .cycle({ 
        fx: 'fade', 
        pager:  '#slider-nav' ,
        speed:  700, 
        pause: true ,
        prev:    '#prev',
        next:    '#next'
    });
	
	 
  
	});
    
	
	$(document).ready(function(){
	/* initialise the slideshow when the DOM is ready */ 
	
 
	
	/* Navigation */
 
	$( "#navigation ul li:first" ).before( "<li class='sub-top'></li>" );
	$( "#navigation ul li:last" ).after( "<li class='sub-bottom'></li>" );
	
//	jQuery("#navigation ul").css({display: "none"}); // Opera Fix

	jQuery("#navigation li").hover(function() {
		jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400,"easeInOutQuart");
	}, function() {
		jQuery(this).find('ul:first').css({visibility: "hidden"});
	}); 
	
	 
 
});

