$(document).ready (function (){				
	$(".main li").hover
	(
		function()
		{
			$(this).addClass("sfhover");		
		},
		function()
		{
			$(this).removeClass("sfhover");			
		}
	);
	
	/* menu fix ie6 */
	if (is_ie6)
	{
		$(".main>ul>li").each(function(i){
			$("ul", this).css("margin-left", $(this).width() * -1 - 7);   			
 		});
 		
 		hgt=$('#center').height();
	
		if(hgt < 710) {
			$('#center').height("710");
		}
	}
	$(".main li:last a").css("border","none");		

	var i=1;
	$(".three a").each(function(){
		if(i==3) {
			$(this).addClass("third");
			i=0;
		}
		i++;
	})
	
	var i=1;
	$(".two a").each(function(){
		if(i==2) {
			$(this).addClass("second");
			i=0;
		}
		i++;
	});
	
	$('a.zoom', this).lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.6,
		imageLoading: '/plugins/gallery-lightbox/images/lightbox-btn-loading.gif',
		imageBtnClose: '/plugins/gallery-lightbox/images/lightbox-btn-close.gif',
		imageBtnPrev: '/plugins/gallery-lightbox/images/lightbox-btn-prev.gif',
		imageBtnNext: '/plugins/gallery-lightbox/images/lightbox-btn-next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Obrázek',
		txtOf: '/'
	});

	// rotujici novinky
	$('.cycle dd p').cycle({ 
		fx:			'fade',
		pause:		1,
		speed:		500, 
		timeout:		4000,
		random:		1
	});

});
