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