$(document).ready(function(){
	$('#tabs').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });

	$('div#adSlider > div ,div#pubSlider > div').removeClass('sliderContainerJsOff').addClass('sliderContainerJsOn');
	$('div.sliderContainerJsOn').cycle({
		fx: 'fade',
		timeout: 2000
	});
	$('div.bigSlideContainerJsOff').removeClass('bigSlideContainerJsOff').addClass('bigSlideContainerJsOn');
	$('div.bigSlideContainerJsOn').cycle({
		fx:    'fade', 
    	delay: -2000,
    	pause: 1 
	});
	
	$('div.graphContainerJsOff').removeClass('graphContainerJsOff').addClass('graphContainerJsOn');
	$('div.graphContainerJsOn').cycle({
		fx:    'scrollRight',
		sync:	1,
		timeout: 2000,
		pause: 1 
	});
	
	
	 //opens a link in a new tab in the publishers gallery, very annoying, but at least the xhtml is still valid
	$("div#ngg-gallery-2-106 a").click(function() {
    window.open($(this).attr('href'), 'external', "");
    return false;
    });
});

