function createAjaxObj(){var a=!1;if(window.XMLHttpRequest)a=new XMLHttpRequest,a.overrideMimeType&&a.overrideMimeType("text/xml");else if(window.ActiveXObject)try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}return a}
function rss_ticker(a,b,c,e,f,d){this.RSS_id=a;this.cachetime=b;this.tickerid=c;this.delay=f;this.logicswitch=typeof d!="undefined"?d:-1;this.pointer=this.mouseoverBol=0;this.ajaxobj=createAjaxObj();document.write('<div id="'+c+'" class="'+e+'">Initializing ticker...</div>');this.getAjaxcontent()}
rss_ticker.prototype.getAjaxcontent=function(){if(this.ajaxobj){var a=this,b="id="+encodeURIComponent(this.RSS_id)+"&cachetime="+this.cachetime+"&bustcache="+(new Date).getTime();this.ajaxobj.onreadystatechange=function(){a.initialize()};this.ajaxobj.open("GET","/scripts/rssfetch.php?"+b,!0);this.ajaxobj.send(null)}};
rss_ticker.prototype.initialize=function(){if(this.ajaxobj.readyState==4&&this.ajaxobj.status==200){var a=this.ajaxobj.responseXML;if(a.getElementsByTagName("entry").length==0)document.getElementById(this.tickerid).innerHTML="<b>Error</b> fetching remote RSS feed!<br />";else{blogName=a.getElementsByTagName("title")[0].firstChild.nodeValue;var b=this;this.feeditems=a.getElementsByTagName("entry");for(a=0;a<this.feeditems.length;a++)this.feeditems[a].setAttribute("ctitle",this.feeditems[a].getElementsByTagName("title")[0].firstChild.nodeValue),
this.feeditems[a].setAttribute("clink",this.feeditems[a].getElementsByTagName("link")[0].getAttribute("href")),this.feeditems[a].setAttribute("cdescription",this.feeditems[a].getElementsByTagName("content")[0].firstChild.nodeValue);document.getElementById(this.tickerid).onmouseover=function(){b.mouseoverBol=1};document.getElementById(this.tickerid).onmouseout=function(){b.mouseoverBol=0};this.rotatemsg()}}};
rss_ticker.prototype.rotatemsg=function(){var a=this;if(this.mouseoverBol==1)setTimeout(function(){a.rotatemsg()},100);else{var b=document.getElementById(this.tickerid),c=blogName+'&nbsp;:&nbsp;<a target="_blank" href="'+this.feeditems[this.pointer].getAttribute("clink")+'">'+this.feeditems[this.pointer].getAttribute("ctitle")+"</a>";this.logicswitch=="showdescription"&&(c+="<br />"+this.feeditems[this.pointer].getAttribute("cdescription"));b.innerHTML=c;this.pointer=this.pointer<this.feeditems.length-
1?this.pointer+1:0;setTimeout(function(){a.rotatemsg()},this.delay)}};

