$(function(){
	//Twitter
	$('#twitter_update_list').swapthis({ speed: 4 });
	
	//RSS
	$('#FinNews').swapthis({ speed: 4 , delay: 2 });
	
	//News Block
	$('#NewsBlock').swapthis({ speed: 4 , delay: 1 });
	
	//Slide Newsletter
	$('#newsletter .newsletter_title').click(function(){
		if($(this).hasClass('opened')){
			if(navigator.appName=="Microsoft Internet Explorer")
				$(this).parents('#newsletter').animate({'margin-top':'175px'});
			else
				$(this).parents('#newsletter').animate({'margin-top':'177px'});
			$(this).removeClass('opened');
		}
		else{
			if(navigator.appName=="Microsoft Internet Explorer")
				$(this).parents('#newsletter').animate({'margin-top':'-5px'});
			else
				$(this).parents('#newsletter').animate({'margin-top':'0'});
			$(this).addClass('opened'); 
		}
	});
});

