var msg = 0

var msg=new Array()
msg[0]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b> received the <b>SILVER AWARD</b> from Home Builders Association of Durham and Orange Counties for their <b>PARADE OF HOMES</b> entry.</FONT>"
msg[1]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b> builds homes in a variety of sizes - averaging approximately 3,500 square feet - in locations all over the Triangle. Home renovation and addition requests are also popular. Whether it's a bonus room, master suite, kitchen or screened porch, we've got the knowledge and manpower to complete the job ourselves, from drawing up blueprints to construction clean up.  Maple Leaf Construction is a full-service, licensed general contractor.</FONT>"
msg[2]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b> has provided framing for Beazer Homes, Anderson Homes, Centex-Crosland, Comstock Homes, Waynes Homes, D.A. Thomas Construction, San-Lee Builders, J.D. Mahoney, and Squires Homes in neighborhoods from Apex to North Raleigh.</FONT>"
msg[3]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>MAPLE LEAF NEWS:</b><br><b>OFFICE SPACE FOR RENT in HISTORIC DOWNTOWN PITTSBORO, N.C.</b> The space available is contained in one commercial property with 2 floors containing (4) offices and (1) restroom on each floor.  The total office space is 3000 square feet, and is located on approximately 2 acres of land. <b><a href='http://www.mapleleafconstruction.com/officeforrent.html' target='blank'><u>CLICK HERE for pictures of the property</u></a></b>.  <b><a href='contactus.html'><u>CONTACT US</u></a></b> for more details.</FONT>"
msg[4]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b> builds homes in a variety of sizes - averaging approximately 3,500 square feet - in locations all over the Triangle. Home renovation and addition requests are also popular. Whether it's a bonus room, master suite, kitchen or screened porch, we've got the knowledge and manpower to complete the job ourselves, from drawing up blueprints to construction clean up.  Maple Leaf Construction is a full-service, licensed general contractor.</FONT>"
msg[5]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'>As a licensed, full-service general contractor,  <b>Maple Leaf Construction</b> provides site selection and evaluation, planning, budgeting, permiting, and construction.  We provide highly skilled Project Managment that is usually only found in board rooms of big corporations.</FONT>"
msg[6]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b> has built homes from the ground up.  We can build custom homes.<A href='forsale.html'><u>Check out the homes we have developed, and the homes currently for sale.</u></A></FONT>"
msg[7]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b> received the <b>SILVER AWARD</b> from the Home Builders Association of Durham and Orange Counties for their <b>PARADE OF HOMES</b> entry.  We are honored for the recognition.</FONT>"
msg[8]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b> has an outstanding reputation for completing projects within budgets committed to during the planning phase.   We track costs from beginning to end, notifying owners how changes in design during building will effect their building costs.</FONT>"
msg[9]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>MAPLE LEAF NEWS:</b><br><A href='forsale.html'><u>(2) New homes are immediately available for sale in the Chatham Forest Community.</u></A></FONT>"
msg[10]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b>  has an enormous <A HREF='resources.html'><u>list of web resources</u></A> to assist the homeowner with planning and decision making during the building phase.</FONT>"
msg[11]="<img src='icon/buttons/mapleleaf-small.png' border='0' width='14' height='14'>&nbsp;<FONT FACE='Arial' size='1'><b>Maple Leaf Construction</b> joins <A HREF='http://www.virtualraleigh.com' target='blank'><u>Virtual Raleigh Online Guide</u></A></FONT>"


/* The variables below are the ones you want to change  */

speed=10                      // Sets the speed in milliseconds at which the link or text scrolls.
var divwidth=195            // Sets the width of the div or layer in pixels.  You will have to play with this to get it set correctly.
var divheight=164            // 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 divincbt=1                 
var divinctb=-1
var divincrl=10
var divinclr=-10

var divpause=9000        // Sets how long to pause in milliseconds before scrolling the next link or text. 

var divtop="8"              // divtop and divleft set the top and left positions of the container div or layer in pixels. 
var divleft="10"               

var divcolor=""      // Sets the background color of the div or layer

var divname1="scroll2"  // Sets the name of your div or layer for the first link or text that is displayed
var divname2="scroll3"  // 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 whichscroll="1"

/* END OF CONFIGURATION VARIABLES */

/* THERE IS NO NEED TO CHANGE THE VARIABLES OR SCRIPTS BELOW */

var divinc
var stopposa
var stopposb
var scrollmsga
var scrollmsgb 
var thediva
var thedivb
var posa
var posb
var i=msg.length
var firsttime="y"
var divprop
var whichdiv=divname1
if(whichscroll=="1")
  {
   stopposa=0
   stopposb=divheight*-1
   divprop="top"
   divinc=divincbt
  }
if(whichscroll=="2")
  {
   stopposa=0
   stopposb=divheight
   divprop="top"
   divinc=divinctb
  }
if(whichscroll=="3")
  {
   stopposa=0
   stopposb=divwidth*-1
   divprop="left"
   divinc=divincrl
  }
if(whichscroll=="4")
  {
   stopposa=1
   stopposb=divwidth+2
   divprop="left"
   divinc=divinclr
  }

function Scrollboxa(obja)
     {
         savobja=obja
         posa=posa-divinc
         if(((whichscroll=="1" || whichscroll=="3")&&(posa<=stopposa))||
           ((whichscroll=="2" || whichscroll=="4")&&(posa>=stopposa)))
           {
            clearTimeout(scrollmsga)
            setTimeout("scrollit()",divpause)
           } 
         else
             {
              if(document.getElementById) // IE5 and NS6
                {
                 eval("elma.style."+divprop+"=posa")
                 elma.style.visibility="visible"
                }
              if(document.layers)    // NS4+
                {
                 eval("obja."+divprop+"=posa")
                 document.main.visibility="show"
                }
              scrollmsga=setTimeout("Scrollboxa(savobja)",speed)
             }
     }
function Scrollboxb(objb)
     {
         savobjb=objb
         posb=posb-divinc
         if(((whichscroll=="1" || whichscroll=="3")&&(posb<=stopposb))||
            ((whichscroll=="2" || whichscroll=="4")&&(posb>=stopposb)))
           {
            clearTimeout(scrollmsgb)
           }
         else
              {
               if(document.getElementById) // IE5 and NS6
                 {
                  eval("elmb.style."+divprop+"=posb")
                 }
               if(document.layers)  // NS4+
                 {
                  eval("objb."+divprop+"=posb")
                  objb.visibility="show"
                 }
               scrollmsgb=setTimeout("Scrollboxb(savobjb)",speed)
              }
     }
function scrollit()
   {
    i++
    if(i>=msg.length)
      {i=0}
    posa=stopposb*-1
    posb=0
    if(firsttime=="y")
      {
       firsttime= "n"
       if(document.getElementById)      // IE5 and NS6
         {
          elma=document.getElementById(divname1)
          elma.innerHTML=msg[i]
         }
      if(document.layers)   // NS4+
        {
         thediva=eval("document.main.document."+divname1)
         thediva.document.write(msg[i])
         thediva.document.close()
        }
       Scrollboxa(thediva)
      }
    else
      {
       if(whichdiv==divname1)
         {
          if(document.getElementById)  // IE5 and NS6
            {
             elmb=document.getElementById(divname1)
             elma=document.getElementById(divname2)
             elma.innerHTML=msg[i]
            }
          if(document.layers)  //  NS4+
            {
             thedivb=eval("document.main.document."+divname1)
             thediva=eval("document.main.document."+divname2)  
             thediva.document.write(msg[i])
             thediva.document.close()
            }
          Scrollboxb(thedivb)
          whichdiv=divname2
          Scrollboxa(thediva)
         }
       else
         {
          if(document.getElementById)   // IE5 and NS6
            {
             elmb=document.getElementById(divname2)
             elma=document.getElementById(divname1)
             elma.innerHTML=msg[i]
             }
          if(document.layers)  // NS4+
            {
             thedivb=eval("document.main.document."+divname2)
             thediva=eval("document.main.document."+divname1)
             thediva.document.write(msg[i])
             thediva.document.close()
             }
          Scrollboxb(thedivb)
          whichdiv=divname1
          Scrollboxa(thediva)
         }
      }
  }