$(document).ready(function() {

//alert('dupa');

if(typeof(Cufon)!='undefined') {
    Cufon.replace('.col h2, #metaMain h2', { fontFamily: 'Calluna Sans'});
}

$.fn.delay = function(time, callback){
    // Empty function:
    jQuery.fx.step.delay = function(){};
    // Return meaningless animation, (will be added to queue)
    return this.animate({delay:1}, time, callback);
}

jQuery.fn.idle = function(time){
var i = $(this);
i.queue(function(){
setTimeout(function(){
i.dequeue();
}, time);
});
};

    jQuery('#logoSlide').cycle({
        fx:    'fade',
        speed:    800,
        timeout:  3100
    });

if(jQuery('#slideIt').length>0) {

jQuery('#slideIt').nivoSlider({
effect: 'fade',
animSpeed: 280,
pauseTime: 4500,
pauseOnHover: true,
controlNav: true
});

}

/*
$('#slogan1').html("pierwsze")
.animate({ opacity: "0.8" }, 3000)
.animate({ color: "#464A5B" }, 1000)
.animate({ opacity: "0.0" }, 500)
.html("dupa")
.animate({ opacity: "0.8" }, 3000);
*/


});

 
