function createAjaxObj(){var a=false;if(window.XMLHttpRequest){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;this.delay=c;this.mouseoverBol=0;this.pointer=0;this.opacitystring=(typeof a!="undefined")?"width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1":"";if(this.opacitystring!=""){this.delay+=500}this.opacitysetting=0.2;this.messages=[];this.ajaxobj=createAjaxObj();document.write('<div id="'+b+'" class="'+d+'"><div style="'+this.opacitystring+'"></div></div>');this.getXMLfile()}ajax_ticker.prototype.getXMLfile=function(){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="<b>Error</b> 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};if(window.attachEvent){window.attachEvent("onunload",function(){c.contentdiv=c.ajaxobj=null})}for(var a=0;a<this.contentdiv.getElementsByTagName("div").length;a++){if(this.contentdiv.getElementsByTagName("div")[a].className=="message"){this.messages[this.messages.length]=this.contentdiv.getElementsByTagName("div")[a].innerHTML}}this.contentdiv.innerHTML="";this.contentdiv.style.display="block";this.rotatemsg()}}};ajax_ticker.prototype.rotatemsg=function(){var a=this;if(this.mouseoverBol==1){setTimeout(function(){a.rotatemsg()},100)}else{this.fadetransition("reset");this.contentdiv.innerHTML=this.messages[this.pointer];this.fadetimer1=setInterval(function(){a.fadetransition("up","fadetimer1")},100);this.pointer=(this.pointer<this.messages.length-1)?this.pointer+1:0;setTimeout(function(){a.rotatemsg()},this.delay)}};ajax_ticker.prototype.fadetransition=function(a,c){var b=this.contentdiv;if(a=="reset"){this.opacitysetting=0.2}if(b.filters&&b.filters[0]){if(typeof b.filters[0].opacity=="number"){b.filters[0].opacity=this.opacitysetting*100}else{b.style.filter="alpha(opacity="+this.opacitysetting*100+")"}}else{if(typeof b.style.MozOpacity!="undefined"&&this.opacitystring!=""){b.style.MozOpacity=this.opacitysetting}else{this.opacitysetting=1}}if(a=="up"){this.opacitysetting+=0.1}if(a=="up"&&this.opacitysetting>=1){clearInterval(this[c])}};
