var currEl=currEv=0; gal=bw.loc[1].match(/highlights|objects/); foc=bw.loc[1].match(/_\d+$/); evt=bw.loc[1]=="events"; inr=bw.loc[0].match(/#Image(.*)$/); if(bw.loc[1]=="home"&&bw.cookies)deleteCookie('ObjectSearch'); if(!bw.noscroll)document.write('<style type="text/css">#DIVcontent{clip:rect(0px auto auto 1000px)}</style>'); if(bw.ie&&!bw.mac)document.write('<style>html,body{overflow:hidden !important}</style>'); function menu(){ if(currEl)currEl.className=""; currEl=this.parentNode; this.parentNode.className="on"; location.href=this.href; return false; }; function showTitle(id,tp){ showDIV(get("DIVobj"+id),tp); }; function setSlider(){ bw.getWinSize(); iMenuBG.slider=new Slider(iMenuBG,"quart","InOut","clipBottom",0,bw.winH,70); }; function terms(){ popW=478; popH=427; if(popW>bw.scrW)popW=bw.scrW*0.9; if(popH>bw.scrH)popH=bw.scrH*0.9; popL=(bw.scrW-popW)/2; popT=(bw.scrH-popH)/2; window.open(this.href,"TERMS","scrollbars=no,width="+popW+",height="+popH+(bw.ie?(',left='+popL+',top='+popT):(',screenX='+popL+',screenY='+popT))); return false; }; popups=[]; function menu3(){ pnr=this.href.replace(/[\D]+/g,""); if(popups[pnr]&&!popups[pnr].closed)popups[pnr].focus(); else popups[pnr]=window.open(this.href,"ARTIST"+pnr,"width=600,height=500"); return false; }; function init(){ dMenu=get("DIVmenu"); dCont=get("DIVcontent"); if(bw.mac&&bw.ie){ nh=get("DIVbox").offsetTop+get("DIVbox").offsetHeight; dCont.style.overflow="visible"; dCont.style.height=px(nh); get("DIVbg").style.height=px(nh+get("DIVcontent").offsetTop); }; as=document.getElementsByTagName("a"); for(i=0;i<as.length;i++){ as[i].onfocus=blurit; if(as[i].href.match(/t_and_c/))as[i].onclick=terms; else if(bw.loc[1]=="object_search"&&as[i].parentNode.tagName.match(/li/i))as[i].onclick=menu2; else if(bw.loc[1]=="mapping_modernism"&&as[i].href.match(/artist[^\.]+\.html/))as[i].onclick=menu3; else if(bw.loc[1].match(/artist[^\.]+/)&&as[i].href.match(/home\.|mapping/))as[i].onclick=new Function("if(window.opener){ window.opener.location.href=this.href; }; window.close()"); else if(bw.loc[1].match(/objects_\d+/)){ if(as[i].id&&as[i].id.match(/newsearch/)&&bw.cookies){ as[i].onclick=function(){ deleteCookie("ObjectSearch"); }}}else if(!as[i].href.match(/object_|events\.|highlights|home\.|register|tell_a_friend|exhibition|tickets\.|visitor|competition[\.\_]/))as[i].target="_blank"; }; if(dMenu){ lis=dMenu.getElementsByTagName("li"); for(l=0;l<lis.length;l++){ if(bw.ie50&&!bw.mac||bw.ns6){ lis[l].firstChild.onmouseover=new Function("this.className+=' ahover'"); lis[l].firstChild.onmouseout=new Function("this.className=this.className.replace(/\s?ahover\s?/,'')"); }; a=lis[l].firstChild; if(lis[l].className=="on")currEl=lis[l]; a.onclick=menu; }}; iMenu=get("ULmenu"); if(iMenu){ iMenuBG=get("DIVbg"); dMenu.className=""; imgMenu=get("DIVmenubg"); setSlider(); if(bw.ie50&&imgMenu.className=="home")iMenuBG.slider.setCmd("imgMenu.className=iMenuBG.on?'':'home'"); iMenu.onmouseover=new Function("if(iMenuBG.to)clearTimeout(iMenuBG.to); if(!iMenuBG.on){ iMenuBG.on=1; iMenuBG.slider.go(0); }"); iMenu.onmouseout=new Function('iMenuBG.to=setTimeout("iMenuBG.slider.go(1); iMenuBG.on=0",200)'); window.onresize=setSlider; }; if(window.init2)init2(); if(dCont && window.Slider){ dCont.slider=new Slider(dCont,"quart","InOut","clipLeft",0,dCont.clientWidth,70); dCont.slider.go(-1); }else if(dCont)dCont.style.clip="rect(auto auto auto auto)"; }; window.onload=init;

