/* Generated 2012-02-10 04:04:02*/(function(a){a.fn.simpleSpy=function(b,c,f){var e=new Array();b=b||10;c=c||500;a('<ul id="spySource" />').hide().appendTo("body");function d(){var g=new Array();var h=true;var i=0;return{getSpyData:function(){if(g.length!=0){return false}h=true;a("#spySource").load(f,function(){g=new Array();a("#spySource li").each(function(){g.push({uid:a(this).attr("id"),html:'<li id="'+a(this).attr("id")+'" class="'+a(this).attr("class")+'">'+a(this).html()+"</li>"})})});i=g.length;h=false},getSpyItem:function(){if(h==true){return false}else{if(g.length==0){return false}else{return g.pop()}}}}}return this.each(function(){var g=a(this);g.wrap('<div class="spyWrapper" />').parent();var h=d();function k(){g.children().each(function(){uid=a(this).attr("id");e.push(uid)})}function j(l){for(key in e){if(l==e[key]){return true}}return false}function i(){var l=h.getSpyItem();if(l){$uid=l.uid;if(!j($uid)){e.push($uid);var m=a(l.html).css({opacity:1,display:"none"}).prependTo(g);m.slideDown(500);if(g.children().size()>b){g.children("li:last").fadeOut(function(){a(this).remove()})}}}setTimeout(i,c)}h.getSpyData();setInterval(h.getSpyData,5000);k();i()})}})(jQuery);
