/*(c) Areyoulocal Ltd 2006*/

 var ABposTypePopDownLeftAlign="downLeftAlign"; var ABposTypePopDownCentreAlign="downCentreAlign";var ABposTypePopRightTopAlign="rightTopAlign";var em=new Array(); var Dr=0;var MX=new Array(); var ge=null;      function ABaddMenuBar(hx_name,dl,lD,Tu,nS,bE,VR ){  MX[hx_name]=Array();var hx=MX[hx_name];hx.mO=dl;hx.Px=lD;hx.persistent=(Tu=="persistentRollover"); hx.click=(Tu=="click");hx.crollover=(Tu=="clickRollover"); hx.Th=0;  hx.nt=0;hx.Yj=1024;hx.bh=nS;hx.lo=bE;hx.eB=VR;} function ABaddMenu(hx_name,dD,Sb){var heading_Go=document.getElementById(dD);var HX_Go;heading_Go.nb=false; if(MX[hx_name].mO==true){var PS=heading_Go.getElementsByTagName("img"); if(PS.length){heading_Go.nb=true; heading_Go.Wq=PS[0];var DT=PS[0].src;heading_Go.RI=DT;var uC=DT.lastIndexOf(".");var df=DT.substring(0,uC);var dU=DT.substring(uC,DT.length); em[Dr]=new Image();heading_Go.Rl=df+"down"+dU;em[Dr].src=heading_Go.Rl;Dr++; em[Dr]=new Image();heading_Go.rc=df+"over"+dU;em[Dr].src=heading_Go.Rl;Dr++;}} heading_Go.lj=hx_name; heading_Go.onmouseover=ABmouseOverHeading;heading_Go.onmouseout=ABleaveMenuOrHeading;var Dv=MX[hx_name];if(Dv.click||Dv.crollover) heading_Go.onclick=ABclickHeading; if(Sb!=null){HX_Go=document.getElementById(Sb);heading_Go.hI=HX_Go; HX_Go.style.visibility="hidden";HX_Go.style.position="absolute";HX_Go.style.zIndex=10000;HX_Go.onmouseover=ABmouseOverMenu;HX_Go.onmouseout=ABleaveMenuOrHeading;HX_Go.hb=true; HX_Go.lj=hx_name;}} function ABaddSubMenu(tT,Rd){var KY=document.getElementById(tT);var uX=document.getElementById(Rd); KY.hI=uX;KY.onmouseover=ABmouseOverHMenuItem; uX.style.visibility="hidden";uX.style.position="absolute";uX.onmouseover=ABmouseOverMenu;uX.onmouseout=ABleaveMenuOrHeading; var parent_HX_Go=Ft(KY);uX.style.zIndex=parent_HX_Go.style.zIndex+1; uX.lj=parent_HX_Go.lj;uX.hb=true;      var sZ=KY.getElementsByTagName("span");var Ce;var OH;var span;for(span=0;span<sZ.length;span++){var Go=sZ[span];if(kl(Go,"ABarrow")){if(ABisIE){ Go.style.fontFamily="Webdings";Go.firstChild.nodeValue="4";}OH=Go;}else{Ce=Go;}}if(OH!=null){ var QW=Ce.parentNode.offsetWidth- Ce.offsetWidth- OH.offsetWidth;OH.style.paddingLeft=QW+"px";OH.style.paddingRight="0px";}} function ABsetSelectedHeading(dD){var heading_Go=document.getElementById(dD);if(heading_Go==null) return;var Dv=MX[heading_Go.lj]; var jC=Dv.YN;if(jC){if(jC.nb){jC.Wq.src=jC.RI;}else{ABremoveClass(jC,Dv.eB);}Dv.YN=null;}  ge=Dv; HP(Dv); if(heading_Go.nb){ heading_Go.Wq.src=heading_Go.Rl;}else{ heading_Go.className+=" "+Dv.eB;}Dv.YN=heading_Go;Dv.fF=heading_Go; if(Dv.VA!=null){ if(heading_Go==Dv.VA) return;else{jO(Dv.VA.hI,true);}}XD(heading_Go);} function ABsetMenuWidthConstraints(uc,sh,ZA){MX[uc].nt=sh;MX[uc].Yj=ZA;} function ABsetMenuHeadDelay(uc,ie_ms){MX[uc].Th=ie_ms;}       function ABclickHeading(event){var heading_Go;if(ABisIE){  heading_Go=window.event.srcElement;while(heading_Go&&!heading_Go.lj) heading_Go=heading_Go.parentNode;}else{heading_Go=event.currentTarget;}ABsetSelectedHeading(heading_Go.id);} function ABmouseOverHeading(event){var heading_Go;if(ABisIE){  heading_Go=window.event.srcElement;while(heading_Go&&!heading_Go.lj) heading_Go=heading_Go.parentNode;}else{heading_Go=event.currentTarget;}AI(heading_Go);} function AI(heading_Go){ document.ABdelayedHeading=heading_Go;if(document.ABheadTimer==null){var ie=MX[heading_Go.lj].Th;document.ABheadTimer=window.setTimeout('ABdoMouseOverHeading()', ie);}} function ABdoMouseOverHeading(){document.ABheadTimer=null;var heading_Go=document.ABdelayedHeading; var Dv=MX[heading_Go.lj];if(Dv.click||Dv.crollover||Dv.persistent){  if(Dv.fF!=null&&Dv.fF!=heading_Go){HP(Dv);}}  ge=Dv; if(Dv.fF!=heading_Go){ if(heading_Go!=Dv.YN){if(heading_Go.nb){ heading_Go.Wq.src=heading_Go.rc;}else{ heading_Go.className+=" "+Dv.lo;}} Dv.fF=heading_Go;} if(!(Dv.click)){if(Dv.VA!=null){ if(heading_Go==Dv.VA) return;else{jO(Dv.VA.hI,true);}}XD(heading_Go);}} function ABleaveMenuOrHeading(event){var new_Go;  if(ABisIE){new_Go=window.event.toElement;}else{new_Go=event.relatedTarget;}  if(Ft(new_Go)==null){var Dv=ge;if(Dv){if(Dv.crollover&&Dv.YN){ AI(Dv.YN);}else{if(!Dv.persistent&&!Dv.click){ var MC=Dv.fF;if(MC!=null){var HX=MC.hI;if(HX!=null) jO(HX,true);}}if(!Dv.persistent) HP(Dv);}}}} function ABmouseOverMenu(event){var HX_Go; if(ABisIE){HX_Go=Ft(window.event.srcElement);}else{HX_Go=event.currentTarget;}   if(document.ABheadTimer){window.clearTimeout(document.ABheadTimer);document.ABheadTimer=null;} jO(HX_Go,false);} function ABmouseOverHMenuItem(event){var KY; if(ABisIE){  KY=window.event.srcElement;while(KY&&!KY.hI) KY=KY.parentNode;}else{KY=event.currentTarget;}uE(KY);  if(ABisIE){window.event.cancelBubble=true;}else{event.stopPropagation();}} function uE(KY){   var HX_Go=Ft(KY); jO(HX_Go,false); KY.className+=" "+MX[HX_Go.lj].bh; var uX=KY.hI;var tJ=fv(uX,KY,ABposTypePopRightTopAlign,true);uX.style.left=tJ[0]+"px";uX.style.top=tJ[1]+"px";if(ABisIE)  ABIEhoverFix(HX_Go);uX.style.visibility="visible"; HX_Go.Ul=KY;} function XD(heading_Go){ var hx=MX[heading_Go.lj];var HX_Go=heading_Go.hI;if(HX_Go!=null){var HI=hx.Px;var tJ=fv(HX_Go,heading_Go,HI,false);HX_Go.style.left=tJ[0]+"px";HX_Go.style.top=tJ[1]+"px";if(ABisIE&&HI!=ABposTypePopDownCentreAlign)  ABIEhoverFix(HX_Go);HX_Go.style.visibility="visible";hx.VA=heading_Go;}} function HP(hx){var heading_Go=hx.fF;if(heading_Go&&hx.YN!=heading_Go){if(heading_Go.nb){heading_Go.Wq.src=heading_Go.RI;}else{ABremoveClass(heading_Go,hx.lo);}}hx.fF=null;} function jO(HX_Go,Hw){var Dv=MX[HX_Go.lj];if(Hw==true){ HX_Go.style.visibility="hidden";Dv.VA=null;}  if(HX_Go.Ul!=null){jO(HX_Go.Ul.hI,true);ABremoveClass(HX_Go.Ul,Dv.bh);HX_Go.Ul=null;}} function fv(HX_Go,xW,lD,Tv){var x=xW.offsetLeft;var y=xW.offsetTop;switch(lD){case ABposTypePopDownLeftAlign:default:y+=xW.offsetHeight;break;case ABposTypePopDownCentreAlign:y+=xW.offsetHeight;x+=xW.offsetWidth / 2;x-=HX_Go.offsetWidth / 2;break;case ABposTypePopRightTopAlign:x+=xW.offsetWidth-2;y+=3;break;}  var Rr=xW.offsetParent;while(Rr){x+=Rr.offsetLeft;y+=Rr.offsetTop;Rr=Rr.offsetParent;}var hx=MX[HX_Go.lj]; Oa=x+HX_Go.offsetWidth-hx.Yj;if(Oa>0) x-=Oa;if(x<hx.nt) x=hx.nt;var QJ=[x,y];return QJ;} function Ft(search_Go){while(search_Go!=null){if(search_Go.hb) return search_Go;search_Go=search_Go.parentNode;} return null;}   