$=$;(function($){if({}.__proto__){$.namespace=function(name){$.fn[name]=function namespace(){this.__proto__=arguments.callee;return this};$.fn[name].__proto__=$.fn};$.fn.$=function(){this.__proto__=$.fn;return this}}else{$.namespace=function(name){$.fn[name]=function namespace(){return this.extend(arguments.callee)}};$.fn.$=function(){var len=this.length;this.extend($.fn);this.length=len;return this}}})(jQuery);$.BM={};$.namespace("BM");(function($){$.BM.components={};$.BM.filename="javascripts/v2/core/core.js";$.BM.addComponent=function(name,url,cache,execute){if(this.components[name]!=undefined){throw Error("$.BM.addComponent: Component already exists")}this.components[name]={url:url,loaded:false,cache:cache,execute:execute};$.BM.debug("$.BM.addComponent: A component has been added: ",name,$.BM.debug.debugVerbosity.medium)};$.BM.useComponents=function(components,callbackFunction){$.BM.debug("$.BM.useComponents: About to load different components: ",components,$.BM.debug.debugVerbosity.high);componentList=components.split(",");for(var i=0;i<componentList.length;i++){var component=componentList[i].replace(/^\s*/,"").replace(/\s*$/,"");if(i==(componentList.length-1)){$.BM.useComponent(component,callbackFunction)}else{$.BM.useComponent(component,null)}}};$.BM.useComponent=function(component,callbackFunction){$.BM.debug("$.BM.useComponent: About to load component: ",component,$.BM.debug.debugVerbosity.medium);var c=this.components[component];if(c==undefined){throw ("An unknown component has been detected, the component name is: "+component)}if((c&&c.loaded===true)||(c.url==$.BM.filename)){$.BM.debug("$.BM.useComponent: Component was already loaded or refers to this file so only execute the callback: "+component,null,$.BM.debug.debugVerbosity.high);c.loaded=true;if(callbackFunction){callbackFunction();$.BM.debug("$.BM.useComponent: Call back finished of component: "+component,null,$.BM.debug.debugVerbosity.high)}return}if(c&&c.loaded===false){$.ajax({type:"GET",url:c.url,dataType:"script",cache:c.cache,error:function(){throw Error("$.BM.useComponent: JavaScript was not found for component: "+component)},success:function(){c.loaded=true;$.BM.debug("$.BM.useComponent: Component has been loaded: "+component,null,$.BM.debug.debugVerbosity.medium);if(callbackFunction){$.BM.debug("$.BM.useComponent: About to execute callback of component: "+component,null,$.BM.debug.debugVerbosity.high);callbackFunction();$.BM.debug("$.BM.useComponent: Finish executing callback of component: "+component,null,$.BM.debug.debugVerbosity.high)}}});$.BM.debug("$.BM.useComponent: Finished adding component: "+component,null,$.BM.debug.debugVerbosity.medium)}};$.BM.start=function(component,callbackFunction,executeCallbackFunction){$.BM.debug("$.BM.start: About to start component: "+component,null,$.BM.debug.debugVerbosity.medium);var c=this.components[component];$.BM.useComponents(component,function(){if(callbackFunction){$.BM.debug("$.BM.start: About to execute callback of component: "+component,null,$.BM.debug.debugVerbosity.high);callbackFunction();$.BM.debug("$.BM.start: Finished executing callback of component: "+component,null,$.BM.debug.debugVerbosity.high)}if(c.execute){$.BM.debug("$.BM.start: Start method exists, now going to execute it from component: "+component,null,$.BM.debug.debugVerbosity.high);c.execute();$.BM.debug("$.BM.start: Finished executing start method of component: "+component,null,$.BM.debug.debugVerbosity.high)}});if(executeCallbackFunction){$.BM.debug("$.BM.start: Execute callback function exists, going to execute it from component: "+component,null,$.BM.debug.debugVerbosity.high);executeCallbackFunction();$.BM.debug("$.BM.start: Finished executing callback function from component: "+component,null,$.BM.debug.debugVerbosity.high)}$.BM.debug("$.BM.start: method finished: "+component,null,$.BM.debug.debugVerbosity.medium)};$.BM.preloader=function(){$.BM.debug("$.BM.preloader: Start preloader.",null,$.BM.debug.debugVerbosity.medium);var c=$.BM.components;for(var i in c){var url=c[i].url;if(c[i].loaded==false){$.BM.debug("$.BM.preloader: About to load: "+c[i],null,$.BM.debug.debugVerbosity.high);$.BM.useComponent(i,function(){c[i].loaded=true})}else{$.BM.debug("$.BM.preloader: Component was already loaded: "+c[i],null,$.BM.debug.debugVerbosity.high)}}}})(jQuery);(function($){$.BM.debug=function(msg,optionalParam,verbosity){if((typeof console==="undefined")||!$.BM.debug.debugOn){return false}if(verbosity==null||verbosity<=$.BM.debug.currentDebugVerbosity){if(optionalParam!=null){console.log(msg,optionalParam)}else{console.log(msg)}}};$.BM.debug.debugVerbosity={low:0,medium:1,high:2};$.BM.debug.currentDebugVerbosity=$.BM.debug.debugVerbosity.low;$.BM.debug.debugOn=true})(jQuery);$.BM.addComponent("linkTracker","javascripts/v2/core/core.js",true,function(){$.BM.LinkTracker()});$.BM.addComponent("niftycorners","javascripts/v2/core/core.js",true,function(){$.BM.niftyCorners()});$.BM.addComponent("sifr","javascripts/v2/core/core.js",true,function(){$.BM.sIFR()});$.BM.addComponent("tooltips","javascripts/v2/core/tooltips.js",true);$.BM.addComponent("searchBox","javascripts/v2/core/SearchBox.js",true);$.BM.addComponent("hideshow","javascripts/v2/components/ui/hideshow.js",true);$.BM.addComponent("randomise","javascripts/v2/components/ui/randomise.js",true);$.BM.addComponent("scroller","javascripts/v2/components/ui/scroller.js",true);$.BM.addComponent("slideshow","javascripts/v2/components/ui/slideshow.js",true,function(){$.BM.Slideshow()});$.BM.addComponent("slideshowExhib","javascripts/v2/components/ui/slideshow_exhib.js",true,function(){$.BM.SlideshowExhib()});$.BM.addComponent("switchContent","javascripts/v2/components/ui/switchContent.js",true);$.BM.addComponent("exploreaccessibility","javascripts/v2/components/ui/exploreaccessibility.js",true,function(){$.BM.exploreAccessibility()});$.BM.addComponent("immediacyLanguage","javascripts/v2/components/ui/immediacyLanguage.js",true);$.BM.addComponent("immediacyLanguageEditor","javascripts/v2/components/ui/immediacyLanguageEditor.js",true);$.BM.addComponent("acActiveContent","javascripts/v2/components/media/AC_RunActiveContent.js",true);$.BM.addComponent("audioPlayer","javascripts/v2/components/media/audio-player.js",true);$.BM.addComponent("swfObject","javascripts/v2/components/media/swfobject.js",true);$.BM.addComponent("swfObject2","javascripts/v2/components/media/swfobject_v2.js",true);$.BM.addComponent("swfObject-2.2","javascripts/v2/components/media/swfobject_v2.2.js",true);$.BM.addComponent("swfmacmousewheel-2","javascripts/v2/components/media/swfmacmousewheel-2.js",true);$.BM.addComponent("nebanum","javascripts/v2/projectSpecific/nebanum/nebanum.js",true);$.BM.addComponent("floorplan","javascripts/v2/components/misc/floorplan.js",true,function(){$.BM.Floorplan()});$.BM.addComponent("sitemap","javascripts/v2/components/misc/sitemap.js",true,function(){$.BM.Sitemap()});$.BM.addComponent("survey","javascripts/v2/components/misc/survey.js",true);$.BM.addComponent("shareComponents","http://s7.addthis.com/js/152/addthis_widget.js",true);$.BM.addComponent("twitter","javascripts/v2/components/socialMedia/jquery.juitterBM.js",true);$.BM.addComponent("col_dateVal","javascripts/v2/col/col_dateVal_v1.1.js",true);$.BM.addComponent("col_ajax","javascripts/v2/col/colAjax.js",true);$.BM.addComponent("col_objectOps","javascripts/v2/col/objectOps.js",true);$.BM.addComponent("col_advSearch","javascripts/v2/col/advsearch.js",true);$.BM.addComponent("dimension","javascripts/v2/jquery/plugins/jquery.dimensions.js",true);$.BM.addComponent("ecatalogueImageLayout","javascripts/v2/col/ecatalogueImageLayout.js",true);$.BM.addComponent("lightbox","javascripts/v2/jquery/plugins/jquery.lightbox-0.5.js",true);$.BM.addComponent("thickbox","javascripts/v2/jquery/plugins/jquery.thickbox.js",true);$.BM.addComponent("annotate","javascripts/v2/jquery/plugins/jquery.annotate.js",true);$.BM.addComponent("jcarousel","javascripts/v2/jquery/plugins/jquery.jcarousel.js",true);$.BM.addComponent("jqueryui","javascripts/v2/jquery/plugins/jquery.bm.fx.js",true);$.BM.addComponent("cookies","javascripts/v2/jquery/plugins/jquery.cookie.js",true);$.BM.addComponent("innerfade","javascripts/v2/jquery/plugins/jquery.innerfade.js",true);$.BM.addComponent("pngfix","javascripts/v2/core/pngfix.js",true,function(){$("div#headerMenu").BM().pngFix()});$.BM.addComponent("fx","javascripts/v2/jquery/plugins/fx.js",true);$.BM.addComponent("fx.slide","javascripts/v2/jquery/plugins/fx.slide.js",true);$(document).ready(function(){$("body").addClass("js");if($.browser.msie&&parseInt($.browser.version)===6){$.BM.start("pngfix")}$.BM.start("niftycorners");$.BM.start("sifr");$.BM.start("linkTracker")});function Stub(){this.DOMReady=function(callback){$(document).ready(function(){$.BM.start("scroller",callback)})}}var DOMAssistant=new Stub();var hasFlash=function(){var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+"))) \n</script> \n");if(window.hasFlash!=null){return window.hasFlash}}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.substr(b.indexOf(".")-2,2),10)>=a}return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var i=0,a=this.length,b=arguments.length;while(i<b){this[a++]=arguments[i++]}return this.length}}if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[];var d,e;if(!a){a=window}if(!b){b=[]}for(var i=0;i<b.length;i++){c[i]="b["+i+"]"}e="a.__applyTemp__("+c.join(",")+");";a.__applyTemp__=this;d=eval(e);a.__applyTemp__=null;return d}}function named(a){return new named.Arguments(a)}named.Arguments=function(a){this.oArgs=a};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(a,b){var c,d;var i=a.length;while(i--){d=a[i];if(d!=null&&d.constructor!=null&&d.constructor==named.Arguments){c=a[i].oArgs;break}}if(c==null){return}for(e in c){if(b[e]!=null){b[e](c[e])}}return};var parseSelector=function(){var a=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function r(s,t){var u=s.split(/\s*\,\s*/);var v=[];for(var i=0;i<u.length;i++){v=v.concat(b(u[i],t))}return v}function b(c,d,e){c=c.normalize().replace(" ","`");var f=c.match(a);var g,h,i,j,k,n;var l=[];if(f==null){f=[c,c]}if(f[1]==""){f[1]="*"}if(e==null){e="`"}if(d==null){d=document}switch(f[2]){case"#":k=f[3].match(a);if(k==null){k=[null,f[3]]}g=document.getElementById(k[1]);if(g==null||(f[1]!="*"&&!o(g,f[1]))){return l}if(k.length==2){l.push(g);return l}return b(k[3],g,k[2]);case".":if(e!=">"){h=m(d,f[1])}else{h=d.childNodes}for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1){continue}k=f[3].match(a);if(k!=null){if(g.className==null||g.className.match("(\\s|^)"+k[1]+"(\\s|$)")==null){continue}j=b(k[3],g,k[2]);l=l.concat(j)}else{if(g.className!=null&&g.className.match("(\\s|^)"+f[3]+"(\\s|$)")!=null){l.push(g)}}}return l;case">":if(e!=">"){h=m(d,f[1])}else{h=d.childNodes}for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1){continue}if(!o(g,f[1])){continue}j=b(f[3],g,">");l=l.concat(j)}return l;case"`":h=m(d,f[1]);for(i=0,n=h.length;i<n;i++){g=h[i];j=b(f[3],g,"`");l=l.concat(j)}return l;default:if(e!=">"){h=m(d,f[1])}else{h=d.childNodes}for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1){continue}if(!o(g,f[1])){continue}l.push(g)}return l}}function m(d,o){if(o=="*"&&d.all!=null){return d.all}return d.getElementsByTagName(o)}function o(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:","")==q.toLowerCase()}return r}();var sIFR=function(){var a="http://www.w3.org/1999/xhtml";var b=false;var c=false;var d;var ah=[];var al=document;var ak=al.documentElement;var am=window;var au=al.addEventListener;var av=am.addEventListener;var f=function(){var g=navigator.userAgent.toLowerCase();var f={a:g.indexOf("applewebkit")>-1,b:g.indexOf("safari")>-1,c:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,d:g.indexOf("opera")>-1,e:al.contentType!=null&&al.contentType.indexOf("xml")>-1,f:true,g:true,h:null,i:null,j:null,k:null};f.l=f.a||f.c;f.m=!f.a&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(f.m&&g.match(/.*gecko\/(\d{8}).*/)){f.j=new Number(g.match(/.*gecko\/(\d{8}).*/)[1])}f.n=g.indexOf("msie")>-1&&!f.d&&!f.l&&!f.m;f.o=f.n&&g.match(/.*mac.*/)!=null;if(f.d&&g.match(/.*opera(\s|\/)(\d+\.\d+)/)){f.i=new Number(g.match(/.*opera(\s|\/)(\d+\.\d+)/)[2])}if(f.n||(f.d&&f.i<7.6)){f.g=false}if(f.a&&g.match(/.*applewebkit\/(\d+).*/)){f.k=new Number(g.match(/.*applewebkit\/(\d+).*/)[1])}if(am.hasFlash&&(!f.n||f.o)){var aj=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;f.h=parseInt(aj.substr(aj.indexOf(".")-2,2),10)}if(g.match(/.*(windows|mac).*/)==null||f.o||f.c||(f.d&&(g.match(/.*mac.*/)!=null||f.i<7.6))||(f.b&&f.h<7)||(!f.b&&f.a&&f.k<312)||(f.m&&f.j<20020523)){f.f=false}if(!f.o&&!f.m&&al.createElementNS){try{al.createElementNS(a,"i").innerHTML=""}catch(e){f.e=true}}f.p=f.c||(f.a&&f.k<312);return f}();function at(){return{bIsWebKit:f.a,bIsSafari:f.b,bIsKonq:f.c,bIsOpera:f.d,bIsXML:f.e,bHasTransparencySupport:f.f,bUseDOM:f.g,nFlashVersion:f.h,nOperaVersion:f.i,nGeckoBuildDate:f.j,nWebKitVersion:f.k,bIsKHTML:f.l,bIsGecko:f.m,bIsIE:f.n,bIsIEMac:f.o,bUseInnerHTMLHack:f.p}}if(am.hasFlash==false||!al.getElementsByTagName||!al.getElementById||(f.e&&(f.p||f.n))){return{UA:at()}}function af(e){if((!k.bAutoInit&&(am.event||e)!=null)||!l(e)){return}b=true;for(var i=0,h=ah.length;i<h;i++){j.apply(null,ah[i])}ah=[]}var k=af;function l(e){if(c==false||k.bIsDisabled==true||((f.e&&f.m||f.l)&&e==null&&b==false)||al.getElementsByTagName("body").length==0){return false}return true}function m(n){if(f.n){return n.replace(new RegExp("%\d{0}","g"),"%25")}return n.replace(new RegExp("%(?!\d)","g"),"%25")}function as(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:","")==q.toLowerCase()}function o(p,q,r,s,t){var u="";var v=p.firstChild;var w,x,y,z;if(s==null){s=0}if(t==null){t=""}while(v){if(v.nodeType==3){z=v.nodeValue.replace("<","&lt;");switch(r){case"lower":u+=z.toLowerCase();break;case"upper":u+=z.toUpperCase();break;default:u+=z}}else{if(v.nodeType==1){if(as(v,"a")&&!v.getAttribute("href")==false){if(v.getAttribute("target")){t+="&sifr_url_"+s+"_target="+v.getAttribute("target")}t+="&sifr_url_"+s+"="+m(v.getAttribute("href")).replace(/&/g,"%26");u+='<a href="asfunction:_root.launchURL,'+s+'">';s++}else{if(as(v,"br")){u+="<br/>"}}if(v.hasChildNodes()){y=o(v,null,r,s,t);u+=y.u;s=y.s;t=y.t}if(as(v,"a")){u+="</a>"}}}w=v;v=v.nextSibling;if(q!=null){x=w.parentNode.removeChild(w);q.appendChild(x)}}return{"u":u,"s":s,"t":t}}function A(B){if(al.createElementNS&&f.g){return al.createElementNS(a,B)}return al.createElement(B)}function C(D,E,z){var p=A("param");p.setAttribute("name",E);p.setAttribute("value",z);D.appendChild(p)}function F(p,G){var H=p.className;if(H==null){H=G}else{H=H.normalize()+(H==""?"":" ")+G}p.className=H}function aq(ar){var a=ak;if(k.bHideBrowserText==false){a=al.getElementsByTagName("body")[0]}if((k.bHideBrowserText==false||ar)&&a){if(a.className==null||a.className.match(/\bsIFR\-hasFlash\b/)==null){F(a,"sIFR-hasFlash")}}}function j(I,J,K,L,M,N,O,P,Q,R,S,r,T){if(!l()){return ah.push(arguments)}aq();named.extract(arguments,{sSelector:function(ap){I=ap},sFlashSrc:function(ap){J=ap},sColor:function(ap){K=ap},sLinkColor:function(ap){L=ap},sHoverColor:function(ap){M=ap},sBgColor:function(ap){N=ap},nPaddingTop:function(ap){O=ap},nPaddingRight:function(ap){P=ap},nPaddingBottom:function(ap){Q=ap},nPaddingLeft:function(ap){R=ap},sFlashVars:function(ap){S=ap},sCase:function(ap){r=ap},sWmode:function(ap){T=ap}});var U=parseSelector(I);if(U.length==0){return false}if(S!=null){S="&"+S.normalize()}else{S=""}if(K!=null){S+="&textcolor="+K}if(M!=null){S+="&hovercolor="+M}if(M!=null||L!=null){S+="&linkcolor="+(L||K)}if(O==null){O=0}if(P==null){P=0}if(Q==null){Q=0}if(R==null){R=0}if(N==null){N="#FFFFFF"}if(T=="transparent"){if(!f.f){T="opaque"}else{N="transparent"}}if(T==null){T=""}var p,V,W,X,Y,Z,aa,ab,ac;var ad=null;for(var i=0,h=U.length;i<h;i++){p=U[i];if(p.className!=null&&p.className.match(/\bsIFR\-replaced\b/)!=null){continue}V=p.offsetWidth-R-P;W=p.offsetHeight-O-Q;aa=A("span");aa.className="sIFR-alternate";ac=o(p,aa,r);Z="txt="+m(ac.u).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+S+"&w="+V+"&h="+W+ac.t;F(p,"sIFR-replaced");if(ad==null||!f.g){if(!f.g){if(!f.n){p.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',J,'" quality="best" wmode="',T,'" bgcolor="',N,'" flashvars="',Z,'" width="',V,'" height="',W,'" sifr="true"></embed>'].join("")}else{p.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',V,'" height="',W,'" class="sIFR-flash"><param name="movie" value="',J,'"></param><param name="flashvars" value="',Z,'"></param><param name="quality" value="best"></param><param name="wmode" value="',T,'"></param><param name="bgcolor" value="',N,'"></param> </object>'].join("")}}else{if(f.d){ab=A("object");ab.setAttribute("data",J);C(ab,"quality","best");C(ab,"wmode",T);C(ab,"bgcolor",N)}else{ab=A("embed");ab.setAttribute("src",J);ab.setAttribute("quality","best");ab.setAttribute("flashvars",Z);ab.setAttribute("wmode",T);ab.setAttribute("bgcolor",N)}ab.setAttribute("sifr","true");ab.setAttribute("type","application/x-shockwave-flash");ab.className="sIFR-flash";if(!f.l||!f.e){ad=ab.cloneNode(true)}}}else{ab=ad.cloneNode(true)}if(f.g){if(f.d){C(ab,"flashvars",Z)}else{ab.setAttribute("flashvars",Z)}ab.setAttribute("width",V);ab.setAttribute("height",W);ab.style.width=V+"px";ab.style.height=W+"px";p.appendChild(ab)}p.appendChild(aa);if(f.p){p.innerHTML+=""}}if(f.n&&k.bFixFragIdBug){setTimeout(function(){al.title=d},0)}}function ai(){d=al.title}function ae(){if(k.bIsDisabled==true){return}c=true;if(k.bHideBrowserText){aq(true)}if(am.attachEvent){am.attachEvent("onload",af)}else{if(!f.c&&(al.addEventListener||am.addEventListener)){if(f.a&&f.k>=132&&am.addEventListener){am.addEventListener("load",function(){setTimeout("sIFR({})",1)},false)}else{if(al.addEventListener){al.addEventListener("load",af,false)}if(am.addEventListener){am.addEventListener("load",af,false)}}}else{if(typeof am.onload=="function"){var ag=am.onload;am.onload=function(){ag();af()}}else{am.onload=af}}}if(!f.n||am.location.hash==""){k.bFixFragIdBug=false}else{ai()}}k.UA=at();k.bAutoInit=true;k.bFixFragIdBug=true;k.replaceElement=j;k.updateDocumentTitle=ai;k.appendToClassName=F;k.setup=ae;k.debug=function(){aq(true)};k.debug.replaceNow=function(){ae();k()};k.bIsDisabled=false;k.bHideBrowserText=true;return k}();if(typeof sIFR=="function"&&!sIFR.UA.bIsIEMac&&(!sIFR.UA.bIsWebKit||sIFR.UA.nWebKitVersion>=100)){sIFR.setup()}(function($){$.BM.LinkTracker=function(){$("	a[href$='.doc'], a[href$='.pdf'], a[href$='.xls'], a[href$='.ppt'], a[href$='.mov'], a[href$='.avi'], a[href$='.mp3'], a[href$='.mp4']").bind("click",function(e){$.BM.LinkTracker.trackfiles(e)});$("a[href^='http://www.britishmuseumshoponline.org']").bind("click",function(e){$.BM.LinkTracker.trackShop(e);return false})};$.BM.LinkTracker.trackfiles=function(evt){var path=evt.target.href;var HOST="http://"+location.host;if(path.match(HOST)){var startPos=HOST.length;path=path.substr(startPos,path.length)}path=$.BM.LinkTracker.addSectionToPath(path);pageTracker._trackPageview(path);$.BM.debug("track pdf, path is: ",path)};$.BM.LinkTracker.addSectionToPath=function(path){var sections=["about_this_site","visiting","whats_on","explore","research","learning","the_museum","join_in"];for(var i=0;i<sections.length;i++){var check=location.href.match(sections[i]);if(check){return"/"+sections[i]+path}}return path};$.BM.LinkTracker.trackShop=function(evt){var path=evt.target.href;pageTracker._link(path);$.BM.debug("track shop:",path);return false}})(jQuery);(function($){$.BM.niftyCorners=function(){$("div.cornerSmall,ul.cornerSmall").nifty();$("div.cornerTopSmall,h2.cornerTopSmall,h3.cornerTopSmall,ul.cornerTopSmall,li.cornerTopSmall").nifty("tl,tr");$("div.cornerBottomSmall,ul.cornerBottomSmall").nifty("bl,br");$("div.cornerLeftSmall,ul.cornerLeftSmall,li.cornerLeftSmall").nifty("bl,tl");$("div.cornerRightSmall,ul.cornerRightSmall,li.cornerRightSmall").nifty("br,tr");$("div.cornerLarge,ul.cornerLarge").nifty("big");$("div.cornerTopLarge,ul.cornerTopLarge").nifty("big,tl,tr");$("div.cornerBottomLarge,ul.cornerBottomLarge").nifty("big,bl,br");$("ul.cornerThreeSmall").nifty("bl,br,tr");$("p.cornerBottomSmall").nifty("bl,br")}})(jQuery);jQuery(document).ready(function(){var cssPath="templates/default/css/system/niftycorners.css";if($.browser.msie){document.createStyleSheet(cssPath)}else{var l=document.createElement("link");jQuery(l).attr("type","text/css");jQuery(l).attr("rel","stylesheet");jQuery(l).attr("href",cssPath);jQuery(l).attr("media","screen");jQuery("head").append(l)}});jQuery.fn.nifty=function(options){if((document.getElementById&&document.createElement&&Array.prototype.push)==false){return}options=options||"";h=(options.indexOf("fixed-height")>=0)?this.offsetHeight:0;this.each(function(){var i,top="",bottom="";if(options!=""){options=options.replace("left","tl bl");options=options.replace("right","tr br");options=options.replace("top","tr tl");options=options.replace("bottom","br bl");options=options.replace("transparent","alias");if(options.indexOf("tl")>=0){top="both";if(options.indexOf("tr")==-1){top="left"}}else{if(options.indexOf("tr")>=0){top="right"}}if(options.indexOf("bl")>=0){bottom="both";if(options.indexOf("br")==-1){bottom="left"}}else{if(options.indexOf("br")>=0){bottom="right"}}}if(top==""&&bottom==""&&options.indexOf("none")==-1){top="both";bottom="both"}if(this.currentStyle!=null&&this.currentStyle.hasLayout!=null&&this.currentStyle.hasLayout==false){jQuery(this).css("display","inline-block")}if(top!=""){var d=document.createElement("b"),lim=4,border="",p,i,btype="r",bk,color;jQuery(d).css("marginLeft","-"+_niftyGP(this,"Left")+"px");jQuery(d).css("marginRight","-"+_niftyGP(this,"Right")+"px");if(options.indexOf("alias")>=0||(color=_niftyBC(this))=="transparent"){color="transparent";bk="transparent";border=_niftyPBC(this);btype="t"}else{bk=_niftyPBC(this);border=_niftyMix(color,bk)}jQuery(d).css("background",bk);d.className="niftycorners";p=_niftyGP(this,"Top");if(options.indexOf("small")>=0){jQuery(d).css("marginBottom",(p-2)+"px");btype+="s";lim=2}else{if(options.indexOf("big")>=0){jQuery(d).css("marginBottom",(p-10)+"px");btype+="b";lim=8}else{jQuery(d).css("marginBottom",(p-5)+"px")}}for(i=1;i<=lim;i++){jQuery(d).append(CreateStrip(i,top,color,border,btype))}jQuery(this).css("paddingTop","0px");jQuery(this).prepend(d)}if(bottom!=""){var d=document.createElement("b"),lim=4,border="",p,i,btype="r",bk,color;jQuery(d).css("marginLeft","-"+_niftyGP(this,"Left")+"px");jQuery(d).css("marginRight","-"+_niftyGP(this,"Right")+"px");if(options.indexOf("alias")>=0||(color=_niftyBC(this))=="transparent"){color="transparent";bk="transparent";border=_niftyPBC(this);btype="t"}else{bk=_niftyPBC(this);border=_niftyMix(color,bk)}jQuery(d).css("background",bk);d.className="niftycorners";p=_niftyGP(this,"Bottom");if(options.indexOf("small")>=0){jQuery(d).css("marginTop",(p-2)+"px");btype+="s";lim=2}else{if(options.indexOf("big")>=0){jQuery(d).css("marginTop",(p-10)+"px");btype+="b";lim=8}else{jQuery(d).css("marginTop",(p-5)+"px")}}for(i=lim;i>0;i--){jQuery(d).append(CreateStrip(i,bottom,color,border,btype))}jQuery(this).css("paddingBottom","0");jQuery(this).append(d)}});if(options.indexOf("height")>=0){this.each(function(){if(this.offsetHeight>h){h=this.offsetHeight}jQuery(this).css("height","auto");var gap=h-this.offsetHeight;if(gap>0){var t=document.createElement("b");t.className="niftyfill";jQuery(t).css("height",gap+"px");nc=this.lastChild;nc.className=="niftycorners"?this.insertBefore(t,nc):jQuery(this).append(t)}})}};function CreateStrip(index,side,color,border,btype){var x=document.createElement("b");x.className=btype+index;jQuery(x).css("backgroundColor",color).css("borderColor",border);if(side=="left"){jQuery(x).css("borderRightWidth","0").css("marginRight","0")}else{if(side=="right"){jQuery(x).css("borderLeftWidth","0").css("marginLeft","0")}}return(x)}function _niftyPBC(x){var el=x.parentNode,c;while(el.tagName.toUpperCase()!="HTML"&&(c=_niftyBC(el))=="transparent"){el=el.parentNode}if(c=="transparent"){c="#FFFFFF"}return(c)}function _niftyBC(x){var c=jQuery(x).css("backgroundColor");if(c==null||c=="transparent"||c.indexOf("rgba(0, 0, 0, 0)")>=0){return("transparent")}if(c.indexOf("rgb")>=0){var hex="";var regexp=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var h=regexp.exec(c);for(var i=1;i<4;i++){var v=parseInt(h[i]).toString(16);if(v.length==1){hex+="0"+v}else{hex+=v}}c="#"+hex}return(c)}function _niftyGP(x,side){var p=jQuery(x).css("padding"+side);if(p==null||p.indexOf("px")==-1){return(0)}return(parseInt(p))}function _niftyMix(c1,c2){var i,step1,step2,x,y,r=new Array(3);c1.length==4?step1=1:step1=2;c2.length==4?step2=1:step2=2;for(i=0;i<3;i++){x=parseInt(c1.substr(1+step1*i,step1),16);if(step1==1){x=16*x+x}y=parseInt(c2.substr(1+step2*i,step2),16);if(step2==1){y=16*y+y}r[i]=Math.floor((x*50+y*50)/100);r[i]=r[i].toString(16);if(r[i].length==1){r[i]="0"+r[i]}}return("#"+r[0]+r[1]+r[2])}(function($){$.fn.BM.pngFix=function(){if($.browser.msie){applyPositioning=true;shim="images/pngfix_1px_trans.gif";var shim_pattern=/x\.gif$/i;if($(this).is("img")&&$(this).attr("src").match(/\.png$/i)!==null){var img=$(this).get(0);$.fn.BM.pngFix.fixImg(img)}else{$(this).find("*").each(function(){var bg=$(this).css("background-image");var tagName=$(this).attr("tagName");if(bg.match(/\.png/i)!==null){$.fn.BM.pngFix.fixBg(this)}if(tagName=="IMG"&&$(this).attr("src").match("_trans.png")!==null){$.fn.BM.pngFix.fixImg(this)}if(applyPositioning&&(tagName=="A"||tagName=="INPUT")&&$(this).css("position","")){$(this).css("position","relative")}})}return this}},$.fn.BM.pngFix.fixBg=function(obj){var mode="crop";var bg=$(obj).css("background-image");var src=bg.substring(5,bg.length-2);var hover_src=src.replace("off.png","over.png");if($(obj).css("background-repeat")=="no-repeat"){mode="crop"}$(obj).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='"+mode+"')");$(obj).css("background-image","url("+shim+")");$(obj).mouseover(function(){$(obj).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+hover_src+"', sizingMethod='"+mode+"')")});$(obj).mouseout(function(){$(obj).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='"+mode+"')")})},$.fn.BM.pngFix.fixImg=function(img){var src=img.src;$(img).css("width",$(img).attr("width")+"px");$(img).css("height",$(img).attr("height")+"px");$(img).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='scale')");$(img).attr("src",shim)}})(jQuery);(function($){$.fn.BM.SearchBox=function(options){var opts=$.extend({},$.fn.BM.SearchBox.defaults,options);var textbox=$(this);if(textbox.val()==""||textbox.val()==opts.searchText){textbox.val(opts.searchText);textbox.click(function(){textbox.val("");textbox.unbind("click")})}};$.fn.BM.SearchBox.defaults={searchText:"Search"}})(jQuery);(function($){$.fn.toolTips=function(){return $(this).each(function(){$(this).parent().append("<em></em>");if($(this).parent().parent().hasClass("useTitle")){$(this).parent().find("em").text($(this).attr("title"))}else{$(this).parent().find("em").text($(this).text())}$(this).attr("title","");$(this).hover(function(){$(this).parent().find("em").animate({opacity:"show",top:"-50px"},"slow")},function(){$(this).parent().find("em").animate({opacity:"hide",top:"-60"},"fast",function(){})})})}})(jQuery);(function($){$.BM.sIFR=function(){if(typeof sIFR=="function"){if($("div.landing_intro").length>0){sIFR.replaceElement("div.landing_intro h1.visiting",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#FFFFFF",sBgColor:"#9D9D9D;",sWmode:"transparent"}));sIFR.replaceElement("div.landing_intro h1.whatson",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#333a4c",sBgColor:"#e5e5e5;",sWmode:"transparent"}));sIFR.replaceElement("div.landing_intro h1.research",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#565656",sBgColor:"#deded6;",sWmode:"transparent"}));sIFR.replaceElement("div.landing_intro h1.learning",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#FFFFFF",sBgColor:"#652944;",sWmode:"transparent"}));sIFR.replaceElement("div.landing_intro h1.themuseum",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#565656",sBgColor:"#DEDDD4;",sWmode:"transparent"}));sIFR.replaceElement("div.landing_intro h1.joinin",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#FFFFFF",sBgColor:"#715C83;",sWmode:"transparent"}))}if($("div.landing_intro").length>0){sIFR.replaceElement("div.landing_box h2.research",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#565656",sBgColor:"#eeeeee;",sWmode:"transparent"}))}if($("div.highlightBox").length>0){sIFR.replaceElement("div.highlightBox h2.bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#AAAAAA",sBgColor:"#E5E5E5;",sWmode:"transparent"}));sIFR.replaceElement("div.highlightBox h3.bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#666666",sBgColor:"#f6f4f6;",sCase:"upper",sWmode:"transparent"}))}if($("div.spotlight").length>0){sIFR.replaceElement("div.spotlight a.bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#FFFFFF",sBgColor:"#635579;",sWmode:"transparent"}))}if($("div.shop").length>0){sIFR.replaceElement("div.shop h3.bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#565656;",sBgColor:"#eeeeee",sWmode:"transparent"}))}if($("div.ecBannerHeader").length>0){sIFR.replaceElement("div.ecBannerHeader p.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#ffffff;",sBgColor:"#329A99",sWmode:"transparent"}));sIFR.replaceElement("div.ecBannerHeading h1.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#333333;",sBgColor:"#eeeeee",sWmode:"transparent"}));sIFR.replaceElement("div.ecBannerHeading p.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#333333;",sBgColor:"#eeeeee",sWmode:"transparent"}))}if($("body.Aboutthissite").length>0){sIFR.replaceElement("body.Aboutthissite h1",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#2B6488;",sWmode:"transparent"}))}else{if($("body.Visiting").length>0){sIFR.replaceElement("body.Visiting h1",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#993366;",sWmode:"transparent"}))}else{if($("body.Whatson").length>0){sIFR.replaceElement("body.Whatson h1",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#262E43;",sWmode:"transparent"}))}else{if($("body.explore").length>0){sIFR.replaceElement("body.explore h1",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#004C64;",sWmode:"transparent"}))}else{if($("body.Research").length>0){sIFR.replaceElement("body.Research h1",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#493e2b;",sWmode:"transparent"}))}else{if($("body.Learning").length>0){sIFR.replaceElement("body.Learning h1",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#353B4F;",sWmode:"transparent"}))}else{if($("body.TheMuseum").length>0){sIFR.replaceElement("body.TheMuseum h1",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#493E2B;",sWmode:"transparent"}))}else{if($("body.Joinin").length>0){sIFR.replaceElement("body.Joinin h1",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#201845;",sWmode:"transparent"}))}}}}}}}}if($("h2.bliss").length>0){sIFR.replaceElement("h2.bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#565656;",sWmode:"transparent"}))}if($("h3.bliss").length>0){sIFR.replaceElement("h3.bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#565656;",sWmode:"transparent"}))}if($("p.bliss").length>0){sIFR.replaceElement("p.bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#AAAAAA;",sCase:"upper",sWmode:"transparent"}))}if($("h2.clBliss").length>0){sIFR.replaceElement("h2.clBliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#006424;",sWmode:"transparent"}));sIFR.replaceElement("p.clBliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#006424;",sWmode:"transparent"}));sIFR.replaceElement("h2.clBlissPlant",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#006424;",sWmode:"transparent"}));sIFR.replaceElement("p.clBlissLatin",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#006424;",sWmode:"transparent"}))}if($("body.babylon").length>0){sIFR.replaceElement("body.babylon h1.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#007581;",sWmode:"transparent"}));sIFR.replaceElement("body.babylon h2.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#007581;",sWmode:"transparent"}))}if($("body.china").length>0){sIFR.replaceElement("body.china h1.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#007581;",sWmode:"transparent"}));sIFR.replaceElement("body.china h2.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#bf1d16;",sWmode:"transparent"}));sIFR.replaceElement("body.china h3.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#000000;",sWmode:"transparent"}))}if($("body.statue").length>0){sIFR.replaceElement("body.statue h1.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#000000;",sWmode:"transparent"}));sIFR.replaceElement("body.statue h2.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#bf1d16;",sWmode:"transparent"}));sIFR.replaceElement("body.statue div.statueHomeInfo h3.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#000000;",sWmode:"transparent"}));sIFR.replaceElement("body.statue div.statueExhibDetails h3.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#FFFFFF;",sWmode:"transparent"}));sIFR.replaceElement("body.statue h3.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#494949;",sWmode:"transparent"}))}if($("body.ShahAbbas").length>0){sIFR.replaceElement("body.ShahAbbas h1.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#ffcc66;",sWmode:"transparent"}));sIFR.replaceElement("body.ShahAbbas h2.exhDates",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#f4e7d0;",sWmode:"transparent"}));sIFR.replaceElement("body.ShahAbbas h2.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#ffcc66;",sWmode:"transparent"}));sIFR.replaceElement("body.ShahAbbas h3.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#ffcc66;",sWmode:"transparent"}));sIFR.replaceElement("body.ShahAbbas h4.Bliss",named({sFlashSrc:"js/sifr/blissmedium.swf",sColor:"#b99765;",sWmode:"transparent"}))}}}})(jQuery);