$(function() {
	
	/*var top_banner_speed = 4 + Math.floor(Math.random() * 4),
		blok4_speed = 4 + Math.floor(Math.random() * 4),
		blok5_speed = 5 + Math.floor(Math.random() * 4),
		sponsers_speed = 4 + Math.floor(Math.random() * 4),
		blok9_speed =  4 + Math.floor(Math.random() * 4),
		upcoming_matches_speed =  3 + Math.floor(Math.random() * 3);
		
	$('#top-banners').innerfade({ speed: 'slow', timeout: top_banner_speed * 1000, type: 'sequence'});
	$('#sponsers').innerfade({ speed: 'slow', timeout: sponsers_speed * 1000, type: 'sequence'});
	$('#blok4').innerfade({ speed: 'slow', timeout: blok4_speed * 1000, type: 'sequence'});
	$('#blok5').innerfade({ speed: 'slow', timeout: blok5_speed * 1000, type: 'sequence'});
	$('#blok9').innerfade({ speed: 'slow', timeout: blok9_speed * 1000, type: 'sequence'});
	$('#upcoming-matches').innerfade({ speed: 'slow', timeout: upcoming_matches_speed * 1000, type: 'sequence'});*/
	
	$('#lightbox a').lightBox({fixedNavigation:true});
	
	/*$('.right-menu a').hover(function() {
		$(this).parent().addClass('hover');
	}, function() {
		$(this).parent().removeClass('hover');
	});*/
	
	$('.n-head .n-dep h1 a').hover(function() {
		$(this).parent().parent().prev().find('.dates').addClass('hover');
	}, function() {
		$(this).parent().parent().prev().find('.dates').removeClass('hover');
	});
	
	$('.n-head .date-icon .dates').hover(function() {
		$(this).addClass('hover');
	}, function() {
		$(this).removeClass('hover');
	}).click(function() {
		window.location = $(this).parent().next().find('h1 > a').attr('href');
	});
	
	$('#blok4 .bar, #blok5 .bar, #upcoming-matches .bar').hover(function() {
		$(this).addClass('hover');
	}, function() {
		$(this).removeClass('hover');
	});
	
	$('#blok4 .news-img').hover(function() {
		$(this).prev().addClass('hover');
	}, function() {
		$(this).prev().removeClass('hover');
	});
	
	$('#blok5 .news-img').hover(function() {
		$(this).prev().addClass('hover');
	}, function() {
		$(this).prev().removeClass('hover');
	});
	
	$('#upcoming-matches .s-img').hover(function() {
		$(this).prev().addClass('hover');
	}, function() {
		$(this).prev().removeClass('hover');
	});
	
});
