(function(d,c,g){var h=function(){};h.prototype=jQuery;var e=new h();e.ns=c;e.id=function(i){return typeof i=="string"?document.getElementById(i):i};e.cn=function(i,j){return jQuery.find("."+i,j)};var a=function(){if(this.stopPropagation){this.stopPropagation()}this.cancelBubble=true};var b=function(){if(this.preventDefault){this.preventDefault()}this.returnValue=false};e._fixEvent=function(i){i=i||d.event;if(!i.target){i.target=i.srcElement||document}if(!i.relatedTarget){i.relatedTarget=i.fromElement===i.target?i.toElement:i.fromElement}i.stopPop=a;i.stopDefault=b;i.stop=function(){i.stopDefault();i.stopPop()};return i};e.fixEvent=function(k){k=e._fixEvent(k);if(k.pageX==null&&k.clientX!=null){var j=k.target.ownerDocument||document,l=j.documentElement,i=j.body;k.pageX=k.clientX+(l&&l.scrollLeft||i&&i.scrollLeft||0)-(l&&l.clientLeft||i&&i.clientLeft||0);k.pageY=k.clientY+(l&&l.scrollTop||i&&i.scrollTop||0)-(l&&l.clientTop||i&&i.clientTop||0)}return k};e.delegateEvent=function(m,l){var k={};var i=function(q){q=e.fixEvent(q);var r=q.target;var o=q.type;var p;do{p={event:q,target:r,type:o,elem:m};var n=j.filter(p);if(n==="_break"){break}if(n in k[o]){if(k[o][n](p)===false){break}}}while(r!==m&&(r=r.parentNode))};var j={filter:l||function(n){return n.target.className},add:function(o,n,p){if(!k[o]){k[o]={};e.addEventListener(m,o,i)}k[o][n]=p},del:function(p,n){if(arguments.length){if(n){delete k[p][n]}else{delete k[p];e.removeEventListener(m,p,i)}}else{for(var o in k){e.removeEventListener(m,o,i)}k=null}},destroy:function(){j.del()}};return j};e.mkNS=function(l,j,k){var i=d;if(!l){return i}if(typeof j=="object"){i=j;j="."}else{i=k||i}if(e.type(l)!="array"){l=l.split(j)}e.each(l,function(n,m){i=(i[m]=i[m]||{})});return i};e.buildScript=function(l,k){var j=document.head||document.getElementsByTagName("head")[0]||document.documentElement;var i=document.createElement("script");i.setAttribute("type","text/javascript");i.setAttribute("src",l);i.setAttribute("charset","utf-8");i.onload=i.onreadystatechange=function(){if((!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){if(e.type(k)==="function"){k()}i.onload=i.onreadystatechange=null;if(j&&i.parentNode){j.removeChild(i)}i=null}};j.insertBefore(i,j.firstChild)};e.inArray=function(i,j){return jQuery.inArray(i,j)>-1};jQuery.each({getTime:"now",indexOf:"inArray"},function(i,j){e[i]=jQuery[j]});var f=Array.prototype.slice;jQuery.each({hide:"hide",show:"show",addEventListener:"bind",removeEventListener:"unbind",addClass:"addClass",removeClass:"removeClass",hasClass:"hasClass"},function(i,j){e[i]=function(){var k=jQuery(arguments[0]),l=f.call(arguments,1);return k[j].apply(k,l)}});d.getNS=function(){return e};d[c]=e})(this,"YD");(function(b){var c;var a=function(e){if(e.length){clearTimeout(c);var d=e.shift();d.func.call(d.func,d.data);c=setTimeout(function(){a(e)},25)}};b.message=function(d,e){if(!this._MSG){return new b.message(d,e)}d=d||"_ALL_";this.type=b.mkNS(d,e||this._MSG);this._mid=b.message.prototype._mid++};b.message.prototype={_MSG:{},_disable:false,_mid:0,_ensureName:function(d){this.type[d]=this.type[d]||{};this.type[d][this._mid]=this.type[d][this._mid]||[false]},add:function(d,e){this._ensureName(d);this.type[d][this._mid].push(e)},fire:function(e,f){this._ensureName(e);var d=this.type[e];b.each(d,function(h,k){if(!k[0]){for(var j=1,g=k.length;j<g;j++){k[j](f)}}})},del:function(d){this._ensureName(d);this.type[d][this._mid]=[false]},destroy:function(d){this.type[d]={}}};b.each(["enable","disable"],function(d,e){b.message.prototype[e+"All"]=function(){for(var f in this.type){this[e](f)}};b.message.prototype[e]=function(f){if(f){this._ensureName(f);this.type[f][this._mid][0]=!!d}else{this[e+"All"]()}}})})(getNS());