function createAjaxObj(){var a=false;if(window.XMLHttpRequest&&!window.ActiveXObject){a=new XMLHttpRequest();if(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(b){}}}}return a}function ajax_ticker(e,b,d,c,a){this.xmlfile=e;this.tickerid=b;var c=(typeof c=="number")?[c]:c;this.delay=c[0];this.refetchdelay=c[1];this.mouseoverBol=0;this.pointer=0;this.opacitystring=(typeof a!="undefined")?"width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); opacity: 1":"";if(this.opacitystring!=""){this.delay+=500}this.opacitysetting=0.2;this.messages=[];this.ajaxobj=createAjaxObj();document.write('
Initializing ticker...
');this.getXMLfile()}ajax_ticker.prototype.getXMLfile=function(){this.ajaxobj=createAjaxObj();if(this.ajaxobj){var b=this;var a=this.xmlfile+"?bustcache="+new Date().getTime();this.ajaxobj.onreadystatechange=function(){b.initialize()};this.ajaxobj.open("GET",a,true);this.ajaxobj.send(null)}};ajax_ticker.prototype.initialize=function(){if(this.ajaxobj.readyState==4){if(this.ajaxobj.status==200||window.location.href.indexOf("http")==-1){this.contentdiv=document.getElementById(this.tickerid).firstChild;var b=this.ajaxobj.responseText;this.contentdiv.style.display="none";this.contentdiv.innerHTML=b;if(this.contentdiv.getElementsByTagName("div").length==0){this.contentdiv.innerHTML="Error fetching remote ticker file!";return}var c=this;document.getElementById(this.tickerid).onmouseover=function(){c.mouseoverBol=1};document.getElementById(this.tickerid).onmouseout=function(){c.mouseoverBol=0};clearTimeout(this.fadetimer1);clearTimeout(this.pausetimer);clearTimeout(this.rotatetimer);this.mouseoverBol=0;this.messages=[];for(var a=0;a5000){setTimeout(function(){c.getXMLfile()},this.refetchdelay)}}}};ajax_ticker.prototype.rotatemsg=function(){var a=this;if(this.mouseoverBol==1){this.pausetimer=setTimeout(function(){a.rotatemsg()},100)}else{if(this.contentdiv.filters){this.contentdiv.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+(this.opacitysetting*100)+")"}this.fadetransition("reset");this.contentdiv.innerHTML=this.messages[this.pointer];this.fadetimer1=setInterval(function(){a.fadetransition("up","fadetimer1")},100);this.pointer=(this.pointer=1){if(b.style&&b.style.removeAttribute){b.style.removeAttribute("filter")}clearInterval(this[c])}};