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