var xmsg=new Array()
xmsg[0]="<FONT SIZE='3' color='#F7D411'><b>Welcome To The Venturers M/C</b></FONT>"
xmsg[1]="<FONT SIZE='3' color='#ADC1FB'>Members get a 15% discount at Choice Hotels</FONT>"
xmsg[2]="<FONT SIZE='3' color='#F7D411'>Congratulations to Nacho for winning the New Patch/Pin Contest</b></FONT>"
/*xmsg[3]="<FONT SIZE='3' color='#ADC1FB'>Congratulations to Venturous for winning the October Photo Contest</b></FONT>"
/*xmsg[4]="<FONT SIZE='3' color='#ADC1FB'>March Photo Contest</FONT><FONT SIZE='3' color='#FFFFFF'> -  <a href='http://www.venturers.org/Photo_Gallery/showgallery.php?cat=615'><span style='color:yellow'><b>Please Vote Here</b></span></a></FONT>"*/
/*xmsg[5]="<FONT SIZE='3' color='#ADC1FB'>February 2009 Member Photo Contest</FONT><FONT SIZE='3' color='#FFFFFF'> -  <a href='http://www.venturers.org/Photo_Gallery/showgallery.php?cat=612'><span style='color:yellow'>Upload your photos here.</span></a></FONT>"*/
xmsg[4]="<FONT SIZE='2' color='#FFFFFF'>Check <a href='http://www.venturers.org/Events_Calendar/nextyear.php'><span style='color:yellow'>calendar</span></a> for events near you. Aren't any? Please consider hosting one!</FONT>"
xmsg[5]="<FONT SIZE='3' color='#ADC1FB'>Congrats to Yooper for Winning the 2009 Members Photo Contest.</FONT>"
/xmsg[6]="<FONT SIZE='3' color='#DAA520'>We are having a Membership Contest</FONT><FONT SIZE='3' color='#FFFFFF'> - <a href='http://www.venturers.org/Forum/viewtopic.php?t=15679&sid=bd3af17445ca000380dc5679c4f11108'><span style='color:yellow'><b>Check it out here</b></span></a></FONT>"
/*xmsg[7]="<FONT SIZE='3' color='#00FF00'>Win a new Bushtec Trailer</FONT><FONT SIZE='3' color='#FFFFFF'> - <a href='http://www.venturers.org/Forum/viewtopic.php?t=15688'><span style='color:yellow'><b>Look here for the details</b></span></a></FONT>"*/
xmsg[6]="<FONT SIZE='2' color='#FFFFFF'><b>Not a member? See <a href='http://www.venturers.org/Forum/cms_view_article.php?aid=40'><span style='color:yellow'>Benefits of Membership</span></a> See why so many are PTBAV</b></FONT>"
/*xmsg[7]="<FONT SIZE='2' color='#FFFFFF'><b>2008 Member Photo Calendars Ready! <a href='http://www.cafepress.com/VCal2008'><span style='color:yellow'>Order Now</span></a></b></FONT>"*/

/* The variables below are the ones you want to change  */

xspeed=5                      // Sets the speed in milliseconds at which the link or text scrolls.
var xdivwidth=600            // Sets the width of the div or layer in pixels.  You will have to play with this to get it set correctly.
var xdivheight=20            // Sets the height of the div or layer in pixels.  Same as above.

/*
   The variables divincbt, divinctb, divincrl and divinclr set the increment in pixels that the div that contains the text
    or links is moved.  Which one is used is determined by the direction that you pick in the variable whichscroll.
    The variable divinctb would be used if you set whichscroll to 1, divinctb if you set whichscroll to 2, divincrl if
     you set whichscroll to 3 and divinclr if you set whichscroll to 4.  You can change these variables to speed up
     or slow down the movement of the scroll.
*/

var xdivincbt=1                 
var xdivinctb=-1
var xdivincrl=10
var xdivinclr=-20

var xdivpause=8000        // Sets how long to pause in milliseconds before scrolling the next link or text. 

var xdivtop="1"              // divtop and divleft set the top and left positions of the container div or layer in pixels. 
var xdivleft="1"               

var xdivcolor=""      // Sets the background color of the div or layer

var xdivname1="xscroll2"  // Sets the name of your div or layer for the first link or text that is displayed
var xdivname2="xscroll3"  // Sets the name of your div or layer for the next link or text to be displayed

/*
   The variable whichscroll is used to set the direction of the scrolling.  It is currently set to 1.
    1 = Bottom to Top
    2 = Top to Bottom
    3 = Right to Left
    4 = Left to Right
*/
var xwhichscroll="1"

/* END OF CONFIGURATION VARIABLES */

/* THERE IS NO NEED TO CHANGE THE VARIABLES OR SCRIPTS BELOW */

var xdivinc
var xstopposa
var xstopposb
var xscrollmsga
var xscrollmsgb 
var xthediva
var xthedivb
var xposa
var xposb
var xi=xmsg.length
var xfirsttime="y"
var xdivprop
var xwhichdiv=xdivname1
if(xwhichscroll=="1")
  {
   xstopposa=0
   xstopposb=xdivheight*-1
   xdivprop="top"
   xdivinc=xdivincbt
  }
if(xwhichscroll=="2")
  {
   xstopposa=0
   xstopposb=xdivheight
   xdivprop="top"
   xdivinc=xdivinctb
  }
if(xwhichscroll=="3")
  {
   xstopposa=0
   xstopposb=xdivwidth*-1
   xdivprop="left"
   xdivinc=xdivincrl
  }
if(xwhichscroll=="4")
  {
   xstopposa=1
   xstopposb=xdivwidth+2
   xdivprop="left"
   xdivinc=xdivinclr
  }

function xScrollboxa(xobja)
     {
         xsavobja=xobja
         xposa=xposa-xdivinc
         if(((xwhichscroll=="1" || xwhichscroll=="3")&&(xposa<=xstopposa))||
           ((xwhichscroll=="2" || xwhichscroll=="4")&&(xposa>=xstopposa)))
           {
            clearTimeout(xscrollmsga)
            setTimeout("xscrollit()",xdivpause)
           } 
         else
             {
              if(document.getElementById) // IE5 and NS6
                {
                 eval("xelma.style."+xdivprop+"=xposa")
                 xelma.style.visibility="visible"
                }
              if(document.layers)    // NS4+
                {
                 eval("xobja."+xdivprop+"=xposa")
                 document.main.visibility="show"
                }
              xscrollmsga=setTimeout("xScrollboxa(xsavobja)",xspeed)
             }
     }
function xScrollboxb(xobjb)
     {
         xsavobjb=xobjb
         xposb=xposb-xdivinc
         if(((xwhichscroll=="1" || xwhichscroll=="3")&&(xposb<=xstopposb))||
            ((xwhichscroll=="2" || xwhichscroll=="4")&&(xposb>=xstopposb)))
           {
            clearTimeout(xscrollmsgb)
           }
         else
              {
               if(document.getElementById) // IE5 and NS6
                 {
                  eval("xelmb.style."+xdivprop+"=xposb")
                 }
               if(document.layers)  // NS4+
                 {
                  eval("xobjb."+xdivprop+"=xposb")
                  xobjb.visibility="show"
                 }
               xscrollmsgb=setTimeout("xScrollboxb(xsavobjb)",xspeed)
              }
     }
function xscrollit()
   {
    xi++
    if(xi>=xmsg.length)
      {xi=0}
    xposa=xstopposb*-1
    xposb=0
    if(xfirsttime=="y")
      {
       xfirsttime= "n"
       if(document.getElementById)      // IE5 and NS6
         {
          xelma=document.getElementById(xdivname1)
          xelma.innerHTML=xmsg[xi]
         }
      if(document.layers)   // NS4+
        {
         xthediva=xeval("document.main.document."+xdivname1)
         xthediva.document.write(xmsg[xi])
         xthediva.document.close()
        }
       xScrollboxa(xthediva)
      }
    else
      {
       if(xwhichdiv==xdivname1)
         {
          if(document.getElementById)  // IE5 and NS6
            {
             xelmb=document.getElementById(xdivname1)
             xelma=document.getElementById(xdivname2)
             xelma.innerHTML=xmsg[xi]
            }
          if(document.layers)  //  NS4+
            {
             xthedivb=eval("document.main.document."+xdivname1)
             xthediva=eval("document.main.document."+xdivname2)  
             xthediva.document.write(xmsg[xi])
             xthediva.document.close()
            }
          xScrollboxb(xthedivb)
          xwhichdiv=xdivname2
          xScrollboxa(xthediva)
         }
       else
         {
          if(document.getElementById)   // IE5 and NS6
            {
             xelmb=document.getElementById(xdivname2)
             xelma=document.getElementById(xdivname1)
             xelma.innerHTML=xmsg[xi]
             }
          if(document.layers)  // NS4+
            {
             xthedivb=eval("document.main.document."+xdivname2)
             xthediva=eval("document.main.document."+xdivname1)
             xthediva.document.write(xmsg[xi])
             xthediva.document.close()
             }
          xScrollboxb(xthedivb)
          xwhichdiv=xdivname1
          xScrollboxa(xthediva)
         }
      }
  }





     

