if(typeof MooTools=="undefined"){throw"Unable to load Shadowbox adapter, MooTools not found"}if(typeof Shadowbox=="undefined"){throw"Unable to load Shadowbox adapter, Shadowbox not found"}(function(a){a.lib={getStyle:function(c,b){return $(c).getStyle(b)},remove:function(b){b.parentNode.removeChild(b)},getTarget:function(b){return b.target},getPageXY:function(b){return[b.page.x,b.page.y]},preventDefault:function(b){b.preventDefault()},keyCode:function(b){return b.code},addEvent:function(d,b,c){$(d).addEvent(b,c)},removeEvent:function(d,b,c){$(d).removeEvent(b,c)},append:function(d,c){if(d.insertAdjacentHTML){d.insertAdjacentHTML("BeforeEnd",c)}else{if(d.lastChild){var b=d.ownerDocument.createRange();b.setStartAfter(d.lastChild);var e=b.createContextualFragment(c);d.appendChild(e)}else{d.innerHTML=c}}}}})(Shadowbox);