// JavaScript Document



function mycarousel_initCallback(carousel) { 
    $('#buttonSliderRight').click(function() {
        carousel.next();
        return false;
    });
 
    $('#buttonSlideLeft').click(function() {
        carousel.prev();
        return false;
    });
		
	if(carousel.size() > 1){
		$('#buttonSliderRight, #buttonSlideLeft').css({"display":"block"});
	}
};

function mycarousel_initCallbackRight(carousel) { 
    $('#rightGalleryNext').click(function() {
        carousel.next();
        return false;
    });
 
    $('#rightGalleryPrev').click(function() {
        carousel.prev();
        return false;
    });
		
	if(carousel.size() > 3){
		$('#rightGalleryNext, #rightGalleryPrev').css({"display":"block"});
	}
};

$(document).ready(function () {

    $("#galleryContainer").jcarousel({
        scroll: 1,
        wrap: 'both',
        auto: 2,
        animation: 600,
        initCallback: mycarousel_initCallback,
        buttonNextHTML: null,
        buttonPrevHTML: null
    });

    $("#galleryRightContainer").jcarousel({
        scroll: 3,
        vertical: true,
        wrap: 'both',
        //auto: 5,
        animation: 600,
        initCallback: mycarousel_initCallbackRight,
        buttonNextHTML: null,
        buttonPrevHTML: null
    });



    $("a.fancylink").fancybox({
        'speedIn': 300,
        'speedOut': 300,
        'overlayShow': true,
        'overlayOpacity': 0.7,
        'overlayColor': '#000000',
        'padding': 2,
        'centerOnScroll': true
    });

    $("a.booking").fancybox({
        'hideOnContentClick': false,
        'overlayShow': true,
        'overlayColor': '#000',
        'overlayOpacity': 0.8,
        'width': 500,
        'height': 550
    });




});
