var gfeedfetcher_loading_image="indicator.gif";function gfeedpausescroller(a,b,d,c){this.tickerid=a;this.delay=parseInt(d);this.mouseoverBol=0;this.hiddendivpointer=1;this.itemsperpage=1;document.write('<div id="'+a+'" class="'+b+'" style="position: relative; overflow: hidden">');document.write('<div class="innerDiv" style="position: absolute; width: 100%" id="'+a+'1"><span style="position: absolute">Initializing RSS scroller...</span></div>');document.write('<div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+a+'2"></div>');gfeedfetcher.call(this,a+"unneeded",b+"unneeded",c);document.write("</div>");this.itemcontainer="<div>";this.feedcontainer.style.display="none";this.feedcontainer=document.getElementById(a+"1");this.tickerdiv=document.getElementById(a);this.visiblediv=document.getElementById(a+"1");this.hiddendiv=document.getElementById(a+"2");this.visibledivtop=parseInt(this.tickerdiv.currentStyle?this.tickerdiv.currentStyle.paddingTop:window.getComputedStyle?window.getComputedStyle(this.tickerdiv,"").getPropertyValue("padding-top"):0);this.tickerdivwidth=this.tickerdiv.currentStyle?parseInt(this.tickerdiv.currentStyle.width):this.tickerdiv.offsetWidth;this.tickerdivheight=this.tickerdiv.currentStyle?parseInt(this.tickerdiv.currentStyle.height)+50:0}gfeedpausescroller.prototype=new gfeedfetcher;gfeedpausescroller.prototype.constructor=gfeedpausescroller;gfeedpausescroller.prototype._displayresult=null;gfeedpausescroller.prototype.entries_per_page=function(a){this.itemsperpage=a};gfeedpausescroller.prototype._signaldownloadcomplete=function(){this.feedsfetched+=1;this.feedsfetched==this.feedurls.length&&this._populateticker(this.feeds)};gfeedpausescroller.prototype._populateticker=function(a){gfeedfetcher._sortarray(a,this.sortstring);this.visiblediv.style.width=this.hiddendiv.style.width=parseInt(this.tickerdivwidth)-this.visibledivtop*2+"px";this.itemsperpage=this.itemsperpage>=a.length?1:this.itemsperpage;var b=a.slice(0,this.itemsperpage);this.hiddendivpointer=this.itemsperpage;var c=a.slice(this.hiddendivpointer,this.hiddendivpointer+this.itemsperpage);this.visiblediv.innerHTML=formatrssmessage(b,this.showoptions,this.itemcontainer,this.linktarget);this.hiddendiv.innerHTML=formatrssmessage(c,this.showoptions,this.itemcontainer,this.linktarget);this._initscroller()};gfeedpausescroller.prototype._initscroller=function(){var a=this;this.getinline(this.visiblediv,this.hiddendiv);this.hiddendiv.style.visibility="visible";this.visiblediv.style.width=this.hiddendiv.style.width=parseInt(this.tickerdivwidth)-this.visibledivtop*2+"px";this.tickerdiv.onmouseover=function(){a.mouseoverBol=1};this.tickerdiv.onmouseout=function(){a.mouseoverBol=0};window.attachEvent&&window.attachEvent("onunload",function(){a.tickerdiv.onmouseover=a.tickerdiv.onmouseout=null});setTimeout(function(){a._animateup()},this.delay)};function formatrssmessage(b,d,c,g){for(var e=c=="<li>"?"<ul>\n":"",a=0;a<b.length;a++){var i='<a href="'+b[a].link+'" target="'+g+'" class="titlefield">'+b[a].title+"</a>",h=/label/i.test(d)?'<span class="labelfield">['+b[a].ddlabel+"]</span>":" ",j=gfeedfetcher._formatdate(b[a].publishedDate,d),f=/description/i.test(d)?"<br />"+b[a].content:/snippet/i.test(d)?"<br />"+b[a].contentSnippet:"";e+=c+i+" "+h+" "+j+"\n"+f+c.replace("<","</")+"\n\n"}e+=c=="<li>"?"</ul>\n":"";return e}gfeedpausescroller.prototype._animateup=function(){var a=this;if(parseInt(this.hiddendiv.style.top)>this.visibledivtop+5){this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px";this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px";setTimeout(function(){a._animateup()},40)}else{this.getinline(this.hiddendiv,this.visiblediv);this._swapdivs();setTimeout(function(){a._rotatemessage()},this.delay)}};gfeedpausescroller.prototype._swapdivs=function(){var a=this.visiblediv;this.visiblediv=this.hiddendiv;this.hiddendiv=a};gfeedpausescroller.prototype.getinline=function(a,b){a.style.top=this.visibledivtop+"px";b.style.top=Math.max(a.parentNode.offsetHeight||this.tickerdivheight,a.offsetHeight)+"px"};gfeedpausescroller.prototype._rotatemessage=function(){var b=this;if(this.mouseoverBol==1)setTimeout(function(){b._rotatemessage()},100);else{var a=this.hiddendivpointer,d=this.feeds.length;this.hiddendivpointer=a+this.itemsperpage>d-1?0:a+this.itemsperpage;var c=this.feeds.slice(this.hiddendivpointer,this.hiddendivpointer+this.itemsperpage);this.hiddendiv.innerHTML=formatrssmessage(c,this.showoptions,this.itemcontainer,this.linktarget);this._animateup()}}