$(window).ready(function(){  

});
function startSlids()
{
         $('#gallery1 .galleryPreloader').hide();
         $('#gallery1 .slids').show();
            $('#gallery1 .slids').cycle({ 
                fx   :  'fade, zoom',
			    randomizeEffects: false, 
                delay:  1000, 
                speed:  1300,
                after:  onAfter,
                before: onBefore
            });
            
         $('#gallery2 .galleryPreloader').hide();
         $('#gallery2 .slids').show();
            $('#gallery2 .slids').cycle({ 
                fx   :  'fade, zoom',
                randomizeEffects: false, 
                delay:  1000, 
                speed:  1300,
                after:  onAfter2,
                before: onBefore2
            });  
}

function onAfter() { 
    $('#gallery1 .galleryTitle').show().children().html(this.alt); 
}; 	
ii = 0;
function onBefore() {
    if ((parseInt(ii))%2==0 )  $('#gallery1 .galleryTitle').hide();
    ii++; 
};

function onAfter2() { 
    $('#gallery2 .galleryTitle').show().children().html(this.alt); 
}; 	
ii2 = 0;
function onBefore2() {
    if ((parseInt(ii2))%2==0 )  $('#gallery2 .galleryTitle').hide();
    ii2++; 
}; 	

 	
$('.slids').mouseover(function(){
    $(this).cycle('pause')
});
$('.slids').mouseout(function(){
    $(this).cycle('resume')
});
