//Copyright(C)2002-2007 Pluginlab Limited. All rights reserved. //www.pluginlab.com //ProductID:PLHFO //Registered to:NWVYC var Cpy23bjc={dummy:0, VERSION:'3.1.1.2', FULL_WIDTH:false, WIDTH:800, ITEM_WIDTH:160, ALIGN:2, LAYER:false, X:250, Y:170, VALIGN:0, IS_FLOATING:true, MAIN_SET_HEIGHT:false, FLYOUT_SET_HEIGHT:false, MAIN_ITEM_HEIGHT:17, FLYOUT_ITEM_HEIGHT:17, ROLLOVER_HAS_BORDER:false, SHOW_SELECTED:true, STYLE:0, V_INTERVAL:2, CROSSFADE:0, FLYOUT_HEIGHT:250, FLYOUT_WIDTH:200, OFFSET:false, OVERLAP:false, Z_INDEX:50, PARENT_MO:false, HAS_SHADOW:true, OPEN_EVENT:0, DIRECTION:0, OPEN_ANIMATION:4, CLOSE_ANIMATION:0, OPEN_SPEED:10, CLOSE_SPEED:10, SHOW_DELAY:50, AUTOCLOSE_DELAY:1000, BACKGROUND_COLOR:'#006666', SEPARATOR_COLOR:'#003355', NORMAL_COLOR:'', MOUSEOVER_COLOR:'#0066BB', MOUSEDOWN_COLOR:'#335588', SELECTED_COLOR:'#B0C4FF', NORMAL_BORDER_COLOR:'', MOUSEOVER_BORDER_COLOR:'#000000', MOUSEDOWN_BORDER_COLOR:'#000000', SELECTED_BORDER_COLOR:'#000000', TEXT_COLOR:'#ffffff', TEXT_MOUSEOVER_COLOR:'#ffffff', TEXT_MOUSEDOWN_COLOR:'#ffffff', TEXT_SELECTED_COLOR:'#ffffff', BORDER_COLOR:'#ffffff', FLYOUT_BORDER_COLOR:'#006666', MAIN_FONT:'Verdana,Arial,Helvetica,sans-serif', FLYOUT_FONT:'Verdana,Arial,Helvetica,sans-serif', MAIN_FONT_SIZE:11, FLYOUT_FONT_SIZE:11, MAIN_BOLD:true, FLYOUT_BOLD:true, MAIN_ITALIC:false, FLYOUT_ITALIC:false, MAIN_UNDERLINE:false, FLYOUT_UNDERLINE:false, ALIGN_MAIN_NORMAL:1, ALIGN_MAIN_HEADING:1, ALIGN_FO_NORMAL:0, ALIGN_FO_HEADING:1, RTL:false, DD_ARROW:"*../dd_arrow.gif", DD_ARROW_ROLLOVER:"*../dd_arrow.gif", SUB_ARROW:"*../fo_arrow.gif", SUB_ARROW_ROLLOVER:"*../fo_arrow.gif", UP_ARROW:"*../up.gif", UP_ARROW_DISABLED:"*../up_disabled.gif", DOWN_ARROW:"*../down.gif", DOWN_ARROW_DISABLED:"*../down_disabled.gif", STREAM:[0,5,'#006666','#003355','','#0066BB','#335588','#B0C4FF','','#000000','#000000','#000000','#ffffff','#ffffff','#ffffff','#ffffff',0,0,"Home",'*../../index.html','','','',0,0,0,1,"Marina",'','_self','','',0,0,0,2,"Cruising",'','_self','','',0,0,0,5,"Holyhead",'','','','',0,0,0,6,"Links",'','','','',0,0,1,6,'#006666','#003355','','#0066BB','#335588','#B0C4FF','','#000000','#000000','#000000','#ffffff','#ffffff','#ffffff','#ffffff',0,0,"Events",'*../../marina/Events.htm','_self','','',0,0,0,0,"Berthing",'*../../marina/Berthing.htm','_self','','',0,0,0,0,"Approach",'*../../marina/approach.htm','_self','','',0,0,0,0,"Facilities",'*../../marina/facilities.htm','_self','','',0,0,0,0,"Prices",'*../../marina/prices.htm','_blank','','',0,0,0,0,"Chandlery",'*../../marina/chandlery.htm','_blank','','',0,0,2,4,'#006666','#003355','','#0066BB','#335588','#B0C4FF','','#000000','#000000','#000000','#ffffff','#ffffff','#ffffff','#ffffff',0,0,"Cruising North Wales",'*../../cruising/index.htm','_self','','',0,0,0,3,"Pilotage",'*../../cruising/Pilotage/index.htm','_self','','',0,0,0,0,"Passagemaking",'*../../cruising/Passages/Index.htm','_self','','',0,0,0,4,"Harbour Guides",'','_self','','',0,0,3,2,'#006666','#003355','','#0066BB','#335588','#B0C4FF','','#000000','#000000','#000000','#ffffff','#ffffff','#ffffff','#ffffff',0,0,"Tides",'*../../cruising/Pilotage/Tides.htm','_self','','',0,0,0,0,"Charts",'*../../cruising/Pilotage/Charts.htm','_self','','',0,0,4,7,'#006666','#003355','','#0066BB','#335588','#B0C4FF','','#000000','#000000','#000000','#ffffff','#ffffff','#ffffff','#ffffff',0,0,"Amlwch",'*../../cruising/Harbours/Amlwch.htm','_self','','',0,0,0,0,"Cemaes",'*../../cruising/Harbours/Cemaes.htm','_self','','',0,0,0,0,"Holyhead",'*../../cruising/Harbours/Holyhead%20Harbour.htm','_self','','',0,0,0,0,"Llanddwyn",'*../../cruising/Harbours/Llanddwyn.htm','_self','','',0,0,0,0,"Porth Wen",'*../../cruising/Harbours/PorthWen.htm','_self','','',0,0,0,0,"Rhoscolyn",'*../../cruising/Harbours/Rhoscolyn.htm','_self','','',0,0,0,0,"Skerries",'*../../cruising/Harbours/Skerries.htm','_self','','',0,0,5,4,'#006666','#003355','','#0066BB','#335588','#B0C4FF','','#000000','#000000','#000000','#ffffff','#ffffff','#ffffff','#ffffff',0,0,"Local",'*../../holyhead/local.htm','_self','','',0,0,0,0,"Things to Do",'*../../holyhead/thingstodo.htm','_self','','',0,0,0,0,"Ferries",'*../../holyhead/ferry.htm','_blank','','',0,0,0,0,"Holyhead Sailing Club",'http://www.holyheadsc.org.uk','_blank','','',0,0,6,3,'#006666','#003355','','#0066BB','#335588','#B0C4FF','','#000000','#000000','#000000','#ffffff','#ffffff','#ffffff','#ffffff',0,0,"Marinas & harbours",'*../../links/marinas.htm','_self','','',0,0,0,0,"Yacht Clubs",'*../../links/yachtclubs.htm','_self','','',0,0,0,0,"Weather",'*../../links/Weather.htm','_self','','',0,0], browser:function(){var ua=navigator.userAgent.toLowerCase() this.opera=ua.indexOf('opera')>=0 this.safari=ua.indexOf('safari')>=0 this.ie=document.all&&!this.opera this.macie=this.ie&&ua.indexOf('mac')>=0 this.winie=this.ie&&!this.macie this.ieCanvas=(this.ie&&document.compatMode=="CSS1Compat")?document.documentElement:document.body return this}, setPathAdjustment:function(ID){var sl='' var sc=document.getElementsByTagName('script') for(var i=0;i-1)sl=sc[i].src}this.SCRIPT_LOCATION=sl.substr(0, sl.lastIndexOf('/')+1)}, adjustPath:function(path){if(path.charAt(0)!='*')return path return this.SCRIPT_LOCATION+path.substr(1)},linkScripts:function(aNewScripts){var scripts=document.getElementsByTagName('script') for(var i=0;i<\/script>")}},isCurrent:function(r){if(!r)return false var l=location.href if(r.search('//')==-1){if(r.charAt(0)=='/') r=l.replace(/(.*\/\/[^\/]*).*/,'$1')+r else r=l.replace(/[^\/]*$/,'')+r}do{var r1=r r=r1.replace(/[^\/]*\/\.\.\//,'')}while(r!=r1) return r==l},addLoadEvent:function(f){var oldf=window.onload if(typeof oldf!='function'){window.onload=f}else{window.onload=function(){try{oldf()}catch(e){}f()}}}, init:function(){this.linkScripts(new Array()) this.addLoadEvent(this.onload) this.ID=PLHFO_ID}, onload:function(){setTimeout('Cpy23bjc.start()',0)}, start:function(){var m=this m.br=new m.browser() m.flyouts=new Array m.shownFoids=Array('0') m.currentFoid=null m.nextFoid=null m.currentItem=null m.timeout=null m.interval=null m.scroll_start=0 m.scroll_time=0 m.scroll_delta=0 m.old_y m.preloads=new Array m.plIndex=0 m.cur=null m.div=document.getElementById(this.ID+'Div') m.setPathAdjustment('PLHFOMenu script ID:'+this.ID+' ') m.DD_ARROW=m.adjustPath(m.DD_ARROW) m.DD_ARROW_ROLLOVER=m.adjustPath(m.DD_ARROW_ROLLOVER) m.SUB_ARROW=m.adjustPath(m.SUB_ARROW) m.SUB_ARROW_ROLLOVER=m.adjustPath(m.SUB_ARROW_ROLLOVER) m.UP_ARROW=m.adjustPath(m.UP_ARROW) m.UP_ARROW_DISABLED=m.adjustPath(m.UP_ARROW_DISABLED) m.DOWN_ARROW=m.adjustPath(m.DOWN_ARROW) m.DOWN_ARROW_DISABLED=m.adjustPath(m.DOWN_ARROW_DISABLED) m.preload(m.DD_ARROW_ROLLOVER) m.preload(m.SUB_ARROW_ROLLOVER) m.preload(m.UP_ARROW) m.preload(m.DOWN_ARROW_DISABLED) m.flyouts[0]=new m.flyout(m, null, 0) var i=0, st=m.STREAM while(i
" dss="
" wraper=cell}else{wraper=m.div.getElementsByTagName('DIV')[0]}var fos="" if(index) fos+=uss+"
" else{fos+="" if(sepColor!='')is+="" is+="
"}fos+="" if(index)fos+="" first_item=0}else if(type==1){var txt=st[i++] var color=st[i++] var bgimg=m.adjustPath(st[i++]) is="" if(!index)is+="" first_item=0}else if(type==2){curSecColor=st[i++] var sepColor=st[i] curColor=st[++i] curMOColor=st[++i] curMDColor=st[++i] curSelColor=st[++i] curBColor=st[++i]?st[i]:curSecColor curBMOColor=st[++i]?st[i]:curSecColor curBMDColor=st[++i]?st[i]:curSecColor curBSelColor=st[++i]?st[i]:curSecColor i++ curTxtColor=st[i++] curTMOColor=st[i++] curTMDColor=st[i++] curTSelColor=st[i++] if(index){is="
" var first_item=1 for(var j=0;j" if(imgn||imgo)is+="" is+="" if(cfoid>0&&(index?m.SUB_ARROW:m.DD_ARROW))is+="" is+="" if(!index)is+="" is+="
"+txt+"
" if(!index)is+="
" if(sepColor!='')is+="
" is+="
"}else{is="
 "}first_item=1}fos+=is}if(index)fos+="" fos+="
" if(index) fos+=""+dss else fos+="
" wraper.innerHTML=fos if(index){fo.upScrWrp=wraper.childNodes[0] var upScr=fo.upScrWrp.getElementsByTagName('TABLE')[0] fo.upArrow=fo.upScrWrp.getElementsByTagName('IMG')[0] fo.upScBorder=wraper.childNodes[1] var scrollArea=wraper.childNodes[2] fo.dnScBorder=wraper.childNodes[3] fo.dwnScrWrp=wraper.childNodes[4] var dwnScr=fo.dwnScrWrp.getElementsByTagName('TABLE')[0] fo.downArrow=fo.dwnScrWrp.getElementsByTagName('IMG')[0] var attr=new Array('ncolor','mocolor','brdcolor','bmocolor') for(var a=0;a0){m.flyouts[e.cfoid]=new m.flyout(m, e, e.cfoid)}}}if(index){fo.style.display='' scrollArea.baseHeight=scrollArea.offsetHeight fo.scrollArea=scrollArea fo.style.zIndex=50 fo.style.display='none'}}var items=document.getElementsByTagName('TABLE') for(var i=0;i=m.shownFoids.length)i=1 else{i++ if(m.nextFoid>0){if(m.shownFoids[i]!=m.nextFoid){if(m.shownFoids[i])m.flyouts[m.shownFoids[i]].removeFlyout() m.shownFoids[i]=m.nextFoid m.showFlyout()}i++}}for(var j=i;j0?docTop+2:m.getTop(m.div)+parseInt(m.div.offsetHeight)-1 var bottomLimit=docTop+docHeight-6 var foHeight=bottomLimit-topLimit if(foHeight>250)foHeight=250 var show_scrollers='none' if(m.br.winie&&fo.scrollArea.baseHeight>foHeight){show_scrollers='' fo.scrollArea.style.overflow='hidden' if(foHeight<32)foHeight=32 fo.scrollArea.style.height=foHeight-28+'px'}else{fo.scrollArea.style.height=(foHeight=fo.scrollArea.baseHeight)+'px'}fo.style.top='-10000px' fo.style.left='-10000px' fo.style.display='' fo.style.width=fo.childNodes[0].offsetWidth+'px' if(e.foid>0){fo.baseTop=m.getTop(e)-1 if(m.br.ie)fo.baseTop-=m.flyouts[e.foid].div.scrollArea.scrollTop fo.baseLeft=m.getLeft(e)+parseInt(e.offsetWidth)+0}else{fo.baseTop=topLimit fo.baseLeft=m.getLeft(e)+(m.br.ie?0:1)}if(fo.baseTopbottomLimit){var t=bottomLimit-foHeight fo.baseTop=tdocWidth)fo.baseLeft=(e.foid==0?docWidth-22+docLeft:m.flyouts[e.foid].div.baseLeft+1)-fo.offsetWidth for(var i=1;i<=4;i++){var ss=fo.obj.shadows[i].style ss.clip='rect(0 0 0 0)' ss.position='absolute' ss.left=fo.baseLeft+i+'px' ss.top=fo.baseTop+i+'px' ss.width=fo.offsetWidth+'px' ss.height=fo.offsetHeight+'px' ss.backgroundColor=m.br.opera||m.br.safari||m.br.macie?'#B0B0B0':'#000000' ss.zIndex=50-i var opacity=5*(6-i) ss.filter='alpha(opacity='+opacity+')' ss.MozOpacity=opacity/100 ss.display=''}fo.obj.slidedown(fo.offsetHeight)}, scroll:function(){var m=this var offset=m.scroll_start+(m.getTime()-m.scroll_time)*m.scroll_delta var fo=m.flyouts[m.currentItem.foid] var fd=fo.div fd.scrollArea.scrollTop=offset fd.upArrow.src=offset<=0? m.UP_ARROW_DISABLED:m.UP_ARROW fd.downArrow.src=offset>=fd.scrollArea.scrollHeight-fd.scrollArea.offsetHeight? m.DOWN_ARROW_DISABLED:m.DOWN_ARROW}, preload:function(img){if(!img)return this.preloads[this.plIndex]=new Image this.preloads[this.plIndex++].src=img}, insertCell:function(t){var tbody=document.createElement('tbody') var row=document.createElement('TR') var cell=document.createElement('TD') t.appendChild(tbody) tbody.appendChild(row) row.appendChild(cell) return cell}, getSource:function(evt){var e=this.br.ie?event.srcElement:evt.target while(e&&(e.tagName!='TABLE')) e=e.parentNode return e}, getFoid:function(e){while(e&&(!e.foid)){e=e.parentNode}return e?e.foid:0}, getTop:function(e){var m=this var top=0 var abs=false while(e&&((e.tagName!='BODY')||!abs)){if(e.style.position=='absolute')abs=true top+=e.offsetTop e=e.offsetParent}if(m.br.macie)top+=parseInt(document.body.currentStyle.marginTop) return top},getLeft:function(e){var m=this var left=0 var abs=false while(e&&((e.tagName!='BODY')||!abs)){if(e.style.position=='absolute')abs=true left+=e.offsetLeft e=e.offsetParent}if(m.br.macie)left+=parseInt(document.body.currentStyle.marginLeft) return left},getTime:function(){var time=new Date() return time.valueOf()}};Cpy23bjc.flyout=function(m, parent, index){var f=this if(index==0){f.div=m.div}else{f.div=document.createElement('div') f.div.style.width='200px' f.div.style.display='none' document.body.appendChild(f.div) f.shadows=new Array for(var s=1;s<=4;s++){f.shadows[s]=document.createElement('div') document.body.appendChild(f.shadows[s])}f.pfi=parent f.open=false f.intr=false}f.m=m f.div.obj=f f.obj='Cpy23bjc.fo'+index eval(f.obj+'=f')};Cpy23bjc.flyout.prototype={removeFlyout:function(){var f=this f.open=false if(f.intr)return f.intr=true f.hideFlyout()},hideFlyout:function(){with(this){div.scrollArea.scrollTop=0 div.style.display='none' div.upArrow.src=m.UP_ARROW_DISABLED div.downArrow.src=m.DOWN_ARROW for(var i=1;i<=4;i++){shadows[i].style.display='none' Cpy23bjc.div.style.display=''}intr=false if(open)Cpy23bjc.showFlyout()}}, slidedown:function(b){with(this){if(b<0)b=0 for(var i=1;i<=4;i++){shadows[i].style.clip='rect('+b+'px auto auto 0)' shadows[i].style.top=div.baseTop-b+i+'px'}div.style.clip='rect('+b+'px auto auto 0)' div.style.top=div.baseTop-b+'px' div.style.left=div.baseLeft+'px' if(b>0){b-=10 window.setTimeout(obj+'.slidedown('+b+')',10)}else{intr=false if(!open)removeFlyout()}}}, dummy:null};Cpy23bjc.init()