//Contents for homeMenu
var homeMenu=new Array() 
homeMenu[0]='<a href="http://www.thelog.com/Home/LogMain.aspx">The Log Home</a>'

//Contents for newsMenu
var newsMenu=new Array()
newsMenu[0]='<a href="http://www.thelog.com/News/TLlocalNews.aspx">Local News</a>'
newsMenu[1]='<a href="http://www.thelog.com/News/TLNatlNews.aspx">State/National/World</a>'
newsMenu[2]='<a href="http://www.thelog.com/News/TLColumns.aspx">Columns</a>'
newsMenu[3]='<a href="http://www.thelog.com/News/TLRacing.aspx">Racing</a>'
newsMenu[4]='<a href="http://www.thelog.com/News/HarborBlotter.aspx?a=4&b=8">Harbor Blotter</a>'
newsMenu[5]='<a href="http://www.thelog.com/News/theLtlNews.aspx?x=0&a=4&b=23&c=0">Business</a>'
newsMenu[8]='<a href="http://www.thelog.com/News/TLOpinions.aspx">Opinion</a>'
newsMenu[9]='<a href="http://www.thelog.com/obit">Obituaries</a>'

//Contents for classifiedMenu
var classifiedMenu=new Array()
classifiedMenu[0]='<a href="http://www.logclassified.com/classifieds">Classified Ads</a>'

//Contents for marinasMenu
var marinasMenu=new Array()
marinasMenu[0]='<a href="http://www.thelog.com/Marinas/Marinas.aspx">Pacific Coast Marinas</a>'
marinasMenu[1]='<a href="http://www.thelog.com/Marinas/PumpOutStations.aspx">Pump Out Stations</a>'
marinasMenu[2]='<a href="http://www.thelog.com/Marinas/LaunchRamps.aspx">Launch Ramps</a>'
marinasMenu[3]='<a href="http://www.thelog.com/Marinas/Landings.aspx">Sportfishing Landings</a>'
marinasMenu[4]='<a href="http://www.thelog.com/Marinas/FuelDocks.aspx">Fuel Docks</a>'
marinasMenu[5]='<a href="http://www.thelog.com/Marinas/UpdateMarina.aspx">Update a Marina</a>'

//Contents for boatyardsMenu
var boatyardsMenu=new Array()
boatyardsMenu[0]='<a href="http://www.thelog.com/Boatyards/SoCalBoatyards.aspx">SoCal &amp; Baja Boatyards</a>'

//Contents for forumsAndBlogsMenu
var forumsAndBlogsMenu=new Array()
forumsAndBlogsMenu[0]='<a href="http://www.goboatingclassifieds.com/forums/thelog/ubbthreads.php?ubb=cfrm">Socal Boating Forum</a>'


//Contents for boatShowsEventsMenu
var boatShowsEventsMenu=new Array()
boatShowsEventsMenu[0]='<a href="http://www.thelog.com/Events/BoatShows.aspx">Boat Shows</a>'
boatShowsEventsMenu[1]='<a href="http://www.thelog.com/Events/Default.aspx?Category=125">General Events</a>'
boatShowsEventsMenu[2]='<a href="http://www.thelog.com/Events/Default.aspx?Category=127">Classes</a>'
boatShowsEventsMenu[3]='<a href="http://www.thelog.com/Events/Default.aspx?Category=129">Racing Events</a>'
boatShowsEventsMenu[4]='<a href="http://www.fishrapnews.com/EventsCalendar/Default.aspx">Fishing Events</a>'
boatShowsEventsMenu[5]='<a href="http://www.thelog.com/Events/Default3.aspx">Ongoing Events</a>'
boatShowsEventsMenu[6]='<a href="http://www.thelog.com/Events/Default5.aspx">Ongoing Classes</a>'

//Conents for resourcesMenu
var resourcesMenu=new Array()
resourcesMenu[0]='<a href="http://www.thelog.com/Resources/MarineWeather.aspx">Marine Weather</a>'
resourcesMenu[1]='<a href="http://www.thelog.com/Resources/TideData.aspx" target="_self">SoCal Tide Data</a>'
resourcesMenu[2]='<a href="http://www.freeboatingcharts.com/destinations.cfm?region=12&action=mapchartList" target="_blank">Chart Viewer/Download</a>'
resourcesMenu[3]='<a href="http://www.uscg.mil/" target="_blank">U.S. Coast Guard</a>'
resourcesMenu[4]='<a href="http://www.dbw.ca.gov/" target="_blank">Cal Boating &amp; Waterways</a>'
resourcesMenu[5]='<a href="http://www.navcen.uscg.gov/lnm/d11/default.htm" target="_new">Local Notice to Mariners</a>'
resourcesMenu[6]='<a href="http://www.thelog.com/FloatPlan/USCGFloatPlan3.pdf" target="_blank">Float Plan Download</a>'
resourcesMenu[7]='<a href="http://www.dfg.ca.gov/" target="_blank">California Fish &amp; Game</a>'
resourcesMenu[8]='<a href="http://www.boatus.org/onlinecourse/" target="_blank">Online Boating Course</a>'
resourcesMenu[9]='<a href="http://www.knotpro.com/members/boating_knots.htm" target="_blank">Knot Tying</a>'
resourcesMenu[10]='<a href="http://www.usps.org/newpublic2/index.html" target="_blank">U.S. Power Squadrons</a>'
resourcesMenu[11]='<a href="http://www.thelog.com/Resources/BoatingLinks.aspx" target="_self">Boating Links</a>'
resourcesMenu[12]='<a href="http://www.thelog.com/Resources/YachtBrokers.aspx">Yacht Brokers</a>'

//Contents for boatTestsMenu
var boatTestsMenu=new Array()

boatTestsMenu[0]='<a href="http://www.thelog.com/BoatTests/TLBoatTests.aspx">Tested This Month</a>'
boatTestsMenu[1]='<a href="http://www.thelog.com/BoatTests/TLBoatTestsArchive.aspx?x=1&a=0&b=0&c=0&d=0&e=0">Tested Archives</a>'
boatTestsMenu[2]='<a href="http://www.thelog.com/localfishing/boatwalkthroughs.aspx">Boat Profiles</a>'

//Contents for engineReviewMenu
var engineReviewMenu=new Array()
engineReviewMenu[0]='<a href="http://www.thelog.com/engineReview/engineReview.aspx">New This Month</a>'
engineReviewMenu[1]='<a href="http://www.thelog.com/engineReview/enginesArchive.aspx">Archives</a>'

//Contents for productReviewMenu
var productReviewMenu=new Array()
productReviewMenu[0]='<a href="http://www.thelog.com/ProductReview/productReview.aspx">New This Month</a>'
productReviewMenu[1]='<a href="http://www.thelog.com/ProductReview/productArchive.aspx">Archives</a>'

//Contents for engineReviewMenu
var localFishingMenu=new Array()
localFishingMenu[0]='<a href="http://www.fishrapnews.com/rap/fishrap.aspx">Fishrap.com</a>'

//Contents for photoGalleryMenu 
var photoGalleryMenu=new Array()
photoGalleryMenu[0]='<a href="http://www.pacificcoastboating.com/thelogimage/channel/26/log-aboard-gallery/">Log Abroad Gallery</a>'
photoGalleryMenu[1]='<a href="http://www.pacificcoastboating.com/thelogimage/channel/25/dog-aboard/">Dog Aboard Gallery</a>'
photoGalleryMenu[2]='<a href="http://www.pacificcoastboating.com/thelogimage/channel/27/racing-gallery/">Racing Gallery</a>'
photoGalleryMenu[3]='<a href="http://www.pacificcoastboating.com/thelogimage/channel/5/general-gallery/">General Gallery</a>'

//Contents for videoMenu
var videoMenu=new Array()
videoMenu[0]='<a href="http://www.pacificcoastboating.com/vshare/channel/10/news/">News Channel</a>'
videoMenu[1]='<a href="http://www.pacificcoastboating.com/vshare/channel/25/boat-reviews/">Racing Channel</a>'
videoMenu[2]='<a href="http://www.pacificcoastboating.com/vshare/channel/14/funny/">Funny Channel</a>'
videoMenu[3]='<a href="http://www.pacificcoastboating.com/vshare/channel/26/general/">General Channel</a>'


var menuwidth='165px' //default menu width
var menubgcolor='#ccc'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////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:'+menuwidth+';background-color:'+menubgcolor+'" 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="-500px"
if (menuwidth!=""){
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=1  // determined how low the menu will drop from the main listing
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 < 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 up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnv(s){
    parent.document.getElementById("mp").URL = s;
}

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)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
