function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function P7_setMM2(){document.p7TabOver="_over";document.p7TabDown="_down";var c=false;if(document.getElementsByTagName){c=true}if(document.P7TabBar){return}var f,d=-1,h,p,o,r,n,a,q,l,e,j,b,m=P7_setMM2.arguments;P7TabProp=new Array();for(f=0;f<m.length;f++){P7TabProp[f]=m[f]}P7TabIM=new Array();P7TabSB=new Array();if(c){q=document.getElementsByTagName("IMG")}else{q=document.images}q=document.images;l=new Array();l=l.concat(q);if(document.layers){for(f=0;f<document.layers.length;f++){a=document.layers[f].document.images;if(a){l=l.concat(a)}for(p=0;p<document.layers[f].document.layers.length;p++){a=document.layers[f].document.layers[p].document.images;if(a){l=l.concat(a)}}}q=l}for(f=0;f<q.length;f++){r=q[f].name;if(c&&!r){r=q[f].id}if(r.indexOf("p7TBim")==0){n=r.replace("p7TBim","");e="p7TBsub"+n;d++;P7TabIM[d]=r;if((h=MM_findObj(e))!=null){P7TabSB[d]=e;o=(document.layers)?h:h.style;o.visibility="hidden"}else{P7TabSB[d]="N"}}}document.P7_TBswapd=new Array();document.P7_TBswapo=new Array();for(f=0;f<P7TabIM.length;f++){h=MM_findObj(P7TabIM[f]);o=h.src;h.p7TBim=h.src;j=o.lastIndexOf(".");h.p7TBimo=o.substring(0,j)+document.p7TabOver+o.substring(j,o.length);h.p7TBimd=o.substring(0,j)+document.p7TabDown+o.substring(j,o.length);if(P7TabProp[2]>1){document.P7_TBswapo[f]=new Image();document.P7_TBswapo[f].src=h.p7TBimo}if(P7TabProp[2]>0){if(P7TabProp[2]==3){h.p7TBimd=h.p7TBimo}document.P7_TBswapd[f]=new Image();document.P7_TBswapd[f].src=h.p7TBimd}}if((h=MM_findObj("P7TabH"))!=null){o=(document.layers)?h:h.style;o.visibility="hidden"}if(c&&P7TabProp[3]!="none"&&!window.opera){h=document.getElementsByTagName("A");for(f=0;f<h.length;f++){if(h[f].hasChildNodes()){b=h[f].firstChild;while(b){if(b.nodeType==3){o=b.nodeValue;if(P7TabProp[3]==o.replace("\n","")){h[f].className=P7TabProp[4];break}}b=b.firstChild}}}}document.P7TabBar=true}function P7_trigMM2(b){if(!document.P7TabBar){return}var c,f,j,a=-1,h=false,e=false;for(c=0;c<P7TabSB.length;c++){e=false;if((f=MM_findObj(P7TabSB[c]))!=null){f=MM_findObj(P7TabSB[c]);gg=(document.layers)?f:f.style;e=true}j=MM_findObj(P7TabIM[c]);if(P7TabIM[c]==P7TabProp[0]){a=c}if(P7TabIM[c]==b){h=true;if(e){gg.visibility="visible"}if(P7TabProp[2]>0){if(c==a){j.src=j.p7TBimd}else{if(P7TabProp[2]>1){j.src=j.p7TBimo}}}if((f=MM_findObj("P7TabH"))!=null){gg=(document.layers)?f:f.style;gg.visibility="visible"}}else{if(e){gg.visibility="hidden"}if(P7TabProp[2]>0){j.src=j.p7TBim}}}if(!h){if(a>-1){j=MM_findObj(P7TabIM[a]);if((f=MM_findObj(P7TabSB[a]))!=null&&P7TabProp[1]==0){gg=(document.layers)?f:f.style;gg.visibility="visible"}if(P7TabProp[2]>0){j.src=j.p7TBimd}}if((f=MM_findObj("P7TabH"))!=null){gg=(document.layers)?f:f.style;gg.visibility="hidden"}}}function P7_setMM2Def(){var bb=new Array("overview","p7TBim30","instrumentation","p7TBim40","telemetry_system","p7TBim50","data","p7TBim60","restricted","p7TBim70","disclaimer","p7TBim10","copyright","p7TBim10","privacy","p7TBim10","rapidmoc","p7TBim20");var df="p7TBim20";var i,jj,hr,ha,d,x;if(!document.P7TabBar){return}if(document.getElementById){hr=window.location.href;for(i=0;i<bb.length;i+=2){jj="/"+bb[i]+"/";if(hr.indexOf(jj)>-1){P7TabProp[0]=bb[i+1];df=bb[i+1];break}}eval("P7_trigMM2('"+df+"')");for(i=0;i<P7TabSB.length;i++){d=document.getElementById(P7TabSB[i]);if(d){ha=d.getElementsByTagName("A");if(ha&&ha.length){for(x=(ha.length-1);x>-1;x--){if(ha[x].href){if(hr.indexOf(ha[x].href)>-1){ha[x].className=P7TabProp[4];break}}}}}}}}function dd_StatusBarMsg(a){window.status=a;document.MM_returnValue=true}function dd_StatusBarMsgClear(a){window.status=a;document.MM_returnValue=true}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_nbGroup(e,d){var c,a,f,b=MM_nbGroup.arguments;if(e=="init"&&b.length>2){if((a=MM_findObj(b[2]))!=null&&!a.MM_init){a.MM_init=true;a.MM_up=b[3];a.MM_dn=a.src;if((f=document[d])==null){f=document[d]=new Array()}f[f.length]=a;for(c=4;c<b.length-1;c+=2){if((a=MM_findObj(b[c]))!=null){if(!a.MM_up){a.MM_up=a.src}a.src=a.MM_dn=b[c+1];f[f.length]=a}}}}else{if(e=="over"){document.MM_nbOver=f=new Array();for(c=1;c<b.length-1;c+=3){if((a=MM_findObj(b[c]))!=null){if(!a.MM_up){a.MM_up=a.src}a.src=(a.MM_dn&&b[c+2])?b[c+2]:((b[c+1])?b[c+1]:a.MM_up);f[f.length]=a}}}else{if(e=="out"){for(c=0;c<document.MM_nbOver.length;c++){a=document.MM_nbOver[c];a.src=(a.MM_dn)?a.MM_dn:a.MM_up}}else{if(e=="down"){f=document[d];if(f){for(c=0;c<f.length;c++){a=f[c];a.src=a.MM_up;a.MM_dn=0}}document[d]=f=new Array();for(c=2;c<b.length-1;c+=2){if((a=MM_findObj(b[c]))!=null){if(!a.MM_up){a.MM_up=a.src}a.src=a.MM_dn=(b[c+1])?b[c+1]:a.MM_up;f[f.length]=a}}}}}}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}if(!readCookie(c)){document.cookie=c+"="+d+a+"; path=/"}}function createnewCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"}function createUseridCookie(a,b){document.cookie=a+"="+b+"; expires=Sun, 18 Jan 2038 00:00:00 GMT; path=/; domain=.bodc.ac.uk;"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)}rnd.today=new Date();rnd.seed=rnd.today.getTime();function rnd(){rnd.seed=(rnd.seed*9301+49297)%233280;return rnd.seed/(233280)}function rand(a){return Math.ceil(rnd()*a)}var refer=document.referrer;createnewCookie("referer",refer,0);doc=document.location;createnewCookie("document",doc,0);tid=new Date();timeid=tid.getTime();if(!readCookie("sessionid")){createCookie("sessionid",timeid,0)}if(readCookie("userid")){var myuserid=readCookie("userid");if(myuserid.length<14){eraseCookie("userid")}}if(readCookie("__utmv")){var myutmv=readCookie("__utmv");if(myutmv.length<24){eraseCookie("__utmv")}}if(!readCookie("__utmv")&&readCookie("userid")){var myuserid=readCookie("userid");document.cookie="__utmv=174674225."+myuserid+"; expires=Sun, 18 Jan 2038 00:00:00 GMT; path=/; domain=.bodc.ac.uk;"}var Pushup={Version:"1.0.3",options:{appearDelay:0.5,fadeDelay:6,images:"/images/icons/",message:"Important browser update available",reminder:{hours:24,message:"Remind me again in #{hours}"},skip:true},updateLinks:{IE:"http://www.microsoft.com/windows/downloads/ie/",Firefox:"http://www.getfirefox.com",Safari:"http://www.apple.com/safari/download/",Opera:"http://www.opera.com/download/"},Browser:{IE:!!(window.attachEvent&&navigator.userAgent.indexOf("Opera")===-1),Firefox:navigator.userAgent.indexOf("Firefox")>-1,Safari:navigator.userAgent.indexOf("AppleWebKit/")>-1&&/Apple/.test(navigator.vendor),Opera:navigator.userAgent.indexOf("Opera")>-1}};Pushup.conditions={IE:(function(b){var a=/MSIE ([\d.]+)/.exec(b);return a&&parseFloat(a[1])<7})(navigator.userAgent),Firefox:Pushup.Browser.Firefox&&parseFloat(navigator.userAgent.match(/Firefox[\/\s](\d+)/)[1])<3,Safari:Pushup.Browser.Safari&&parseFloat(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1])<500,Opera:Pushup.Browser.Opera&&(!window.opera.version||parseFloat(window.opera.version())<9.5)};(function(){for(var e in Pushup.Browser){if(Pushup.Browser[e]){Pushup._browserUsed=e}}Pushup._updateBrowser=Pushup.conditions[Pushup._browserUsed]&&Pushup._browserUsed;if(!Pushup._updateBrowser&&Pushup.options.skip){return}function g(i,k){for(var j in k){i[j]=k[j]}return i}g(Pushup,{start:function(){if(/^(https?:\/\/|\/)/.test(this.options.images)){this.images=this.options.images}else{var m=/pushup(?:-[\w\d.]+)?\.js(.*)/,j=document.getElementsByTagName("script");for(var n=0,k=j.length;n<k;n++){var o=j[n];if(o.src&&o.src.match(m)){this.images=o.src.replace(m,"")+this.options.images}}}if(Pushup._updateBrowser){this.show()}},build:function(){this.pushup=document.createElement("div");d.set(this.pushup,0);this.pushup.id="pushup";this.messageLink=this.pushup.appendChild(document.createElement("a"));this.messageLink.className="pushup_messageLink";this.messageLink.target="_blank";this.messageLink.appendChild(this.icon=document.createElement("div"));this.icon.className="pushup_icon";this.messageLink.appendChild(this.message=document.createElement("span"));this.message.className="pushup_message";this.message.innerHTML=this.options.message;var i=this.options.reminder.hours;if(i&&Pushup.cookiesEnabled){this.pushup.appendChild(this.reminder=document.createElement("a"));this.reminder.href="#";this.reminder.className="pushup_reminder";this.pushup.className="withReminder";var j=i+" hour"+(i>1?"s":""),k=this.options.reminder.message.replace("#{hours}",j);this.reminder.innerHTML=k}if(Pushup.Browser.Opera&&(!window.opera.version||parseFloat(window.opera.version())<9.25)){this.messageLink.style.cssFloat="none";this.reminder.style.cssFloat="none"}Pushup.setBrowser(Pushup._updateBrowser);document.body.appendChild(this.pushup);Pushup.addEvents()},addEvents:function(){if(this.reminder){a.add(this.reminder,"click",function(i){a.stop(i);Pushup.setReminder(Pushup.options.reminder.hours);Pushup.fade()})}a.add(this.pushup,"mouseover",Pushup.clearFade);a.add(this.pushup,"mouseout",function(){Pushup.fade({delay:Pushup.options.fadeDelay})})},setBrowser:function(i){i=i||"IE";h(this.icon,this.images+i.toLowerCase()+".png");this.messageLink.href=this.updateLinks[i]},show:function(){var j=typeof arguments[0]=="string"?arguments[0]:Pushup._browserUsed||"IE",i=arguments[j?1:0]||{};if(i.resetReminder){Pushup.resetReminder()}if(!i.ignoreReminder&&Pushup.cookiesEnabled&&b.get("_pushupBlocked")){return}if(!Pushup.pushup){Pushup.build()}d.set(Pushup.pushup,0);Pushup.pushup.style.display="block";if(j){Pushup.setBrowser(j)}this.appear({fadeAfter:true,delay:Pushup.options.appearDelay})},appear:function(j){Pushup.clearFade();var i=arguments[0]||{};return window.setTimeout(function(){c(Pushup.pushup,{afterFinish:function(){if(i.fadeAfter){Pushup.fade({delay:Pushup.options.fadeDelay})}}})},(i.delay||0.01)*1000)},clearFade:function(){if(Pushup._fadeTimer){window.clearTimeout(Pushup._fadeTimer);Pushup._fadeTimer=null}},fade:function(){var i=arguments[0]||{};Pushup._fadeTimer=window.setTimeout(function(){f(Pushup.pushup)},(i.delay||0.01)*1000)},setReminder:function(i){b.set("_pushupBlocked","blocked",{duration:1/24*i})},resetReminder:function(){b.remove("_pushupBlocked")}});var d={set:function(i,j){i.style.opacity=(j==1||j==="")?"":(j<0.00001)?0:j},get:function(j){var i=j.style.opacity;return i?parseFloat(i):1}};if(Pushup.Browser.IE){d.get=function(j){var i=j.style.opacity;if(!i&&j.currentStyle){i=j.currentStyle[i]}if(i=(j.style.filter||"").match(/alpha\(opacity=(.*)\)/)){if(i[1]){return parseFloat(i[1])/100}}return 1};d.set=function(j,m){function n(o){return o.replace(/alpha\([^\)]*\)/gi,"")}var i=j.currentStyle;if((i&&!i.hasLayout)||(!i&&j.style.zoom=="normal")){j.style.zoom=1}var l=j.style.filter,k=j.style;if(m==1||m===""){(l=n(l))?k.filter=l:k.filter=""}else{k.filter=n(l)+"alpha(opacity="+(m*100)+")"}}}function c(j){var k=d.get(j),i=arguments[1]||{};if(j.style.display!="block"){j.style.display="block"}if(k<1){setTimeout(function(){d.set(j,k+=0.05);c(j,i)},0.01)}else{if(Pushup.Browser.IE&&j.style.filter){j.style.removeAttribute("filter")}if(i.afterFinish){i.afterFinish.call()}}}function f(j){var k=d.get(j),i=arguments[1]||{};if(k>0){setTimeout(function(){d.set(j,k-=0.05);f(j,i)},0.01)}else{j.style.display="none";if(i.afterFinish){i.afterFinish.call()}}}function h(k,j){var i=g({align:"top left",repeat:"no-repeat",sizingMethod:"crop",backgroundColor:""},arguments[2]||{});g(k.style,arguments.callee.IEBelow7?{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+j+"'', sizingMethod='"+i.sizingMethod+"')"}:{background:i.backgroundColor+" url("+j+") "+i.align+" "+i.repeat})}h.IEBelow7=Pushup.Browser.IE&&parseFloat(/MSIE ([\d.]+)/.exec(navigator.userAgent)[1])<7;var b={set:function(l,m){var i="",k=arguments[2]||{};if(k.duration){var j=new Date();j.setTime(j.getTime()+k.duration*1000*60*60*24);m+="; expires="+j.toGMTString()}document.cookie=l+"="+m+i+"; path=/"},remove:function(i){this.set(i,"",-1)},get:function(k){var n=document.cookie.split(";"),o=k+"=";for(var m=0,j=n.length;m<j;m++){var p=n[m];while(p.charAt(0)==" "){p=p.substring(1,p.length)}if(p.indexOf(o)==0){return p.substring(o.length,p.length)}}return null}};Pushup.cookiesEnabled=(function(i){if(b.get(i)){return true}b.set(i,"test",{duration:15});return b.get(i)})("_pushupCookiesEnabled");var a={add:function(k,j,i){if(k.attachEvent){k["e"+j+i]=i;k[j+i]=function(){k["e"+j+i](window.event)};k.attachEvent("on"+j,k[j+i])}else{k.addEventListener(j,i,false)}},stop:function(i){if(Pushup.Browser.IE){i.cancelBubble=true;i.returnValue=false}else{i.preventDefault();i.stopPropagation()}}};a.add(window,"load",function(){Pushup.start()})})();
