if(typeof dojo=="undefined"){throw"Unable to load Shadowbox adapter, Dojo not found"}if(typeof Shadowbox=="undefined"){throw"Unable to load Shadowbox adapter, Shadowbox not found"}(function(b){var a=[];b.lib={getStyle:function(d,c){return dojo.style(d,c)},remove:function(c){dojo._destroyElement(c)},getTarget:function(c){return c.target},getPageXY:function(c){return[c.pageX,c.pageY]},preventDefault:function(c){c.preventDefault()},keyCode:function(c){return c.keyCode},addEvent:function(f,c,e){var d=dojo.connect(f,c,e);a.push({el:f,name:c,handle:d})},removeEvent:function(e,c,d){dojo.forEach(a,function(g,f){if(g&&g.el==e&&g.name==c){dojo.disconnect(g.handle);a[f]=null}})},append:function(e,d){if(e.insertAdjacentHTML){e.insertAdjacentHTML("BeforeEnd",d)}else{if(e.lastChild){var c=e.ownerDocument.createRange();c.setStartAfter(e.lastChild);var f=c.createContextualFragment(d);e.appendChild(f)}else{e.innerHTML=d}}}}})(Shadowbox);