// Cycling Sidebar News, see http://malsup.com/jquery for more parameters 







// Split articles

    jQuery(function(){

$.fn.splitUp=function(splitBy,wrapper){



    $all= $(this).find('>*');



    var fragment=Math.ceil($all.length/splitBy);



    for (i=0;i<fragment;i++)



        $all.slice(splitBy*i,splitBy*(i+1)).wrapAll(wrapper);



    return $(this);



}







$('.sidebar-news')



    .splitUp(3,'<div/>') // you can change the number 3 to any number of news you want to scroll



    .cycle({ 


   fx:     'scrollUp', 
    speed:   600, 
    timeout: 8000,	
	cleartype: true,  
	cleartypeNoBg: true  




    });                            



}); 
