$(window).load(function() { 	
    if($("#right-slider").length > 0)
    	$('#right-slider').nivoSlider({
    		effect:'random',
    		slices:15,
    		animSpeed:400,
    		pauseTime:4500,
    		startSlide:0, //Set starting Slide (0 index)
    		directionNav:false, //Next & Prev
    		directionNavHide:false, //Only show on hover
    		controlNav:true, //1,2,3...
    		controlNavThumbs:false, //Use thumbnails for Control Nav
    		keyboardNav:true, //Use left & right arrows
    		pauseOnHover:true, //Stop animation while hovering
    		manualAdvance:false, //Force manual transitions
    		beforeChange: function(){},
    		afterChange: function(){},
    		slideshowEnd: function(){} //Triggers after all slides have been shown
    	});
    	
    if($("#main-slider").length > 0)
    	$('#main-slider').nivoSlider({
    		effect:'random',
    		slices:15,
    		animSpeed:400,
    		pauseTime:4500,
    		startSlide:0, //Set starting Slide (0 index)
    		directionNav:true, //Next & Prev
    		directionNavHide:false, //Only show on hover
    		controlNav:false, //1,2,3...
    		controlNavThumbs:false, //Use thumbnails for Control Nav
    		controlNavPrevText:'ZPĚT',
    		controlNavNextText:'DALŠÍ',
    		keyboardNav:true, //Use left & right arrows
    		pauseOnHover:true, //Stop animation while hovering
    		manualAdvance:false, //Force manual transitions
    		beforeChange: function(){},
    		afterChange: function(){},
    		slideshowEnd: function(){} //Triggers after all slides have been shown
    	});
});

$(document).ready(function() { 
    
    if(jQuery.browser.msie && jQuery.browser.version < "7.0"){
        DD_belatedPNG.fix('h1.logo a, .kontakty div,.nivo-directionNav a,.topmenu ul li ul');
        
        $(".topmenu > ul > li").mouseover(function(){
            $(this).addClass("hover");
        });
        
        $(".topmenu > ul > li").mouseout(function(){
            $(this).removeClass("hover");
        });
        
    }
    
    $(".col-left ul.leftmenu > li a.child").click(function(){
        $(this).next().slideToggle();
        $(this).toggleClass("activ");
        $(this).blur();
    });  
    
});
