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"; 
 } 
} 
window.onload = externalLinks;

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-12456290-3']);
  _gaq.push(['_setDomainName', '.jcsl.nl']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  
  //<![CDATA[ 



$(document).ready(function() {

	/* This is basic - uses default settings */
	
	$("a#single_image").fancybox();
	
	/* Using custom settings */
	
	$("a.inline").fancybox({
		'hideOnContentClick': true,
		'frameheight': 1000 
	});

	/* Apply fancybox to multiple items */
	
	$("a.group").fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
	$( '#rdmfoto a' ).fancybox({ 
            'centerOnScroll': true, 
            'easingIn': 'easeOutBack', 
            'easingOut': 'easeInBack', 
            'overlayOpacity': 0.7, 
            'padding': 1, 
            'speedIn': 600, 
            'speedOut': 500, 
            'transitionIn': 'fade', 
            'transitionOut': 'fade' 
        });
		
		$( 'a[rel^=lightbox]' ).fancybox({ 
            'centerOnScroll': true, 
            'easingIn': 'easeOutBack', 
            'easingOut': 'easeInBack', 
            'overlayOpacity': 0.7, 
            'padding': 1, 
            'speedIn': 600, 
            'speedOut': 500, 
            'transitionIn': 'fade', 
            'transitionOut': 'fade' 
        });
	
});

//]]> 
