var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
submenu[0]='<ul onMouseOver="esd_on()" onMouseOut="nav_off()"><li><a href="index.php/eat-sleep-do/lodging">Lodging</a></li><li><a href="index.php/eat-sleep-do/dining">Dining</a></li><li><a href="index.php/eat-sleep-do/attractions">Attractions</a></li><li><a href="index.php/eat-sleep-do/shopping">Shopping</a></li><li><a href="index.php/eat-sleep-do/arts">Arts</a></li><li><a href="index.php/eat-sleep-do/plan-your-trip"><nobr>Plan Your Trip</nobr></a></li></ul>'

submenu[1]='<ul onMouseOver="act_on()" onMouseOut="nav_off()"><li><a href="index.php/activities/lighthouses">Lighthouses</a></li><li><a href="index.php/activities/fishing">Fishing &amp; Crabbing</a></li><li><a href="index.php/activities/beaches">Beaches</a></li><li><a href="index.php/activities/marine">Marine</a></li><li><a href="index.php/activities/surfing"><nobr>Surfing &amp; Kayaking</nobr></a></li><li><a href="index.php/activities/camping">Camping</a></li><li><a href="index.php/activities/hiking">Hiking</a></li><li><a href="index.php/activities/biking">Biking</a></li><li><a href="index.php/activities/arts-culture">Arts &amp; Culture</a></li><li><a href="index.php/activities/weddings">Weddings</a></li><li><a href="index.php/activities/birding">Birding</a></li></ul>'

submenu[2]='<ul onMouseOver="abt_on()" onMouseOut="nav_off()"><li><a href="index.php/about/newport-facts">Newport Facts</a></li><li><a href="index.php/about/districts">Districts</a></li><li><a href="index.php/about/history">History</a></li><li><a href="index.php/about/chamber-of-commerce"><nobr>Chamber of Commerce</nobr></a></li><li><a href="index.php/about/weather">Weather</a></li><li><a href="index.php/about/maps-directions"><nobr>Maps &amp; Directions</nobr></a></li><li><a href="index.php/about/central-oregon-coast"><nobr>Central Coast</nobr></a></li><li><nobr><a href="index.php/about/shuttle-service">Free Shuttle</a></nobr></li><li><nobr><a href="index.php/about/video-gallery">Video Gallery</a></nobr></li></ul>'

submenu[3]='<ul onMouseOver="new_on()" onMouseOut="nav_off()"><li><a href="index.php/news/events">Events</a></li><li><a href="index.php/news/press-room">Press Room</a></li><li><a href="index.php/news/media-gallery">Media Gallery</a></li><li><a href="index.php/news/newsletters">Newsletters</a></li></ul>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=0

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}




function hom_on() {
	document.getElementById('home').className = "active";
	document.getElementById('esd').className = "normal";
	document.getElementById('activities').className = "normal";
	document.getElementById('about').className = "normal";
	document.getElementById('news').className = "normal";
	document.getElementById('faq').className = "normal";
	document.getElementById('contact').className = "normal";
}

function esd_on() {
	document.getElementById('home').className = "normal";
	document.getElementById('esd').className = "active";
	document.getElementById('activities').className = "normal";
	document.getElementById('about').className = "normal";
	document.getElementById('news').className = "normal";
	document.getElementById('faq').className = "normal";
	document.getElementById('contact').className = "normal";
}

function act_on() {
	document.getElementById('home').className = "normal";
	document.getElementById('esd').className = "normal";
	document.getElementById('activities').className = "active";
	document.getElementById('about').className = "normal";
	document.getElementById('news').className = "normal";
	document.getElementById('faq').className = "normal";
	document.getElementById('contact').className = "normal";
}

function abt_on() {
	document.getElementById('home').className = "normal";
	document.getElementById('esd').className = "normal";
	document.getElementById('activities').className = "normal";
	document.getElementById('about').className = "active";
	document.getElementById('news').className = "normal";
	document.getElementById('faq').className = "normal";
	document.getElementById('contact').className = "normal";
}

function new_on() {
	document.getElementById('home').className = "normal";
	document.getElementById('esd').className = "normal";
	document.getElementById('activities').className = "normal";
	document.getElementById('about').className = "normal";
	document.getElementById('news').className = "active";
	document.getElementById('faq').className = "normal";
	document.getElementById('contact').className = "normal";
}

function faq_on() {
	document.getElementById('home').className = "normal";
	document.getElementById('esd').className = "normal";
	document.getElementById('activities').className = "normal";
	document.getElementById('about').className = "normal";
	document.getElementById('news').className = "normal";
	document.getElementById('faq').className = "active";
	document.getElementById('contact').className = "normal";
}

function con_on() {
	document.getElementById('home').className = "normal";
	document.getElementById('esd').className = "normal";
	document.getElementById('activities').className = "normal";
	document.getElementById('about').className = "normal";
	document.getElementById('news').className = "normal";
	document.getElementById('faq').className = "normal";
	document.getElementById('contact').className = "active";
}

function nav_off() {
	document.getElementById('home').className = "";
	document.getElementById('esd').className = "";
	document.getElementById('activities').className = "";
	document.getElementById('about').className = "";
	document.getElementById('news').className = "";
	document.getElementById('faq').className = "";
	document.getElementById('contact').className = "";
}
