<!-- START OF SCRIPT -->

/***********************************************
* Scrollable Menu Links- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//configure path for left and right arrows
var goleftimage='pointer1.jpg'
var gorightimage='pointer.jpg'
//configure menu width (in px):
var menuwidth=476
//configure menu height (in px):
var menuheight=24
//Specify scroll buttons directions ("normal" or "reverse"):
var scrolldir="reverse"
//configure scroll speed (1-10), where larger is faster
var scrollspeed=6
//specify menu content

var menucontents='<nobr><a href="home/home.html" target="page">Home Page</a>&nbsp; &bull;&nbsp; <a href="cale/calendar.pdf" target="page">Calendar</a>&nbsp; &bull;&nbsp; <a href="news/newsletter.pdf" target="page">Newsletter</a>&nbsp; &bull;&nbsp; <a href="acti/activities.html" target="page">Activities</a>&nbsp; &bull;&nbsp; <a href="amen/amenities.html" target="page">Amenities</a>&nbsp; &bull;&nbsp; <a href="hist/history.html" target="page">History</a>&nbsp; &bull;&nbsp; <a href="rest/restaurant.html" target="page">Restaurant</a>&nbsp; &bull;&nbsp; <a href="meet/meetings.html" target="page">Meeting Info</a>&nbsp; &bull;&nbsp; <a href="lots/lots.pdf" target="page">Lot Sale Information</a>&nbsp; &bull;&nbsp; <a href="rule/rules.pdf" target="page">Rules &amp; Regulations</a>&nbsp; &bull;&nbsp; <a href="arti/articlesoforganizationandby-laws.pdf" target="page">Articles of Incorporation</a>&nbsp; &bull;&nbsp; <a href="arch/architecture.pdf" target="page">Architectural Standards</a>&nbsp; &bull;&nbsp; <a href="comm/committees.pdf" target="page">Committees</a>&nbsp; &bull;&nbsp; <a href="staff/staff.pdf" target="page">Staff</a>&nbsp; &bull;&nbsp; <a href="cont/contact.html" target="page">Contact Us</a>&nbsp; &bull;&nbsp; <a href="dire/directions.html" target="page">Directions</a>&nbsp; &bull;&nbsp; <a href="help/help.html" target="page">Help</a>&nbsp; &bull;&nbsp; <a href="forms" target="page">Forms Directory</a></nobr>'

////NO NEED TO EDIT BELOW THIS LINE////////////

var iedom=document.all||document.getElementById
var leftdircode='onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"'
var rightdircode='onMouseover="moveright()" onMouseout="clearTimeout(righttime)"'
if (scrolldir=="reverse"){
var tempswap=leftdircode
leftdircode=rightdircode
rightdircode=tempswap
}
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-5000">'+menucontents+'</span>')
var actualwidth=''
var cross_scroll, ns_scroll
var loadedyes=0
function fillup(){
if (iedom){
cross_scroll=document.getElementById? document.getElementById("test2") : document.all.test2
cross_scroll.innerHTML=menucontents
actualwidth=document.all? cross_scroll.offsetWidth : document.getElementById("temp").offsetWidth
}
else if (document.layers){
ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2
ns_scroll.document.write(menucontents)
ns_scroll.document.close()
actualwidth=ns_scroll.document.width
}
loadedyes=1
}
window.onload=fillup

function moveleft(){
if (loadedyes){
if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px"
}
else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))
ns_scroll.left-=scrollspeed
}
lefttime=setTimeout("moveleft()",50)
}

function moveright(){
if (loadedyes){
if (iedom&&parseInt(cross_scroll.style.left)<0)
cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px"
else if (document.layers&&ns_scroll.left<0)
ns_scroll.left+=scrollspeed
}
righttime=setTimeout("moveright()",50)
}


if (iedom||document.layers){
with (document){
write('<table border="0" cellspacing="0" cellpadding="0">')
write('<td class="titleBG2"><a href="#" '+leftdircode+'><img src="pointer1.jpg" width="29" height="24" alt="" border="0"></a></td>')
write('<td width="610px" class="menuTxt">')
if (iedom){
write('<div style="position:relative;width:610px;height:24px;overflow:hidden;">')
write('<div id="test2" style="position:absolute;left:0;top:0;">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width=610 height=24 name="ns_scrollmenu">')
write('<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>')
}
write('</td>')
write('<td height="24" class="titleBG2"> <a href="#" '+rightdircode+'>')
write('<img src="pointer.jpg" width="29" height="24" alt="" border="0"></a>')
write('</td></table>')
}
}
