	/* <![CDATA[ */		
	$(document).ready(function(){
		// Embed site logo			 
		$("#header_logo").flash({	src: 'swf/logonieuw.swf',
										width: 1000,
										height: 80,
										wmode: "transparent",
										menu: "false"
									});						
		$(".tablesorter").tablesorter();
				
		$('a[href*=youtube.com]').flash(
			{ height: 370, width: 450 },
			{ version: 8 },
			function(htmlOptions) {
				$this = $(this);
				htmlOptions.src = $this.attr('href');
				$this.before($.fn.flash.transform(htmlOptions));	
				$(this).remove();
			}				
		);
		
		$("a.embedflash").click(function(e){
			 e.preventDefault();											 
			 flash_url = $(this).attr("href");
			 
			 //target_div = 
			 flashcontainer = $(this).parent().parent().parent().find("div.flashcontainer");
			 
			 flashcontainer_class = $(flashcontainer).attr("class");
			 
			 $(flashcontainer).show("fast", function() {
					 // Only embed if we didn't do it already!
					 if (flashcontainer_class.indexOf("flash-replaced") == -1)
					 {
						 container_width = $(flashcontainer).width();
						 $(flashcontainer).flash({	src: flash_url,
													width: container_width,
													height: 600,
													menu: true});
						 close_link_html = "<span class='script_link'>Close</span>";
						 $(flashcontainer).prepend(close_link_html);
						 $(flashcontainer).find("span.script_link").click(function(){
											$(this).parent().hide("fast");
														 });
					 }
			 });											
		});
		
		// Convert links if applicable
		$("a[rel='new_window']").attr("target", "_blank");
		$("a[rel='new_window']").attr("title", function () {
											if (this.title != "")
											{
												return this.title+" (opens in new window)";
											} else {
												return "New window";
											}
									});
		
		// Floating menu stuff
		var menuYloc = parseInt($("#left_menu_wrapper").css("top").substring(0,$("#left_menu_wrapper").css("top").indexOf("px")));
		// Add listener to window for checking scrolling and moving the menu
		$(window).scroll(function () {
			if ($(document).scrollTop() > 80) 
			{
				var offset = menuYloc - 100 + $(document).scrollTop()+"px"; // This makes sure the menu is closer to the top of the window if the siteheader isn't visible anymore
			} else {
				var offset = menuYloc;	
			}	
			$("#left_menu_wrapper").animate({top:offset},{duration:600,queue:false});			
		});    
		
		// Convert first letter of all h3's to images, except for IE (in which the images dont show)
		if(!$.browser.msie)
		{
			$("h3").each(function(){
								  //alert($(this).html());
								  var h3Yloc = $(this).position();
								  title = $(this).html();
								  first_letter = title.substr(0,1);
								  img_html = "<img src='i/Letter-"+first_letter+"-icon.png' width='48' height='48' class='title_firstletter' alt='"+first_letter+"' />";
								  $(img_html).insertBefore($(this));
								  $(this).html(title.substr(1));									  
								  });
		} else {
			$("h3").css("padding-left", "0.4em");
			$("h3").css("letter-spacing", "0.1em");
		}
	/* ]]> */
});
