$.startImageRotate = function() {
    var $imageList = $('ul.about-images li');

    // Calculate top paddings for vertical centering
    var availHeight = $imageList.innerHeight();
    var paddings = new Array();
    $imageList.each(function() {
        $(this).css({'position':'absolute','visibility':'hidden','display':'block'});
        paddings.push(Math.floor((availHeight - $('img', $(this)).outerHeight(true)) / 2));
        $(this).css({'position':'static','visibility':'visible','display':'none'});
    });

    // Start image rotation
    $imageList.first().imageRotate(0, paddings);

};
$.fn.imageRotate = function(idx, paddings) {
    var $this = $(this);
    $this.css('padding-top', paddings[idx]).fadeIn(750).delay(1000).fadeOut(750, function() {
        $(this).hide();
        $next = $this.next();
        if ($next.length <= 0) {
            $next = $this.siblings().first();
            idx = 0;
        } else {
            idx++;
        }
        $next.imageRotate(idx, paddings);
    });
};

