nlsScroller=new Object();_ua=navigator.userAgent;nls_isIE=(_ua.indexOf("MSIE")>=0);nls_isIE5=(_ua.indexOf("MSIE 5.0")>=0);nls_isIE4=(_ua.indexOf("MSIE 4")>=0);nls_isSafari=(_ua.indexOf("Safari")>=0);nls_isOpera=(_ua.indexOf("Opera")>=0);if(nls_isOpera){nls_isIE=false}function NlsScrollerIco(c){if(!c||c==""){var a=(document.getElementsByTagName?document.getElementsByTagName("SCRIPT"):document.scripts);for(var b=0;b<a.length;b++){if(a[b].src.toLowerCase().indexOf("nlsscroller.js")>=0){c=a[b].src.replace(/nlsscroller.js/gi,"img/");break}}}this.next=c+"next.gif";this.nextover=c+"nextover.gif";this.prev=c+"prev.gif";this.prevover=c+"prevover.gif";this.resume=c+"play.gif";this.resumeover=c+"playover.gif";this.stop=c+"stop.gif";this.stopover=c+"stopover.gif";this.backgrd=c+"bg.gif";this.modeauto=c+"modeauto.gif";this.modeman=c+"modeman.gif";this.loading=c+"loading.gif";return this}function NlsScroller(a){this.scrlId=a;this.intRef=null;this.blockObj=null;this.helper=null;this.ico=new NlsScrollerIco();nlsScroller[a]=this;this.mode="AUTO";this.effect=new NlsEffContinuous();this.showToolbar=false;this.toolbar=["MODE","PLAY","PREV","NEXT"];this.content=[];this.width=150;this.height=80;this.speed=3500;this.stylePref="";this.stopOnMouseOver=false;this.loadText="Loading...";this.prev=function(){this.effect.prev()};this.next=function(){this.effect.next()};this.onMouseOver=function(){};this.onMouseOut=function(){};return this}NLSSCROLLER=NlsScroller.prototype;NLSSCROLLER.setContent=function(d){var b=d.match(/<body[^>]/gi);if(b){d=d.substr(d.indexOf(b[0]));d=d.substr(d.indexOf(">")+1);b=d.match(/<\/body>/gi);if(b){d=d.substr(0,d.indexOf(b[0]))}}var a='<span class="nlsscrollerbreak"></span>';d=d.replace(/<span class=(["']*)nlsscrollerbreak(["']*)><\/span>/gi,a);this.content=d.split(a);this.reload()};NLSSCROLLER.setContentById=function(b){var a=NlsScroller.GE(b);a.style.overflow="hidden";this.setContent(a.innerHTML)};NlsScroller.$posAttr=function(){var b="absolute",a="none";if(nls_isIE4){b="absolute";a="block"}return[b,a]};NlsScroller.$genContent=function(e){var d="",b=NlsScroller.$posAttr();for(var a=0;a<e.content.length;a++){d+=("<table id='"+e.scrlId+"line"+a+"' style='display:"+b[1]+";position:absolute;top:0px' class='"+e.stylePref+"scrlcontentfrm'><tr><td class='"+e.stylePref+"scrlcontent'>"+e.content[a]+"</td></tr></table>")}return d};NLSSCROLLER.render=function(f){var i=NlsScroller.$posAttr(),d=this.scrlId,g="nlsScroller."+d;var j="<table id='"+d+"auto' cellpadding='0' cellspacing='0' "+(this.mode=="MANUAL"?"style='display:none'":"")+"><tr>";j+="<td onmouseover=\"NlsScroller.tbMOVR('"+d+"play')\" onmouseout=\"NlsScroller.tbMOUT('"+d+"play')\" onclick='"+g+".resume();'><img id='"+d+"play' src='"+this.ico.resume+"' alt='Run' ><img id='"+d+"playover' src='"+this.ico.resumeover+"' style='display:none' alt='Play'></td>";j+="<td onmouseover=\"NlsScroller.tbMOVR('"+d+"pause')\" onmouseout=\"NlsScroller.tbMOUT('"+d+"pause')\" onclick='"+g+".stop();'><img id='"+d+"pause' src='"+this.ico.stop+"' alt='Stop'><img id='"+d+"pauseover' src='"+this.ico.stopover+"' style='display:none' alt='Stop'></td>";j+="</tr></table>";var c="<table id='"+d+"manual' border='0' cellpadding='0' cellspacing='0' "+(this.mode=="AUTO"?"style='display:none'":"")+"><tr>";c+="<td onmouseover=\"NlsScroller.tbMOVR('"+d+"prev')\" onmouseout=\"NlsScroller.tbMOUT('"+d+"prev')\" onclick='"+g+".prev();'><img id='"+d+"prev' src='"+this.ico.prev+"' alt='Previous'><img id='"+d+"prevover' src='"+this.ico.prevover+"' style='display:none' alt='Previous'></td>";c+="<td onmouseover=\"NlsScroller.tbMOVR('"+d+"next')\" onmouseout=\"NlsScroller.tbMOUT('"+d+"next')\" onclick='"+g+".next();'><img id='"+d+"next' src='"+this.ico.next+"' alt='Next'><img id='"+d+"nextover' src='"+this.ico.nextover+"' style='display:none' alt='Next'></td>";c+="</tr></table>";var e="<table cellpadding='0' cellspacing='0'><tr><td onclick='"+g+".toggleMode();'><img id='"+d+"mode' src='"+this.ico.modeauto+"' "+(this.mode=="MANUAL"?"style='display:none'":"")+" alt='Toggle scroll mode: auto/manual'><img id='"+d+"modeover' src='"+this.ico.modeman+"' "+(this.mode=="AUTO"?"style='display:none'":"")+" alt='Toggle scroll mode: auto/manual'></td></tr></table>";var a='<table id="'+d+"$loading\" style='display:none;position:absolute;top:z-index:1000'><tr><td><img src='"+this.ico.loading+"'></td><td style='color:#333333'>"+this.loadText+"</td></tr></table>";var h=NlsScroller.$genContent(this);h='<div id="'+d+"$content\" style='height:100%'>"+h+"</div>";h+=("<div id='"+d+"Helper' style='display:"+i[1]+";position:absolute;top:0px;width:100%;height:100%' class='"+this.stylePref+"scrlefflayerH'><table width='100%' cellpadding='0' cellspacing='0'><tr><td></td></tr></table></div>");h=('<div id="'+d+"\" style='position:absolute;overflow:hidden;width:"+this.width+"px;height:"+this.height+"px;' onmouseover=\"NlsScroller.mOver('"+d+"')\" onmouseout=\"NlsScroller.mOut('"+d+"')\">"+h+"</div>");h="<table cellpadding='0' cellspacing='0'><tr><td valign='top' style='width:"+this.width+"px;height:"+this.height+"px'>"+h;h+="</td></tr></table>";h="<table cellpadding='0' cellspacing='0' class='"+this.stylePref+"nlsscroller'><tr><td class='"+this.stylePref+"scrlclient'>"+a+h+"</td></tr>";if(this.showToolbar&&this.toolbar.length>0){h+="<tr><td class='"+this.stylePref+"scrltoolbar' background='"+this.ico.backgrd+"' align='center'><table width='100%' height='100%' cellpadding='0' cellspacing='0'><tr><td width='20px'>&nbsp;</td><td align='center'>"+j+c+"</td><td width='20px'>"+e+"</td></tr></table></td></tr>"}h+="</table>";if(f){var b=NlsScroller.GE(f);b.innerHTML=h;b.style.display="block"}else{document.write(h);h=""}this.helper=NlsScroller.GE(d+"Helper");this.scrl=NlsScroller.GE(d);this.cntWin=NlsScroller.GE(d+"$content");this.ldng=NlsScroller.GE(d+"$loading");if(nls_isIE){window.attachEvent("onload",function(){nlsScroller[d].start()})}else{window.addEventListener("load",function(){nlsScroller[d].start()},false)}return h};NLSSCROLLER.reload=function(){if(!this.cntWin){return}this.stop();this.cntWin.innerHTML=NlsScroller.$genContent(this)};NLSSCROLLER.start=function(){var line=null;this.blockObj=[];for(var i=0;i<this.content.length;i++){line=NlsScroller.GE(this.scrlId+"line"+i);this.blockObj[this.blockObj.length]=line;with(line.style){zIndex=this.content.length-i;display=""}}if(this.blockObj.length==0){return}this.effect.init(this);this.stop();if(this.effect.name=="NlsEffContinuous"){this.intRef=setTimeout("eval(nlsScroller."+this.scrlId+".effect.run())",this.speed)}else{if(this.mode=="AUTO"){this.intRef=setInterval("eval(nlsScroller."+this.scrlId+".effect.run())",this.speed)}}};NLSSCROLLER.stop=function(){if(!this.effect){return}if(this.effect.name=="NlsEffContinuous"){this.effect.stop();if(this.intRef){clearTimeout(this.intRef);this.intRef=null}}else{if(this.intRef){clearInterval(this.intRef);this.intRef=null}}};NLSSCROLLER.resume=function(){if(!this.effect){return}if(this.effect.name=="NlsEffContinuous"){this.effect.run()}else{if(this.intRef==null){this.intRef=setInterval("eval(nlsScroller."+this.scrlId+".effect.run())",this.speed)}}};NLSSCROLLER.toggleMode=function(){var b=NlsScroller.GE(this.scrlId+"mode");var c=NlsScroller.GE(this.scrlId+"modeover");var d=NlsScroller.GE(this.scrlId+"manual");var a=NlsScroller.GE(this.scrlId+"auto");if(this.mode=="AUTO"){if(this.effect.name=="NlsEffContinuous"){alert("Manual mode not available in this effect");return}this.mode="MANUAL";this.stop();b.style.display="none";c.style.display="";d.style.display="";a.style.display="none"}else{if(this.mode=="MANUAL"){this.mode="AUTO";this.effect.cfg.topicsequence="next";this.resume();b.style.display="";c.style.display="none";d.style.display="none";a.style.display=""}}};NLSSCROLLER.setEffect=function(a){if(!a){return}if(a.name=="NlsEffContinuous"){if(NlsScroller.GE(this.scrlId+"mode")){if(this.mode=="MANUAL"){this.toggleMode()}}else{this.mode="AUTO"}}else{if(a.name=="NlsEffIETrans"){if(!nls_isIE||nls_isIE5){return}}else{if(a.name=="NlsEffFade"){if(nls_isOpera||nls_isIE5){return}}}}this.stop();this.effect=a};NlsScroller.GE=function(a){if(document.all){return document.all(a)}else{if(document.getElementById){return document.getElementById(a)}}};NlsScroller.exitView=function(a,c,b){switch(a){case"up":case"left":return(c<=b);case"down":case"right":return(c>=b)}};NlsScroller.prevTopic=function(){this.cfg.topicsequence="prev";this.run()};NlsScroller.nextTopic=function(){this.cfg.topicsequence="next";this.run()};NlsScroller.setTopic=function(){this.crTpc=NlsScroller.getTopic(this)};NlsScroller.getTopic=function(b){var a=b.scr.blockObj.length,c=b.crTpc;if(b.cfg.topicsequence=="next"){c=(c==a-1?0:c+1)}else{c=(c==0?a-1:c-1)}return c};NlsScroller.tbMOVR=function(a){NlsScroller.GE(a).style.display="none";NlsScroller.GE(a+"over").style.display=""};NlsScroller.tbMOUT=function(a){NlsScroller.GE(a).style.display="";NlsScroller.GE(a+"over").style.display="none"};NlsScroller.mOver=function(a){var b=nlsScroller[a];if(b.mode=="MANUAL"){return}if(b.stopOnMouseOver){b.stop()}b.onMouseOver()};NlsScroller.mOut=function(a){var b=nlsScroller[a];if(b.mode=="MANUAL"){return}if(b.stopOnMouseOver){b.resume()}b.onMouseOut()};function NlsEffContinuous(conf){var me=this;this.scr=null;this.rtprop={};this.cfg={direction:"up",speed:40,step:1,delay:0};if(conf&&conf!=""){var tcnf=conf.replace(/\s+/gi,"").toLowerCase().split(",");var keyval="";for(var i=0;i<tcnf.length;i++){keyval=tcnf[i].split("=");this.cfg[keyval[0]]=keyval[1]}}this.crTpc=0;this.lsTpc=null;this.name="NlsEffContinuous";this.init=function(scr){this.scr=scr;this.crTpc=0;var line=null;var tmpPos=0;for(var i=0;i<this.scr.blockObj.length;i++){line=this.scr.blockObj[i];line.style.height="";with(line.style){switch(this.cfg.direction){case"up":left=0;top=tmpPos+"px";tmpPos+=line.offsetHeight;break;case"down":left=0;tmpPos+=line.offsetHeight;top=(this.scr.height-tmpPos)+"px";break;case"left":top=0;left=tmpPos+"px";tmpPos+=line.offsetWidth;break;case"right":top=0;tmpPos+=line.offsetWidth;left=(this.scr.width-tmpPos)+"px";break}}}this.lsTpc=line};this.run=function(){if(!this.scr){return}var step=1,dir,odim,dim,sdir=this.cfg.direction;switch(sdir){case"up":case"left":this.runScroll=runUpLeft;step=-this.cfg.step;break;case"down":case"right":this.runScroll=runDownRight;step=+this.cfg.step;break}switch(sdir){case"up":case"down":dir="top";odim="offsetHeight";dim="height";break;case"left":case"right":dir="left";odim="offsetWidth";dim="width";break}this.stop();this.rtprop.tmId=window.setInterval(function(){me.runScroll(step,dir,odim,dim)},+me.cfg.speed)};this.runScroll=function(){};function runUpLeft(step,p_dir,p_odim,p_dim){var l,pos,bl=this.scr.blockObj;for(var i=0;i<bl.length;i++){l=bl[i];pos=parseInt(l.style[p_dir])+step;l.style[p_dir]=pos+"px";if(pos>this.scr[p_dim]){pos=parseInt(bl[i-1].style[p_dir])+bl[i-1][p_odim];l.style[p_dir]=pos+"px";break}}l=bl[0];pos=parseInt(l.style[p_dir]);var bound=-l[p_odim];if(NlsScroller.exitView(this.cfg.direction,pos,bound)){var t=parseInt(this.lsTpc.style[p_dir])+this.lsTpc[p_odim];l.style[p_dir]=(t>this.scr[p_dim]?t:this.scr[p_dim])+"px";this.lsTpc=l;for(var i=0;i<bl.length-1;i++){bl[i]=bl[i+1]}bl[i]=l;if(+this.cfg.delay>0){this.stop();setTimeout(function(){me.run()},+this.cfg.delay)}}}function runDownRight(step,p_dir,p_odim,p_dim){var l,pos,bl=this.scr.blockObj;for(var i=0;i<bl.length;i++){l=bl[i];pos=parseInt(l.style[p_dir])+step;l.style[p_dir]=pos+"px";if(pos+l[p_odim]<0){pos=parseInt(bl[i-1].style[p_dir])-l[p_odim];l.style[p_dir]=pos+"px";break}}l=bl[0];pos=parseInt(l.style[p_dir]);var bound=this.scr[p_dim];if(NlsScroller.exitView(this.cfg.direction,pos,bound)){var t=parseInt(this.lsTpc.style[p_dir]);l.style[p_dir]=(t<0?(t-l[p_odim]):-l[p_odim])+"px";this.lsTpc=l;for(var i=0;i<bl.length-1;i++){bl[i]=bl[i+1]}bl[i]=l;if(+this.cfg.delay>0){this.stop();setTimeout(function(){me.run()},+this.cfg.delay)}}}this.stop=function(){if(this.rtprop.tmId!=null){clearInterval(this.rtprop.tmId);this.rtprop.tmId=null}}};