//scriptaculous image switch

//find image block
var image = document.getElementById('blockImage');

var i = 0;

function switchImage() {

    if (i > 34) {
        i = 0;
    }
    
    //if image 1 then fade the image out       
    Effect.Fade('blockImage');
    
    //change the src to next image
    a = i + 1;
    setTimeout("image.src = 'images/blockLogo" + i + ".jpg'",1000);
    
    //fade new image back in
    setTimeout("Effect.Appear('blockImage')",2000);
    
    i = i + 1;
    
    //repeat continuously
    setTimeout("switchImage()",5000);
}
