$(document).ready(function() {

	$('#event11code').cycle({fx: 'fade',speed:1000,timeout: 1});
	
	$('#loop').cycle({
	       fx:     'fade',
	       speed:  2000,
	       timeout: 4000,
	       pager:  '#menu',
	       random: 1,
	       pagerAnchorBuilder: function(idx, slide) {} 
	 });
	 
	$("#publishedcontent a.leesmeer").append(" <span>&raquo;</span>");
	 
	// ext links
	$('#publishedcontent a:not(.leesmeer,.aveq)').filter(function() {
	   return this.hostname && this.hostname !== location.hostname;
	}).addClass("extlink").attr("Title","Externe link, opent in een nieuw venster").attr("target","_blank");
	 
	$('#fotoviewer').after("<div id='nav'>").cycle({
	       fx:     'fade',
	       speed:  1000,
	       timeout: 4000,
	       pager:  '#nav',
	       pagerAnchorBuilder: function(idx, slide) {
		        return '<a href="#" style="background-image: url(\'' + $(slide).attr('relImg') + '\')"></a>'; 
		   }
	});
	
	$("#nav a:last").addClass("last");
	
	$("#mainmenu").css({display: 'none'});
	$("#innerFooter").prepend('<ul>'+$("#mainmenu").html()+'</ul>');

	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 10, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: true, /* true/false */
		theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
		hideflash: false /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
	});
	
	$("#publishedcontent table td").hide();
	
	$("#publishedcontent table th").mouseover(function() {
		$(this).addClass("hover");
	}).mouseleave(function() {
		$(this).removeClass("hover");	
	}).click(function() {
		$('#publishedcontent table td').toggle();
	});

});

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