$(function() {
	
	var baseurl = null;
	baseurl = $('base').attr('href');
	
	$('.tt_news_block').hover(function() {
		$(this).addClass('tt_news_hover');
	}, 
	function() {
		$(this).removeClass('tt_news_hover');
	});
	
	$('.tt_news_block').click(function() {
		window.location = baseurl + $(this).find('h2 a').attr('href');
		return false;
	});
	
	
	if ($('#rotateul_psywerkt').length) {
		var rotateul_psywerkt = new RotateUl('rotateul_psywerkt');
		rotateul_psywerkt.speed = 4000;
		rotateul_psywerkt.start();
	}
	
	if ($('#rotateul_psyisme').length) {
		var rotateul_psyisme = new RotateUl('rotateul_psyisme');
		rotateul_psyisme.speed = 4000;
		rotateul_psyisme.start();
	}
	
	if ($('#rotateul_psyxtra').length) {
		var rotateul_psyxtra = new RotateUl('rotateul_psyxtra');
		rotateul_psyxtra.speed = 4000;
		rotateul_psyxtra.start();
	}
});