var blog_total_divs=0; //do not change this. it will be calculated automatically
var blogclassName='blogfadeThis'; //name of your class assigned to the divs you would like to rotate. Need to change it
$(document).ready(function(){

$("."+blogclassName).attr("id", function (arr) {
blog_total_divs++;
return "blogfade" + (arr+1);
})
blogfadeEngine(0);
});


function blogfadeEngine(x) {
var y=x;
if(x==blog_total_divs) y=1; else y++;
$("#blogfade"+x).css("display","none");
$("#blogfade"+y).fadeIn("slow");
setTimeout('blogfadeEngine('+y+')',8000);
}


