/*

CASCADING POPUP MENUS v5.2 RC (c) 2001-2006 Angus Turnbull, http://www.twinhelix.com
Altering this notice or redistributing this file is prohibited.

*/

var isDOM=document.getElementById?1:0,isIE=document.all?1:0,isNS4=navigator.appName=='Netscape'&&!isDOM?1:0,isIE4=isIE&&!isDOM?1:0,isOp=self.opera?1:0,isDyn=isDOM||isIE||isNS4;function getRef(i,p){p=!p?document:p.navigator?p.document:p;return isIE?p.all[i]:isDOM?(p.getElementById?p:p.ownerDocument).getElementById(i):isNS4?p.layers[i]:null};function getSty(i,p){var r=getRef(i,p);return r?isNS4?r:r.style:null};if(!self.LayerObj)var LayerObj=new Function('i','p','this.ref=getRef(i,p);this.sty=getSty(i,p);return this');function getLyr(i,p){return new LayerObj(i,p)};function LyrFn(n,f){LayerObj.prototype[n]=new Function('var a=arguments,p=a[0],px=isNS4||isOp?0:"px";with(this){'+f+'}')};LyrFn('x','if(!isNaN(p))sty.left=p+px;else return parseInt(sty.left)');LyrFn('y','if(!isNaN(p))sty.top=p+px;else return parseInt(sty.top)');LyrFn('vis','sty.visibility=p');LyrFn('bgColor','if(isNS4)sty.bgColor=p?p:null;else sty.background=p?p:"transparent"');LyrFn('bgImage','if(isNS4)sty.background.src=p?p:null;else sty.background=p?"url("+p+")":"transparent"');LyrFn('clip','if(isNS4)with(sty.clip){left=a[0];top=a[1];right=a[2];bottom=a[3]}else sty.clip="rect("+a[1]+"px "+a[2]+"px "+a[3]+"px "+a[0]+"px)" ');LyrFn('write','if(isNS4)with(ref.document){write(p);close()}else ref.innerHTML=p');LyrFn('alpha','var f=ref.filters,d=(p==null),o=d?"inherit":p/100;if(f){if(!d&&sty.filter.indexOf("alpha")==-1)sty.filter+=" alpha(opacity="+p+")";else if(f.length&&f.alpha)with(f.alpha){if(d)enabled=false;else{opacity=p;enabled=true}}}else if(isDOM)sty.opacity=sty.MozOpacity=o');function setLyr(v,dw,p){if(!setLyr.seq)setLyr.seq=0;if(!dw)dw=0;var o=!p?isNS4?self:document.body:!isNS4&&p.navigator?p.document.body:p,IA='insertAdjacentHTML',AC='appendChild',id='_sl_'+setLyr.seq++;if(o[IA])o[IA]('beforeEnd','<div id="'+id+'" style="position:absolute"></div>');else if(o[AC]){var n=document.createElement('div');o[AC](n);n.id=id;n.style.position='absolute'}else if(isNS4){var n=new Layer(dw,o);id=n.id}var l=getLyr(id,p);with(l)if(ref){vis(v);x(0);y(0);sty.width=dw+(isNS4?0:'px')}return l};if(!self.page)var page={win:self,minW:0,minH:0,MS:isIE&&!isOp};page.db=function(p){with(this.win.document)return(isDOM?documentElement[p]:0)||body[p]||0};page.winW=function(){with(this)return Math.max(minW,MS?db('clientWidth'):win.innerWidth)};page.winH=function(){with(this)return Math.max(minH,MS?db('clientHeight'):win.innerHeight)};page.scrollX=function(){with(this)return MS?db('scrollLeft'):win.pageXOffset};page.scrollY=function(){with(this)return MS?db('scrollTop'):win.pageYOffset};function addProps(obj,data,names,addNull){for(var i=0;i<names.length;i++)if(i<data.length||addNull)obj[names[i]]=data[i]};function PopupMenu(myName){this.myName=myName;this.showTimer=this.hideTimer=this.showDelay=0;this.hideDelay=500;this.menu={};this.litNow={};this.litOld={};this.overM='';this.overI=0;this.hideDocClick=0;this.actMenu=null;PopupMenu.list[myName]=this};PopupMenu.list={};var PmPt=PopupMenu.prototype;PmPt.callEvt=function(mN,iN,evt){var i=this.menu[mN][iN],r1=this[evt]?this[evt](mN,iN):0,r2;if(i[evt]){if(i[evt].substr)i[evt]=new Function('mN','iN',i[evt]);r2=i[evt](mN,iN)}return typeof r2=='boolean'?r2:r1};PmPt.over=function(mN,iN){with(this){clearTimeout(hideTimer);overM=mN;overI=iN;var evtRtn=iN?callEvt(mN,iN,'onmouseover'):0,rtn=evtRtn||false;litOld=litNow;litNow={};var litM=mN,litI=iN;if(mN)do{litNow[litM]=litI;litI=menu[litM][0].parentItem;litM=menu[litM][0].parentMenu}while(litM);var same=1;for(var z in menu)same&=(litNow[z]==litOld[z]);if(same)return rtn;clearTimeout(showTimer);for(var thisM in menu)with(menu[thisM][0]){if(!lyr)continue;lI=litNow[thisM];oI=litOld[thisM];if(lI!=oI){if(lI)changeCol(thisM,lI);if(oI)changeCol(thisM,oI)}if(!lI)clickDone=0;if(isRoot)continue;if(lI&&!visNow)doVis(thisM,1);if(!lI&&visNow)doVis(thisM,0)}nextMenu='';if(menu[mN]&&menu[mN][iN].sm&&(evtRtn+''!='false')){var m=menu[mN],t=m[iN].sm;if(!menu[t])return rtn;if(m[0].clickSubs&&!m[0].clickDone)return rtn;nextMenu=t;if(showDelay)showTimer=setTimeout(myName+'.doVis("'+t+'",1)',showDelay);else doVis(t,1)}return rtn}};PmPt.out=function(mN,iN){with(this){if(mN!=overM||iN!=overI)return;var thisI=menu[mN][iN],evtRtn=iN?callEvt(mN,iN,'onmouseout'):0;if(thisI.sm!=nextMenu){clearTimeout(showTimer);nextMenu=''}if(hideDelay&&(evtRtn+''!='false')){var delay=menu[mN][0].isRoot&&!thisI.sm?50:hideDelay;hideTimer=setTimeout(myName+'.over("",0)',delay)}overM='';overI=0}};PmPt.click=function(mN,iN){with(this){var m=menu[mN],evtRtn=callEvt(mN,iN,'onclick'),hm=1;if(evtRtn+''=='false')return false;with(m[iN]){if(type=='js:')eval(href);else{if(sm&&m[0].clickSubs){
//m[0].clickDone=1;
doVis(sm,1);hm=0}if(href){type=type||'window';eval(type+'.location.href="'+href+'"')}}}if(hm)over('',0);return evtRtn||false}};PmPt.changeCol=function(mN,iN,fc){with(this.menu[mN][iN]){if(!lyr||!lyr.ref)return;var bgFn=outCol!=overCol?(outCol.indexOf('.')==-1?'bgColor':'bgImage'):0;var ovr=(this.litNow[mN]==iN)?1:0,doFX=(!fc&&this.litNow[mN]!=this.litOld[mN]);var col=ovr?overCol:outCol;if(fade[0]){clearTimeout(timer);col='#';count=Math.max(0,Math.min(count+(2*ovr-1)*parseInt(fade[ovr][0]),100));var oc,nc,hexD='0123456789ABCDEF';for(var i=1;i<4;i++){oc=parseInt('0x'+fade[0][i]);nc=parseInt(oc+(parseInt('0x'+fade[1][i])-oc)*(count/100));col+=hexD.charAt(Math.floor(nc/16)).toString()+hexD.charAt(nc%16)}if(count%100>0)timer=setTimeout(this.myName+'.changeCol("'+mN+'",'+iN+',1)',50)}if(bgFn&&isNS4)lyr[bgFn](col);var reCSS=(overClass!=outClass||outBorder!=overBorder);if(doFX)with(lyr){if(!this.noRW&&(overText||overInd||isNS4&&reCSS))write(this.getHTML(mN,iN,ovr));if(!isNS4&&reCSS){ref.className=(ovr?overBorder:outBorder);var chl=(isDOM?ref.childNodes:ref.children);if(chl&&!overText)for(var i=0;i<chl.length;i++)chl[i].className=ovr?overClass:outClass}}if(bgFn&&!isNS4)lyr[bgFn](col);if(doFX&&outAlpha!=overAlpha)lyr.alpha(ovr?overAlpha:outAlpha)}};PmPt.position=function(posMN){with(this){for(mN in menu)if(!posMN||posMN==mN)with(menu[mN][0]){if(!lyr||!lyr.ref||!visNow)continue;var pM,pI,newX=eval(offX),newY=eval(offY);if(!isRoot){pM=menu[parentMenu];pI=pM[parentItem].lyr;if(!pI)continue}var eP=eval(par),pW=(eP&&eP.navigator?eP:window);with(pW.page)var sX=scrollX(),wX=sX+winW()||9999,sY=scrollY(),wY=winH()+sY||9999;var sb=page.MS?5:20;if(pM&&typeof(offX)=='number')newX=Math.max(sX,Math.min(newX+pM[0].lyr.x()+pI.x(),wX-menuW-sb));if(pM&&typeof(offY)=='number')newY=Math.max(sY,Math.min(newY+pM[0].lyr.y()+pI.y(),wY-menuH-sb));lyr.x(newX);lyr.y(newY)}}};PmPt.doVis=function(mN,show){with(this){var m=menu[mN],sh=(show?'show':'hide'),mA=sh+'Menu',mE='on'+sh;m[0].visNow=show;if(m&&m[0].lyr&&m[0].lyr.ref){if(show)position(mN);var p=m[0].parentMenu;if(p)m[0].lyr.sty.zIndex=m[0].zIndex=menu[p][0].zIndex+2;if(this[mE])this[mE](mN);if(this[mA])this[mA](mN);else m[0].lyr.vis(show?'visible':'hidden')}}};function ItemStyle(){var names=['len','spacing','popInd','popPos','pad','outCol','overCol','outClass','overClass','outBorder','overBorder','outAlpha','overAlpha','normCursor','nullCursor'];addProps(this,arguments,names,1)};PmPt.startMenu=function(mName){with(this){if(!menu[mName])menu[mName]=[{}];actMenu=menu[mName];aM=actMenu[0];actMenu.length=1;var names=['name','isVert','offX','offY','width','itemSty','par','clickSubs','clickDone','visNow','parentMenu','parentItem','oncreate','isRoot'];addProps(aM,arguments,names,1);aM.extraHTML='';aM.menuW=aM.menuH=0;aM.zIndex=1000;if(!aM.lyr)aM.lyr=null;if(mName.substring(0,4)=='root'){aM.isRoot=1;aM.oncreate=new Function('obj','this.visNow=1;obj.position("'+mName+'");this.lyr.vis("visible")')}return aM}};PmPt.addItem=function(){with(this)with(actMenu[0]){var aI=actMenu[actMenu.length]={};var names=['text','href','type','itemSty','len','spacing','popInd','popPos','pad','outCol','overCol','outClass','overClass','outBorder','overBorder','outAlpha','overAlpha','normCursor','nullCursor','iX','iY','iW','iH','fW','fH','overText','overInd','sm','lyr','onclick','onmouseover','onmouseout'];addProps(aI,arguments,names,1);var iSty=arguments[3]?arguments[3]:actMenu[0].itemSty;for(prop in iSty)if(aI[prop]+''=='undefined')aI[prop]=iSty[prop];if(aI.type=='sm:'){aI.sm=aI.href;aI.href=''}var r=RegExp,re=/^SWAP:(.*)\^(.*)$/;if(aI.text.match(re)){aI.text=r.$1;aI.overText=r.$2}if(aI.popInd.match(re)){aI.popInd=r.$1;aI.overInd=r.$2}aI.timer=aI.count=0;aI.fade=[];for(var i=0;i<2;i++){var oC=i?'overCol':'outCol';if(aI[oC].match(/^(\d+)\#(..)(..)(..)$/)){aI[oC]='#'+r.$2+r.$3+r.$4;aI.fade[i]=[r.$1,r.$2,r.$3,r.$4]}}if(aI.outBorder&&isNS4)aI.pad++;if(!isIE){if(aI.normCursor=='hand')aI.normCursor='pointer';if(aI.nullCursor=='hand')aI.nullCursor='pointer'}aI.iW=isVert?width:aI.len;aI.iH=isVert?aI.len:width;var lastGap=actMenu.length>2?actMenu[actMenu.length-2].spacing:0;var spc=aI.outBorder&&actMenu.length>2?1:0;if(isVert){menuH+=lastGap-spc;aI.iX=0;aI.iY=menuH;menuW=width;menuH+=aI.iH}else{menuW+=lastGap-spc;aI.iX=menuW;aI.iY=0;menuW+=aI.iW;menuH=width}return aI}};PmPt.getHTML=function(mN,iN,isOver){with(this){var itemStr='';with(menu[mN][iN]){var tC=isOver?overClass:outClass,txt=isOver&&overText?overText:text,popI=isOver&&overInd?overInd:popInd,ln='<a href="'+(href&&type!='js:'?href:'#')+'" onclick="return false" onfocus="this.blur()" class="'+tC+(isNS4?'" onmouseover="'+myName+'.over(\''+mN+'\','+iN+')"':'"');if(popI&&sm){if(isNS4)itemStr+='<layer class="'+tC+'" left="'+((popPos+fW)%fW)+'" top="'+pad+'" height="'+(fH-2*pad)+'">'+popI+'</layer>';else itemStr+='<div class="'+tC+'" style="position:absolute;left:'+((popPos+fW)%fW)+'px;top:'+pad+'px;height:'+(fH-2*pad)+'px">'+popI+'</div>'}if(isNS4)itemStr+=(outBorder?'<span class="'+(isOver?overBorder:outBorder)+'"><spacer type="block" width="'+(fW-8)+'" height="'+(fH-8)+'"></span>':'')+'<layer left="'+pad+'" top="'+pad+'" width="'+(fW-2*pad)+'" height="'+(fH-2*pad)+'">'+ln+'>'+txt+'</a></layer>';else{itemStr+=(isIE4?'<div class="'+tC+'" ':ln)+' style="position:absolute;left:'+pad+'px;top:'+pad+'px;width:'+(fW-2*pad)+'px;height:'+(fH-2*pad)+'px;cursor:'+(href?normCursor:nullCursor)+'">'+txt+(isIE4?'</div>':'</a>')}}return itemStr}};PmPt.update=function(docWrite,upMN){with(this){if(!isDyn)return;for(mN in menu)with(menu[mN][0]){if(upMN&&upMN!=mN)continue;var str='',eP=eval(par);with(eP&&eP.navigator?eP:self)var dC=document.compatMode,dT=document.doctype;dFix=(dC&&dC.indexOf('CSS')>-1||isOp&&!dC||dT&&dT.name.indexOf('.dtd')>-1||isDOM&&!isIE)?2:0;for(var iN=1;iN<menu[mN].length;iN++)with(menu[mN][iN]){var tM=menu[sm],itemID=myName+'-'+mN+'-'+iN;if(sm&&tM){tM[0].parentMenu=mN;tM[0].parentItem=iN}if(outBorder){fW=iW-dFix;fH=iH-dFix}else{fW=iW;fH=iH}var isImg=(outCol.indexOf('.')!=-1);if(isDOM||isIE4){str+='<div id="'+itemID+'" '+(outBorder?'class="'+outBorder+'" ':'')+'style="position:absolute;left:'+iX+'px;top:'+iY+'px;width:'+fW+'px;height:'+fH+'px;z-index:'+zIndex+';'+(outCol?'background:'+(isImg?'url('+outCol+')':outCol):'')+(typeof(outAlpha)=='number'?';filter:alpha(opacity='+outAlpha+');-moz-opacity:'+outAlpha+'%;opacity:'+(outAlpha/100):'')+';cursor:'+(href?normCursor:nullCursor)+'" '}else if(isNS4){str+='<layer id="'+itemID+'" left="'+iX+'" top="'+iY+'" width="'+fW+'" height="'+fH+'" z-index="'+zIndex+'" '+(outCol?(isImg?'background="':'bgcolor="')+outCol+'" ':'')}var evtMN="('"+mN+"',"+iN+")";str+='onmouseover="return '+myName+'.over'+evtMN+'" onmouseout="'+myName+'.out'+evtMN+'" onclick="return '+myName+'.click'+evtMN+'">'+getHTML(mN,iN,0)+(isNS4?'</layer>':'</div>')}var sR=myName+'.setupRef('+(docWrite?1:0)+',"'+mN+'")';if(isOp)setTimeout(sR,1000);var mVis=isOp&&isRoot?'visible':'hidden';if(docWrite){var targFr=eP&&eP.navigator?eP:window;targFr.document.write('<div id="'+myName+'-'+mN+'" style="position:absolute;visibility:'+mVis+';left:'+(isOp?-1000:0)+'0px;top:0px;width:'+(menuW+2)+'px;height:'+(menuH+2)+'px;z-index:1000">'+str+extraHTML+'</div>')}else{if(!lyr||!lyr.ref)lyr=setLyr(mVis,menuW,eP);else if(isIE4)setTimeout(myName+'.menu.'+mN+'[0].lyr.sty.width='+(menuW+2),50);with(lyr){sty.zIndex=1000;write(str+extraHTML)}}if(!isOp)setTimeout(sR,100)}}};PmPt.setupRef=function(docWrite,mN){with(this)with(menu[mN][0]){var eP=eval(par);if(docWrite||!lyr||!lyr.ref)lyr=getLyr(myName+'-'+mN,eP);for(var i=1;i<menu[mN].length;i++)menu[mN][i].lyr=getLyr(myName+'-'+mN+'-'+i,isNS4?lyr.ref:eP);lyr.clip(0,0,menuW+2,menuH+2);if(oncreate)oncreate(this)}};

// *** START EDITING HERE, READ THIS SECTION CAREFULLY! ***

var hBarB = new ItemStyle(90, 10, '', 0, 0, '#111111', '#333333', 'topTextB', 'topHoverB', 'topBorderB', 'topBorderOverB', null, null, 'hand', 'default')

var hBar = new ItemStyle(90, 10, '', 0, 0, '#336633', '#447744', 'topText', 'topHover', 'topBorder', 'topBorderOver', null, null, 'hand', 'default')
var subM = new ItemStyle(22, 0, '&gt;', -15, 3, '#336633', '#447744', 'itemText', 'itemHover', 'itemBorder', 'itemBorder', null, null, 'hand', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

// *** MOVE OR CENTRE THE MENU HERE ***
startMenu('root', false, 2, 75, 17, hBar, '', '');
addItem('<center>Home</center>', '/main.php', '', hBarB, 175 );
addItem('&nbsp; Reference', 'mReference', 'sm:');
addItem('&nbsp; Operating', 'mOperating', 'sm:');
addItem('&nbsp; Contact', 'mContact', 'sm:');
addItem('&nbsp; Links', 'mLinks', 'sm:');
addItem('&nbsp; Other', 'mOther', 'sm:');
addItem('&nbsp; Forums', '/forum/', '');

startMenu('mReference', true, 0, 22, 100, subM);
addItem('Courses', 'mCourses', 'sm:');
addItem('Qualifications', 'mQualifications', 'sm:');
addItem('Radio Equip.', 'mRadio', 'sm:');
addItem('Line Equip.', 'mLine', 'sm:');
addItem('Newsletter', '/newsletters.php', '');

  startMenu('mCourses', true, 105, 0, 120, subM);
  addItem('Photos', 'mPhotos', 'sm:');
  addItem('Information', 'mInfo', 'sm:');
  addItem('RSS Courses', '/rsscourses.php', '');
  addItem('Course Dates', '/coursedates.php', '');

    startMenu('mPhotos', true, 125, 0, 150, subM);
    addItem('Classification', 'mClass', 'sm:');
    addItem('Post - Classification', 'mPost', 'sm:');
    addItem('Advanced', 'mAdv', 'sm:');
    addItem('Adult Basic', 'mAdBas', 'sm:');
    addItem('Adult Advanced', 'mAdAdv', 'sm:');
    addItem('Other', '/oldcourses.php', '');

        startMenu('mClassArc', true, 105, 0, 100, subM);
        addItem('Feb 04', '/classfeb04.php', '');
        addItem('Oct 04', '/classoct04.php', '');
        addItem('Oct 05', '/classoct05.php', '');
        addItem('Oct 06', '/classoct06.php', '');
        addItem('Feb 07', '/classfeb07.php', '');
        addItem('Oct 07', '/classoct07.php', '');

      startMenu('mClass', true, 155, 0, 100, subM);
      addItem('Archive', 'mClassArc', 'sm:');
      addItem('Feb 08', '/classfeb08.php', '');
      addItem('Oct 08', '/classoct08.php', '');
      addItem('Feb 09', '/classfeb09.php', '');
      addItem('Oct 09', '/classoct09.php', '');
      addItem('Feb 10', '/classfeb10.php', '');

        startMenu('mPostArc', true, 105, 0, 100, subM);
        addItem('Easter 04', '/posteast04.php', '');
        addItem('Summer 05', '/postsum05.php', '');
        addItem('Easter 06', '/posteast06.php', '');
        addItem('Summer 06', '/postsum06.php', '');
        addItem('Easter 07', '/posteast07.php', '');
        addItem('Summer 07', '/postsum07.php', '');

      startMenu('mPost', true, 155, 0, 100, subM);
      addItem('Archive', 'mPostArc', 'sm:');
      addItem('Easter 08', '/posteast08.php', '');
      addItem('Summer 08', '/postsum08.php', '');
      addItem('Easter 09', '/posteast09.php', '');
      addItem('Summer 09', '/postsum09.php', '');
      addItem('Easter 10', '/posteast10.php', '');
      addItem('Summer 10', '/postsum10.php', '');

        startMenu('mAdvArc', true, 105, 0, 100, subM);
        addItem('Easter 04', 'adveast04.php', '');
        addItem('Easter 05', '/adveast05.php', '');
        addItem('Summer 05', '/advsum05.php', '');
        addItem('Summer 06', '/advsum06.php', '');
        addItem('Easter 07', '/adveast07.php', '');
        addItem('Summer 07', '/advsum07.php', '');

      startMenu('mAdv', true, 155, 0, 100, subM);
      addItem('Archive', 'mAdvArc', 'sm:');
      addItem('Easter 08', '/adveast08.php', '');
      addItem('Summer 08', '/advsum08.php', '');
      addItem('Summer 09', '/advsum09.php', '');
      addItem('Easter 10', '/adveast10.php', '');
      addItem('Summer 10', '/advsum10.php', '');

      startMenu('mAdBas', true, 155, 0, 100, subM);
      addItem('August 04', '/adbasaug04.php', '');
      addItem('August 06','/adbasaug06.php', '');
      addItem('June 07','/adbasjun07.php', '');
      addItem('August 08','/adbasaug08.php', '');
      addItem('June 09','/adbasjun09.php', '');
      addItem('August 10','/adbasaug10.php', '');

      startMenu('mAdAdv', true, 155, 0, 100, subM);
      addItem('August 05', '/adadvaug05.php', '');
      addItem('August 07','/adadvaug07.php', '');
      addItem('June 08', '/adadvjun08.php', '');
      addItem('June 10', '/adadvjun10.php', '');


    startMenu('mInfo', true, 125, 0, 120, subM);
    addItem('Radio User', '/cru.php', '');
    addItem('Classification', '/class.php', '');
    addItem('Post Classification', '/post.php', '');
    addItem('Advanced Signalling', '/adv.php', '');


  startMenu('mQualifications', true, 105, 0, 100, subM);
  addItem('CASI', '/casi.php', '');
  addItem('Amateur Radio', '/amateur.php', '');
  addItem('D of E', '/dofe.php', '');

  startMenu('mRadio', true, 105, 0, 140, subM);
  addItem('Harris Radio', 'mHarris', 'sm:');
  addItem('Antennas', 'mAntennas', 'sm:');
  addItem('Comparison', '/radtable.php', '');
  addItem('PRC 320', '/320.php', '');
  addItem('VRC 321', '/321.php', '');
  addItem('PRC 343', '/343.php', '');
  addItem('PRC 349', '/349.php', '');
  addItem('PRC 350', '/350.php', '');
  addItem('PRC 351', '/351.php', '');
  addItem('PRC 352', '/352.php', '');
  addItem('VRC 353', '/353.php', '');

    startMenu('mAntennas', true, 145, 0, 175, subM);
    addItem('Calculating Antenna Lengths', '/antlength.php', '');
    addItem('Comparison Table', '/anttable.php', '');
    addItem('Dipole', '/dipole.php', '');
    addItem('EGSA', '/egsa.php', '');
    addItem('End-Fed', '/endfed.php', '');
    addItem('EVHF', '/evhf.php', '');
    addItem('GMM', '/gmm.php', '');
    addItem('GSA', '/gsa.php', '');
    addItem('HF Whip Antenna', '/whiphf.php', '');
    addItem('Inverted L', '/invl.php', '');
    addItem('Sloping Wire', '/slope.php', '');
    addItem('Vertical Radiator', '/vertrad.php', '');
    addItem('VHF Whip Antenna', '/whipvhf.php', '');

    startMenu('mHarris', true, 145, 0, 100, subM);
    addItem('RF-5800H-MP', '/5800h.php', '');
    addItem('RF-5800V-MP', '/5800v.php', '');
    addItem('RF-5800V-HH', '/5800vhh.php', '');

  startMenu('mLine', true, 105, 0, 100, subM);
  addItem('Field Cable', 'mCable', 'sm:');
  addItem('Cable Jointing', 'mJoint', 'sm:');
  addItem('Crossings', 'mCrossing', 'sm:');
  addItem('ULS 16', '/uls16.php', '');
  addItem('PTC 404', '/404.php', '');
  addItem('PTC 405', '/405.php', '');
  addItem('PTC 414', '/414.php', '');

    startMenu('mCable', true, 105, 0, 120, subM);
    addItem('D10', '/don10.php', '');
    addItem('Lightweight Quad', '/ltwtquad.php', '');

    startMenu('mJoint', true, 105, 0, 120, subM);
    addItem('Reef Knot', '/reefknot.php', '');
    addItem('Brass Crimp', '/brasscrimp.php', '');
    addItem('Grease Filled Crimp', '/greasecrimp.php', '');

    startMenu('mCrossing', true, 105, 0, 120, subM);
    addItem('Overhead Crossings', '/polecross.php', '');
    addItem('Buried Crossing', '/buriedcross.php', '');


startMenu('mOperating', true, 0, 22, 120, subM);
addItem('Competitions', 'mComp', 'sm:');
addItem('Data Systems', 'mData', 'sm:');
//  addItem('Voice Systems', '/opvoice.php', '');
addItem('Morse', '/opmorse.php', '');
addItem('Phonetic Alphabet', '/phonetics.php', '');
addItem('Current Conditions', '/conditions.php', '');

  startMenu('mComp', true, 125, 0, 120, subM);
  addItem('Results', 'mResults', 'sm:');
  addItem('Easter Bunny', '/east.php', '');
  addItem('Summer Whine', '/sum.php', '');
  addItem('Christmas Cracker', '/xmas.php', '');
//  addItem('Rolling Thunder', '/rollingthunder.php', '');
  addItem('Dates', '/compdates.php', '');

    startMenu('mResults', true, 125, 0, 100, subM);
    addItem('Archive', 'mResultsArc', 'sm:');
    addItem('2007', 'm2007', 'sm:');
    addItem('2008', 'm2008', 'sm:');
    addItem('2009', 'm2009', 'sm:');
    addItem('2010', 'm2010', 'sm:');

      startMenu('mResultsArc', true, 105, 0, 100, subM);
      addItem('2003', 'm2003', 'sm:');
      addItem('2004', 'm2004', 'sm:');
      addItem('2005', 'm2005', 'sm:');
      addItem('2006', 'm2006', 'sm:');

      startMenu('m2010', true, 105, 0, 120, subM);
//      addItem('Rolling Thunder', '/rollingthunder10.php', '');
      addItem('Easter Bunny', '/2010east.php', '');
      addItem('Summer Whine', '/2010sum.php', '');
//      addItem('Christmas Cracker', '/2010xmas.php', '');

      startMenu('m2009', true, 105, 0, 120, subM);
      addItem('Rolling Thunder', '/rollingthunder09.php', '');
//      addItem('Easter Bunny', '/2009east.php', '');
      addItem('Summer Whine', '/2009sum.php', '');
      addItem('Christmas Cracker', '/2009xmas.php', '');

      startMenu('m2008', true, 105, 0, 120, subM);
      addItem('Rolling Thunder', '/rollingthunder08.php', '');
      addItem('Easter Bunny', '/2008east.php', '');
      addItem('Summer Whine', '/2008sum.php', '');
      addItem('Christmas Cracker', '/2008xmas.php', '');

      startMenu('m2007', true, 105, 0, 120, subM);
      addItem('Easter Bunny', '/2007east.php', '');
      addItem('Summer Whine', '/2007sum.php', '');
      addItem('Christmas Cracker', '/2007xmas.php', '');

      startMenu('m2006', true, 105, 0, 120, subM);
      addItem('Easter Bunny', '/2006east.php', '');
      addItem('Summer Whine', '/2006sum.php', '');
      addItem('Christmas Cracker', '/2006xmas.php', '');

      startMenu('m2005', true, 105, 0, 120, subM);
      addItem('Easter Bonnet', '/2005east.php', '');
      addItem('Summer Whine', '/2005sum.php', '');
      addItem('Christmas Cracker', '/2005xmas.php', '');

      startMenu('m2004', true, 105, 0, 120, subM);
      addItem('Summer Whine', '/2004sum.php', '');
      addItem('Christmas Cracker', '/2004xmas.php', '');

      startMenu('m2003', true, 105, 0, 120, subM);
      addItem('Summer Whine', '/2003sum.php', '');
      addItem('Christmas Cracker', '/2003xmas.php', '');

  startMenu('mData', true, 125, 0, 100, subM);
  addItem('Press Release', '/UKCFENPR.pdf', '');
  addItem('AMTOR', '/amtor.php', '');
  addItem('SSTV', '', '');
  addItem('R-mail', '/rmail.php', '');

startMenu('mContact', true, 0, 22, 100, subM);
addItem('Meet...', 'mMeet', 'sm:');
addItem('NRN Survey', '/nrnsurvey.php', '');
addItem('E-mail', '/email.php', '');
addItem('Forums', '/forum/', '');

  startMenu('mMeet', true, 105, 0, 140, subM);
  addItem('CFNSA', '/meetmfoster.php', '');
  addItem('Webmaster', '/meetamay.php', '');
  addItem('Training Officer', '/meetdlehmann.php', '');
  addItem('Senior Net Monitor', '/meetdholman.php', '');
  addItem('The Instructors', '/meetrss.php', '');

startMenu('mLinks', true, 0, 22, 130, subM);
addItem('ACF / CCF Units', 'mOtherunits', 'sm:');
addItem('ACF.com', 'window.open("http://www.armycadetforce.com")', 'js:');
addItem('Army Cadets.com', 'window.open("http://www.armycadets.com")', 'js:');
addItem('Air Training Corps', 'window.open("http://www.alphacharlie.org.uk")', 'js:');
addItem('CVQO', 'window.open("http://www.cvqo.co.uk")', 'js:');
addItem('Ofcom', 'window.open("http://www.ofcom.org.uk")', 'js:');
addItem('Royal Signals', 'window.open("http://www.army.mod.uk/signals/")', 'js:');
addItem('RSGB', 'window.open("http://www.rsgb.org")', 'js:');

  startMenu('mOtherunits', true, 135, 0, 180, subM);
  addItem('A Coy, Hants & IOW ACF', 'window.open("http://www.acoyacf.f9.co.uk/")', 'js:');
  addItem('Middlesex & NW London ACF', 'window.open("http://www.xl6294.com/")', 'js:');
  addItem('Gwent ACF', 'window.open("http://www.armycadets.com/county/gwentpowys/home/")', 'js:');
  addItem('Staffordshire Wing ATC', 'window.open("http://www.staffswing.org.uk/")', 'js:');


startMenu('mOther', true, 0, 22, 160, subM);
addItem('Download Area', 'mDownload', 'sm:');
addItem('Calendar', '/calendar/', '');
addItem('Bookmark This Site', 'window.external.AddFavorite("http://www.acfccfsignals.org.uk", "ACF CCF Signals")', 'js:');
addItem('Refer The Site To A Friend', '/refer.php', '');
addItem('Credits', '/credits.php', '');

startMenu('mDownload', true, 165, 0, 160, subM);
addItem('Download Account Request', '/downloadrequest.php', '');
addItem('Download Area Help', '/downloadhelp.php', '');
addItem('Download Area', 'http://downloads.acfccfsignals.org.uk', '');

showDelay = 100;
hideDelay = 0;

hideDocClick = true;

}

if ((navigator.userAgent.indexOf('rv:0.')==-1) &&
    !(isOp&&!document.documentElement) && !(isIE4&&!window.external))
{
 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');

 // Add animation to other menu objects like this...
 //anotherMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 //anotherMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');
}

function menuAnim(menuObj, menuName, dir)
{
 // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu').
 var mD = menuObj.menu[menuName][0];
 // Add timer and counter variables to the menu data structure, we'll need them.
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;

 with (mD)
 {
  // Stop any existing animation.
  clearTimeout(timer);

  // If the litNow() array doesn't show this menu as lit, and we're still showing it,
  // force a quick hide (this stops miscellaneous timer errors).
  //if (dir>0 && !menuObj.litNow[menuObj.menu[menuName][0].parentMenu]) dir = -100;

  // If the layer doesn't exist (cross-frame navigation) quit.
  if (!lyr || !lyr.ref) return;
  // This next line is not strictly necessary, but it stops the one-in-a-hundred menu that
  // shows and doesn't hide on very quick mouseovers.
  if (!visNow && dir>0) dir = 0-dir;
  // Show the menu if that's what we're doing.
  if (dir>0) lyr.vis('visible');
  // Also raise showing layers above hiding ones.
  lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;

  // Alpha fade in IE5.5+. Mozilla's opacity (pre-v1.7) isn't well suited as it's an inheritable
  // property rather than a block-level filter, and it's slow, but uncomment and try it perhaps.
  // WARNING: This looks funny if you're mixing opaque and translucent items e.g. solid menus
  // with dropshadows. If you're going to use it, either disable dropshadows or set the opacity
  // values for your items to numbers instead of null.
  //if (isIE && window.createPopup) lyr.alpha(counter&&(counter<100) ? counter : null);

  // Clip the visible area. The syntax is:   lyr.clip(left, top, right, bottom);
  // As you can see in these examples, three are static at either zero or the edge of a menu item,
  // and either the top or bottom is a complicated formula based on the 'counter' variable which
  // counts from 0 to 100 and back again; this give a nice accelerating-sliding animation.
  // Feel free to experiment with your own animations, here are some samples (use one only):

  // Straightforward downwards clipping animation (default setting):
  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
  // If you want, comment out the above line and enable this one to animate bottom-upwards:
  //lyr.clip(0, (menuH+2)-(menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75), menuW+2, menuH+2);
  // Another alternative: Move+clip sliding animation. Looks really cool :).
  //if (!counter) mD.origY = lyr.y();
  //var newY = (menuH+2)-(menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75);
  //lyr.clip(0, newY, menuW+2, menuH+2);
  //lyr.y(mD.origY - newY);

  // Increment the counter and if it hasn't reached the end (counter is 0% or 100%),
  // set the timer to call the animation function again in 40ms to contine the animation.
  // Note that we hide the menu div on animation end in that direction.
  counter += dir;
  if (counter>100) { counter = 100; lyr.sty.zIndex = mD.zIndex }
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);
 }
};

var scFr=(self.PopupMenu&&self.PopupMenu.list.length)?self:(parent.PopupMenu?parent:top);function popEvt(str,each){if(!scFr||!scFr.PopupMenu)return;var PML=scFr.PopupMenu.list,mN;for(var obj in PML){var evStr='var objName="'+obj+'",PML=self.scFr.PopupMenu.list,pm=PML[objName];';if(each)for(mN in PML[obj].menu){var mD=PML[obj].menu[mN][0];if((!mD.par&&scFr==self)||(mD.par&&mD.par.substring(mD.par.lastIndexOf('.')+1)==self.name)){var doCmd=evStr+'var mN="'+mN+'";'+str;eval(doCmd)}}else{eval(evStr+str)}}};var scrFn,popOL=window.onload,popUL=window.onunload,popOR=window.onresize,popOS=window.onscroll,nsWinW=window.innerWidth,nsWinH=window.innerHeight,nsPX=window.pageXOffset,nsPY=window.pageYOffset;document.popOC=document.onclick;if(scFr.PopupMenu){if(!self.page)var isNS4=scFr.isNS4,page={};if(scFr!=self)for(var f in scFr.page)page[f]=scFr.page[f];page.win=self;popEvt('self[objName]=pm',0);if(!isNS4)popEvt('pm.update(true,mN)',1);window.onload=function(){if(popOL)popOL();if(isNS4){popEvt('pm.update(false,mN)',1);setInterval(scrFn,50)}if(!scFr.isOp)window.onunload=new Function('if(popUL)popUL();popEvt("for(var i=0;i<pm.menu[mN].length;i++)pm.menu[mN][i].lyr=null",1)')};if(popOS||(''+popOS!='undefined'))window.onscroll=function(){if(popOS)popOS();popEvt('pm.position(mN)',1)};else{scrFn='if(nsPX!=pageXOffset||nsPY!=pageYOffset){nsPX=pageXOffset;nsPY=pageYOffset;popEvt("pm.position(mN)",1)}';if(!isNS4)setInterval(scrFn,50)}function resizeBugCheck(){if(nsWinW!=innerWidth||nsWinH!=innerHeight)location.reload()};if(scFr.isOp&&!document.documentElement&&!self.opFix)self.opFix=setInterval('resizeBugCheck()',500);window.onresize=function(){if(popOR)popOR();if(isNS4)resizeBugCheck();popEvt('pm.position(mN)',1)};if(isNS4)document.captureEvents(Event.CLICK);document.onclick=function(evt){popEvt('if(isNS4&&pm.overI)pm.click(pm.overM,pm.overI);if(!pm.overI&&pm.hideDocClick)pm.over("root",0)',0);return document.popOC?document.popOC(evt):(isNS4?document.routeEvent(evt):self.uNdEfInEd)}}
// End Hide -->

<!--

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 