jQuery(function() {
	$ = jQuery;
	// setup ul.tabs to work as tabs for each div directly under div.panes
	if($(".slidenav ul").size()) {
		$(".slidenav ul").tabs(".slide", {
	    
		    // enable "cross-fading" effect
		    effect: 'fade',
		    fadeOutSpeed: 2000,
		    fadeInSpeed: 2000,
		    interval:4000,
	    
		    // start from the beginning after the last tab
		    rotate: true,
		    event:'mouseover'
	    
		    // use the slideshow plugin. It accepts its own configuration
		}).slideshow();
		$(".slidenav ul").data("slideshow").play();
		
	}
	
	$("#switch-contentnav").click(function() {
		$("#contentnav-content").slideToggle();
	});
});
