g6.js=t;getS();w.defaultStatus="(C) GAP66 Ltd "+(((q=new Date().getYear())<2000)?q+1900:q)+"     T: 0845 2267824     E: info@gap66.com";w.onresize=re;function re(){if(!g6.full)Cols(D.body.clientWidth<min);setTimeout("nu=f;",5);btt()}w.onhelp = function(){if(confirm("Click OK for browser help, or Cancel for website help."))return t;else D.location.href="Help.htm";return f};if(op)w.onunload=un;w.onbeforeunload=un;function un(){if(g6.h)return;var i,j,k,a=b=c=f;if((i=getNew("selcss"))!=g6.css)a=t;if((j=getNew("seltxt"))!=g6.txt)b=t;if((k=getNew("selprn"))!=g6.prn)c=t;if((a||b||c)&&confirm("You have changed your preferences - click OK to save them or Cancel to use the previous settings.")){if(a)setC("css",i);if(b)setC("txt",j);if(c)setC("prn",k)}if(!g6.full&&!g6.lod)lo()}function ld(){if(op&&!g6.t)setT(g6.txt);if(g6.lod){w.clearTimeout(g6.tmr);Set("Ph",g6.lod);g6.lod=f}re();var i=l(d=D.links);while(i){var t=(o=d[--i]).title,a=o.accessKey,h=o.href;if(t&&a)o.title+=" [Alt + "+a.toUpperCase()+"]";if(ie)o.onmouseover=ov}}function ov(){var q=event.srcElement.title;w.status=(q)?q:w.defaultStatus;return t}function lo(){g6.lod=Get("Ph").innerHTML;var s=new sb('<span id="lod">One moment please...</span>'),i=1;while(i<5)s.a('<span id="p'+i+++'" class="ani">&nbsp;</span>');s.a("<span style='padding-left:30px'>&nbsp;</span>"+g6.lod);Set("Ph", s.s());ani(1)}function ani(i){if(!Get("p1"))return;var j=1,k=(i==5)?1:i;while(j<5)Get("p"+j++).style.background="#fff";Get("p"+k++).style.background="#c00";g6.tmr=setTimeout("ani("+k+")",600)}function btt(){var t=(op)?Get("bd").clientHeight>=Get("ht").scrollHeight:Get("P").scrollHeight<Get("ht").clientHeight,o=(e=Get("axF"))?e.style:f;if(o){if(op)o.display=(t)?"none":"block";else o.visibility=(t)?"hidden":"visible"}}function scr(y){var t=(y)?(parseInt(y))?y:ot(Get(y)):0;scrollTo(0,t)}function sc(i){scr(i);fl(i,1)}function fl(i,x){Get(i).style.background=(x%2==0)?"#fff":"#c00";(x==4)?w.clearTimeout(g6.tmr):g6.tmr=w.setTimeout("fl('"+i+"',"+ ++x+")",400)}function ot(o){var q,i=o.offsetTop;while(q=o.offsetParent){i+=q.offsetTop;o=q}return i}function val(i){var e,f,g,l=Get(i).elements;switch(i){case "fContact":if(((e=l['Name'].value)!=''&&e!='Your name.')&&((f=l['Contact'].value)!=''&&f!='Your contact details.')&&((g=l['Message'].value)!=''&&e!='Your Message.'))return true;else {alert('Please complete all three fields before submitting the form - thanks ;)');return f}break;}}function Get(i){var j,g,e=g6.ls[i];if(e)return e;e=(I&&(a=D.getElementById(i)))?a:(D.all&&(a=D.all[i]))?a:f;if(e)return g6.ls[i]=e;else if(j=l(g=D.forms)>0){while(!e&&--j)e=g[j][i]}return e}function Set(o,s){Get(o).innerHTML=s}function R(s){D.writeln(s)}function l(o){return ((o)?o.length:-1)}function Cols(b){if(ie&&nu||g6.c1==b||g6.h)return;nu=t;var L=(y=Get("l"))?y.style:f,R=(z=Get("r"))?z.style:f,s=g6.css;if(!y||!z)return;if(b){L.width="98%";L.styleFloat="none";R.marginLeft="0";L.backgroundImage='none'}else{L.width="49%";L.styleFloat="left";R.marginLeft="51%";if(s.substring(0,1)!=2)L.backgroundImage='url(/i/V.gif)'}g6.c1=b}function sh(){var e,s,c=l(v=sh.arguments);while(c){if(e=Get(v[--c]))(s=e.style).display=(s.display=="none")?"block":"none"}}function getNew(d){var e=Get(d);if(e)return e.options[e.selectedIndex].value;else return f}function Full(){g6.full=!g6.full;var d=D.body.style,p=Get("P").style;sh('Ph','dH','dM','lX','dR','G6');if(g6.full){d.backgroundImage="none";p.margin="20px"}else{d.backgroundImage="url(/i/B.gif)";p.margin="20px 135px"}btt();scr()}function setT(i){var o,k=l(g=(op)?g6.lnx:g6.ss),a=["x-small","smaller","medium","large"],q=(i)?i:(Get("seltxt"))?parseInt(getNew("seltxt")):g6.txt,s=(ie&&V&&V<6)?a[q+1]:a[q];while(k){try{o=g[--k];if(ie)o.rules[0].style.fontSize=s;else if(mo)o.cssRules[0].style.fontSize=s;else if(op)Get("bd").style.fontSize=s}catch(e){g6.tmr=setTimeout("setT("+i+")",500);return}}g6.t=t;reset()
}function setS(i){var p,x,j=l(d=g6.lnx),q=(i)?i:(e=getNew("selcss"))?e:g6.css;while(j)(x=d[--j]).disabled=(x.title!=q);reset();if(ie)setIE(q);
}function setP(i){var q=(i)?i:(e=Get("selprn"))?getNew("selprn"):g6.prn;Get("cssP1").disabled=(q!=1);Get("cssP").disabled=(q==0);reset()
}function reset(){var p=Get("selPrefs");if(p)p.selectedIndex=0;}function getS(){if(!T)return;var e,m,f,g,i=l(s=D.getElementsByTagName("LINK")),c=l(d=D.styleSheets);while(i){if((m=(e=s[--i]).media)&&m=="all"&&e.title)g6.lnx[g6.lnx.length]=e}while(c){if((g=d[--c])&&g.title)g6.ss[g6.ss.length]=g}}function saveS(){var c,t,p,i=(e=Get("selPrefs")).selectedIndex,o=e.options,v=((q=parseInt(o[i].value))==1)?"":q,g=o[i].text.toLowerCase(),s="Save preferences for "+g+" only?",ci=w.clientInformation;if(v==-1)return;if(ci&&!ci.cookieEnabled)return alert("Sorry, but you do not appear to have persistent cookies enabled - \nplease see the help page for details.");if(confirm(s)){if(setC("css",c=getNew("selcss"),v)&&setC("txt",t=getNew("seltxt"),v)&&setC("prn",p=getNew("selprn"),v)){alert("Preferences saved for "+g);g6.css=c;g6.txt=t;g6.prn=p}else alert("You must have cookies enabled to save your preferences.")}else e.selectedIndex=0}function setC(n,v,t){D.cookie=n+"="+((v)?escape(v):"")+"; path=/; expires="+((v&&t)?new Date(new Date().getTime()+(t*86400000)).toGMTString():(v&&!t)?"":new Date("1/1/71").toGMTString());return (getC(n)==v)}function getC(n){var s=n+"=",i=l(a=D.cookie.split('; ')),c;while(i)if((c=a[--i]).indexOf(s)==0)return unescape(c.substring(l(s)));return f}function Gt(c){var w=D.body.clientWidth;Full();(c=="l")?(Get("r").style.display!="none")?Cols(t):Cols(w<min):(Get("l").style.display!="none")?Cols(t):Cols(w<min);sh((c=="l")?"r":"l");Get("a"+c).blur()}function rs(){var s=new sb('<ul class="um"><li><a class="aM" id="Ma" tabindex="100" href="Recommend.htm" title="Recommend this website">Recommend</a></li>');if(print)s.a("<li><a dir='ltr' class='aM' id='Pr' tabindex='101' href='#' onclick='print();return f' title='Print the current page'>Print Page</a></li>");if(mo)s.a("<li><a dir='ltr' class='aM' id='Si' accesskey='f' tabindex='102' href='#' onclick='AddS();return f' title='Add the GAP66 Sidebar Panel'>Sidebar</a></li>");if(ie&&g6.ie){s.a("<li><a dir='ltr' class='aM' id='Fa' tabindex='102' accesskey='f' href='javascript:ie.addFavorite(location.href, D.title)' title='Bookmark this page'>Favourites</a></li>");s.a("<li><a dir='ltr' class='aM' id='Ed' tabindex='103' href='javascript:Edit(t)' title='Edit the current page.'>Edit Page</a></li>");if(!g6.raw&&V>=6)s.a("<li><a dir='ltr' class='aM' id='Xm' tabindex='104' accesskey='x' href='javascript:MSXML()' title='Upgrade XML'>Upgrade XML</a></li>");}R(s.a('</ul>').s());if(ie&&location.search.indexOf("edit")<0)I("Ed").href="/_CMS/";}function AddS(){w.sidebar.addPanel("GAP66 Sidebar","/P/Sidebar.htm",'')}function DoT(s){R('<p dir="'+((s=="l")?"ltr":"rtl")+'" class="pT" id="pT'+s+'"><a class="aT" id="a'+s+'" href="#" onclick="Gt(\''+s+'\');return f" title="Show this section full screen." tabindex="'+g6.tab+++'">&nbsp;</a></p>')}function DoO(){var i=l(d=g6.lnx),s=new sb('<fieldset class="fs"><legend>Colour &amp; Layout</legend><select class="se" tabindex="158" name="selcss" id="selcss" onchange="setS()"><optgroup label="3D Graphic">');while(i){var t=d[--i].title;s.a('<option value="'+t+'"');if(t==g6.css)s.a(' selected');s.a('>'+t+'</option>');}s.a('</optgroup><optgroup label="Plain"><option value="Accessible"');if(g6.css=="Accessibile")s.a(' selected');s.a('>Accessible</option></optgroup></select></fieldset><fieldset class="fs"><legend>Text Size</legend><select class="se" tabindex="159" name="seltxt" id="seltxt" onchange="setT()"><option value="0"');if(g6.txt==0)s.a(' selected');s.a('>Small</option><option value="1"');if(g6.txt==1)s.a(' selected');s.a('>Medium</option><option value="2"');if(g6.txt==2)s.a(' selected');s.a('>Large</option></select></fieldset><fieldset class="fs"><legend>Print Options</legend><select class="se" tabindex="160" name="selprn" id="selprn" onchange="setP()"><option value="2"');if(g6.prn==2)s.a(' selected');s.a('>Text 2 Col</option><option value="1"');if(g6.prn==1)s.a(' selected');s.a('>Text 1 Col</option><option value="0"');if(g6.prn==0)s.a(' selected');R(s.a('>As Viewed</option></select></fieldset><fieldset class="fs"><legend>Save Prefs</legend><select class="se" tabindex="161" name="selPrefs" id="selPrefs" onchange="saveS()"><option value="-1">--</option><option value="1">This visit</option><option value="7">1 week</option><option value="30">1 month</option><option value="365">1 year</option></select></fieldset>').s());setS(g6.css);setT(g6.txt);setP(g6.prn)}