// Navigation

    jQuery(function(){
      jQuery('ul.sf-menu').superfish({ 
            delay:   1000, 
        animation:   {height:'show'}, 
            speed:   'normal',
       autoArrows:   false
        }); 
        
// Toggle Content Form

	  $(".slideButton").click(function(){
		$(".slidePanel").slideToggle("fast");
		$(this).toggleClass("active"); return false;
	});

// Cycling Sidebar News, see http://malsup.com/jquery for more parameters 

// Split articles
$.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: 12000
    });                            
}); 




