$(document).ready(function(){	
		
	//Initiate hover images
	//when document loaded show the mouseover`s
	$("div.fadehover div.colorscale").show();
	$("div.fadehover div.colorscale div.desc").show();
	$("div.fadehover div.grayscale").hover(
		function() {
			$(this).stop().animate({"opacity": "0"}, "slow");
		},
		function() {
			$(this).stop().animate({"opacity": "1"}, "slow");
		});	 
	
	//Initiate carousels
	$('.carousel').jcarousel({
        visible: 1,
		scroll: 1,
		auto: 7,
		animation: 1000,
		wrap: 'circular',
		itemFallbackDimension: 990
    });		

	//Initiate lightbox voor images and IFrame
	$("a[rel=fancy_group]").fancybox({
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
		}
	});
	$("a.iframe").fancybox({
		'titlePosition'		: 'inside',
		'scrolling'			: 'no',
		'width' 			: 800,
		'height'			: 600
	});
	
	//Initiate defaultinput
	$('.input').defaultInputValue();
	
	//Initiate menu
	initmenu();

});
