function createAjaxObject() {
var http_request=false
if (window.XMLHttpRequest) {
var http_request=new XMLHttpRequest()
if (http_request.overrideMimeType) {
http_request.overrideMimeType("text/xml")
}
} else if (window.ActiveXObject) {
try {
http_request=new ActiveXObject("Msxml2.XMLHTTP")
} catch (e) {
try {
http_request=new ActiveXObject("Microsoft.XMLHTTP")
} catch (e) {}
}
}
return http_request
}

function rss_ticker(url1,id,delay,link_class,showHide){
this.url1=url1
this.id=id
this.delay=delay
this.link_class=link_class
this.showHide=(typeof showHide!="undefined") ? showHide : -1
this.mouseOver1=0
this.j=0
this.ajaxobject=createAjaxObject()
document.write('<p id="'+id+'">Initializing...</p>')
this.getContent()
}

rss_ticker.prototype.getContent=function() {
if (this.ajaxobject) {
var instOf=this
var url1=this.url1
this.ajaxobject.onreadystatechange=function(){instOf.init()}
this.ajaxobject.open("GET", url1, true)
this.ajaxobject.send(null)
}
}

rss_ticker.prototype.init=function() {
if (this.ajaxobject.readyState==4) {
if (this.ajaxobject.status==200) {
var instOf=this
this.feed_items=this.ajaxobject.responseXML.getElementsByTagName("item")
for (var i=0; i<this.feed_items.length; i++) {
this.feed_items[i].setAttribute("title1", this.feed_items[i].getElementsByTagName("title")[0].firstChild.nodeValue)
this.feed_items[i].setAttribute("link1", this.feed_items[i].getElementsByTagName("link")[0].firstChild.nodeValue)
this.feed_items[i].setAttribute("description1", this.feed_items[i].getElementsByTagName("description")[0].firstChild.nodeValue)
//this.feed_items[i].setAttribute("pubDate1", this.feed_items[i].getElementsByTagName("pubDate")[0].firstChild.nodeValue)
}
document.getElementById(this.id).onmouseover=function(){instOf.mouseOver1=1}
document.getElementById(this.id).onmouseout=function(){instOf.mouseOver1=0}
this.rotatemsg()
}
}
}

rss_ticker.prototype.rotatemsg=function() {
var instOf=this
if (this.mouseOver1==1) setTimeout(function(){instOf.rotatemsg()}, 100)
else {
var ticker_content='<a class="'+this.link_class+'" href="'+this.feed_items[this.j].getAttribute("link1")+'">'+this.feed_items[this.j].getAttribute("title1")+'</a>'
if (this.showHide=="showdescription") {
ticker_content+="<br />"+this.feed_items[this.j].getAttribute("description1")
}
document.getElementById(this.id).innerHTML=ticker_content
this.j=(this.j<this.feed_items.length-1) ? this.j+1 : 0
setTimeout(function(){instOf.rotatemsg()}, this.delay)
}
}