if(typeof jQuery=="undefined"){throw"Unable to load Shadowbox Ajax player, jQuery library not found"}else{(function(a){if(!a.options.ajax){a.options.ajax={}}a.ajax=function(d){this.obj=d;this.height=this.obj.height?parseInt(this.obj.height,10):300;this.width=this.obj.width?parseInt(this.obj.width,10):500;this.html="";this.ready=false;this.options={};var c=this,b=jQuery.extend({type:"GET",url:d.content,success:this.ajaxSuccess},a.options.ajax,a.options.ajaxload?{ajaxload:a.options.ajaxload}:null,this.obj.options?this.obj.options.ajax||null:null,this.obj.options&&this.obj.options.ajaxload?{ajaxload:this.obj.options.ajaxload}:null);jQuery.each(b,function(g,f){var e=f;c.options[g]={complete:1,error:1,success:1}[g]?function(){e.apply(c,arguments)}:e});jQuery.ajax(this.options)};a.ajax.prototype={append:function(b,d,c){this.id=d;this.container=jQuery("<div></div>").attr({id:this.id}).addClass("html html_ajax").html(this.html);jQuery(b).append(this.container);if(this.options.ajaxload){this.options.ajaxload.call(this)}},remove:function(){this.container.find("a,area").each(function(){if(typeof this.shadowboxCacheKey!="undefined"){var d=this.shadowboxCacheKey;if(a.cache[d]){a.cache[d]={X:1}}try{delete this.shadowboxCacheKey}catch(f){if(this.removeAttribute){this.removeAttribute("shadowboxCacheKey")}}}}).end().remove();var c=true,b=a.cache.length;while(c&&b--){c=!!a.cache[b].X}if(c){a.cache=[]}this.container=null},ajaxSuccess:function(b){this.html=jQuery.trim(b);this.ready=true}}})(Shadowbox)};