<!-- 

function Banner(objName)
   {
   this.obj = objName;
   this.aNodes = [];
   this.currentBanner = -1;
   };

Banner.prototype.add = function(BannerType, BannerLocation, BannerLength, H, W, AltText, URL) {
	this.aNodes[this.aNodes.length] = new Node(this.obj +"_"+ this.aNodes.length, BannerType, BannerLocation, BannerLength, H, W, AltText, URL);
    };

function Node(Name, BannerType, BannerLocation, BannerLength, H, W, AltText, URL) {
 this.Name = Name;
 this.BannerType = BannerType;
 this.BannerLocation= BannerLocation;
 this.BannerLength = BannerLength;
 this.H = H
 this.W = W;
 this.AltText = AltText;
 this.URL = URL;
};

Banner.prototype.toString = function() {
 var str = ""
 for (var iCtr=0; iCtr < this.aNodes.length; iCtr++){
   str = str + '<span name="'+this.aNodes[iCtr].Name+'" '
   str = str + 'id="'+this.aNodes[iCtr].Name+'" ';
   str = str + 'class="m_banner_hide" ';
   str = str + 'align="center" ';
   str = str + 'valign="top" >\n';
   if (this.aNodes[iCtr].URL != ""){
     str = str + '<a href="'+this.aNodes[iCtr].URL+'">';
 	}

   if ( this.aNodes[iCtr].BannerType == "FLASH" ){
     str = str + '<OBJECT '
     str = str + 'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
     str = str + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '
     str = str + 'HEIGHT="'+this.aNodes[iCtr].H+'" ';
     str = str + 'WIDTH="'+this.aNodes[iCtr].W+'"';
     str = str + 'target="_self"';
     str = str + 'id="bnr_'+this.aNodes[iCtr].Name+'" '
     str = str + 'ALIGN="" '
     str = str + 'VIEWASTEXT>'
     str = str + '<PARAM NAME=movie VALUE="'+ this.aNodes[iCtr].BannerLocation + '">'
     str = str + '<PARAM NAME=quality VALUE=high>'
     str = str + '<PARAM NAME=bgcolor VALUE=#FFFCDA>'
     str = str + '<EMBED ';
     str = str + 'src="'+this.aNodes[iCtr].BannerLocation+'" '
     str = str + 'quality=high '
     str = str + 'HEIGHT="'+this.aNodes[iCtr].H+'" ';
     str = str + 'WIDTH="'+this.aNodes[iCtr].W+'"';
     str = str + 'NAME="bnr_'+this.aNodes[iCtr].Name+'" '
     str = str + 'ALIGN="center" '
     str = str + 'TYPE="application/x-shockwave-flash" '
     str = str + 'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">'
     str = str + '</EMBED>'
     str = str + '</OBJECT>'
   }else if ( this.aNodes[iCtr].BannerType == "IMAGE" ){
     str = str + '<img src="'+this.aNodes[iCtr].BannerLocation+'" ';
     str = str + 'border="0" ';
     str = str + 'height="'+this.aNodes[iCtr].H+'" ';
     str = str + 'width="'+this.aNodes[iCtr].W+'"';
     str = str + 'target="_self"';
     str = str + 'alt="'+this.aNodes[iCtr].AltText+'">';
}

   if (this.aNodes[iCtr].hyperlink != ""){
   	str = str + '</a>';
   }

   str += '</span>';
   }
   return str;
};

Banner.prototype.start = function()
{
  this.changeBanner();
  var thisBannerObj = this.obj;
  setTimeout(thisBannerObj+".start()", this.aNodes[this.currentBanner].BannerLength  * 1000);
}
// Swap Banners
Banner.prototype.changeBanner = function()
{
  var oldBanner=this.currentBanner;
  if (this.currentBanner == -1)
     { this.currentBanner=0; 
      oldBanner=0; }
  else { this.currentBanner=this.currentBanner +1; }
  if (this.currentBanner >= this.aNodes.length)
    this.currentBanner=0;
	if (document.getElementById(this.aNodes[oldBanner].Name).className=='m_banner_show')
	{
	document.getElementById(this.aNodes[oldBanner].Name).className = "m_banner_hide";
	}
	document.getElementById(this.aNodes[this.currentBanner].Name).className = "m_banner_show";
    }

//-->