var Shadowbox={}; Shadowbox.lib=function(){var f={},h=/(-[a-z])/gi,i=function(a,b){return b.charAt(1).toUpperCase()},d=function(a){var b;if(!(b=f[a]))b=f[a]=a.replace(h,i);return b},e=document.defaultView,j=/alpha\([^\)]*\)/gi,k=function(a,b){a=a.style;if(window.ActiveXObject){a.zoom=1;a.filter=(a.filter||"").replace(j,"")+(b==1?"":" alpha(opacity="+b*100+")")}else a.opacity=b};return{adapter:"standalone",getStyle:function(){return e&&e.getComputedStyle?function(a,b){var c;if(b=="float")b="cssFloat";if(c=a.style[b])return c; if(a=e.getComputedStyle(a,""))return a[d(b)];return null}:function(a,b){var c;if(b=="opacity"){if(typeof a.style.filter=="string")if(a=a.style.filter.match(/alpha\(opacity=(.+)\)/i)){a=parseFloat(a[1]);if(!isNaN(a))return a?a/100:0}return 1}else if(b=="float")b="styleFloat";b=d(b);if(c=a.style[b])return c;if(a=a.currentStyle)return a[b];return null}}(),setStyle:function(a,b,c){if(typeof b=="string"){b=d(b);if(b=="opacity")k(a,c);else a.style[b]=c}else for(var g in b)this.setStyle(a,g,b[g])},get:function(a){return typeof a== "string"?document.getElementById(a):a},remove:function(a){a.parentNode.removeChild(a)},getTarget:function(a){a=a.target?a.target:a.srcElement;return a.nodeType==3?a.parentNode:a},getPageXY:function(a){return[a.pageX||a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),a.pageY||a.clientY+(document.documentElement.scrollTop||document.body.scrollTop)]},preventDefault:function(a){if(a.preventDefault)a.preventDefault();else a.returnValue=false},keyCode:function(a){return a.which? a.which:a.keyCode},addEvent:function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else a.attachEvent&&a.attachEvent("on"+b,c)},removeEvent:function(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false);else a.detachEvent&&a.detachEvent("on"+b,c)},append:function(a,b){if(a.insertAdjacentHTML)a.insertAdjacentHTML("BeforeEnd",b);else if(a.lastChild){var c=a.ownerDocument.createRange();c.setStartAfter(a.lastChild);b=c.createContextualFragment(b);a.appendChild(b)}else a.innerHTML= b}}}();