//<!-- This script and many more are available online from -->
//<!-- The JavaScript Source!! http://javascriptsource.com -->
//<!-- Begin
//var display_text  = "Here is the common scroll_  -  except, "
//+ " this one runs in a text box rather than the status bar. "
//+ " There is more cool stuff like this on TJS !!  "
//var display_text;
//var place;
//var meter; 
//var out = " ";
//var place = 50;
//function scroll_text() {
//for (meter = 0; meter < place; meter++) { out += " "}
//if (place >= 0)
//out += display_text
//else out = display_text.substring(-place,display_text.length)
//document.scroll_form.field.value = out
//out = " "
//place--
//if (place < -(display_text.length)) {
//place = 50
//}
//setTimeout('scroll_text()',100)
//}
// End -->





// if (1=1) {
<!-- Begin hide from old browsers
window.onerror = null
var browserOK = (((navigator.appName == 'Netscape') &&
                  (parseInt(navigator.appVersion) >= 3)) ||
		 ((navigator.appName == 'Microsoft Internet Explorer') &&
		  (parseInt(navigator.appVersion) >= 4)));
		  
// alert (browserOK);


if (browserOK)
{
    Message = "Welcome to Monteray Shores Outer Banks North Carolina";
    Length = 40;
    Spaces = "                                        "; // 40 spaces
}
    
function marquee()
{
  if (browserOK)
  {
    Base = 0;
    TempString = "";
    while (Base <= Message.length)
    {
      TempString += Spaces.substring(0, Length) + Message.charAt(Base);
      Base ++;
    }
    if (Length != 0)
    {
      window.setTimeout('marquee()', 40);
    }
    else
    {
      Length = 41;
      window.setTimeout('marquee()', 5000);
    }
    window.status = TempString;
    Length --;
  }
}

window.setTimeout('marquee()', 100);

// End hide -->


// }
// else {


// <!-- Begin hide from old browsers
// window.onerror = null
// var browserOK = (((navigator.appName == 'Netscape') &&
//                 (parseInt(navigator.appVersion) >= 3)) ||
// 		 ((navigator.appName == 'Microsoft Internet Explorer') &&
// 		  (parseInt(navigator.appVersion) >= 4)));
// 
// 
// if (browserOK)
// {
//     Message = "Welcome to Monteray Shores Outer Banks North Carolina";
//     Length = 20;
//     Base = 0;
//     Spaces = "                    "; // 20 spaces
// }
//     
// function marquee()
// {
//   if (browserOK)
//   {
//     TempString = "";
//     if (Base)
//     {
//       TempString += Message.substring(0, Base);
//     }
//     if (Base <= Message.length)
//     {
//       TempString += Spaces.substring(0, Length);
//       TempString += Spaces.substring(0, Length);
//       TempString += Spaces.substring(0, Length);
//       TempString += Spaces.substring(0, Length);
//       TempString += Message.charAt(Base);
//     }
//     window.status = TempString;
//     
//     if (Length > 0)
//     {
//       Length --;
//       window.setTimeout('marquee()', 10);
//     }
//     else if (Base <= Message.length)
//     {
//       Length = 20;
//       Base ++;
//       while (Message.charAt(Base) == " " && Base <= Message.length)
//         Base ++;
//       window.setTimeout('marquee()', 25);
//     }
//     else
//     {
//       Length = 20;
//       Base = 0;
//       window.setTimeout('marquee()', 5000);
//     }
//   }
// }
// 
// window.setTimeout('marquee()', 100);
// 
// // End hide -->


// }
