// JavaScript Document
    //author: Glick Productions
    //with the idea from: http://www.learningjquery.com/2006/10/scroll-up-headline-reader
        var site_count;
        var site_interval;
        var current_site = 0;
        var site2 = 1;
        var site3 = 2;
        var old_site = -1;
        var rotate_speed = 5000;
        $(function(){
            site_count = $('p.atest').size();
            $('p.atest:eq('+current_site+')').css('top','0px');		
            $('p.atest:eq('+site2+')').css('top','80px');		
            $('p.atest:eq('+site3+')').css('top','160px');		
            site_interval = setInterval(site_rotate,rotate_speed);
        });
        function site_rotate(){
            if(old_site != -1)
                $("p.atest:eq(" + old_site + ")").animate({top: -350},"slow", function() {$(this).css('top','350px'); });
            $("p.atest:eq(" + current_site + ")").animate({top: 0},"slow");  
            $("p.atest:eq(" + site2 + ")").animate(	{top: 80},"slow");
            $("p.atest:eq(" + site3 + ")").animate({top: 160},"slow");  
    
            old_site = current_site;
            current_site = site2;
            site2 = site3;
            if(site3 == $('p.atest').size()-1)
                site3 = 0;
            else
                site3 = site3 + 1;
        }
