var st = new Array (
   'Kansas',
   'Kansas',
   'Iowa',
   '',
   'www.refugeforums.com',
   'NY',
   'KS',
   ''
);

var who = new Array (
   'Dave T.',
   'Troy P.',
   'Tony R.',
   'Curtis W., Jr.',
   'drylok',
   'Karl & Gail S.',
   'Randy D. H.',
   'Bill B.'
);

var city = new Array (
   'Hiawatha',
   'Dodge City,',
   'Kingsley,',
   '',
   'Duck Hunters Forum',
   'Brockport,',
   'Wichita,',
   ''
);

var what = new Array(
   '&quot;I came across your web site a few months ago and made a purchase.  Consequently, I received a sale flyer with products and deals intriguing enough to prompt me to make a 200 mile round trip to your new store.  I wasn&#39;t disappointed!!   It&#39;s refreshing to go to an outdoor sporting goods store designed and stocked for the real outdoorsman rather than the overblown “something-for-everyone” store with massive aquariums, priceless taxidermy mounts, and overpriced products for the casual outdoorsman.  I plan to start all my quests for hunting and fishing supplies with you, and wish you all the success!!&quot;',
   '&quot;Roger&#39;s continue to be the best Outdoor Sporting goods store I have ever done business with.  Living in SW Kansas it&#39;s very difficult to get top of the line equipment at good prices.  Plus I receive my order within one business day.  I applaud your business, and in the future I hope its remains as it is now.&quot;',
   '&quot;Wow! That&#39;s the 1st thing I said.  Ordered and 2 days latter it&#39;s here, it&#39;s correct and the price was fantastic.  You have one VERY satisfied customer here.  You will be hearing from me again.  And yes, I will tell my hunting/fishing partners about my experience with you.&quot;',
   '&quot;On a trip just this last week to Texas I had the great pleasure of stopping into your store. When I arrived I was amazed at the selection you have for fishing items. On my trip I was able to visit 2 Bass Pro Shops. I spent more time at your store than I did at either of them. On our way back from Texas I made it a point to stop again just to make sure there was nothing that I missed on my first time through.&quot;',
   '&quot;I love that place. I received a gift card to their store and just ordered a box of Big Foots and a FA goose flag. No sales tax, free shipping (on certain items) and quick delivery in my experience. When I ordered my layout blind a while back I was commenting on his prices and he told me to please call him if I find something under his price.&quot;',
   '&quot;Hello to all at Rogers. I just wanted to send you a note that my 2 dozen Higdon decoys came in just fine. My wife&#39;s order for the 2 mojos came in fine also. Thanks for getting the goods out so fast. I really like that!!! I&#39;ll spread the word out to my fellow hunters Thanks abunch&quot;',
   '&quot;I am totally amazed at the service I just received. Yesterday I ordered the FA lesser full-body goose decoys around lunch, I had a phone call from my wife saying they had been delivered before lunch time today. I was kicking myself yesterday for not ordering these earlier in the week so I could have them for this weekends hunt. I would just like to thank you for your prompt delivery.&quot;',
   '&quot;I just wanted to send a quick note to Rogers to let them know I very much appreciate work recently done on my new bow in your archery department. I recently bought a new bow; not at Rogers...<br>When I shot it, arrows left the bow resembling bottle rockets...<br>I took my new bow into Rogers archery department.  They both were fantastic help. The gentleman that tuned it up for me obviously knows his way around a bow. He had it shooting straight for me in just a few minutes.<br>Life is good again, and I&#39;m loving my new bow.&quot;'
);
/*Example message arrays for the two demo scrollers*/

var tickercontent=new Array();
/** Load ticker **/
for ( var i = 0; i < what.length; i++ ) {
   tickercontent[i]=what[i] + '<p>' + who[i] + '<br>' + city[i] + ' ' + st[i] + '</p>';
}

// var tickercontent2=new Array();
/** Not using ticker2
for ( var i = 0; i < who.length; i++ ) {
   tickercontent2[i]=who[i] + '<br>' + city[i] + ' ' + st[i];
}
**/
var Delay = 15000;

/***********************************************
* DHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
* Source: http://www.dynamicdrive.com/dynamicindex2/generaltick.htm
***********************************************/
function domticker(content, divId, divClass, delay, fadeornot) {
   delay = Delay;
   this.content=content;
   // ID of master ticker div. Message is contained inside first child of ticker div
   this.tickerid=divId;
   // Delay between msg change, in miliseconds.
   this.delay=delay;
   // Boolean to indicate whether mouse is currently over ticker (and pause it if it is)
   this.mouseoverBol=0;
   this.pointer=1;
   this.opacitystring=(typeof fadeornot!="undefined")? "width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1" : "";

   if (this.opacitystring!="") {
      // add 1/2 sec to account for fade effect, if enabled
      this.delay+=500;
   }

   // Opacity value when reset. Internal use.
   this.opacitysetting=0.2;
   document.write('<div id="'+divId+'" class="'+divClass+'"><div style="'+this.opacitystring+'">'+content[0]+'</div></div>');
   var instanceOfTicker=this;
   setTimeout(function(){instanceOfTicker.initialize()}, delay);
}

domticker.prototype.initialize=function() {
   var instanceOfTicker=this;
   // div of inner content that holds the messages
   this.contentdiv=document.getElementById(this.tickerid).firstChild;
   document.getElementById(this.tickerid).onmouseover=function(){instanceOfTicker.mouseoverBol=1};
   document.getElementById(this.tickerid).onmouseout=function(){instanceOfTicker.mouseoverBol=0};
   this.rotatemsg();
}

domticker.prototype.rotatemsg=function() {
   var instanceOfTicker=this;
   if (this.mouseoverBol==1) {
      // if mouse is currently over ticker, do nothing (pause it)
      setTimeout(function(){instanceOfTicker.rotatemsg()}, 100);
   } else {
      // FADE EFFECT- RESET OPACITY
      this.fadetransition("reset");
      this.contentdiv.innerHTML=this.content[this.pointer];
      // FADE EFFECT- PLAY IT
      this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100);
      this.pointer=(this.pointer<this.content.length-1)? this.pointer+1 : 0;
      // update container
      setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay);
   }
}

// -------------------------------------------------------------------
// fadetransition()- cross browser fade method for IE5.5+ and Mozilla/Firefox
// -------------------------------------------------------------------

domticker.prototype.fadetransition=function(fadetype, timerid) {
   var contentdiv=this.contentdiv;
   if (fadetype=="reset") {
      this.opacitysetting=0.2;
   }
   if (contentdiv.filters && contentdiv.filters[0]) {
      if (typeof contentdiv.filters[0].opacity=="number") {
         // IE6+
         contentdiv.filters[0].opacity=this.opacitysetting*100;
      } else {
         // IE 5.5
         contentdiv.style.filter="alpha(opacity="+this.opacitysetting*100+")";
      }
   } else if (typeof contentdiv.style.MozOpacity!="undefined" && this.opacitystring!="") {
      contentdiv.style.MozOpacity=this.opacitysetting;
   } else {
      this.opacitysetting=1;
   }
   if (fadetype=="up") {
      this.opacitysetting+=0.2;
   }
   if (fadetype=="up" && this.opacitysetting>=1) {
      clearInterval(this[timerid]);
   }
}
