/*JQUERY*/
$(document).ready(function(){

	$('#slideshow').show();
	
	$('#slideshow').cycle({ 
		fx					: 'fade', 
		speed				: 2500,
		pause				: 1
	});
	 
	$("a.inline").fancybox({
		'hideOnContentClick': true,
		'width'				: 550,
		'height'			: 400,
		'autoDimensions'    : false,
		'speedIn'			: 600, 
		'speedOut'			: 200,
		'padding'			: 30
	});
	
	$("a.myfancybox").fancybox({ 
		'zoomSpeedIn'		: 500,
		'zoomSpeedOut'		: 500, 
		'overlayShow'		:true	
	});
});


function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors .length; i++) {
	var anchor = anchors[i];
	if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
	anchor.target = "_blank";
	anchor.title = (anchor.title != "") ? anchor.title+" (opent in nieuw venster)" : "opent in nieuw venster";
	anchor.className = (anchor.className != '') ? anchor.className+' external' : 'external';
	}
	}
}

window.onload = externalLinks;
