 var $j = jQuery.noConflict();
	var cur2=0;
        var numberOfExcs;

function rotatePics2(currentPhoto, newPhoto) {
	currentPhoto = currentPhoto % numberOfExcs;
	newPhoto = newPhoto % numberOfExcs;
		 cur2=newPhoto;
		 // re-order the z-index begin
		 $j('#excerptbox .postslide').each(function(i) {
			 $j(this).css (
			'zIndex', ((numberOfExcs -i ) + newPhoto - 1) % numberOfExcs
			 );
		 });
		 //re-order the z-index end
                 $j('#excerptbox .postslide').eq(newPhoto).stop(true,true).css('opacity','1.0').animate({height: 'show'}, 2000, function() {
		 $j('#excerptbox .postslide').eq(currentPhoto).stop(true,true).hide(100, function() {
		 
                 setTimeout(function() {rotatePics2(cur2, ++cur2);}, 5000);
		 });
		 });
} 

$j(document).ready(function(){
        numberOfExcs = $j('#excerptbox .postslide').length;
        $j('postslide').css('opacity','1.0');
        $j('.postslide').hide();
        $j('#excerptbox .postslide:first').show();
        setTimeout(function() {rotatePics2(0, 1);}, 5000);
        });


