(function(){var H=0,C=[],A={},E={},M={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"},B=/[<>&\"\']/g,L,K=window.setTimeout,J={},I;function F(){this.returnValue=false}function D(){this.cancelBubble=true}(function(R){var Q=R.split(/,/),P,N,O;for(P=0;P0){G.each(P,function(Q,R){N[R]=Q})}});return N},cleanName:function(P){var O,N;N=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"];for(O=0;O0?"&":"?")+N}return O},each:function(O,N){var P,Q,R;if(O){P=O.length;if(P===L){for(Q in O){if(O.hasOwnProperty(Q)){if(N(O[Q],Q)===false){return }}}}else{for(R=0;R1073741824){return Math.round(N/1073741824,1)+" GB"}if(N>1048576){return Math.round(N/1048576,1)+" MB"}if(N>1024){return Math.round(N/1024,1)+" KB"}return N+" b"},getPos:function(P,U){var T=0,V=0,R,S=document,O,N;P=P;U=U||S.body;function Q(Z){var W,a,Y=0,X=0;if(Z){a=Z.getBoundingClientRect();W=S.compatMode==="CSS1Compat"?S.documentElement:S.body;Y=a.left+W.scrollLeft;X=a.top+W.scrollTop}return{x:Y,y:X}}if(P&&P.getBoundingClientRect&&((navigator.userAgent.indexOf("MSIE")>0)&&(S.documentMode<8))){O=Q(P);N=Q(U);return{x:O.x-N.x,y:O.y-N.y}}R=P;while(R&&R!=U&&R.nodeType){T+=R.offsetLeft||0;V+=R.offsetTop||0;R=R.offsetParent}R=P.parentNode;while(R&&R!=U&&R.nodeType){T-=R.scrollLeft||0;V-=R.scrollTop||0;R=R.parentNode}return{x:T,y:V}},getSize:function(N){return{w:N.offsetWidth||N.clientWidth,h:N.offsetHeight||N.clientHeight}},parseSize:function(O){var N;if(typeof (O)=="string"){O=/^([0-9]+)([mgk]?)$/.exec(O.toLowerCase().replace(/[^0-9mkg]/g,""));N=O[2];O=+O[1];if(N=="g"){O*=1073741824}if(N=="m"){O*=1048576}if(N=="k"){O*=1024}}return O},xmlEncode:function(N){return N?(""+N).replace(B,function(O){return M[O]?"&"+M[O]+";":O}):N},toArray:function(N){var O,P=[];for(O=0;O