// loaded: [dnd] :: 1 file totaling 8,663.00 bytes (compressed) in 375ms. // dnd (function(){if(!this.JSON){this.JSON={}}(function(){var P="prototype";function l(c){return c<10?"0"+c:c}if(!Date[P].toJSON){Date[P].toJSON=function(c){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+l(this.getUTCMonth()+1)+"-"+l(this.getUTCDate())+"T"+l(this.getUTCHours())+":"+l(this.getUTCMinutes())+":"+l(this.getUTCSeconds())+"Z":null};String[P].toJSON=Number[P].toJSON=Boolean[P].toJSON=function(c){return this.valueOf()}}var o=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,p=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,h,m,r={'\b':"\\b",'\t':"\\t",'\n':"\\n",'\f':"\\f",'\r':"\\r",'"':"\\\"",'\\':"\\\\"},j;function q(a){p.lastIndex=0;return p.test(a)?"\""+a.replace(p,function(c){var f=r[c];return typeof f==="string"?f:"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)})+"\"":"\""+a+"\""}function n(c,f){var a,e,d,i,k=h,g,b=f[c];if(b&&typeof b==="object"&&typeof b.toJSON==="function"){b=b.toJSON(c)}if(typeof j==="function"){b=j.call(f,c,b)}switch(typeof b){case"string":return q(b);case"number":return isFinite(b)?String(b):"null";case"boolean":case"null":return String(b);case"object":if(!b){return"null"}h+=m;g=[];if(Object[P].toString.apply(b)==="[object Array]"){i=b.length;for(a=0;adnd.z){dnd.z=oP[2];} ds7.left=oP[0];ds7.top=oP[1];ds7.zIndex=oP[2]||dnd.z;}} function drag(d,e){e=e||window.event;var that=e[branch],D=document,PI=parseInt,ds=d.style;if(that!=d){if(that&&that.focus){that.focus();return true;} return false;} if(!"position"in ds){xy(e);ds.position=PS;ds.left=ds.left?ds.left:xy.x+"px";ds.top=ds.top?ds.top:xy.y+"px";} ds.cursor="move";d.buc=d.opacity;ds.outline=dnd.baseOutline+" "+dnd.hlColor;ds.opacity="0.6";var oX=PI(ds.left),oY=PI(ds.top),tpp=xy(e),eX=xy.x,eY=xy.y,tX,tY;var DSC=String;if(IE){DSC=document.selection.clear;} var ieCore=!oldIE?(function _dndIE8Core(e,v){ds.top=window.event.clientY+"px";ds.left=window.event.clientX+"px";DSC();}):(function _dndIE6Core(e,v){ds.top=(window.event.clientY-3)+"px";ds.left=(window.event.clientX-3)+"px";DSC();});D.onmousemove=IE?ieCore:(function _dndCore(e){ds.top=e.pageY+oY-eY+"px";ds.left=e.pageX+oX-eX+"px";return false;});function mouseup3(event){var e=event||window.event,targ=e.srcElement||e.target,ds=d.style;if(!event){event=e;} D.onmousemove=D.onmouseup="";if(ds.left<"/"){ds.left="1px";} if(ds.top<"/"){ds.top="1px";} if(dnd.snap){var dsl=PI(ds.left),dst=PI(ds.top),tfactor=PI(dsl%dnd.snap),toff=(PI(dnd.snap/2)>tfactor)?tfactor:tfactor*-1;ds.left=(dsl-toff)+"px";tfactor=dst%dnd.snap;toff=(PI(dnd.snap/2)>tfactor)?tfactor:tfactor*-1;ds.top=dst-toff+"px";} if(dnd.persist){d._saveNewPos();} var onElm;event.target?event.srcElement=targ:event.target=targ;if(dnd.customEvents&&D.elementFromPoint){onElm=D.elementFromPoint(PI(ds.left)-2,(PI(ds.top)+D.body.scrollTop)-2);if(onElm&&onElm.getAttribute){d.landedOn=onElm;var od=onElm.ondnd||onElm.getAttribute("ondnd");onElm.ondnd=od;if(!onElm.dnd&&od&&event.target==d){if(typeof od==='string'){od=new Function("event",od);} od.apply(onElm,[event]);}}} if(dnd.customEvents&&d.ondnd){if(onElm&&onElm.ondnd){event.drop=onElm;} d.ondnd.call(d,event);} drag.items[d.id]=[PI(ds.left),PI(ds.top)];ds.outline="";ds.opacity=d.buc||1;ds.cursor=ds.oldCursor||"default";d.focus();} D.onmouseup=mouseup3;return false;} drag.items[elm2.id]=[PI(ds7.left),PI(ds7.top)];var elm3=elm2;elm2.onmousedown=function _onmd(event2){var ts=elm3.style;elm3._saveOldPos();ts.zIndex=dnd.z++;drag(elm3,event2||window.event);return false;};elm2.oldPos=[{left:ds7.left,top:ds7.top,z:ds7.zIndex}];elm2.oldSize=[{width:ds7.width,height:ds7.height}];elm2.landedOn={};elm2.dnd=true;elm2.moveTo=function(x,y){var es=this.style;es.top=PI(y)+"px";es.left=PI(x)+"px";return this;};elm2.moveBy=function(right,up){var es=this.style;es.top=PI(es.top)+PI(up)+"px";es.left=PI(es.left)+PI(right)+"px";return this;};elm2.resizeTo=function(w,h){var es=this.style;es.width=PI(w)+"px";es.height=PI(h)+"px";return this;};function F(s){return Function("var es=this.style;\n"+s+" ; return this;");} elm2.unMove=F("var ts=this.oldPos.pop();if(!ts){return this;}es.top=ts.top;es.left=ts.left;es.zIndex=ts.z");elm2.hide=F('es.display="none"');elm2.show=F('es.display="inline"');elm2.undelete=F("this.show();this.unMove()");elm2._saveOldPos=function(){var es=this.style;this.oldPos.push({left:es.left,top:es.top,z:es.zIndex});dnd.currentElement=elm2;return this;};elm2._saveNewPos=function(){var es=this.style;SC(this.id,"['"+es.left+"', '"+es.top+"', '"+es.zIndex+"']");return this;};elm2.unSize=function(){var es=this.style;var ts=this.oldSize.pop();if(!ts){return 0;}es.width=ts.width;es.height=ts.height;return this;};dnd.reset=function(){if(!confirm("Are you sure you want to remove the saved layout ?")){return;} if(globalStorage&&globalStorage[document.domain]){document.title="reloading...";globalStorage[document.domain]['dndItems']="{}";return setTimeout(" globalStorage[document.domain]['dndItems']='{}';location.href = location.href;",300);} var b=dnd.items;for(var i=0;i