function marqueeInit(h){if(document.createElement){marqueeInit.ar.push(h);marqueeInit.run(h.uniqueid)}}
(function(){function h(b){for(;b=b.parentNode;)if(b.tagName&&b.tagName.toLowerCase()==="table")return true;return false}function r(b){for(var a=[],c=0,d;(d=b.firstChild)&&d.nodeType==3&&i[0].test(d.nodeValue);)b.removeChild(d);for(;(d=b.lastChild)&&d.nodeType==3&&i[0].test(d.nodeValue);)b.removeChild(d);if((d=b.firstChild)&&d.nodeType==3)d.nodeValue=d.nodeValue.replace(i[1],"");if((d=b.lastChild)&&d.nodeType==3)d.nodeValue=d.nodeValue.replace(i[2],"");for(;d=b.firstChild;)a[c++]=b.removeChild(d);
return a}function g(b,a){var c,d,f,j,e,k,l=this;this.mq=marqueeInit.ar[b];for(c in o)if(this.mq.hasOwnProperty&&!this.mq.hasOwnProperty(c)||!this.mq.hasOwnProperty&&!this.mq[c])this.mq[c]=o[c];this.mq.style.width=!this.mq.style.width||isNaN(parseInt(this.mq.style.width))?"100%":this.mq.style.width;this.mq.style.height=a.getElementsByTagName("img")[0]?!this.mq.style.height||isNaN(parseInt(this.mq.style.height))?"auto":this.mq.style.height:!this.mq.style.height||isNaN(parseInt(this.mq.style.height))?
a.offsetHeight+3+"px":this.mq.style.height;d=this.mq.style.width.split(/\d/);this.cw=this.mq.style.width?[parseInt(this.mq.style.width),d[d.length-1]]:["a"];k=r(a);a.className=a.id="";a.removeAttribute("class",0);a.removeAttribute("id",0);m&&a.removeAttribute("className",0);a.appendChild(a.cloneNode(false));a.className=["marquee",b].join("");a.style.overflow="hidden";this.c=a.firstChild;this.c.appendChild(this.c.cloneNode(false));this.c.style.visibility="hidden";d=[[s,this.c.style],[this.mq.style,
this.c.style]];for(e=d.length-1;e>-1;--e)for(c in d[e][0])if(d[e][0].hasOwnProperty&&d[e][0].hasOwnProperty(c)||!d[e][0].hasOwnProperty)d[e][1][c.encamel()]=d[e][0][c];this.m=this.c.firstChild;if(this.mq.mouse=="pause"){this.c.onmouseover=function(){l.mq.stopped=true};this.c.onmouseout=function(){l.mq.stopped=false}}this.m.style.position="absolute";this.m.style.left="-10000000px";this.m.style.whiteSpace="nowrap";if(n)this.c.firstChild.appendChild(this.m=document.createElement("nobr"));this.mq.noAddedSpace||
this.m.appendChild(document.createTextNode("\u00a0"));for(e=0;k[e];++e)this.m.appendChild(k[e]);if(n)this.m=this.c.firstChild;f=this.m.getElementsByTagName("img");if(f.length)for(e=j=0;e<f.length;++e){f[e].style.display="inline";f[e].style.verticalAlign=f[e].style.verticalAlign||"top";if(typeof f[e].complete=="boolean"&&f[e].complete)j++;else f[e].onload=function(){++j==f.length&&l.setup()};j==f.length&&this.setup()}else this.setup()}function p(){for(var b,a,c=0;c<marqueeInit.ar.length;++c)if(marqueeInit.ar[c]&&
marqueeInit.ar[c].setup){a=marqueeInit.ar[c].setup;b=a.mq.moveatleast?Math.max(a.mq.moveatleast,a.sinc):a.sinc||a.mq.inc;a.c.style.width=a.mq.style.width;for(a.cw[0]=a.cw.length>1?parseInt(a.mq.style.width):"a";a.c.offsetWidth>a.w-b;)a.c.style.width=isNaN(a.cw[0])?a.w-b+"px":--a.cw[0]+a.cw[1]}}if(document.createElement){marqueeInit.ar=[];document.write('<style type="text/css">.marquee{white-space:nowrap;overflow:hidden;visibility:hidden;}#marq_kill_marg_bord{border:none!important;margin:0!important;}</style>');
var t=0,i=[/^\s*$/,/^\s*/,/\s*$/],s={position:"relative",overflow:"hidden"},o={style:{margin:"0 auto"},direction:"left",inc:2,mouse:"pause"},q,m=false,n=false;if(!n){q=RegExp("-(.)","g");var u=function(b,a){return a.toUpperCase()};String.prototype.encamel=function(){return this.replace(q,u)}}if(m){marqueeInit.table=[];window.attachEvent("onload",function(){marqueeInit.OK=true;for(var b=0;b<marqueeInit.table.length;++b)marqueeInit.run(marqueeInit.table[b])})}marqueeInit.run=function(b){if(m&&!marqueeInit.OK&&
h(document.getElementById(b)))marqueeInit.table.push(b);else if(document.getElementById(b))new g(t++,document.getElementById(b));else setTimeout(function(){marqueeInit.run(b)},300)};g.prototype.setup=function(){if(!this.mq.setup){this.mq.setup=this;var b,a=this;if(this.c.style.height==="auto")this.c.style.height=this.m.offsetHeight+4+"px";this.c.appendChild(this.m.cloneNode(true));this.m=[this.m,this.m.nextSibling];if(this.mq.mouse=="cursor driven"){this.r=this.mq.neutral||16;this.sinc=this.mq.inc;
this.c.onmousemove=function(c){a.mq.stopped=false;a.directspeed(c)};if(this.mq.moveatleast){this.mq.inc=this.mq.moveatleast;if(this.mq.savedirection)if(this.mq.savedirection=="reverse")this.c.onmouseout=function(c){if(!a.contains(c)){a.mq.inc=a.mq.moveatleast;a.mq.direction=a.mq.direction=="right"?"left":"right"}};else{this.mq.savedirection=this.mq.direction;this.c.onmouseout=function(c){if(!a.contains(c)){a.mq.inc=a.mq.moveatleast;a.mq.direction=a.mq.savedirection}}}else this.c.onmouseout=function(c){if(!a.contains(c))a.mq.inc=
a.mq.moveatleast}}else this.c.onmouseout=function(c){a.contains(c)||a.slowdeath()}}this.w=this.m[0].offsetWidth;this.m[0].style.left=0;this.c.id="marq_kill_marg_bord";this.m[0].style.top=this.m[1].style.top=Math.floor((this.c.offsetHeight-this.m[0].offsetHeight)/2-0)+"px";this.c.id="";this.c.removeAttribute("id",0);this.m[1].style.left=this.w+"px";for(b=this.mq.moveatleast?Math.max(this.mq.moveatleast,this.sinc):this.sinc||this.mq.inc;this.c.offsetWidth>this.w-b;)this.c.style.width=isNaN(this.cw[0])?
this.w-b+"px":--this.cw[0]+this.cw[1];this.c.style.visibility="visible";this.runit()}};g.prototype.slowdeath=function(){var b=this;if(this.mq.inc){this.mq.inc-=1;this.timer=setTimeout(function(){b.slowdeath()},100)}};g.prototype.runit=function(){var b=this,a=this.mq.direction=="right"?1:-1;if(this.mq.stopped||this.mq.stopMarquee)setTimeout(function(){b.runit()},300);else{if(this.mq.mouse!="cursor driven")this.mq.inc=Math.max(1,this.mq.inc);if(a*parseInt(this.m[0].style.left)>=this.w)this.m[0].style.left=
parseInt(this.m[1].style.left)-a*this.w+"px";if(a*parseInt(this.m[1].style.left)>=this.w)this.m[1].style.left=parseInt(this.m[0].style.left)-a*this.w+"px";this.m[0].style.left=parseInt(this.m[0].style.left)+a*this.mq.inc+"px";this.m[1].style.left=parseInt(this.m[1].style.left)+a*this.mq.inc+"px";setTimeout(function(){b.runit()},30+(this.mq.addDelay||0))}};g.prototype.directspeed=function(b){b=b||window.event;this.timer&&clearTimeout(this.timer);var a=this.c,c=a.offsetWidth;b=(typeof b.pageX=="number"?
b.pageX:b.clientX+document.body.scrollLeft+document.documentElement.scrollLeft)-a.offsetLeft;var d=(c-this.r)/2;for(c=(c+this.r)/2;a=a.offsetParent;)b-=a.offsetLeft;this.mq.direction=b>c?"left":"right";this.mq.inc=Math.round((b>c?b-c:b<d?d-b:0)/d*this.sinc)};g.prototype.contains=function(b){if(b&&b.relatedTarget){b=b.relatedTarget;if(b==this.c)return true;for(;b=b.parentNode;)if(b==this.c)return true}return false};if(window.addEventListener)window.addEventListener("resize",p,false);else window.attachEvent&&
window.attachEvent("onresize",p)}})();
