var swfobject=function(){function a(){if(!r){try{var b=h.getElementsByTagName("body")[0].appendChild(h.createElement("span"));b.parentNode.removeChild(b)}catch(d){return}r=!0;for(var b=y.length,i=0;i<b;i++)y[i]()}}function c(b){r?b():y[y.length]=b}function e(b){if(typeof m.addEventListener!=k)m.addEventListener("load",b,!1);else if(typeof h.addEventListener!=k)h.addEventListener("load",b,!1);else if(typeof m.attachEvent!=k)S(m,"onload",b);else if("function"==typeof m.onload){var d=m.onload;m.onload=
function(){d();b()}}else m.onload=b}function j(){var b=h.getElementsByTagName("body")[0],d=h.createElement(t);d.setAttribute("type",z);var i=b.appendChild(d);if(i){var s=0;(function(){if(typeof i.GetVariable!=k){var g=i.GetVariable("$version");g&&(g=g.split(" ")[1].split(","),f.pv=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)])}else if(10>s){s++;setTimeout(arguments.callee,10);return}b.removeChild(d);i=null;v()})()}else v()}function v(){var b=p.length;if(0<b)for(var d=0;d<b;d++){var i=p[d].id,
s=p[d].callbackFn,g={success:!1,id:i};if(0<f.pv[0]){var a=n(i);if(a)if(A(p[d].swfVersion)&&!(f.wk&&312>f.wk))u(i,!0),s&&(g.success=!0,g.ref=E(i),s(g));else if(p[d].expressInstall&&F()){g={};g.data=p[d].expressInstall;g.width=a.getAttribute("width")||"0";g.height=a.getAttribute("height")||"0";a.getAttribute("class")&&(g.styleclass=a.getAttribute("class"));a.getAttribute("align")&&(g.align=a.getAttribute("align"));for(var h={},a=a.getElementsByTagName("param"),c=a.length,e=0;e<c;e++)"movie"!=a[e].getAttribute("name").toLowerCase()&&
(h[a[e].getAttribute("name")]=a[e].getAttribute("value"));G(g,h,i,s)}else T(a),s&&s(g)}else if(u(i,!0),s){if((i=E(i))&&typeof i.SetVariable!=k)g.success=!0,g.ref=i;s(g)}}}function E(b){var d=null;if((b=n(b))&&"OBJECT"==b.nodeName)typeof b.SetVariable!=k?d=b:(b=b.getElementsByTagName(t)[0])&&(d=b);return d}function F(){return!B&&A("6.0.65")&&(f.win||f.mac)&&!(f.wk&&312>f.wk)}function G(b,d,i,a){B=!0;H=a||null;L={success:!1,id:i};var g=n(i);if(g){"OBJECT"==g.nodeName?(x=I(g),C=null):(x=g,C=i);b.id=
M;if(typeof b.width==k||!/%$/.test(b.width)&&310>parseInt(b.width,10))b.width="310";if(typeof b.height==k||!/%$/.test(b.height)&&137>parseInt(b.height,10))b.height="137";h.title=h.title.slice(0,47)+" - Flash Player Installation";a=f.ie&&f.win?"ActiveX":"PlugIn";a="MMredirectURL="+m.location.toString().replace(/&/g,"%26")+"&MMplayerType="+a+"&MMdoctitle="+h.title;d.flashvars=typeof d.flashvars!=k?d.flashvars+("&"+a):a;f.ie&&f.win&&4!=g.readyState&&(a=h.createElement("div"),i+="SWFObjectNew",a.setAttribute("id",
i),g.parentNode.insertBefore(a,g),g.style.display="none",function(){4==g.readyState?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}());J(b,d,i)}}function T(b){if(f.ie&&f.win&&4!=b.readyState){var d=h.createElement("div");b.parentNode.insertBefore(d,b);d.parentNode.replaceChild(I(b),d);b.style.display="none";(function(){4==b.readyState?b.parentNode.removeChild(b):setTimeout(arguments.callee,10)})()}else b.parentNode.replaceChild(I(b),b)}function I(b){var d=h.createElement("div");if(f.win&&
f.ie)d.innerHTML=b.innerHTML;else if(b=b.getElementsByTagName(t)[0])if(b=b.childNodes)for(var i=b.length,a=0;a<i;a++)!(1==b[a].nodeType&&"PARAM"==b[a].nodeName)&&8!=b[a].nodeType&&d.appendChild(b[a].cloneNode(!0));return d}function J(b,d,i){var a,g=n(i);if(f.wk&&312>f.wk)return a;if(g)if(typeof b.id==k&&(b.id=i),f.ie&&f.win){var c="",l;for(l in b)b[l]!=Object.prototype[l]&&("data"==l.toLowerCase()?d.movie=b[l]:"styleclass"==l.toLowerCase()?c+=' class="'+b[l]+'"':"classid"!=l.toLowerCase()&&(c+=" "+
l+'="'+b[l]+'"'));l="";for(var e in d)d[e]!=Object.prototype[e]&&(l+='<param name="'+e+'" value="'+d[e]+'" />');g.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+c+">"+l+"</object>";D[D.length]=b.id;a=n(b.id)}else{e=h.createElement(t);e.setAttribute("type",z);for(var j in b)b[j]!=Object.prototype[j]&&("styleclass"==j.toLowerCase()?e.setAttribute("class",b[j]):"classid"!=j.toLowerCase()&&e.setAttribute(j,b[j]));for(c in d)d[c]!=Object.prototype[c]&&"movie"!=c.toLowerCase()&&
(b=e,l=c,j=d[c],i=h.createElement("param"),i.setAttribute("name",l),i.setAttribute("value",j),b.appendChild(i));g.parentNode.replaceChild(e,g);a=e}return a}function N(b){var d=n(b);d&&"OBJECT"==d.nodeName&&(f.ie&&f.win?(d.style.display="none",function(){if(4==d.readyState){var a=n(b);if(a){for(var c in a)"function"==typeof a[c]&&(a[c]=null);a.parentNode.removeChild(a)}}else setTimeout(arguments.callee,10)}()):d.parentNode.removeChild(d))}function n(b){var d=null;try{d=h.getElementById(b)}catch(a){}return d}
function S(b,d,a){b.attachEvent(d,a);w[w.length]=[b,d,a]}function A(b){var d=f.pv,b=b.split(".");b[0]=parseInt(b[0],10);b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return d[0]>b[0]||d[0]==b[0]&&d[1]>b[1]||d[0]==b[0]&&d[1]==b[1]&&d[2]>=b[2]?!0:!1}function O(b,d,a,c){if(!f.ie||!f.mac){var g=h.getElementsByTagName("head")[0];if(g){a=a&&"string"==typeof a?a:"screen";c&&(K=o=null);if(!o||K!=a)c=h.createElement("style"),c.setAttribute("type","text/css"),c.setAttribute("media",a),o=g.appendChild(c),
f.ie&&f.win&&typeof h.styleSheets!=k&&0<h.styleSheets.length&&(o=h.styleSheets[h.styleSheets.length-1]),K=a;f.ie&&f.win?o&&typeof o.addRule==t&&o.addRule(b,d):o&&typeof h.createTextNode!=k&&o.appendChild(h.createTextNode(b+" {"+d+"}"))}}}function u(b,d){if(P){var a=d?"visible":"hidden";r&&n(b)?n(b).style.visibility=a:O("#"+b,"visibility:"+a)}}function Q(b){return null!=/[\\\"<>\.;]/.exec(b)&&typeof encodeURIComponent!=k?encodeURIComponent(b):b}var k="undefined",t="object",z="application/x-shockwave-flash",
M="SWFObjectExprInst",m=window,h=document,q=navigator,R=!1,y=[function(){R?j():v()}],p=[],D=[],w=[],x,C,H,L,r=!1,B=!1,o,K,P=!0,f=function(){var b=typeof h.getElementById!=k&&typeof h.getElementsByTagName!=k&&typeof h.createElement!=k,d=q.userAgent.toLowerCase(),a=q.platform.toLowerCase(),c=a?/win/.test(a):/win/.test(d),a=a?/mac/.test(a):/mac/.test(d),d=/webkit/.test(d)?parseFloat(d.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!+"\v1",f=[0,0,0],e=null;if(typeof q.plugins!=k&&typeof q.plugins["Shockwave Flash"]==
t){if((e=q.plugins["Shockwave Flash"].description)&&!(typeof q.mimeTypes!=k&&q.mimeTypes[z]&&!q.mimeTypes[z].enabledPlugin))R=!0,g=!1,e=e.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=parseInt(e.replace(/^(.*)\..*$/,"$1"),10),f[1]=parseInt(e.replace(/^.*\.(.*)\s.*$/,"$1"),10),f[2]=/[a-zA-Z]/.test(e)?parseInt(e.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}else if(typeof m.ActiveXObject!=k)try{var j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(j&&(e=j.GetVariable("$version")))g=!0,e=e.split(" ")[1].split(","),
f=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}catch(n){}return{w3:b,pv:f,wk:d,ie:g,win:c,mac:a}}();(function(){f.w3&&((typeof h.readyState!=k&&"complete"==h.readyState||typeof h.readyState==k&&(h.getElementsByTagName("body")[0]||h.body))&&a(),r||(typeof h.addEventListener!=k&&h.addEventListener("DOMContentLoaded",a,!1),f.ie&&f.win&&(h.attachEvent("onreadystatechange",function(){"complete"==h.readyState&&(h.detachEvent("onreadystatechange",arguments.callee),a())}),m==top&&function(){if(!r){try{h.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,
0);return}a()}}()),f.wk&&function(){r||(/loaded|complete/.test(h.readyState)?a():setTimeout(arguments.callee,0))}(),e(a)))})();(function(){f.ie&&f.win&&window.attachEvent("onunload",function(){for(var b=w.length,a=0;a<b;a++)w[a][0].detachEvent(w[a][1],w[a][2]);b=D.length;for(a=0;a<b;a++)N(D[a]);for(var c in f)f[c]=null;f=null;for(var e in swfobject)swfobject[e]=null;swfobject=null})})();return{registerObject:function(b,a,c,e){if(f.w3&&b&&a){var g={};g.id=b;g.swfVersion=a;g.expressInstall=c;g.callbackFn=
e;p[p.length]=g;u(b,!1)}else e&&e({success:!1,id:b})},getObjectById:function(b){if(f.w3)return E(b)},embedSWF:function(b,a,e,h,g,j,l,m,n,o){var p={success:!1,id:a};f.w3&&!(f.wk&&312>f.wk)&&b&&a&&e&&h&&g?(u(a,!1),c(function(){e+="";h+="";var c={};if(n&&typeof n===t)for(var f in n)c[f]=n[f];c.data=b;c.width=e;c.height=h;f={};if(m&&typeof m===t)for(var q in m)f[q]=m[q];if(l&&typeof l===t)for(var r in l)f.flashvars=typeof f.flashvars!=k?f.flashvars+("&"+r+"="+l[r]):r+"="+l[r];if(A(g))q=J(c,f,a),c.id==
a&&u(a,!0),p.success=!0,p.ref=q;else{if(j&&F()){c.data=j;G(c,f,a,o);return}u(a,!0)}o&&o(p)})):o&&o(p)},switchOffAutoHideShow:function(){P=!1},ua:f,getFlashPlayerVersion:function(){return{major:f.pv[0],minor:f.pv[1],release:f.pv[2]}},hasFlashPlayerVersion:A,createSWF:function(b,a,c){if(f.w3)return J(b,a,c)},showExpressInstall:function(b,a,c,e){f.w3&&F()&&G(b,a,c,e)},removeSWF:function(b){f.w3&&N(b)},createCSS:function(b,a,c,e){f.w3&&O(b,a,c,e)},addDomLoadEvent:c,addLoadEvent:e,getQueryParamValue:function(a){var d=
h.location.search||h.location.hash;if(d){/\?/.test(d)&&(d=d.split("?")[1]);if(null==a)return Q(d);for(var d=d.split("&"),c=0;c<d.length;c++)if(d[c].substring(0,d[c].indexOf("="))==a)return Q(d[c].substring(d[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(B){var a=n(M);a&&x&&(a.parentNode.replaceChild(x,a),C&&(u(C,!0),f.ie&&f.win&&(x.style.display="block")),H&&H(L));B=!1}}}}();sfHover=function(){for(var a=document.getElementById("topnav").getElementsByTagName("LI"),c=0;c<a.length;c++)a[c].onmouseover=function(){this.className+=" sfhover"},a[c].onmouseout=function(){this.className=this.className.replace(/ sfhover\b/,"")}};window.attachEvent&&window.attachEvent("onload",sfHover);openPdfWin=function(a){window.open(a,"PDF","toolbar=1,resizable=1");return!1};openSiteWin=function(a){window.open(a,"www","status=1,toolbar=1,resizable=1,scrollbars=1");return!1};
function mapload(){var a=new google.maps.LatLng(52.4771,-1.9278),c={zoom:14,center:a,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:!1},c=new google.maps.Map(document.getElementById("map_canvas"),c);(new google.maps.InfoWindow({content:"<strong>BHSF</strong><br />We are here!<br />Opening hours: 8:45am to 4.45pm, Mon - Fri",position:a})).open(c)}toggleDiv=function(a){a=document.getElementById(a);a.style.display="none"!=a.style.display?"none":""};
isIE=function(){return/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)};selectTopMedia=function(a){for(var c=1;4>c;c++){var e="mc_toptxt"+c,j="mc_toplnk"+c,v=document.getElementById("mc_topimg"+c),e=document.getElementById(e),j=document.getElementById(j);c==a?(v.style.display="block",e.style.display="block",j.style.display="block"):(v.style.display="none",e.style.display="none",j.style.display="none")}};
setBigContent=function(){document.getElementById("rightcolumn").style.display="none";document.getElementById("contentcolumn").style.marginRight="10px";document.getElementById("middle").style.width="790px";document.getElementById("midcont").style.width="786px"};
setFullContent=function(){document.getElementById("rightcolumn").style.display="none";document.getElementById("leftcolumn").style.display="none";document.getElementById("contentcolumn").style.marginRight="10px";document.getElementById("contentcolumn").style.marginLeft="10px";document.getElementById("middle").style.width="970px";document.getElementById("midcont").style.width="966px"};
setActiveStyleSheet=function(a){var c,e;for(c=0;e=document.getElementsByTagName("link")[c];c++)-1!=e.getAttribute("rel").indexOf("style")&&e.getAttribute("title")&&(e.disabled=!0,e.getAttribute("title")==a&&(e.disabled=!1))};function getActiveStyleSheet(){var a,c;for(a=0;c=document.getElementsByTagName("link")[a];a++)if(-1!=c.getAttribute("rel").indexOf("style")&&c.getAttribute("title")&&!c.disabled)return c.getAttribute("title");return null}
function getPreferredStyleSheet(){var a,c;for(a=0;c=document.getElementsByTagName("link")[a];a++)if(-1!=c.getAttribute("rel").indexOf("style")&&-1==c.getAttribute("rel").indexOf("alt")&&c.getAttribute("title"))return c.getAttribute("title");return null}function createCookie(a,c,e){if(e){var j=new Date;j.setTime(j.getTime()+864E5*e);e="; expires="+j.toGMTString()}else e="";document.cookie=a+"="+c+e+"; path=/"}
function readCookie(a){for(var a=a+"=",c=document.cookie.split(";"),e=0;e<c.length;e++){for(var j=c[e];" "==j.charAt(0);)j=j.substring(1,j.length);if(0==j.indexOf(a))return j.substring(a.length,j.length)}return null}window.onload=function(){var a=readCookie("style"),a=a?a:getPreferredStyleSheet();"Light"==a&&(a="Default");setActiveStyleSheet(a)};window.onunload=function(){var a=getActiveStyleSheet();createCookie("style",a,365)};var cookie=readCookie("style"),title=cookie?cookie:getPreferredStyleSheet();
setActiveStyleSheet(title);
