// <script type="text/javacript">
Roo.onReady(function() {
      
        // twitter
        getTwitters('tweet', {
          id: 'roojs',
          count: 5,
          enableLinks: true,
          ignoreReplies: true,
          clearContents: true,
          template: '<a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%text%</a> %time%'
        });

        // carosell..
        if (!Roo.get('top-carousel')) {
            return;
        }
                
        var car =  Roo.get(Roo.query('#top-carousel ul:first')[0]);
        var start = car.getX();
        var x = start;
        var iter_n = 0;
        var iter_m = car.query('li').length;
        var moveit =function() {
            
                if (iter_n  > (iter_m - 4)) {
                        x = start;
                        iter_n  =0;
                        car.setX(start);
                }
                x -= 309;
                iter_n++;
                car.shift({ duration: 2 , x: x , easing: 'easeBoth'})
                moveit.defer(5000);
        };
        moveit.defer(3000);

  },true);
 
