jQuery(document).ready(function($) {	
								
	$("ul.mainnav").superfish({
		autoArrows		: false,              
		dropShadows		: true  
	});
						   
	$("#route").fancybox({
		width				: '80%',
		height				: '80%',
		centerOnScroll		: true,
        transitionIn		: 'elastic',
		transitionOut		: 'elastic',
		opacity				: true,
		type				: 'iframe'		
	});
	
	$("a.myfancybox").fancybox({ 
		transitionIn		: 'elastic', 
		transitionOut		: 'elastic', 
		overlayShow			: true	
	});
	
	
/*http://www.steamdev.com/imgr/*/	
$("img.size-medium,img.size-thumbnail,img.wp-post-image").imgr({
	radius:"8px"
});	
	

/*Bij het printen van de pagina worden de afbeeldingen die gekoppled zijn aan jquery.imgr niet geprint. Deze functie verwijdert de style informatie die jquery.imgr aan de afbeelding toevoegd*/
$(".print").click(function(){
	$('img.size-thumbnail').removeAttr('style');
	$('img.size-medium').removeAttr('style');
	window.print();
});
	
	
	$("div.blok").corner("round 8px");
	$("div.searchitem").corner("round 8px");
	$("div#sidebar-left").corner("round 8px");
	$("form#cformsform").corner("round 8px");
	$("input.sendbutton").corner("round 5px");		
	
	 // Reset Font Size
  var originalFontSize = $('html').css('font-size');
    $(".resetFont").click(function(){
    $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
    $('html').css('font-size', newFontSize);
    return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
    $('html').css('font-size', newFontSize);
    return false;
  });
	
		
});
	

