/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*SCROLLING COMMENT MODULE START*/
var headline_count;
var current_headline=0;

$(document).ready(function(){
    headline_count = $("p.comment").size();
    $("p.comment:eq("+current_headline+")").css('top', '0px');
    setInterval(headline_rotate,6700); //time in milliseconds
});

function headline_rotate() {
    old_headline = current_headline % headline_count;
    new_headline = ++current_headline % headline_count;
    $("p.comment:eq(" + old_headline + ")").css('top', '210px');
    $("p.comment:eq(" + new_headline + ")").show().animate({
        top: 0
    },1500);
}
/*SCROLLING COMMENT MODULE END*/



