$(document).ready(function(){

	$('#gridlayout p').ThreeDots();  
					   
   	// home cyclers
	$('.Home .pics').cycle({
		fx:	 'fade',
		speed:  '900',
		timeout: 4000,
		pager:  '#nav',
		pagerAnchorBuilder: function(idx, slide) {
			return '#nav li:eq(' + (idx) + ') a';
		}
	});
	
	$('.Sitemap #publishedcontent ul ul>li>a').addClass('first');
	$('.Sitemap #publishedcontent ul ul>li li a').removeClass('first');
	
	 
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal',
		padding: 25,
		showTitle: false,
		allowresize: true,
		theme: 'light_rounded'
	});
	
	$('#sfeerboard ').cycle({
		fx:	 'fade',
		speed:  '1500',
		timeout: 5000
	});
	
		
	// overrule click
	$('#nav a').mouseover(function() {
	//	$(this).click();		
	});
	
	$('#nav a').click(function() {
		document.location.href = $(this).attr('href');
	});

	$('.Home #referenties #refs').cycle({
		fx:	 'fade',
		speed:  '900',
		timeout: 4000
	});	
   
	$('.Home #activiteitenpics img').hide();
	$('.Home #activiteitenpics img:first').show();
	
	$('.Home #activiteitennav li').mouseover(function() {
		var themouse = $(this).attr("rel");
		if ($('#'+themouse).is(":hidden")) {
			$('#activiteitenpics img').hide();
			$('#'+themouse).fadeIn();
		}
	 });
	
	// menu
	$('.subs').hide();
	$('.active .subs').show();
	
	$('table.colorrows td:odd').addClass('odd');
/*
	$('#menu').bind("mouseleave",function(){
		$('#menu li').each(function() {   
			if(!$(this).hasClass('active')) {
				$(this).find('.subs').slideUp();
			}	
		});
	});


	$('#menu .parent').hoverIntent(function() {
		var current = $(this).parent().html();
		$('#menu li').each(function() {   
			// slideUp all but the active + current
			var looper = $(this).html();
			//alert(looper);
			if(!$(this).hasClass('active') && (looper!=current) ) {
				$(this).find('.subs').slideUp();
			}	
		});
		$(this).parent().find('.subs').slideDown();
	  },function(){});
*/

	$('.twoCols #twoColFix').css('display','block');

});



/* Cache rendered in 0,24787 seconds. */
