function start(){
    setToggleMenuPicture();
}	

function setToggleMenuPicture(){
    //podrzuca zmienione obrazki
    $("img.jqMenuLink").each(function(i) //pobieram wszystkie elementy menu
    {
	$(this).mouseover(function() //jesli kursor jest nad elementem to zmieniam wyglad obrazka
	{ //zakladam ze wszystkie pliki maja rozszerzenie png
	    file = this.src;
	    this.src = file.replace(/_off/, "_on");
	});
	$(this).mouseout(function() //jesli kursor oposcil element to wraca stary obrazek
	{
	    file = this.src;
	    this.src = file.replace(/_on/, "_off");
	});
    });
}

$(document).ready(function() {
    if ($('#imgBigCollection').length > 0){
	$('#imgBigCollection').cycle({
	    fx:     'fade',
	    delay:  -2000,
	    timeout: 7000,
	    before:   onBefore
	});
    }

    if ($('#smallImageRotator1').length){
	$('#smallImageRotator1').cycle({
	    fx:     'fade',
	    delay:  -2000,
	    timeout: 7000,
	    before:   onBefore
	});
    }

    if ($('#smallImageRotator2').length){
	$('#smallImageRotator2').cycle({
	    fx:     'fade',
	    delay:  -4600,
	    timeout: 7000,
	    before:   onBefore
	});
    }

    if ($('#smallImageRotator3').length){
	$('#smallImageRotator3').cycle({
	    fx:     'fade',
	    delay:  -3000,
	    timeout: 7000,
	    before:   onBefore
	});
    }

    function onBefore(curr, next, opts) {
	if (!opts.addSlide)
	    return;
	curr.style.display = 'none';
    };
});
