/** * Sexy.js v0.8 * http://sexyjs.com/ * * Copyright 2010, Dave Furfero * Dual licensed under the MIT or GPL Version 2 licenses. * http://sexyjs.com/license */ (function(k,l,q){var h=k.location,o=h.protocol+"//"+h.hostname+(h.port!==""?":"+h.port:""),f="__",m=["html","json","jsonp","script","style","text","xml"],e,b;function c(i){if(!(this instanceof c)){return new c(i);}this.cfgs=[];this.setup(i);}c.prototype={setup:function(i){this.cfg=i||{};return this;},sajax:function(x){var v=this.cfgs,w=v.length,s=v[w-1],z=x.dataType,r=x.url.indexOf("http")===0&&x.url.indexOf(o)===-1,u=z==="script",B=z==="style",i=w>0?r&&(u||B)?true:x.defer:false,A=x.success||(u||B?p:g),y=x.error||q.noop,n=x.complete||q.noop;v.push(q.extend(true,x,this.cfg,x,{sendAfterSend:[],dataType:(!r&&u||B)?"text":z,success:function(D,C){if(!s||f in s){if(u&&!r){q.globalEval(D);}else{if(B&&!r){D=q.styleEval(D);}}x.status=r?"success":C;x[f]=A.call(x,D,s&&s[f],v[w+1],x.status);if(x.nextSuccess){x.nextSuccess();}else{if(x.sendAfterSuccess){x.sendAfterSuccess();}}}else{s.nextSuccess=q.proxy(function(){x.success(D,C);},x);}},error:function(E,C,D){y.call(x,E,C,D);},complete:function(D,C){n.call(x,D,C);}}));function t(){var C,D;if(B&&r){q.getCSS(x.url,x.success);}else{q.ajax(x);}if(x.sendAfterSend.length>0){for(C=0,D=x.sendAfterSend.length;C