function Banner(a){this.obj=a;this.aNodes=[];this.currentBanner=0}Banner.prototype.add=function(b,c,f,d,a,g,e){this.aNodes[this.aNodes.length]=new Node(this.obj+"_"+this.aNodes.length,b,c,f,d,a,g,e)};function Node(c,b,d,g,e,a,h,f){this.name=c;this.bannerType=b;this.bannerPath=d;this.bannerDuration=g;this.width=e;this.height=a;this.hyperlink=h;this.title=f}Banner.prototype.toString=function(){var b="";for(var a=0;a<this.aNodes.length;a++){b=b+'<span name="'+this.aNodes[a].name+'" ';b=b+'id="'+this.aNodes[a].name+'" ';b=b+'class="m_banner_hide" ';b=b+'bgcolor="#FFFCDA" ';b=b+'align="center" ';b=b+'valign="top" >\n';if(this.aNodes[a].hyperlink!=""){b=b+'<a target="_blank" href="'+this.aNodes[a].hyperlink+'" title="'+this.aNodes[a].title+'">'}if(this.aNodes[a].bannerType=="FLASH"){b=b+"<OBJECT ";b=b+'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';b=b+'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';b=b+'WIDTH="'+this.aNodes[a].width+'" ';b=b+'HEIGHT="'+this.aNodes[a].height+'" ';b=b+'id="bnr_'+this.aNodes[a].name+'" ';b=b+'ALIGN="" ';b=b+"VIEWASTEXT>";b=b+'<PARAM NAME=movie VALUE="'+this.aNodes[a].bannerPath+'">';b=b+"<PARAM NAME=quality VALUE=high>";b=b+"<PARAM NAME=bgcolor VALUE=#FFFCDA>";b=b+"<EMBED ";b=b+'src="'+this.aNodes[a].bannerPath+'" ';b=b+"quality=high ";b=b+'WIDTH="'+this.aNodes[a].width+'" ';b=b+'HEIGHT="'+this.aNodes[a].height+'" ';b=b+'NAME="bnr_'+this.aNodes[a].name+'" ';b=b+'ALIGN="center" ';b=b+'TYPE="application/x-shockwave-flash" ';b=b+'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">';b=b+"</EMBED>";b=b+"</OBJECT>"}else{if(this.aNodes[a].bannerType=="IMAGE"){b=b+'<img src="'+this.aNodes[a].bannerPath+'" ';b=b+'border="0" ';b=b+'height="'+this.aNodes[a].height+'" ';b=b+'width="'+this.aNodes[a].width+'" ';b=b+'alt="'+this.aNodes[a].title+'" title="'+this.aNodes[a].title+'">'}}if(this.aNodes[a].hyperlink!=""){b=b+"</a>"}b+="</span>"}return b};Banner.prototype.start=function(){this.changeBanner();var a=this.obj;setTimeout(a+".start()",this.aNodes[this.currentBanner].bannerDuration*1000)};Banner.prototype.changeBanner=function(){var b;var a=-1;if(this.currentBanner<this.aNodes.length){b=this.currentBanner;if(this.aNodes.length>1){if(b>0){a=b-1}else{a=this.aNodes.length-1}}if(this.currentBanner<this.aNodes.length-1){this.currentBanner=this.currentBanner+1}else{this.currentBanner=0}}if(a>=0){document.getElementById(this.aNodes[a].name).className="m_banner_hide"}document.getElementById(this.aNodes[b].name).className="m_banner_show"};