
var $jx = jQuery.noConflict();  
$jx(document).ready(function(){
     
	$jx('ul.spy').simpleSpy('4','15000');
	
			$jx('ul.spy li').reverseOrder(); 
	
	
});



(function ($jx) {
$jx.fn.reverseOrder = function() {
	return this.each(function() {
		$jx(this).prependTo( $jx(this).parent() );
	});
};

    
$jx.fn.simpleSpy = function (limit, interval) {
    limit = limit || 4;
    interval = interval || 15000;
    
    return this.each(function () {
        // 1. setup
            // capture a cache of all the Interesting title s
            // chomp the list down to limit li elements
        var $jxlist = $jx(this),
            items = [], // uninitialised
            currentItem = limit,
            total = 0, // initialise later on
            start = 0,//when the effect first starts
            startdelay = 30000;
            height = $jxlist.find('> li:first').height();
            
       
    });
};
    
})(jQuery);
