/**
 * @author guidoslotboom
 */

jQuery(document).ready(function($){
	
	// Tab plugin met fade-in animatie
	
	  // set up the options to be used for jqDock...
	  var dockOptions =
	    { align: 'bottom' // horizontal menu, with expansion UP/DOWN from the middle
	    , size: 80  // set the maximum minor axis (horizontal) image dimension to 36px
	    , fadeIn: 500 // fade in over 0.5 seconds
	    , duration: 175
		, distance: 100
	    };
	  // ...and apply...
	  $('#dock').jqDock(dockOptions);
	  
	  $.swapImage(".hoverImg");
	  
	  jQuery(".tab:not(:first)").hide();

	//to fix u know who
	jQuery(".tab:first").show();
	
	jQuery(".tabs a").click(function(){
		stringref = jQuery(this).attr("href").split('#')[1];

		jQuery('.tab:not(#'+stringref+')').hide();

		if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") {
			jQuery('.tab#' + stringref).show();
		}
		else 
			jQuery('.tab#' + stringref).fadeIn();
		
		return false;
	});
	
	// Tab plugin zonder fade-in animatie
		var tabContainers = $('div.tab_content > div');
		tabContainers.hide().filter(':first').show();
		
		$('div.tab_buttons a').click(function () {
			tabContainers.hide();
			tabContainers.filter(this.hash).show();
			$('div.tab_buttons a').removeClass('selected');
			$(this).addClass('selected');
			return false;
		});

	  
});
