if(typeof jQuery=="undefined"){throw"Unable to load Shadowbox, jQuery library not found"}var Shadowbox={};Shadowbox.lib={adapter:"jquery",getStyle:function(a,b){return jQuery(a).css(b)},setStyle:function(c,b,a){if(typeof b!="object"){var d={};d[b]=a;b=d}jQuery(c).css(b)},get:function(a){return(typeof a=="string")?document.getElementById(a):a},remove:function(a){jQuery(a).remove()},getTarget:function(a){return a.target},getPageXY:function(a){return[a.pageX,a.pageY]},preventDefault:function(a){a.preventDefault()},keyCode:function(a){return a.keyCode},addEvent:function(b,c,a){jQuery(b).bind(c,a)},removeEvent:function(b,c,a){jQuery(b).unbind(c,a)},append:function(a,b){jQuery(a).append(b)}};(function(a){a.fn.shadowbox=function(b){return this.each(function(){var d=a(this);var c=a.extend({},b||{},a.metadata?d.metadata():a.meta?d.data():{});var e=this.className||"";c.width=parseInt((e.match(/w:(\d+)/)||[])[1])||c.width;c.height=parseInt((e.match(/h:(\d+)/)||[])[1])||c.height;Shadowbox.setup(d,c)})}})(jQuery);
