jQuery(function($) {
	
	// scrollpane
	$('#topics dl, #news ul').jScrollPane({
        scrollbarWidth: 23,
        scrollbarMargin: 20
	});
	
    
	// slideshow (top)
	$('#banner li').show();
	$('#banner ul').flipSlide({
		speed			: 3000,
		interval		: 6000
	});
	
	
	// slideshow (info)
	$('#infoSlide li:first').show();
	$('#info').flipSlide({
		speed			: 400,
		interval		: 4000,
        buttons         : '#infoNav a',
		bodies	        : '#infoSlide li',
        imgPostfixIn    : '_in',
        bodyResize      : true
	});
	
	
	// wave
	if (! isIE(6)) {
		var intvl = 10000;
		function waveMove() {
			$('#waveWhite, #waveBlack, #grayArea, #footer')
				.stop(true, true)
				.css({ backgroundPosition : '0 0' })
				.animate({
					backgroundPosition : '-950px 0'
				}, {
					duration: intvl
				})
		}
		waveMove();
		setInterval(waveMove, intvl);
	}
});

