// JavaScript Document
jQuery(document).ready(function() {
	
		jQuery('#mycarousel').jcarousel({
			// Configuration goes here
		});
		
	/*
	$("#mycarousel").find("img").css("cursor","pointer");
	$("#mycarousel").find("img").click(function () {
		$("#overview_image").attr("src", $(this).attr("large_src") );
	});
	*/
			
		
		
 	/** load lightbox **/
	  var lightbox_object =  $('a[rel="lightbox"]').lightBox({
		imageBlank: '/resources/images/lightbox-blank.gif',
		imageLoading: '/resources/images/lightbox-ico-loading.gif',
		imageBtnClose: '/resources/images/lightbox-btn-close.gif',
		imageBtnPrev: '/resources/images/lightbox-btn-prev.gif',
		imageBtnNext: '/resources/images/lightbox-btn-next.gif',
		fixedNavigation:true
	   });   		
		
    /**
     * SHOW VIDEO HANDLER
     *
     * Author: waldemarm
     **/
    $('#showYachtVideoTab').click(function(e){
        e.preventDefault();
        e.stopPropagation();
		
        /** create highslide object **/
        hs.htmlExpand(this, {
			preserveContent: false, //disable iframe content caching
            objectType: 'iframe',
            width: 645,
            objectHeight: 510,
            objectLoadTime: 'after',
            allowWidthReduction: 1,
            showCredits: false,
            dimmingOpacity: 0.70,
            align: 'center'
			
        }
        );
    });		
		
});
