// $Id: menu.js.xsl 1.60 2011/10/20 17:11:27 daves Exp $
if(!window.opener){
var menu_ready;
var menu_show_props;
var menu_hide_props;
var menu_icon_props;
var menu_props;
function menu_scroll_top(){
return window.scrollY+10+"px";}
function menu_scroll_top_IE(){
return document.documentElement.scrollTop+10+"px";}
function menu_icon_show(){
if(menu_ready==null)
return true;
menu_icon_props.top=menu_scroll_top();
menu_show_props.display='none';
menu_hide_props.display='block';
menu_icon_props.display='block';
return false;}
function menu_icon_hide(){
if(menu_ready==null)
return true;
menu_show_props.display='block';
menu_hide_props.display=menu_props.display;
menu_icon_props.display='none';
return false;}
function menu_show(){
if(menu_ready==null)
return true;
menu_props.top=menu_scroll_top();
menu_props.display='block';
menu_show_props.display='none';
menu_hide_props.display='block';
menu_icon_props.display='none';
return false;}
function menu_hide(){
if(menu_ready==null)
return true;
menu_props.display='none';
menu_show_props.display='block';
menu_hide_props.display='none';
menu_icon_props.display='none';
return false;}
function menu_getElementsByTagName_NS(namespaceURI,localName){
return document.documentElement.getElementsByTagNameNS(namespaceURI,localName);}
function menu_getElementsByTagName(namespaceURI,localName){
return document.documentElement.getElementsByTagName(localName);}
function menu_appendElement_NS(parent,namespaceURI,qualifiedName){
var element=document.createElementNS(namespaceURI,qualifiedName);
parent.appendChild(element);
return element;}
function menu_appendElement(parent,namespaceURI,qualifiedName){
var element=document.createElement(qualifiedName);
parent.appendChild(element);
return element;}
function menu_getAttribute_NS(element,namespaceURI,localName){
return element.getAttributeNS(namespaceURI,localName);}
function menu_getAttribute(element,namespaceURI,localName){
return element.getAttribute(localName);}
function menu_setAttribute_NS(element,namespaceURI,qualifiedName,value){
element.setAttributeNS(namespaceURI,qualifiedName,value);}
function menu_setAttribute(element,namespaceURI,qualifiedName,value){
element.setAttribute(qualifiedName,value);}
function menu_appendText(element,text){
element.appendChild(document.createTextNode(text));}
function menu_init(){
if(window.navigator.appName.indexOf('Microsoft')>=0){
menu_scroll_top=menu_scroll_top_IE;}
if(document.documentElement.namespaceURI){
menu_getElementsByTagName=menu_getElementsByTagName_NS;
menu_appendElement=menu_appendElement_NS;
menu_getAttribute=menu_getAttribute_NS;
menu_setAttribute=menu_setAttribute_NS;}
if(window.removeEventListener)
window.removeEventListener('load',menu_init,true);
var d_namespace=document.documentElement.namespaceURI;
var m_body=menu_getElementsByTagName(d_namespace,'body')[0];
var m_page_height=m_body.scrollHeight;
var m_show=menu_appendElement(m_body,d_namespace,'div');
menu_setAttribute(m_show,null,'id','MenuShow');
menu_setAttribute(m_show,null,'onmouseover','menu_icon_show();');
menu_setAttribute(m_show,null,'style','position:absolute;display:block;'
+'top:0;height:'+m_page_height+'px;left:0;width:2em');
var m_hide=menu_appendElement(m_body,d_namespace,'div');
menu_setAttribute(m_hide,null,'id','MenuHide');
menu_setAttribute(m_hide,null,'onmouseover','menu_icon_hide();');
menu_setAttribute(m_hide,null,'onclick','menu_hide();');
menu_setAttribute(m_hide,null,'style','position:absolute;display:none;'
+'top:0;height:'+m_page_height+'px;left:'+eval(100/4)+'%;width:'+eval(100/4*3)+'%');
var m_icon=menu_appendElement(m_body,d_namespace,'div');
menu_setAttribute(m_icon,null,'id','MenuIcon');
menu_setAttribute(m_icon,null,'style','position:absolute;display:none;'
+'left:10px;margin:0');
var m_icon_img=menu_appendElement(m_icon,d_namespace,'img');
menu_setAttribute(m_icon_img,null,'onclick','menu_show();');
menu_setAttribute(m_icon_img,null,'src','menu-open.gif');
menu_setAttribute(m_icon_img,null,'style','width:22px;height:26px;border:none');
menu_setAttribute(m_icon_img,null,'alt','');
menu_setAttribute(m_icon_img,null,'title','table of contents');
var m_this=location.pathname;
if(m_this.substr(-1)=='/')
m_this='./'
else
m_this=m_this.substring(m_this.lastIndexOf('/')+1);
var m_menu=menu_appendElement(m_body,d_namespace,'div');
menu_setAttribute(m_menu,null,'id','Menu');
menu_setAttribute(m_menu,null,'class','menu');
menu_setAttribute(m_menu,null,'style',
'position:absolute;display:none;top:10px;left:10px;width:13em');
var m_menu_div=menu_appendElement(m_menu,d_namespace,'div');
menu_setAttribute(m_menu_div,null,'class','noprint');
var m_menu_table=menu_appendElement(m_menu_div,d_namespace,'table');
menu_setAttribute(m_menu_table,null,'class','toc');
menu_setAttribute(m_menu_table,null,'style','width:100%;table-layout:fixed');
var m_menu_tbody=menu_appendElement(m_menu_table,d_namespace,'tbody');
var m_menu_tr,m_menu_td;
m_menu_tr=menu_appendElement(m_menu_tbody,d_namespace,'tr');
m_menu_td=menu_appendElement(m_menu_tr,d_namespace,'td');
menu_setAttribute(m_menu_td,null,'class','toolbar');
menu_setAttribute(m_menu_td,null,'align','right');
var m_menu_img=menu_appendElement(m_menu_td,d_namespace,'img');
menu_setAttribute(m_menu_img,null,'onclick','menu_hide();');
menu_setAttribute(m_menu_img,null,'src','menu-close.gif');
menu_setAttribute(m_menu_img,null,'style','width:11px;height:11px;border:none');
menu_setAttribute(m_menu_img,null,'alt','');
m_menu_tr=menu_appendElement(m_menu_tbody,d_namespace,'tr');
m_menu_td=menu_appendElement(m_menu_tr,d_namespace,'td');
menu_setAttribute(m_menu_td,null,'style','padding:10px');
var m_menu_dl=menu_appendElement(m_menu_td,d_namespace,'dl');
function m_appendItem(m_parent,m_href,m_feed){
var m_dt=menu_appendElement(m_parent,d_namespace,'dt');
var m_dt_strong=menu_appendElement(m_dt,d_namespace,'strong');
var m_a=m_appendLink(m_dt_strong,m_href,m_feed,'rss-bullet-3.gif','border:none;width:16px;height:16px');
return m_a;}
function m_appendSearch(m_parent,action){
var m_dd=menu_appendElement(m_parent,d_namespace,'dd');
var m_form=menu_appendElement(m_dd,d_namespace,'form');
menu_setAttribute(m_form,null,'class','compact');
menu_setAttribute(m_form,null,'action',action);
menu_setAttribute(m_form,null,'method','get');
var m_div=menu_appendElement(m_form,d_namespace,'div');
var m_small=menu_appendElement(m_div,d_namespace,'small');
menu_setAttribute(m_small,null,'style','white-space:nowrap');
var m_input;
m_input=menu_appendElement(m_small,d_namespace,'input');
menu_setAttribute(m_input,null,'name','query');
menu_setAttribute(m_input,null,'value','');
menu_setAttribute(m_input,null,'class','xmiddle');
menu_setAttribute(m_input,null,'style','width:90%');
menu_appendText(m_small,' ');
m_input=menu_appendElement(m_small,d_namespace,'input');
menu_setAttribute(m_input,null,'class','xmiddle');
menu_setAttribute(m_input,null,'type','image');
menu_setAttribute(m_input,null,'src','search-go.gif');
menu_setAttribute(m_input,null,'alt','search');
menu_setAttribute(m_input,null,'title','search');
menu_setAttribute(m_input,null,'onclick','form.submit(); return false');
m_input=menu_appendElement(m_small,d_namespace,'input');
menu_setAttribute(m_input,null,'name','origin');
menu_setAttribute(m_input,null,'type','hidden');
menu_setAttribute(m_input,null,'value',m_this);
m_input=menu_appendElement(m_small,d_namespace,'input');
menu_setAttribute(m_input,null,'name','base');
menu_setAttribute(m_input,null,'type','hidden');
menu_setAttribute(m_input,null,'value','http://www.potoc.dandasparks.org.uk/gif/');
return m_small;}
function m_appendSubitem(m_parent,m_href,m_feed,m_continuation){
if(m_continuation){
menu_appendText(m_parent,' ');
var m_s=menu_appendElement(m_parent,d_namespace,'span');
menu_setAttribute(m_s,null,'class','nospeak');
menu_appendText(m_s,'\u2022');
menu_appendText(m_parent,' ');}
var m_a=m_appendLink(m_parent,m_href,m_feed,'rss-bullet-2.gif','border:none;width:13px;height:13px');
return m_a;}
function m_appendLink(m_parent,m_href,m_feed,m_bullet_href,m_bullet_style){
var m_a;
if(m_feed){
m_a=menu_appendElement(m_parent,d_namespace,'a');
menu_setAttribute(m_a,null,'href',m_feed);
if(document.getElementById&&document.getElementById('rss-bullet')){
menu_setAttribute(m_a,null,'class','svgbullet');
var m_i=menu_appendElement(m_a,'http://www.w3.org/2000/svg','svg');
menu_setAttribute(m_i,null,'viewBox','0 0 1 1');
var m_u=menu_appendElement(m_i,'http://www.w3.org/2000/svg','use');
menu_setAttribute(m_u,'http://www.w3.org/1999/xlink','href','#rss-bullet');}
else if(m_bullet_href){
var m_i=menu_appendElement(m_a,d_namespace,'img');
menu_setAttribute(m_i,null,'src',m_bullet_href);
menu_setAttribute(m_i,null,'style',m_bullet_style);
menu_setAttribute(m_i,null,'alt','');}
else{
menu_setAttribute(m_a,null,'class','rsslink');
menu_appendText(m_a,'Feed');}
menu_appendText(m_parent,' ');}
m_a=menu_appendElement(m_parent,d_namespace,'a');
if(m_href==m_this)
menu_setAttribute(m_a,null,'href','#');
else if(m_href.charAt(m_this.length)=='#'
&&m_href.substring(0,m_this.length)==m_this)
menu_setAttribute(m_a,null,'href',m_href.substring(m_this.length));
else
menu_setAttribute(m_a,null,'href',m_href);
return m_a;}
var m_dd;
var m_item,m_itemc,m_itemcc,m_itemccc;
m_item=m_appendItem(m_menu_dl,'http://potoc.dandasparks.org.uk/gif/search.jxsl?base=http%3A%2F%2Fwww.potoc.dandasparks.org.uk%2Fgif%2F&origin=.%2F',null);
menu_appendText(m_item,'Site Search');
m_search=m_appendSearch(m_menu_dl,'http://potoc.dandasparks.org.uk/gif/search.jxsl');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://potoc.dandasparks.org.uk/gif/quicksearch.jxsl?query=POTOC&base=http%3A%2F%2Fwww.potoc.dandasparks.org.uk%2Fgif%2F&origin=.%2F',null,false);
menu_appendText(m_item,'About POTOC');
m_item=m_appendSubitem(m_dd,'http://potoc.dandasparks.org.uk/gif/quicksearch.jxsl?query=areas&base=http%3A%2F%2Fwww.potoc.dandasparks.org.uk%2Fgif%2F&origin=.%2F',null,true);
menu_appendText(m_item,'Areas');
m_item=m_appendSubitem(m_dd,'http://potoc.dandasparks.org.uk/gif/quicksearch.jxsl?query=juniors&base=http%3A%2F%2Fwww.potoc.dandasparks.org.uk%2Fgif%2F&origin=.%2F',null,true);
menu_appendText(m_item,'Juniors');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://potoc.dandasparks.org.uk/gif/quickresults.jxsl?base=http%3A%2F%2Fwww.potoc.dandasparks.org.uk%2Fgif%2F&origin=.%2F','http://potoc.dandasparks.org.uk/gif/quickresults.atom.jxsl?base=http%3A%2F%2Fwww.potoc.dandasparks.org.uk%2Fgif%2F&origin=.%2F',false);
menu_appendText(m_item,'Recent Results');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://potoc.dandasparks.org.uk/gif/recent.jxsl?base=http%3A%2F%2Fwww.potoc.dandasparks.org.uk%2Fgif%2F&origin=.%2F','http://potoc.dandasparks.org.uk/gif/recent.atom.jxsl?base=http%3A%2F%2Fwww.potoc.dandasparks.org.uk%2Fgif%2F&origin=.%2F',false);
menu_appendText(m_item,'Recently Changed Pages');
m_item=m_appendItem(m_menu_dl,'../',null);
menu_appendText(m_item,'POTOC\xA0home\xA0page');
m_item=m_appendItem(m_menu_dl,'2012-01-01.results.htm',null);
menu_appendText(m_item,'Laurie Bradley New Years Day Score Event results');
m_item=m_appendItem(m_menu_dl,'events.html','events.atom');
menu_appendText(m_item,'POTOC\xA0fixtures\xA0list');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'events.html#LocalEvents',null,false);
menu_appendText(m_item,'POTOC informal\xA0events');
m_item=m_appendSubitem(m_dd,'events.html#NextLocalEvent',null,true);
menu_appendText(m_item,'next\xA0informal event');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'events.html#Results',null,false);
menu_appendText(m_item,'POTOC event results');
m_item=m_appendItem(m_menu_dl,'http://www.britishorienteering.org.uk/page/event',null);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','British\xA0Orienteering');
menu_appendText(m_itemc,'BO');
menu_appendText(m_item,'\xA0fixtures\xA0list');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://www.wmoa.org.uk/fixtures.html',null,false);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','West\xA0Midlands Orienteering Association');
menu_appendText(m_itemc,'WMOA');
menu_appendText(m_item,' fixtures list');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://www.walton-chasers.co.uk/',null,false);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Walton\xA0Chasers Orienteering Club');
menu_appendText(m_itemc,'WCH');
m_item=m_appendSubitem(m_dd,'http://www.wrekinorienteers.co.uk/fixtures.html',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Wrekin Orienteers');
menu_appendText(m_itemc,'WRE');
m_item=m_appendSubitem(m_dd,'http://www.deeside-orienteering-club.org.uk/events/club+events.htm',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Deeside Orienteering Club');
menu_appendText(m_itemc,'DEE');
m_item=m_appendSubitem(m_dd,'http://www.mdoc.org.uk/mdoc_fixtures.htm',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Manchester\xA0and\xA0District Orienteering Club');
menu_appendText(m_itemc,'MDOC');
m_item=m_appendSubitem(m_dd,'http://derwentvalleyorienteers.org.uk/events/',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Derwent\xA0Valley Orienteers');
menu_appendText(m_itemc,'DVO');
m_item=m_appendItem(m_menu_dl,'location.html#Who',null);
menu_appendText(m_item,'Who\xA0are\xA0we?');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'contacts.html#Contact',null,false);
menu_appendText(m_item,'Contacting POTOC');
m_item=m_appendItem(m_menu_dl,'location.html#Where',null);
menu_appendText(m_item,'Where\xA0are\xA0we?');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'location.html#Maps',null,false);
menu_appendText(m_item,'\u2026 on maps of Britain and North Staffordshire');
m_item=m_appendItem(m_menu_dl,'location.html#What',null);
menu_appendText(m_item,'What\xA0do\xA0we\xA0do?');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'documents.html',null,false);
menu_appendText(m_item,'Downloadable Documents');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'gfx-index.html',null,false);
menu_appendText(m_item,'Photograph Index');
m_item=m_appendItem(m_menu_dl,'mappedareas.html#Areas',null);
menu_appendText(m_item,'Where\xA0do\xA0we\xA0orienteer?');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'mappedareas.html#PermCourses',null,false);
menu_appendText(m_item,'\u2026 including permanent courses');
m_item=m_appendItem(m_menu_dl,'http://www.britishorienteering.org.uk/page/newcomers_guide',null);
menu_appendText(m_item,'What\xA0is\xA0orienteering?');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://www.bbc.co.uk/stoke/content/articles/2004/09/16/sport_orienteering_feature.shtml',null,false);
menu_appendText(m_item,'An\xA0Introduction to Orienteering');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'events.html#LocalEvents',null,false);
menu_appendText(m_item,'How can I try it?');
m_item=m_appendItem(m_menu_dl,'http://www.britishorienteering.org.uk/',null);
menu_appendText(m_item,'British\xA0Orienteering');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://www.bsoa.org/',null,false);
menu_appendText(m_item,'British\xA0Schools Orienteering Association');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://www.wmoa.org.uk/',null,false);
menu_appendText(m_item,'West\xA0Midlands Orienteering Association');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'http://www.coboc.org.uk/',null,false);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','City\xA0of\xA0Birmingham Orienteering Club');
menu_appendText(m_itemc,'COBOC');
m_item=m_appendSubitem(m_dd,'http://www.harlequins.org.uk/',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Harlequins Orienteering Club');
menu_appendText(m_itemc,'HOC');
m_item=m_appendSubitem(m_dd,'http://www.octavian-droobers.org/',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Octavian\xA0Droobers Orienteering Club');
menu_appendText(m_itemc,'OD');
m_item=m_appendSubitem(m_dd,'./',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Potteries Orienteering Club');
menu_appendText(m_itemc,'POTOC');
m_item=m_appendSubitem(m_dd,'http://www.walton-chasers.co.uk/',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Walton\xA0Chasers Orienteering Club');
menu_appendText(m_itemc,'WCH');
m_item=m_appendSubitem(m_dd,'http://www.wrekinorienteers.co.uk/',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Wrekin Orienteers');
menu_appendText(m_itemc,'WRE');
m_item=m_appendSubitem(m_dd,'http://www.sport.bham.ac.uk/clubs/orienteering.shtml',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','Birmingham\xA0University Orienteering Club');
menu_appendText(m_itemc,'BUOC');
m_item=m_appendSubitem(m_dd,'http://www.uwoc.co.uk/home/',null,true);
m_itemc=menu_appendElement(m_item,null,'abbr');
menu_setAttribute(m_itemc,null,'title','University\xA0of\xA0Warwick Orienteering Club');
menu_appendText(m_itemc,'UWOC');
m_item=m_appendItem(m_menu_dl,'dataprotection.html',null);
menu_appendText(m_item,'POTOC\xA0and Data\xA0Protection');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'privacypolicy.html',null,false);
menu_appendText(m_item,'Web Privacy Policy');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'contacts.html#C-DP',null,false);
menu_appendText(m_item,'Data Protection Officer');
m_dd=menu_appendElement(m_menu_dl,d_namespace,'dd');
m_item=m_appendSubitem(m_dd,'contacts.html#C-WS',null,false);
menu_appendText(m_item,'Webmaster');
menu_show_props=m_show.style;
menu_hide_props=m_hide.style;
menu_icon_props=m_icon.style;
menu_props=m_menu.style;
menu_ready=true;
var d_a_list=menu_getElementsByTagName(d_namespace,'a');
for(inx=0;inx<d_a_list.length;inx+=1){
var d_a=d_a_list[inx];
if(menu_getAttribute(d_a,null,'rel')=='contents'){
menu_setAttribute(d_a,null,'onclick','return menu_show();')}}}
if(window.addEventListener)
window.addEventListener('load',menu_init,true)
else
window.attachEvent('onload',menu_init);}
// |# End: menu.js.xsl
// |# $Id: stripjs.c 1.9 2011/10/01 16:17:27 daves Exp $

