$(document).ready(function(){
	if (currentAlias == '') {
		currentAlias = 'home';	
	}
	$('ul.topMenu li#'+currentAlias).addClass('selected');

	$('#newsScrollPrev, #newsScrollNext').click(function(event){
		event.preventDefault();
	});
	$('.newsScroll').scrollable({ 
		size: 1,
		next:'#newsScrollNext',
		prev:'#newsScrollPrev',
		items:'ul.items',
		speed: 1500
	}).autoscroll({
		interval: 10000,
		autoplay: true
	});
	$('#cmsId_4 .para').each(function(){
		var $title=$(this).find('h4:first').css('cursor','pointer');
		var $para=$(this).find('.pcontent').hide();
		$title.click(function(){
			$(this).parents('.cms').find('.pcontent:visible').slideUp(400);
			if(!$(this).parents('.para ').find('.pcontent:visible').length) $para.slideDown(400);
		});
	})
});
