$(window).load(function() {
    if($("#slider").length > 0)
    	$('#slider').nivoSlider({
    		effect:'sliceDown',
    		slices:15,
    		animSpeed:400,
    		pauseTime:5000,
    		startSlide:0, //Set starting Slide (0 index)
    		directionNav:true, //Next & Prev
    		directionNavHide:true, //Only show on hover
    		controlNav:false, //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
    	});
});

$(document).ready(function() {
    
    if($.browser.name == "msie" && $.browser.versionNumber < 7){
        DD_belatedPNG.fix('.two-cols .bottom,.two-cols .top,.two-cols .middle,.tapety');
    }
    
    $(".gallery a,.kontakt-foto").colorbox({slideshow:true});
    
});  
