var golf=new Array()
golf[0]='<a href="community/clgr.html" target="content">Champion Lakes Golf Resort</a>'
golf[1]='<a href="community/dhgc.html" target="content">Donegal Highlands Golf Course</a>'
golf[2]='<a href="community/ggl.html" target="content">Glengarry Golf Links</a>'
golf[3]='<a href="community/hvr.html" target="content">Hidden Valley Four Season Resort</a>'
golf[4]='<a href="community/lvgc.html" target="content">Laurel Valley Golf Club</a>'
golf[5]='<a href="community/ngc.html" target="content">Norvelt Golf Club</a>'
golf[6]='<a href="community/tgc.html" target="content">Timberlink Golf Course</a>'
golf[7]='<a href="community/trgc.html" target="content">Timber Ridge Golf Club</a>'

var ski=new Array()
ski[0]='<a href="community/hvr.html" target="content">Hidden Valley Four Season Resort</a>'
ski[1]='<a href="community/7s.html" target="content">Seven Springs Mountain Resort</a>'

var places=new Array()
places[0]='<a href="community/fw.html" target="content">Fallingwater</a>'
places[1]='<a href="community/kentuck.html" target="content">Kentuck Knob</a>'
places[2]='<a href="community/lc.html" target="content">Laurel Caverns</a>'
places[3]='<a href="community/ohiopyle.html" target="content">Ohiopyle State Park</a>'
places[4]='<a href="community/pnr.html" target="content">Powdermill Nature Reserve</a>'	

var things=new Array()
things[0]='<a href="community/shak.html" target="content">Caddie Shak</a>'
things[1]='<a href="community/idlewild.html" target="content">Idlewild Park and SoakZone</a>'
things[2]='<a href="community/ltap.html" target="content">Living Treasures Animal Park</a>'
things[3]='<a href="community/yogi.html" target="content">Yogi Bears Jellystone Park</a>'

var hs=new Array()
hs[0]='<a href="community/fl.html" target="content">Fort Ligonier</a>'
hs[1]='<a href="community/fn.html" target="content">Fort Necessity</a>'

var sp=new Array()
sp[0]='<a href="community/forbes.html" target="content">Forbes State Park</a>'
sp[1]='<a href="community/ksp.html" target="content">Kooser State Park</a>'
sp[2]='<a href="community/lhsp.html" target="content">Laurel Hill State Park</a>'
sp[3]='<a href="community/lr.html" target="content">Laurel Ridge State Park</a>'
sp[4]='<a href="community/linn.html" target="content">Linn Run State Park</a>'
sp[5]='<a href="community/ohiopyle.html" target="content">Ohiopyle State Park</a>'

var stores=new Array()
stores[0]='<a href="community/champlawn.html" target="content">Champion Lawn Ornaments</a>'
stores[1]='<a href="community/martys.html" target="content">Collections by Marty</a>'
stores[2]='<a href="community/pie.html" target="content">Country Pie Shoppe</a>'
stores[3]='<a href="community/gerrys.html" target="content">Gerrys Western Shop</a>'
stores[4]='<a href="community/old.html" target="content">The Old General Store</a>'
stores[5]='<a href="community/reshs.html" target="content">Reshs General Store</a>'
stores[6]='<a href="community/sarnellis.html" target="content">Sarnellis</a>'

var rest=new Array()
rest[0]='<a href="community/dhgc.html" target="content">Black Dog Pub</a>'
rest[1]='<a href="community/bradys.html" target="content">Bradys Restaurant</a>'
rest[2]='<a href="community/cal.html" target="content">Caligiuris Dairy Mart</a>'
rest[3]='<a href="community/fbdd.html" target="content">Flying Bears Trading Post and Dinner Den</a>'
rest[4]='<a href="community/foggy.html" target="content">Foggy Mountain Lodge and Restaurant</a>'
rest[5]='<a href="community/harbor.html" target="content">Harbor Inn</a>'
rest[6]='<a href="community/ihsb.html" target="content">Indian Head Snack Bar</a>'
rest[7]='<a href="community/maggies.html" target="content">Maggies Mercantile</a>'
rest[8]='<a href="community/oakhurst.html" target="content">Oakhurst Tea Room</a>'
rest[9]='<a href="community/seemors.html" target="content">See-Mors All Star Grill</a>'
rest[10]='<a href="community/tall.html" target="content">Tall Cedars</a>'

var other=new Array()
other[0]='<a href="community/fc.html" target="content">Frank A. Colletti, AIA, Registered Architect</a>'
other[1]='<a href="community/jpfs.html" target="content">JP Financial Services</a>'
other[2]='<a href="community/pmpl.html" target="content">Poormans Mountain Pet Lodge</a>'
other[3]='<a href="community/wrwr.html" target="content">Windy Ridge Wildlife Refuge</a>'

var lodging=new Array()
lodging[0]='<a href="community/days.html" target="content">Days Inn-Donegal</a>'
lodging[1]='<a href="community/dcg.html" target="content">Donegal Campground</a>'
lodging[2]='<a href="community/foggy.html" target="content">Foggy Mountain Lodge and Restaurant</a>'
lodging[3]='<a href="community/hvr.html" target="content">Hidden Valley Four Season Resort</a>'
lodging[4]='<a href="community/lhcl.html" target="content">Laurel Highland Camplands</a>'
lodging[5]='<a href="community/lesleys.html" target="content">Lesleys Mountain View Country Inn</a>'
lodging[6]='<a href="community/log.html" target="content">Log Cabin Motel</a>'
lodging[7]='<a href="community/rrr.html" target="content">Roaring Run Resort</a>'
lodging[8]='<a href="community/7s.html" target="content">Seven Springs Mountain Resort</a>'
lodging[9]='<a href="community/yogi.html" target="content">Yogi Bears Jellystone Park Camp-Resort</a>'


var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
