$(document).ready(function () {

	$("#prijslijst-appartement tr:even, .autoverhuur tr:even, .excursies tr:even").addClass("alt");

/* ========================= @active-tab ========================= */
	$("#active_menu-nav").parent().addClass('active-tab');
	
/* ========================= @IE6 pngfix ========================= */	
	$(document).pngFix(); 

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


};

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

$('.jcarousel-control a').click(function() {
	$(this).addClass('active-carousel').siblings().removeClass('active-carousel');
});


/* ========================= @photo-albums ========================= */
function photoAlbum () {
	var clearQueue = false;
	var gotoEnd = false;
	
	$('.jquery-album li').hover(function () {										  
		$(this).find('a > img').stop(clearQueue, gotoEnd).fadeTo("300", 0.5);			
	}, function () {
		$(this).find('a > img').stop(clearQueue, gotoEnd).fadeTo("300", 1);		
	});
}


function IframeForm () {
	
	$('#componentbot').load(function(){
		$('#componentbot').contents().find('body').addClass('contentpane');
	});
	
}
IframeForm();

$('.photo-album a').lightBox();
photoAlbum();

	
});