/*
 * Glow JavaScript Library
 * Copyright (c) 2007 British Broadcasting Corporation
 */
/*@cc_on @*//*@if (@_jscript_version > 5.1)@*/;glow.module("glow.tweens","0.2.0",{require:[],implementation:function(){function A(B){return function(C){return 1-B(1-C)}}return{linear:function(){return function(B){return B}},easeIn:function(B){B=B||2;return function(C){return Math.pow(1,B-1)*Math.pow(C,B)}},easeOut:function(B){return A(this.easeIn(B))},easeBoth:function(B){return this.combine(this.easeIn(B),this.easeOut(B))},overshootIn:function(B){return A(this.overshootOut(B))},overshootOut:function(B){B=B||1.70158;return function(C){if(C==0||C==1){return C}return((C-=1)*C*((B+1)*C+B)+1)}},overshootBoth:function(B){return this.combine(this.overshootIn(B),this.overshootOut(B))},bounceIn:function(){return A(this.bounceOut())},bounceOut:function(){return function(B){if(B<(1/2.75)){return 7.5625*B*B}else{if(B<(2/2.75)){return(7.5625*(B-=(1.5/2.75))*B+0.75)}else{if(B<(2.5/2.75)){return(7.5625*(B-=(2.25/2.75))*B+0.9375)}else{return(7.5625*(B-=(2.625/2.75))*B+0.984375)}}}}},bounceBoth:function(){return this.combine(this.bounceIn(),this.bounceOut())},elasticIn:function(B,C){return A(this.elasticOut(B,C))},elasticOut:function(B,C){return function(D){if(D==0||D==1){return D}if(!C){C=0.3}if(!B||B<1){B=1;var E=C/4}else{var E=C/(2*Math.PI)*Math.asin(1/B)}return B*Math.pow(2,-10*D)*Math.sin((D-E)*(2*Math.PI)/C)+1}},elasticBoth:function(B,C){C=C||0.45;return this.combine(this.elasticIn(B,C),this.elasticOut(B,C))},combine:function(C,B){return function(D){if(D<0.5){return C(D*2)/2}else{return B((D-0.5)*2)/2+0.5}}}}}});glow.module("glow.anim","0.2.0",{require:["glow.tweens","glow.events","glow.dom"],implementation:function(){var manager,events=glow.events,dom=glow.dom,get=dom.get,debug=glow.debug,hasUnits=/width|height|top$|bottom$|left$|right$|spacing$|indent$|font-size/,noNegatives=/width|height|padding|opacity/,usesYAxis=/height|top/,getUnit=/[\d\.]+(\D+)/,testElement=dom.create('<div style="position:absolute;visibility:hidden"></div>');(function(){var queue=[],queueLen=0,intervalTime=1,interval;manager={addToQueue:function(anim){queue[queueLen++]=anim;anim._playing=true;anim._timeAnchor=anim._timeAnchor||new Date().valueOf();if(!interval){this.startInterval()}},removeFromQueue:function(anim){for(var i=0;i<queueLen;i++){if(queue[i]==anim){queue.splice(i,1);anim._timeAnchor=null;anim._playing=false;if(--queueLen==0){this.stopInterval()}return }}},startInterval:function(){interval=window.setInterval(this.processQueue,intervalTime)},stopInterval:function(){window.clearInterval(interval);interval=null},processQueue:function(){var anim,i,now=new Date().valueOf();for(i=0;i<queueLen;i++){anim=queue[i];if(anim.position==anim.duration){manager.removeFromQueue(anim);i--;events.fire(anim,"complete");continue}if(anim.useSeconds){anim.position=(now-anim._timeAnchor)/1000;if(anim.position>anim.duration){anim.position=anim.duration}}else{anim.position++}anim.value=anim.tween(anim.position/anim.duration);events.fire(anim,"frame")}}}})();function convertCssUnit(element,fromValue,toUnit,axis){var elmStyle=testElement[0].style,axisProp=(axis=="x")?"width":"height",startPixelValue,toUnitPixelValue;elmStyle.margin=elmStyle.padding=elmStyle.border="0";startPixelValue=testElement.css(axisProp,fromValue).insertAfter(element)[axisProp]();toUnitPixelValue=testElement.css(axisProp,10+toUnit)[axisProp]()/10;testElement.remove();return startPixelValue/toUnitPixelValue}function keepWithinRange(num,start,end){if(start!==undefined&&num<start){return start}if(end!==undefined&&num>end){return end}return num}function buildAnimFunction(element,spec){var cssProp,r=["a=(function(){"],rLen=1,fromUnit,unitDefault=[0,"px"],to,from,unit;for(cssProp in spec){r[rLen++]='element.css("'+cssProp+'", ';to=spec[cssProp].to;if((from=spec[cssProp].from)===undefined){if(cssProp=="font-size"||cssProp=="background-position"){throw new Error("From value must be set for "+cssProp)}from=element.css(cssProp)}if(hasUnits.test(cssProp)){unit=(getUnit.exec(spec[cssProp].to)||unitDefault)[1];fromUnit=(getUnit.exec(from)||unitDefault)[1];from=parseFloat(from)||0;to=parseFloat(to)||0;if(from&&unit!=fromUnit){if(cssProp=="font-size"){throw new Error("Units must be the same for font-size")}from=convertCssUnit(element,from+fromUnit,unit,usesYAxis.test(cssProp)?"y":"x")}if(noNegatives.test(cssProp)){r[rLen++]="keepWithinRange(("+(to-from)+" * this.value) + "+from+', 0) + "'+unit+'"'}else{r[rLen++]="("+(to-from)+" * this.value) + "+from+' + "'+unit+'"'}}else{if(!(isNaN(from)||isNaN(to))){from=Number(from);to=Number(to);r[rLen++]="("+(to-from)+" * this.value) + "+from}else{if(cssProp.indexOf("color")!=-1){to=dom.parseCssColor(spec[cssProp].to);if(!glow.lang.hasOwnProperty(from,"r")){from=dom.parseCssColor(from)}r[rLen++]='"rgb(" + keepWithinRange(Math.round('+(to.r-from.r)+" * this.value + "+from.r+'), 0, 255) + "," + keepWithinRange(Math.round('+(to.g-from.g)+" * this.value + "+from.g+'), 0, 255) + "," + keepWithinRange(Math.round('+(to.b-from.b)+" * this.value + "+from.b+'), 0, 255) + ")"'}else{if(cssProp=="background-position"){var vals={},fromTo=["from","to"],unit=(getUnit.exec(from)||unitDefault)[1];vals.fromOrig=from.toString().split(/\s/);vals.toOrig=to.toString().split(/\s/);if(vals.fromOrig[1]===undefined){vals.fromOrig[1]="50%"}if(vals.toOrig[1]===undefined){vals.toOrig[1]="50%"}for(var i=0;i<2;i++){vals[fromTo[i]+"X"]=parseFloat(vals[fromTo[i]+"Orig"][0]);vals[fromTo[i]+"Y"]=parseFloat(vals[fromTo[i]+"Orig"][1]);vals[fromTo[i]+"XUnit"]=(getUnit.exec(vals[fromTo[i]+"Orig"][0])||unitDefault)[1];vals[fromTo[i]+"YUnit"]=(getUnit.exec(vals[fromTo[i]+"Orig"][1])||unitDefault)[1]}if((vals.fromXUnit!==vals.toXUnit)||(vals.fromYUnit!==vals.toYUnit)){throw new Error("Mismatched axis units cannot be used for "+cssProp)}r[rLen++]="("+(vals.toX-vals.fromX)+" * this.value + "+vals.fromX+') + "'+vals.fromXUnit+' " + ('+(vals.toY-vals.fromY)+" * this.value + "+vals.fromY+') + "'+vals.fromYUnit+'"'}}}}r[rLen++]=");"}r[rLen++]="})";return eval(r.join(""))}var r={};r.css=function(element,duration,spec,opts){element=get(element);var r=new this.Animation(duration,opts),cssProp;events.addListener(r,"frame",buildAnimFunction(element,spec));return r};r.Animation=function(duration,opts){opts=glow.lang.apply({useSeconds:true,tween:glow.tweens.linear()},opts);this._playing=false;this._timeAnchor=null;this.duration=duration;this.useSeconds=opts.useSeconds;this.tween=opts.tween;this.position=0;this.value=0};r.Animation.prototype={start:function(){if(this._playing){this.stop()}var e=events.fire(this,"start");if(e.defaultPrevented()){return this}this.position=0;manager.addToQueue(this);return this},stop:function(){if(this._playing){var e=events.fire(this,"stop");if(e.defaultPrevented()){return this}manager.removeFromQueue(this)}return this},resume:function(){if(!this._playing){var e=events.fire(this,"resume");if(e.defaultPrevented()){return this}this._timeAnchor=new Date().valueOf()-(this.position*1000);manager.addToQueue(this)}return this},isPlaying:function(){return this._playing},goTo:function(pos){this._timeAnchor=new Date().valueOf()-((this.position=pos)*1000);this.value=this.tween(this.duration&&this.position/this.duration);events.fire(this,"frame");return this}};r.Timeline=function(channels,opts){this._channels=(channels[0]&&channels[0].push)?channels:[channels];this._channelPos=[];this._playing=false;this.loop=!!(opts&&opts.loop);var i,j,iLen,jLen,channel,allChannels=this._channels,totalDuration=0,channelDuration;for(i=0,iLen=allChannels.length;i<iLen;i++){channel=allChannels[i];channelDuration=0;for(j=0,jLen=channel.length;j<jLen;j++){if(typeof channel[j]=="number"){channel[j]=new r.Animation(channel[j])}if(channel[j] instanceof r.Animation){if(!channel[j].useSeconds){throw new Error("Timelined animations must be timed in seconds")}channel[j]._timelineOffset=channelDuration*1000;channelDuration+=channel[j].duration;channel[j]._channelIndex=i}}totalDuration=Math.max(channelDuration,totalDuration)}this._controlAnim=new r.Animation(totalDuration);events.addListener(this._controlAnim,"frame",this._processFrame,this);events.addListener(this._controlAnim,"complete",this._complete,this)};r.Timeline.prototype={_advanceChannel:function(i){var currentAnim=this._channels[i][this._channelPos[i]],nextAnim=this._channels[i][++this._channelPos[i]];if(currentAnim&&currentAnim._playing){currentAnim._playing=false;events.fire(currentAnim,"complete")}if((nextAnim)!==undefined){if(typeof nextAnim=="function"){nextAnim();this._advanceChannel(i)}else{nextAnim.position=0;nextAnim._channelIndex=i;events.fire(nextAnim,"start");nextAnim._playing=true}}},_complete:function(){if(this.loop){this.start();return }events.fire(this,"complete")},_processFrame:function(){var i,len,anim,controlAnim=this._controlAnim,msFromStart=(new Date().valueOf())-controlAnim._timeAnchor;for(i=0,len=this._channels.length;i<len;i++){if(!(anim=this._channels[i][this._channelPos[i]])){continue}anim.position=(msFromStart-anim._timelineOffset)/1000;if(anim.position>anim.duration){anim.position=anim.duration;this._advanceChannel(i)}anim.value=anim.tween(anim.position/anim.duration);events.fire(anim,"frame")}},start:function(){var e=events.fire(this,"start");if(e.defaultPrevented()){return this}var i,iLen,j,jLen,anim;this._playing=true;for(i=0,iLen=this._channels.length;i<iLen;i++){this._channelPos[i]=-1;this._advanceChannel(i);for(j=this._channels[i].length;j;j--){anim=this._channels[i][j];if(anim instanceof r.Animation){anim.goTo(0)}}}this._controlAnim.start()},stop:function(){if(this._playing){var e=events.fire(this,"stop");if(e.defaultPrevented()){return this}this._playing=false;var anim;for(var i=0,len=this._channels.length;i<len;i++){anim=this._channels[i][this._channelPos[i]];if(anim instanceof r.Animation&&anim._playing){events.fire(anim,"stop");anim._playing=false}}this._controlAnim.stop()}},resume:function(){if(!this._playing){var e=events.fire(this,"resume");if(e.defaultPrevented()){return this}this._playing=true;var anim;for(var i=0,len=this._channels.length;i<len;i++){anim=this._channels[i][this._channelPos[i]];if(anim instanceof r.Animation&&!anim._playing){events.fire(anim,"resume");anim._playing=true}}this._controlAnim.resume()}},isPlaying:function(){return this._playing}};return r}});glow.module("glow.dragdrop","0.2.0",{require:["glow.tweens","glow.events","glow.dom","glow.anim"],implementation:function(){var D=glow.events,H=glow.dom,C=H.get;var G={},B=1000,E=(document.compatMode=="CSS1Compat"&&glow.env.ie>=5)?true:false,F=(document.compatMode!="CSS1Compat"&&glow.env.ie>=5)?true:false,A=glow.env.ie>=5;G.Draggable=function(J,I){J=C(J);I=glow.lang.apply({helper:"clone",placeholder:"none",dragPrevention:["INPUT","TEXTAREA","BUTTON","SELECT","OPTION"],handle:J},I);this._initElement(J,I);return };G.Draggable.prototype={_startDragMouse:function(V){this._mouseUp=false;for(i in this._opts.dragPrevention){if(this._opts.dragPrevention[i].toLowerCase()==V.source.tagName.toLowerCase()){return }}if(this._opts.dragDisabled){return }if(this._container){var R=parseInt(this._container.css("top")),L=parseInt(this._container.css("left")),J=(parseInt(this._container.css("border-top-width"))||0),M=(parseInt(this._container.css("border-left-width"))||0),a=(parseInt(this._container.css("border-bottom-width"))||0),O=(parseInt(this._container.css("border-right-width"))||0),S=this._container.height(),Q=this._container.width(),U=(parseInt(this._container.css("padding-top"))||0),K=(parseInt(this._container.css("padding-right"))||0),Z=(parseInt(this._container.css("padding-bottom"))||0),I=(parseInt(this._container.css("padding-left"))||0),W=(parseInt(this.original.css("border-top-width"))||0),P=(parseInt(this.original.css("border-bottom-width"))||0),N=(parseInt(this.original.css("border-left-width"))||0),Y=(parseInt(this.original.css("border-right-width"))||0),T=this.original.height(),X=this.original.width();this._maxY=(S+R-T-W-P)+J+Z+U;this._maxRelY=(S-T-W-P)+Z+U;this._minY=R+J;this._maxX=(Q+L-X-Y-N)-O;+I+K;this._maxRelX=(Q-X-Y-N)+I+K;this._minX=L+M;this._checkContainerRelative()}else{this._maxY=null;this._minY=null;this._maxX=null;this._minX=null}this._dragEvent=(this._opts.onDrag)?D.addListener(this,"drag",this._opts.onDrag,this):null;this._enterEvent=(this._opts.onEnter)?D.addListener(this,"enter",this._opts.onEnter,this):null;this._leaveEvent=(this._opts.onLeave)?D.addListener(this,"leave",this._opts.onLeave,this):null;this._dropEvent=(this._opts.onDrop)?D.addListener(this,"drop",this._opts.onDrop,this):null;this._startX=V.pageX;this._startY=V.pageY;this._startDrag();this._selectBugFixIE=D.addListener(document.documentElement,"selectstart",function(b){return false});this._imageFixIE=D.addListener(document.documentElement,"dragstart",function(b){return false});this._selectBugFixOther=D.addListener(document.documentElement,"mousedown",function(b){return false});this._moveEvent=D.addListener(document.documentElement,"mousemove",this._dragMouse,this);this._upEvent=D.addListener(document.documentElement,"mouseup",this._releaseElement,this);return },_startDrag:function(){this.xStart=this.original.offset().x;this.yStart=this.original.offset().y;if(this.original.css("position").indexOf("relative")<0){this.leftStart=this.original.css("left");this.topStart=this.original.css("top")}else{var J,J,M=glow.dom.create("<p>&nbsp;</p>");M.css("top","0px");M.css("left","0px");M.css("position","absolute");M.insertAfter(this.original);offsetParentXstart=M.offset().x;offsetParentYstart=M.offset().y;M.remove();this.leftStart=this.xStart-offsetParentXstart;this.topStart=this.yStart-offsetParentYstart}if(this._opts.dropTargets){for(var K=0,I=this._opts.dropTargets.length;K<I;K++){D.fire(this._opts.dropTargets[K],"active");this._opts.dropTargets[K].saveLocation()}}this.helper=this.original.clone();this.placeholder=this.original.clone();switch(this._opts.helper){case"ghost":this.helper.css("opacity","0.5");break;case"outline":this.helper.css("border","2px dashed #BBBBBB");this.helper.css("background","none");this.helper.width(this.original.width());this.helper.height(this.original.height());this.helper.html("");break;case"clone":break;default:this.helper=this._opts.helper}this.helper.css("position","absolute");this.helper.css("top",parseInt(this.topStart)+"px");this.helper.css("left",parseInt(this.leftStart)+"px");this.helper.css("z-index",B);B++;this.helper.addClass("helper");this.helper.insertBefore(this.original);this._helperHeight=this.helper.height()+(parseInt(this.helper.css("border-top-width"))||0)+(parseInt(this.helper.css("border-bottom-width"))||0),this._draggedObject=this.helper;switch(this._opts.placeholder){case"ghost":this.placeholder.css("opacity","0.5");break;case"outline":this.placeholder.css("border","2px dashed #BBBBBB");this.placeholder.css("background","none");this.placeholder.width(this.original.width());this.placeholder.css("height",parseInt(this.original.css("width"))+"px");this.placeholder.html("");break;case"none":this.placeholder.css("display","none");break;default:this.placeholder=this._opts.placeholder}this.placeholder.insertBefore(this.original);this.placeholder.css("top",this.topStart);this.placeholder.css("left",this.leftStart);this.placeholder.addClass("placeholder");this.original.css("display","none");this.original.css("position","absolute");this._innerHeight;this._bodyHeight,this._scrollY;if(E){this._scrollY=document.documentElement.scrollTop;this._innerHeight=document.documentElement.clientHeight}else{if(F){this._scrollY=document.body.scrollTop;this._innerHeight=document.body.clientHeight}else{this._scrollY=window.scrollY;this._innerHeight=window.innerHeight}}this._bodyHeight=(C(document).height()<this._innerHeight)?this._innerHeight:C(document).height();var L=D.fire(this,"drag");return },_dragMouse:function(L){var J=L.pageX-this._startX,I=L.pageY-this._startY;if(this._opts.dropTargets){var K=this._testForDropTarget(L.pageX,L.pageY)}this._setPosition(J,I);if(A&&L.nativeEvent.button==0){this._releaseElement(L);return false}return false},_setPosition:function(R,P){var I=parseInt(this.leftStart)+R,Q=parseInt(this.topStart)+P,M=this.xStart+R,J=this.yStart+P,O=M-I,K=J-Q;if(this._opts.container&&!this._isContainerRelative){I=(I<this._maxX)?I:this._maxX;I=(I>this._minX)?I:this._minX;Q=(Q<this._maxY)?Q:this._maxY;Q=(Q>this._minY)?Q:this._minY}else{if(this._opts.container){I=(I<this._maxRelX)?I:this._maxRelX;I=(I>0)?I:0;Q=(Q<this._maxRelY)?Q:this._maxRelY;Q=(Q>0)?Q:0}else{Q=((Q+this._helperHeight)<this._bodyHeight)?Q:(this._bodyHeight-this._helperHeight)}}var N=(J+this._helperHeight)-(this._innerHeight+this._scrollY)+5;var L=J-(this._scrollY+5);if(N>0&&((this._scrollY+N)<this._bodyHeight)){window.scrollBy(0,N)}else{if(L<0&&Q>0){window.scrollBy(0,L)}}if(this._opts.axis!="y"){this.helper.css("left",I+"px")}if(this._opts.axis!="x"){this.helper.css("top",Q+"px")}},_checkContainerRelative:function(){this._isContainerRelative=(this._container.css("position").indexOf("relative")>-1)?true:false},_testForDropTarget:function(O,N){activeTargets=[];var J=false,M=false,V=[],K,U=false,R=parseInt(this.helper.css("left")),L=parseInt(this.helper.css("top")),I=R+this.helper.width(),W=L+this.helper.height();for(var Q=0,T=this._opts.dropTargets.length;Q<T;Q++){var S=this._opts.dropTargets[Q].targetCoordinates;if(this._opts.dropTargets[Q]._opts.tolerance=="contained"){if(R>S.xTop&&I<S.xBase&&L>S.yTop&&W<S.yBase){this._opts.dropTargets[Q].overNow=true}else{this._opts.dropTargets[Q].overNow=false}}else{if(this._opts.dropTargets[Q]._opts.tolerance=="intersect"){if(R>S.xTop&&R<S.xBase&&L>S.yTop&&L<S.yBase){this._opts.dropTargets[Q].overNow=true;V[0]=R;V[1]=L;V[2]=(I<S.xBase)?I:S.xBase;V[3]=(W<S.yBase)?W:S.yBase}else{if(I>S.xTop&&I<S.xBase&&L>S.yTop&&L<S.yBase){this._opts.dropTargets[Q].overNow=true;V[0]=(R>S.xTop)?R:S.xTop;V[1]=L;V[2]=I;V[3]=(W<S.yBase)?W:S.yBase}else{if(R>S.xTop&&R<S.xBase&&W>S.yTop&&W<S.yBase){this._opts.dropTargets[Q].overNow=true;V[0]=R;V[1]=(L>S.yTop)?L:S.yTop;V[2]=(I<S.xBase)?I:S.xBase;V[3]=W}else{if(I>S.xTop&&I<S.xBase&&W>S.yTop&&W<S.yBase){this._opts.dropTargets[Q].overNow=true;V[0]=(R>S.xTop)?R:S.xTop;V[1]=(L>S.yTop)?L:S.yTop;V[2]=I;V[3]=W}else{this._opts.dropTargets[Q].overNow=false;V[0]=0;V[1]=0;V[2]=0;V[3]=0}}}}this._opts.dropTargets[Q].intersectSize=(V[2]-V[0])*(V[3]-V[1])}else{if(O>S.xTop&&O<S.xBase&&N>S.yTop&&N<S.yBase){this._opts.dropTargets[Q].overNow=true}else{this._opts.dropTargets[Q].overNow=false}}}}for(var Q=0,T=this._opts.dropTargets.length;Q<T;Q++){if(this._opts.dropTargets[Q]._opts.tolerance=="intersect"){for(var P=0,T=this._opts.dropTargets.length;P<T;P++){if(Q!=P){if(this._opts.dropTargets[P].intersectSize>0){if(this._opts.dropTargets[P].intersectSize>=this._opts.dropTargets[Q].intersectSize){this._opts.dropTargets[Q].overNow=false}}}}}}for(var Q=0,T=this._opts.dropTargets.length;Q<T;Q++){S=this._opts.dropTargets[Q].targetCoordinates;if(this._opts.dropTargets[Q].overNow==true){U=true;if(S.over==false){S.over=true;D.fire(this._opts.dropTargets[Q],"enter");D.fire(this,"enter")}activeTargets.push(this._opts.dropTargets[Q])}else{if(S.over==true){S.over=false;D.fire(this._opts.dropTargets[Q],"leave");if(!U){D.fire(this,"leave")}}}}if(activeTargets.length>=1){this.isOverTarget=true}else{this.isOverTarget=false}return activeTargets},_releaseElement:function(N){if(this._opts.dropTargets){for(var L=0,J=this._opts.dropTargets.length;L<J;L++){D.fire(this._opts.dropTargets[L],"inactive")}}var K=N.pageX-this._startX,I=N.pageY-this._startY;if(this.isOverTarget==true){this.activeTargets=this._testForDropTarget(N.pageX,N.pageY);for(var L=0;L<activeTargets.length;L++){D.fire(this.activeTargets[L],"drop")}}this._setPosition(K,I);D.removeListener(this._moveEvent);D.removeListener(this._upEvent);D.removeListener(this._selectBugFixIE);D.removeListener(this._selectBugFixOther);if(this._dragEvent){D.removeListener(this._dragEvent)}if(this._enterEvent){D.removeListener(this._enterEvent)}if(this._leaveEvent){D.removeListener(this._leaveEvent)}var M=D.fire(this,"drop");if(!M.defaultPrevented()){this.onDrop()}if(this._dropEvent){D.removeListener(this._dropEvent)}},removeDraggable:function(){D.removeListener(this._dragEvent)},updateOptions:function(I){this._opts=glow.lang.apply(this._opts,I)},stay:function(){this.original.css("top",this.helper.css("top"));this.original.css("left",this.helper.css("left"));this.original.css("z-index",this.helper.css("z-index"));this.original.css("position","absolute");this.original.insertBefore(this.helper);this.endDrag();return },endDrag:function(){if(this.placeholder){this.placeholder.remove()}if(this.helper){this.helper.remove()}this.original.css("display","");return },returnHome:function(I){var J=(I)?I:glow.tweens.linear();var K=glow.anim.css(this.helper,0.5,{"left":{to:this.leftStart},"top":{to:this.topStart}},{tween:J}).start();D.addListener(K,"complete",function(L){this.endDrag();this.original.css("position",this.startPositionStyle)},this);return },onDrop:function(){if(this._opts.onDrop){this._opts.onDrop(this);return }if(this._opts.dropTargets){this.returnHome()}else{this.stay();this.endDrag()}},onDrag:function(){if(this._opts.onDrag){this._opts.onDrag(this);return }return },onEnter:function(){if(this._opts.onEnter){this._opts.onEnter(this);return }return },onLeave:function(){if(this._opts.onLeave){this._opts.onLeave(this);return }return },_initElement:function(I,J){this.original=I,this.helper,this.isOverTarget,this.activeTargets=[],this._clone=I.clone(),this._mouseUp=true;this._opts=J,this._targetCoords=[],this.isOverTarget=false;this._container=(this._opts.container)?C(this._opts.container):null;this._dragEvent=D.addListener(this._opts.handle,"mousedown",function(K){this._startDragMouse(K)},this)}};G.DropTarget=function(I,J){var I=C(I);var J=glow.lang.apply({},J);this._initElement(C(I),J);return this};G.DropTarget.prototype={_initElement:function(J,K){this.original=J;this._opts=K;this._isContainerRelative=null;var I=J.offset();this.targetCoordinates={xTop:I.x,yTop:I.y,xBase:I.x+J.width(),yBase:I.y+J.height(),over:false};this._activeEvent=(this._opts.onActive)?D.addListener(this,"active",this._opts.onActive,this.original):null;this._inactiveEvent=(this._opts.onInactive)?D.addListener(this,"inactive",this._opts.onInactive,this.original):null;this._enterEvent=(this._opts.onEnter)?D.addListener(this,"enter",this._opts.onEnter,this.original):null;this._leaveEvent=(this._opts.onLeave)?D.addListener(this,"leave",this._opts.onLeave,this.original):null;this._dropEvent=(this._opts.onDrop)?D.addListener(this,"drop",this._opts.onDrop,this.original):null},saveLocation:function(){var I=this.original.offset();this.targetCoordinates={xTop:I.x,yTop:I.y,xBase:I.x+this.original.width(),yBase:I.y+this.original.height(),over:false}}};return G}})/*@end @*/