Skip to content
Browse files

Fixing erroneous test case

  • Loading branch information...
1 parent c611d80 commit 595f4652a8efa630545293e33616ef94011f3f8d @jdeff jdeff committed Nov 22, 2012
Showing with 79 additions and 80 deletions.
  1. +79 −79 test/fixtures/precompressed-compiled.js
  2. +0 −1 test/unit/closure_compiler_test.rb
View
158 test/fixtures/precompressed-compiled.js
@@ -12,20 +12,20 @@ j)};k=h?setInterval(e,a):setTimeout(e,a);return{interval:h,cancel:function(){thi
YAHOO.register("yahoo",YAHOO,{version:"2.5.2",build:"1076"});
(function(){var b=YAHOO.util,a,c,d={},f={},e=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;var g=YAHOO.env.ua.opera,h=YAHOO.env.ua.webkit,i=YAHOO.env.ua.ie,j=/(-[a-z])/i,k=/^body|html$/i,n=/^(?:inline|table-row)$/i,m=function(a){if(!j.test(a))return a;if(d[a])return d[a];for(var c=a;j.exec(c);)c=c.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());return d[a]=c},l=function(a){var c=f[a];c||(c=RegExp("(?:^|\\s+)"+a+"(?:\\s+|$)"),f[a]=c);return c};a=e.defaultView&&e.defaultView.getComputedStyle?
function(a,c){var b=null;"float"==c&&(c="cssFloat");var d=a.ownerDocument.defaultView.getComputedStyle(a,"");d&&(b=d[m(c)]);return a.style[c]||b}:e.documentElement.currentStyle&&i?function(a,c){switch(m(c)){case "opacity":var b=100;try{b=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(d){try{b=a.filters("alpha").opacity}catch(e){}}return b/100;case "float":c="styleFloat";default:return b=a.currentStyle?a.currentStyle[c]:null,a.style[c]||b}}:function(a,c){return a.style[c]};c=i?function(a,
-c,b){switch(c){case "opacity":if(YAHOO.lang.isString(a.style.filter)&&(a.style.filter="alpha(opacity="+100*b+")",!a.currentStyle||!a.currentStyle.hasLayout))a.style.zoom=1;break;case "float":c="styleFloat";default:a.style[c]=b}}:function(a,c,b){"float"==c&&(c="cssFloat");a.style[c]=b};var r=function(a,c){return a&&1==a.nodeType&&(!c||c(a))};YAHOO.util.Dom={get:function(a){if(a&&(a.nodeType||a.item))return a;if(YAHOO.lang.isString(a)||!a)return e.getElementById(a);if(void 0!==a.length){for(var c=[],
-d=0,k=a.length;d<k;++d)c[c.length]=b.Dom.get(a[d]);return c}return a},getStyle:function(c,d){d=m(d);return b.Dom.batch(c,function(c){return a(c,d)},b.Dom,!0)},setStyle:function(a,d,e){d=m(d);b.Dom.batch(a,function(a){c(a,d,e)},b.Dom,!0)},getXY:function(a){return b.Dom.batch(a,function(a){return(null===a.parentNode||null===a.offsetParent||"none"==this.getStyle(a,"display"))&&a!=a.ownerDocument.body?!1:p(a)},b.Dom,!0)},getX:function(a){return b.Dom.batch(a,function(a){return b.Dom.getXY(a)[0]},b.Dom,
+c,b){switch(c){case "opacity":if(YAHOO.lang.isString(a.style.filter)&&(a.style.filter="alpha(opacity="+100*b+")",!a.currentStyle||!a.currentStyle.hasLayout))a.style.zoom=1;break;case "float":c="styleFloat";default:a.style[c]=b}}:function(a,c,b){"float"==c&&(c="cssFloat");a.style[c]=b};var s=function(a,c){return a&&1==a.nodeType&&(!c||c(a))};YAHOO.util.Dom={get:function(a){if(a&&(a.nodeType||a.item))return a;if(YAHOO.lang.isString(a)||!a)return e.getElementById(a);if(void 0!==a.length){for(var c=[],
+d=0,k=a.length;d<k;++d)c[c.length]=b.Dom.get(a[d]);return c}return a},getStyle:function(c,d){d=m(d);return b.Dom.batch(c,function(c){return a(c,d)},b.Dom,!0)},setStyle:function(a,d,e){d=m(d);b.Dom.batch(a,function(a){c(a,d,e)},b.Dom,!0)},getXY:function(a){return b.Dom.batch(a,function(a){return(null===a.parentNode||null===a.offsetParent||"none"==this.getStyle(a,"display"))&&a!=a.ownerDocument.body?!1:q(a)},b.Dom,!0)},getX:function(a){return b.Dom.batch(a,function(a){return b.Dom.getXY(a)[0]},b.Dom,
!0)},getY:function(a){return b.Dom.batch(a,function(a){return b.Dom.getXY(a)[1]},b.Dom,!0)},setXY:function(a,c,d){b.Dom.batch(a,function(a){var b=this.getStyle(a,"position");"static"==b&&(this.setStyle(a,"position","relative"),b="relative");var e=this.getXY(a);if(!1===e)return!1;var k=[parseInt(this.getStyle(a,"left"),10),parseInt(this.getStyle(a,"top"),10)];isNaN(k[0])&&(k[0]="relative"==b?0:a.offsetLeft);isNaN(k[1])&&(k[1]="relative"==b?0:a.offsetTop);null!==c[0]&&(a.style.left=c[0]-e[0]+k[0]+"px");
null!==c[1]&&(a.style.top=c[1]-e[1]+k[1]+"px");d||(b=this.getXY(a),(null!==c[0]&&b[0]!=c[0]||null!==c[1]&&b[1]!=c[1])&&this.setXY(a,c,!0))},b.Dom,!0)},setX:function(a,c){b.Dom.setXY(a,[c,null])},setY:function(a,c){b.Dom.setXY(a,[null,c])},getRegion:function(a){return b.Dom.batch(a,function(a){return(null===a.parentNode||null===a.offsetParent||"none"==this.getStyle(a,"display"))&&a!=a.ownerDocument.body?!1:b.Region.getRegion(a)},b.Dom,!0)},getClientWidth:function(){return b.Dom.getViewportWidth()},
getClientHeight:function(){return b.Dom.getViewportHeight()},getElementsByClassName:function(a,c,d,k){c=c||"*";d=d?b.Dom.get(d):e;if(!d)return[];for(var g=[],c=d.getElementsByTagName(c),a=l(a),d=0,f=c.length;d<f;++d)a.test(c[d].className)&&(g[g.length]=c[d],k&&k.call(c[d],c[d]));return g},hasClass:function(a,c){var d=l(c);return b.Dom.batch(a,function(a){return d.test(a.className)},b.Dom,!0)},addClass:function(a,c){return b.Dom.batch(a,function(a){if(this.hasClass(a,c))return!1;a.className=YAHOO.lang.trim([a.className,
c].join(" "));return!0},b.Dom,!0)},removeClass:function(a,c){var d=l(c);return b.Dom.batch(a,function(a){if(!c||!this.hasClass(a,c))return!1;a.className=a.className.replace(d," ");this.hasClass(a,c)&&this.removeClass(a,c);a.className=YAHOO.lang.trim(a.className);return!0},b.Dom,!0)},replaceClass:function(a,c,d){if(!d||c===d)return!1;var e=l(c);return b.Dom.batch(a,function(a){if(!this.hasClass(a,c))return this.addClass(a,d),!0;a.className=a.className.replace(e," "+d+" ");this.hasClass(a,c)&&this.replaceClass(a,
c,d);a.className=YAHOO.lang.trim(a.className);return!0},b.Dom,!0)},generateId:function(a,c){var c=c||"yui-gen",d=function(a){if(a&&a.id)return a.id;var b=c+YAHOO.env._id_counter++;a&&(a.id=b);return b};return b.Dom.batch(a,d,b.Dom,!0)||d.apply(b.Dom,arguments)},isAncestor:function(a,c){a=b.Dom.get(a);c=b.Dom.get(c);return!a||!c?!1:a.contains&&c.nodeType&&!h?a.contains(c):a.compareDocumentPosition&&c.nodeType?!!(a.compareDocumentPosition(c)&16):c.nodeType?!!this.getAncestorBy(c,function(c){return c==
a}):!1},inDocument:function(a){return this.isAncestor(e.documentElement,a)},getElementsBy:function(a,c,d,k){c=c||"*";d=d?b.Dom.get(d):e;if(!d)return[];for(var g=[],c=d.getElementsByTagName(c),d=0,f=c.length;d<f;++d)a(c[d])&&(g[g.length]=c[d],k&&k(c[d]));return g},batch:function(a,c,d,e){a=a&&(a.tagName||a.item)?a:b.Dom.get(a);if(!a||!c)return!1;e=e?d:window;if(a.tagName||void 0===a.length)return c.call(e,a,d);for(var k=[],g=0,f=a.length;g<f;++g)k[k.length]=c.call(e,a[g],d);return k},getDocumentHeight:function(){return Math.max("CSS1Compat"!=
e.compatMode?e.body.scrollHeight:e.documentElement.scrollHeight,b.Dom.getViewportHeight())},getDocumentWidth:function(){return Math.max("CSS1Compat"!=e.compatMode?e.body.scrollWidth:e.documentElement.scrollWidth,b.Dom.getViewportWidth())},getViewportHeight:function(){var a=self.innerHeight,c=e.compatMode;if((c||i)&&!g)a="CSS1Compat"==c?e.documentElement.clientHeight:e.body.clientHeight;return a},getViewportWidth:function(){var a=self.innerWidth,c=e.compatMode;if(c||i)a="CSS1Compat"==c?e.documentElement.clientWidth:
-e.body.clientWidth;return a},getAncestorBy:function(a,c){for(;a=a.parentNode;)if(r(a,c))return a;return null},getAncestorByClassName:function(a,c){a=b.Dom.get(a);return!a?null:b.Dom.getAncestorBy(a,function(a){return b.Dom.hasClass(a,c)})},getAncestorByTagName:function(a,c){a=b.Dom.get(a);return!a?null:b.Dom.getAncestorBy(a,function(a){return a.tagName&&a.tagName.toUpperCase()==c.toUpperCase()})},getPreviousSiblingBy:function(a,c){for(;a;)if(a=a.previousSibling,r(a,c))return a;return null},getPreviousSibling:function(a){a=
-b.Dom.get(a);return!a?null:b.Dom.getPreviousSiblingBy(a)},getNextSiblingBy:function(a,c){for(;a;)if(a=a.nextSibling,r(a,c))return a;return null},getNextSibling:function(a){a=b.Dom.get(a);return!a?null:b.Dom.getNextSiblingBy(a)},getFirstChildBy:function(a,c){return(r(a.firstChild,c)?a.firstChild:null)||b.Dom.getNextSiblingBy(a.firstChild,c)},getFirstChild:function(a){a=b.Dom.get(a);return!a?null:b.Dom.getFirstChildBy(a)},getLastChildBy:function(a,c){return!a?null:(r(a.lastChild,c)?a.lastChild:null)||
+e.body.clientWidth;return a},getAncestorBy:function(a,c){for(;a=a.parentNode;)if(s(a,c))return a;return null},getAncestorByClassName:function(a,c){a=b.Dom.get(a);return!a?null:b.Dom.getAncestorBy(a,function(a){return b.Dom.hasClass(a,c)})},getAncestorByTagName:function(a,c){a=b.Dom.get(a);return!a?null:b.Dom.getAncestorBy(a,function(a){return a.tagName&&a.tagName.toUpperCase()==c.toUpperCase()})},getPreviousSiblingBy:function(a,c){for(;a;)if(a=a.previousSibling,s(a,c))return a;return null},getPreviousSibling:function(a){a=
+b.Dom.get(a);return!a?null:b.Dom.getPreviousSiblingBy(a)},getNextSiblingBy:function(a,c){for(;a;)if(a=a.nextSibling,s(a,c))return a;return null},getNextSibling:function(a){a=b.Dom.get(a);return!a?null:b.Dom.getNextSiblingBy(a)},getFirstChildBy:function(a,c){return(s(a.firstChild,c)?a.firstChild:null)||b.Dom.getNextSiblingBy(a.firstChild,c)},getFirstChild:function(a){a=b.Dom.get(a);return!a?null:b.Dom.getFirstChildBy(a)},getLastChildBy:function(a,c){return!a?null:(s(a.lastChild,c)?a.lastChild:null)||
b.Dom.getPreviousSiblingBy(a.lastChild,c)},getLastChild:function(a){a=b.Dom.get(a);return b.Dom.getLastChildBy(a)},getChildrenBy:function(a,c){var d=b.Dom.getFirstChildBy(a,c),e=d?[d]:[];b.Dom.getNextSiblingBy(d,function(a){if(!c||c(a))e[e.length]=a;return!1});return e},getChildren:function(a){a=b.Dom.get(a);return b.Dom.getChildrenBy(a)},getDocumentScrollLeft:function(a){a=a||e;return Math.max(a.documentElement.scrollLeft,a.body.scrollLeft)},getDocumentScrollTop:function(a){a=a||e;return Math.max(a.documentElement.scrollTop,
-a.body.scrollTop)},insertBefore:function(a,c){a=b.Dom.get(a);c=b.Dom.get(c);return!a||!c||!c.parentNode?null:c.parentNode.insertBefore(a,c)},insertAfter:function(a,c){a=b.Dom.get(a);c=b.Dom.get(c);return!a||!c||!c.parentNode?null:c.nextSibling?c.parentNode.insertBefore(a,c.nextSibling):c.parentNode.appendChild(a)},getClientRegion:function(){var a=b.Dom.getDocumentScrollTop(),c=b.Dom.getDocumentScrollLeft(),d=b.Dom.getViewportWidth()+c,e=b.Dom.getViewportHeight()+a;return new b.Region(a,d,e,c)}};var p;
-p=e.documentElement.getBoundingClientRect?function(a){var c=a.getBoundingClientRect(),a=a.ownerDocument;return[c.left+b.Dom.getDocumentScrollLeft(a),c.top+b.Dom.getDocumentScrollTop(a)]}:function(a){var c=[a.offsetLeft,a.offsetTop],d=a.offsetParent,e=h&&"absolute"==b.Dom.getStyle(a,"position")&&a.offsetParent==a.ownerDocument.body;if(d!=a)for(;d;)c[0]+=d.offsetLeft,c[1]+=d.offsetTop,!e&&(h&&"absolute"==b.Dom.getStyle(d,"position"))&&(e=!0),d=d.offsetParent;e&&(c[0]-=a.ownerDocument.body.offsetLeft,
+a.body.scrollTop)},insertBefore:function(a,c){a=b.Dom.get(a);c=b.Dom.get(c);return!a||!c||!c.parentNode?null:c.parentNode.insertBefore(a,c)},insertAfter:function(a,c){a=b.Dom.get(a);c=b.Dom.get(c);return!a||!c||!c.parentNode?null:c.nextSibling?c.parentNode.insertBefore(a,c.nextSibling):c.parentNode.appendChild(a)},getClientRegion:function(){var a=b.Dom.getDocumentScrollTop(),c=b.Dom.getDocumentScrollLeft(),d=b.Dom.getViewportWidth()+c,e=b.Dom.getViewportHeight()+a;return new b.Region(a,d,e,c)}};var q;
+q=e.documentElement.getBoundingClientRect?function(a){var c=a.getBoundingClientRect(),a=a.ownerDocument;return[c.left+b.Dom.getDocumentScrollLeft(a),c.top+b.Dom.getDocumentScrollTop(a)]}:function(a){var c=[a.offsetLeft,a.offsetTop],d=a.offsetParent,e=h&&"absolute"==b.Dom.getStyle(a,"position")&&a.offsetParent==a.ownerDocument.body;if(d!=a)for(;d;)c[0]+=d.offsetLeft,c[1]+=d.offsetTop,!e&&(h&&"absolute"==b.Dom.getStyle(d,"position"))&&(e=!0),d=d.offsetParent;e&&(c[0]-=a.ownerDocument.body.offsetLeft,
c[1]-=a.ownerDocument.body.offsetTop);for(d=a.parentNode;d.tagName&&!k.test(d.tagName);){if(d.scrollTop||d.scrollLeft)if(!n.test(b.Dom.getStyle(d,"display"))&&(!g||"visible"!==b.Dom.getStyle(d,"overflow")))c[0]-=d.scrollLeft,c[1]-=d.scrollTop;d=d.parentNode}return c}})();YAHOO.util.Region=function(b,a,c,d){this.top=b;this[1]=b;this.right=a;this.bottom=c;this.left=d;this[0]=d};
YAHOO.util.Region.prototype.contains=function(b){return b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom};YAHOO.util.Region.prototype.getArea=function(){return(this.bottom-this.top)*(this.right-this.left)};YAHOO.util.Region.prototype.intersect=function(b){var a=Math.max(this.top,b.top),c=Math.min(this.right,b.right),d=Math.min(this.bottom,b.bottom),b=Math.max(this.left,b.left);return d>=a&&c>=b?new YAHOO.util.Region(a,c,d,b):null};
YAHOO.util.Region.prototype.union=function(b){var a=Math.min(this.top,b.top),c=Math.max(this.right,b.right),d=Math.max(this.bottom,b.bottom),b=Math.min(this.left,b.left);return new YAHOO.util.Region(a,c,d,b)};YAHOO.util.Region.prototype.toString=function(){return"Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}"};
@@ -36,91 +36,91 @@ this.silent)return!0;var a=[].slice.call(arguments,0),c=!0,d,f=this.subscribers.
1;-1<b;b--)this._delete(b);this.subscribers=[];return b},_delete:function(b){var a=this.subscribers[b];a&&(delete a.fn,delete a.obj);this.subscribers.splice(b,1)},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};YAHOO.util.Subscriber=function(b,a,c){this.fn=b;this.obj=YAHOO.lang.isUndefined(a)?null:a;this.override=c};YAHOO.util.Subscriber.prototype.getScope=function(b){return this.override?!0===this.override?this.obj:this.override:b};
YAHOO.util.Subscriber.prototype.contains=function(b,a){return a?this.fn==b&&this.obj==a:this.fn==b};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};
YAHOO.util.Event||(YAHOO.util.Event=function(){var b=!1,a=[],c=[],d=[],f=[],e=0,g=[],h=[],i=0,j={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2E3,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:!1,throwErrors:!1,startInterval:function(){if(!this._interval){var a=this;this._interval=setInterval(function(){a._tryPreloadAttach()},
-this.POLL_INTERVAL)}},onAvailable:function(a,c,b,d,f){for(var a=YAHOO.lang.isString(a)?[a]:a,h=0;h<a.length;h+=1)g.push({id:a[h],fn:c,obj:b,override:d,checkReady:f});e=this.POLL_RETRYS;this.startInterval()},onContentReady:function(a,c,b,d){this.onAvailable(a,c,b,d,!0)},onDOMReady:function(a,c,b){this.DOMReady?setTimeout(function(){var d=window;b&&(d=!0===b?c:b);a.call(d,"DOMReady",[],c)},0):this.DOMReadyEvent.subscribe(a,c,b)},addListener:function(b,e,g,l,i){if(!g||!g.call)return!1;if(this._isValidCollection(b)){for(var p=
-!0,j=0,q=b.length;j<q;++j)p=this.on(b[j],e,g,l,i)&&p;return p}if(YAHOO.lang.isString(b))if(p=this.getEl(b))b=p;else return this.onAvailable(b,function(){YAHOO.util.Event.on(b,e,g,l,i)}),!0;if(!b)return!1;if("unload"==e&&l!==this)return c[c.length]=[b,e,g,l,i],!0;var s=b;i&&(s=!0===i?l:i);p=function(a){return g.call(s,YAHOO.util.Event.getEvent(a,b),l)};j=[b,e,g,p,s,l,i];a[a.length]=j;if(this.useLegacyEvent(b,e)){var o=this.getLegacyIndex(b,e);if(-1==o||b!=d[o][0])o=d.length,h[b.id+e]=o,d[o]=[b,e,b["on"+
-e]],f[o]=[],b["on"+e]=function(a){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(a),o)};f[o].push(j)}else try{this._simpleAdd(b,e,p,!1)}catch(t){return this.lastError=t,this.removeListener(b,e,g),!1}return!0},fireLegacyEvent:function(a,c){var b=!0,e,g,h;e=f[c].slice();for(var i=0,j=e.length;i<j;++i)if((g=e[i])&&g[this.WFN])h=g[this.ADJ_SCOPE],g=g[this.WFN].call(h,a),b=b&&g;if((e=d[c])&&e[2])e[2](a);return b},getLegacyIndex:function(a,c){var b=this.generateId(a)+c;return"undefined"==typeof h[b]?
+this.POLL_INTERVAL)}},onAvailable:function(a,c,b,d,f){for(var a=YAHOO.lang.isString(a)?[a]:a,h=0;h<a.length;h+=1)g.push({id:a[h],fn:c,obj:b,override:d,checkReady:f});e=this.POLL_RETRYS;this.startInterval()},onContentReady:function(a,c,b,d){this.onAvailable(a,c,b,d,!0)},onDOMReady:function(a,c,b){this.DOMReady?setTimeout(function(){var d=window;b&&(d=!0===b?c:b);a.call(d,"DOMReady",[],c)},0):this.DOMReadyEvent.subscribe(a,c,b)},addListener:function(b,e,g,l,i){if(!g||!g.call)return!1;if(this._isValidCollection(b)){for(var q=
+!0,j=0,r=b.length;j<r;++j)q=this.on(b[j],e,g,l,i)&&q;return q}if(YAHOO.lang.isString(b))if(q=this.getEl(b))b=q;else return this.onAvailable(b,function(){YAHOO.util.Event.on(b,e,g,l,i)}),!0;if(!b)return!1;if("unload"==e&&l!==this)return c[c.length]=[b,e,g,l,i],!0;var t=b;i&&(t=!0===i?l:i);q=function(a){return g.call(t,YAHOO.util.Event.getEvent(a,b),l)};j=[b,e,g,q,t,l,i];a[a.length]=j;if(this.useLegacyEvent(b,e)){var p=this.getLegacyIndex(b,e);if(-1==p||b!=d[p][0])p=d.length,h[b.id+e]=p,d[p]=[b,e,b["on"+
+e]],f[p]=[],b["on"+e]=function(a){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(a),p)};f[p].push(j)}else try{this._simpleAdd(b,e,q,!1)}catch(u){return this.lastError=u,this.removeListener(b,e,g),!1}return!0},fireLegacyEvent:function(a,c){var b=!0,e,g,h;e=f[c].slice();for(var i=0,j=e.length;i<j;++i)if((g=e[i])&&g[this.WFN])h=g[this.ADJ_SCOPE],g=g[this.WFN].call(h,a),b=b&&g;if((e=d[c])&&e[2])e[2](a);return b},getLegacyIndex:function(a,c){var b=this.generateId(a)+c;return"undefined"==typeof h[b]?
-1:h[b]},useLegacyEvent:function(a,c){if(this.webkit&&("click"==c||"dblclick"==c)){var b=parseInt(this.webkit,10);if(!isNaN(b)&&418>b)return!0}return!1},removeListener:function(b,d,e,g){var h,i,j;if("string"==typeof b)b=this.getEl(b);else if(this._isValidCollection(b)){g=!0;for(h=b.length-1;-1<h;h--)g=this.removeListener(b[h],d,e)&&g;return g}if(!e||!e.call)return this.purgeElement(b,!1,d);if("unload"==d){for(h=c.length-1;-1<h;h--)if((j=c[h])&&j[0]==b&&j[1]==d&&j[2]==e)return c.splice(h,1),!0;return!1}h=
-null;"undefined"===typeof g&&(g=this._getCacheIndex(b,d,e));0<=g&&(h=a[g]);if(!b||!h)return!1;if(this.useLegacyEvent(b,d)){h=this.getLegacyIndex(b,d);var q=f[h];if(q){h=0;for(i=q.length;h<i;++h)if((j=q[h])&&j[this.EL]==b&&j[this.TYPE]==d&&j[this.FN]==e){q.splice(h,1);break}}}else try{this._simpleRemove(b,d,h[this.WFN],!1)}catch(s){return this.lastError=s,!1}delete a[g][this.WFN];delete a[g][this.FN];a.splice(g,1);return!0},getTarget:function(a){return this.resolveTextNode(a.target||a.srcElement)},
+null;"undefined"===typeof g&&(g=this._getCacheIndex(b,d,e));0<=g&&(h=a[g]);if(!b||!h)return!1;if(this.useLegacyEvent(b,d)){h=this.getLegacyIndex(b,d);var r=f[h];if(r){h=0;for(i=r.length;h<i;++h)if((j=r[h])&&j[this.EL]==b&&j[this.TYPE]==d&&j[this.FN]==e){r.splice(h,1);break}}}else try{this._simpleRemove(b,d,h[this.WFN],!1)}catch(t){return this.lastError=t,!1}delete a[g][this.WFN];delete a[g][this.FN];a.splice(g,1);return!0},getTarget:function(a){return this.resolveTextNode(a.target||a.srcElement)},
resolveTextNode:function(a){try{if(a&&3==a.nodeType)return a.parentNode}catch(c){}return a},getPageX:function(a){var c=a.pageX;!c&&0!==c&&(c=a.clientX||0,this.isIE&&(c+=this._getScrollLeft()));return c},getPageY:function(a){var c=a.pageY;!c&&0!==c&&(c=a.clientY||0,this.isIE&&(c+=this._getScrollTop()));return c},getXY:function(a){return[this.getPageX(a),this.getPageY(a)]},getRelatedTarget:function(a){var c=a.relatedTarget;c||("mouseout"==a.type?c=a.toElement:"mouseover"==a.type&&(c=a.fromElement));
return this.resolveTextNode(c)},getTime:function(a){if(!a.time){var c=(new Date).getTime();try{a.time=c}catch(b){return this.lastError=b,c}}return a.time},stopEvent:function(a){this.stopPropagation(a);this.preventDefault(a)},stopPropagation:function(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0},preventDefault:function(a){a.preventDefault?a.preventDefault():a.returnValue=!1},getEvent:function(a){a=a||window.event;if(!a)for(var c=this.getEvent.caller;c&&!((a=c.arguments[0])&&Event==a.constructor);)c=
c.caller;return a},getCharCode:function(a){a=a.keyCode||a.charCode||0;YAHOO.env.ua.webkit&&a in j&&(a=j[a]);return a},_getCacheIndex:function(c,b,d){for(var e=0,g=a.length;e<g;e+=1){var f=a[e];if(f&&f[this.FN]==d&&f[this.EL]==c&&f[this.TYPE]==b)return e}return-1},generateId:function(a){var c=a.id;c||(c="yuievtautoid-"+i,++i,a.id=c);return c},_isValidCollection:function(a){try{return a&&"string"!==typeof a&&a.length&&!a.tagName&&!a.alert&&"undefined"!==typeof a[0]}catch(c){return!1}},elCache:{},getEl:function(a){return"string"===
typeof a?document.getElementById(a):a},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(){if(!b){b=!0;var a=YAHOO.util.Event;a._ready();a._tryPreloadAttach()}},_ready:function(){var a=YAHOO.util.Event;a.DOMReady||(a.DOMReady=!0,a.DOMReadyEvent.fire(),a._simpleRemove(document,"DOMContentLoaded",a._ready))},_tryPreloadAttach:function(){if(0===g.length)e=0,clearInterval(this._interval),this._interval=null;else if(!this.locked)if(this.isIE&&!this.DOMReady)this.startInterval();
-else{this.locked=!0;var a=!b;a||(a=0<e&&0<g.length);var c=[],d=function(a,c){var b=a;c.override&&(b=!0===c.override?c.obj:c.override);c.fn.call(b,c.obj)},f,h,i,j,q=[];f=0;for(h=g.length;f<h;f+=1)if(i=g[f])if(j=this.getEl(i.id))if(i.checkReady){if(b||j.nextSibling||!a)q.push(i),g[f]=null}else d(j,i),g[f]=null;else c.push(i);f=0;for(h=q.length;f<h;f+=1)i=q[f],d(this.getEl(i.id),i);e--;if(a){for(f=g.length-1;-1<f;f--)i=g[f],(!i||!i.id)&&g.splice(f,1);this.startInterval()}else clearInterval(this._interval),
-this._interval=null;this.locked=!1}},purgeElement:function(a,c,b){var a=YAHOO.lang.isString(a)?this.getEl(a):a,d=this.getListeners(a,b),e;if(d)for(e=d.length-1;-1<e;e--){var g=d[e];this.removeListener(a,g.type,g.fn)}if(c&&a&&a.childNodes){e=0;for(d=a.childNodes.length;e<d;++e)this.purgeElement(a.childNodes[e],c,b)}},getListeners:function(b,d){var e=[],g;g=d?"unload"===d?[c]:[a]:[a,c];for(var f=YAHOO.lang.isString(b)?this.getEl(b):b,h=0;h<g.length;h+=1){var i=g[h];if(i)for(var j=0,s=i.length;j<s;++j){var o=
-i[j];o&&(o[this.EL]===f&&(!d||d===o[this.TYPE]))&&e.push({type:o[this.TYPE],fn:o[this.FN],obj:o[this.OBJ],adjust:o[this.OVERRIDE],scope:o[this.ADJ_SCOPE],index:j})}}return e.length?e:null},_unload:function(b){var e=YAHOO.util.Event,g,f,h,i=c.slice();g=0;for(h=c.length;g<h;++g)if(f=i[g]){var j=window;f[e.ADJ_SCOPE]&&(j=!0===f[e.ADJ_SCOPE]?f[e.UNLOAD_OBJ]:f[e.ADJ_SCOPE]);f[e.FN].call(j,e.getEvent(b,f[e.EL]),f[e.UNLOAD_OBJ]);i[g]=null}c=null;if(a)for(b=a.length-1;-1<b;b--)(f=a[b])&&e.removeListener(f[e.EL],
+else{this.locked=!0;var a=!b;a||(a=0<e&&0<g.length);var c=[],d=function(a,c){var b=a;c.override&&(b=!0===c.override?c.obj:c.override);c.fn.call(b,c.obj)},f,h,i,j,r=[];f=0;for(h=g.length;f<h;f+=1)if(i=g[f])if(j=this.getEl(i.id))if(i.checkReady){if(b||j.nextSibling||!a)r.push(i),g[f]=null}else d(j,i),g[f]=null;else c.push(i);f=0;for(h=r.length;f<h;f+=1)i=r[f],d(this.getEl(i.id),i);e--;if(a){for(f=g.length-1;-1<f;f--)i=g[f],(!i||!i.id)&&g.splice(f,1);this.startInterval()}else clearInterval(this._interval),
+this._interval=null;this.locked=!1}},purgeElement:function(a,c,b){var a=YAHOO.lang.isString(a)?this.getEl(a):a,d=this.getListeners(a,b),e;if(d)for(e=d.length-1;-1<e;e--){var g=d[e];this.removeListener(a,g.type,g.fn)}if(c&&a&&a.childNodes){e=0;for(d=a.childNodes.length;e<d;++e)this.purgeElement(a.childNodes[e],c,b)}},getListeners:function(b,d){var e=[],g;g=d?"unload"===d?[c]:[a]:[a,c];for(var f=YAHOO.lang.isString(b)?this.getEl(b):b,h=0;h<g.length;h+=1){var i=g[h];if(i)for(var j=0,t=i.length;j<t;++j){var p=
+i[j];p&&(p[this.EL]===f&&(!d||d===p[this.TYPE]))&&e.push({type:p[this.TYPE],fn:p[this.FN],obj:p[this.OBJ],adjust:p[this.OVERRIDE],scope:p[this.ADJ_SCOPE],index:j})}}return e.length?e:null},_unload:function(b){var e=YAHOO.util.Event,g,f,h,i=c.slice();g=0;for(h=c.length;g<h;++g)if(f=i[g]){var j=window;f[e.ADJ_SCOPE]&&(j=!0===f[e.ADJ_SCOPE]?f[e.UNLOAD_OBJ]:f[e.ADJ_SCOPE]);f[e.FN].call(j,e.getEvent(b,f[e.EL]),f[e.UNLOAD_OBJ]);i[g]=null}c=null;if(a)for(b=a.length-1;-1<b;b--)(f=a[b])&&e.removeListener(f[e.EL],
f[e.TYPE],f[e.FN],b);d=null;e._simpleRemove(window,"unload",e._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var a=document.documentElement,c=document.body;return a&&(a.scrollTop||a.scrollLeft)?[a.scrollTop,a.scrollLeft]:c?[c.scrollTop,c.scrollLeft]:[0,0]},regCE:function(){},_simpleAdd:window.addEventListener?function(a,c,b,d){a.addEventListener(c,b,d)}:window.attachEvent?function(a,c,b){a.attachEvent("on"+
c,b)}:function(){},_simpleRemove:window.removeEventListener?function(a,c,b,d){a.removeEventListener(c,b,d)}:window.detachEvent?function(a,c,b){a.detachEvent("on"+c,b)}:function(){}}}(),function(){var b=YAHOO.util.Event;b.on=b.addListener;if(b.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,!0);var a=document.createElement("p");b._dri=setInterval(function(){try{a.doScroll("left"),clearInterval(b._dri),b._dri=null,b._ready(),a=null}catch(c){}},b.POLL_INTERVAL)}else b.webkit&&
525>b.webkit?b._dri=setInterval(function(){var a=document.readyState;if("loaded"==a||"complete"==a)clearInterval(b._dri),b._dri=null,b._ready()},b.POLL_INTERVAL):b._simpleAdd(document,"DOMContentLoaded",b._ready);b._simpleAdd(window,"load",b._load);b._simpleAdd(window,"unload",b._unload);b._tryPreloadAttach()}());YAHOO.util.EventProvider=function(){};
-YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(b,a,c,d){this.__yui_events=this.__yui_events||{};var f=this.__yui_events[b];if(f)f.subscribe(a,c,d);else{f=this.__yui_subscribers=this.__yui_subscribers||{};f[b]||(f[b]=[]);f[b].push({fn:a,obj:c,override:d})}},unsubscribe:function(b,a,c){var d=this.__yui_events=this.__yui_events||{};if(b){if(d=d[b])return d.unsubscribe(a,c)}else{var b=true,f;for(f in d)YAHOO.lang.hasOwnProperty(d,f)&&(b=b&&d[f].unsubscribe(a,
-c));return b}return false},unsubscribeAll:function(b){return this.unsubscribe(b)},createEvent:function(b,a){this.__yui_events=this.__yui_events||{};var c=a||{},d=this.__yui_events;if(!d[b]){var f=new YAHOO.util.CustomEvent(b,c.scope||this,c.silent,YAHOO.util.CustomEvent.FLAT);d[b]=f;c.onSubscribeCallback&&f.subscribeEvent.subscribe(c.onSubscribeCallback);this.__yui_subscribers=this.__yui_subscribers||{};if(c=this.__yui_subscribers[b])for(var e=0;e<c.length;++e)f.subscribe(c[e].fn,c[e].obj,c[e].override)}return d[b]},
-fireEvent:function(b,a,c,d){this.__yui_events=this.__yui_events||{};var f=this.__yui_events[b];if(!f)return null;for(var e=[],g=1;g<arguments.length;++g)e.push(arguments[g]);return f.fire.apply(f,e)},hasEvent:function(b){return this.__yui_events&&this.__yui_events[b]?true:false}};
-YAHOO.util.KeyListener=function(b,a,c,d){function f(c){if(!a.shift)a.shift=false;if(!a.alt)a.alt=false;if(!a.ctrl)a.ctrl=false;if(c.shiftKey==a.shift&&c.altKey==a.alt&&c.ctrlKey==a.ctrl){var b;if(a.keys instanceof Array)for(var d=0;d<a.keys.length;d++){b=a.keys[d];if(b==c.charCode){e.fire(c.charCode,c);break}else if(b==c.keyCode){e.fire(c.keyCode,c);break}}else{b=a.keys;b==c.charCode?e.fire(c.charCode,c):b==c.keyCode&&e.fire(c.keyCode,c)}}}if(!d)d=YAHOO.util.KeyListener.KEYDOWN;var e=new YAHOO.util.CustomEvent("keyPressed");
-this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");typeof b=="string"&&(b=document.getElementById(b));typeof c=="function"?e.subscribe(c):e.subscribe(c.fn,c.scope,c.correctScope);this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(b,d,f);this.enabledEvent.fire(a)}this.enabled=true};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(b,d,f);this.disabledEvent.fire(a)}this.enabled=false};this.toString=
-function(){return"KeyListener ["+a.keys+"] "+b.tagName+(b.id?"["+b.id+"]":"")}};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.util.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};YAHOO.register("event",YAHOO.util.Event,{version:"2.5.2",build:"1076"});
+YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(b,a,c,d){this.__yui_events=this.__yui_events||{};var f=this.__yui_events[b];f?f.subscribe(a,c,d):(f=this.__yui_subscribers=this.__yui_subscribers||{},f[b]||(f[b]=[]),f[b].push({fn:a,obj:c,override:d}))},unsubscribe:function(b,a,c){var d=this.__yui_events=this.__yui_events||{};if(b){if(d=d[b])return d.unsubscribe(a,c)}else{var b=!0,f;for(f in d)YAHOO.lang.hasOwnProperty(d,f)&&(b=b&&d[f].unsubscribe(a,c));
+return b}return!1},unsubscribeAll:function(b){return this.unsubscribe(b)},createEvent:function(b,a){this.__yui_events=this.__yui_events||{};var c=a||{},d=this.__yui_events;if(!d[b]){var f=new YAHOO.util.CustomEvent(b,c.scope||this,c.silent,YAHOO.util.CustomEvent.FLAT);d[b]=f;c.onSubscribeCallback&&f.subscribeEvent.subscribe(c.onSubscribeCallback);this.__yui_subscribers=this.__yui_subscribers||{};if(c=this.__yui_subscribers[b])for(var e=0;e<c.length;++e)f.subscribe(c[e].fn,c[e].obj,c[e].override)}return d[b]},
+fireEvent:function(b,a,c,d){this.__yui_events=this.__yui_events||{};var f=this.__yui_events[b];if(!f)return null;for(var e=[],g=1;g<arguments.length;++g)e.push(arguments[g]);return f.fire.apply(f,e)},hasEvent:function(b){return this.__yui_events&&this.__yui_events[b]?!0:!1}};
+YAHOO.util.KeyListener=function(b,a,c,d){function f(c){a.shift||(a.shift=!1);a.alt||(a.alt=!1);a.ctrl||(a.ctrl=!1);if(c.shiftKey==a.shift&&c.altKey==a.alt&&c.ctrlKey==a.ctrl){var b;if(a.keys instanceof Array)for(var d=0;d<a.keys.length;d++)if(b=a.keys[d],b==c.charCode){e.fire(c.charCode,c);break}else{if(b==c.keyCode){e.fire(c.keyCode,c);break}}else b=a.keys,b==c.charCode?e.fire(c.charCode,c):b==c.keyCode&&e.fire(c.keyCode,c)}}d||(d=YAHOO.util.KeyListener.KEYDOWN);var e=new YAHOO.util.CustomEvent("keyPressed");
+this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");"string"==typeof b&&(b=document.getElementById(b));"function"==typeof c?e.subscribe(c):e.subscribe(c.fn,c.scope,c.correctScope);this.enable=function(){this.enabled||(YAHOO.util.Event.addListener(b,d,f),this.enabledEvent.fire(a));this.enabled=!0};this.disable=function(){this.enabled&&(YAHOO.util.Event.removeListener(b,d,f),this.disabledEvent.fire(a));this.enabled=!1};this.toString=function(){return"KeyListener ["+
+a.keys+"] "+b.tagName+(b.id?"["+b.id+"]":"")}};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.util.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};YAHOO.register("event",YAHOO.util.Event,{version:"2.5.2",build:"1076"});
YAHOO.register("yahoo-dom-event",YAHOO,{version:"2.5.2",build:"1076"});
-YAHOO.util.DragDropMgr||(YAHOO.util.DragDropMgr=function(){var b=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(a,c){for(var b in this.ids)for(var f in this.ids[b]){var e=this.ids[b][f];this.isTypeOfDD(e)&&e[a].apply(e,c)}},_onLoad:function(){this.init();b.on(document,
-"mouseup",this.handleMouseUp,this,true);b.on(document,"mousemove",this.handleMouseMove,this,true);b.on(window,"unload",this._onUnload,this,true);b.on(window,"resize",this._onResize,this,true)},_onResize:function(){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1E3,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,
-regDragDrop:function(a,c){this.initialized||this.init();this.ids[c]||(this.ids[c]={});this.ids[c][a.id]=a},removeDDFromGroup:function(a,c){this.ids[c]||(this.ids[c]={});var b=this.ids[c];b&&b[a.id]&&delete b[a.id]},_remove:function(a){for(var c in a.groups)c&&this.ids[c][a.id]&&delete this.ids[c][a.id];delete this.handleIds[a.id]},regHandle:function(a,c){this.handleIds[a]||(this.handleIds[a]={});this.handleIds[a][c]=c},isDragDrop:function(a){return this.getDDById(a)?true:false},getRelated:function(a,
-c){var b=[],f;for(f in a.groups)for(var e in this.ids[f]){var g=this.ids[f][e];if(this.isTypeOfDD(g)&&(!c||g.isTarget))b[b.length]=g}return b},isLegalTarget:function(a,c){for(var b=this.getRelated(a,true),f=0,e=b.length;f<e;++f)if(b[f].id==c.id)return true;return false},isTypeOfDD:function(a){return a&&a.__ygDragDrop},isHandle:function(a,c){return this.handleIds[a]&&this.handleIds[a][c]},getDDById:function(a){for(var c in this.ids)if(this.ids[c][a])return this.ids[c][a];return null},handleMouseDown:function(a,
-c){this.currentTarget=YAHOO.util.Event.getTarget(a);this.dragCurrent=c;var b=c.getEl();this.startX=YAHOO.util.Event.getPageX(a);this.startY=YAHOO.util.Event.getPageY(a);this.deltaX=this.startX-b.offsetLeft;this.deltaY=this.startY-b.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var a=YAHOO.util.DDM;a.startDrag(a.startX,a.startY);a.fromTimeout=true},this.clickTimeThresh)},startDrag:function(a,c){clearTimeout(this.clickTimeout);var b=this.dragCurrent;if(b&&b.events.b4StartDrag){b.b4StartDrag(a,
-c);b.fireEvent("b4StartDragEvent",{x:a,y:c})}if(b&&b.events.startDrag){b.startDrag(a,c);b.fireEvent("startDragEvent",{x:a,y:c})}this.dragThreshMet=true},handleMouseUp:function(a){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(a)}this.fromTimeout=false;this.fireEvents(a,true)}this.stopDrag(a);this.stopEvent(a)}},stopEvent:function(a){this.stopPropagation&&YAHOO.util.Event.stopPropagation(a);this.preventDefault&&
-YAHOO.util.Event.preventDefault(a)},stopDrag:function(a,c){var b=this.dragCurrent;if(b&&!c){if(this.dragThreshMet){if(b.events.b4EndDrag){b.b4EndDrag(a);b.fireEvent("b4EndDragEvent",{e:a})}if(b.events.endDrag){b.endDrag(a);b.fireEvent("endDragEvent",{e:a})}}if(b.events.mouseUp){b.onMouseUp(a);b.fireEvent("mouseUpEvent",{e:a})}}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(a){var c=this.dragCurrent;if(c){if(YAHOO.util.Event.isIE&&!a.button){this.stopEvent(a);return this.handleMouseUp(a)}if(!this.dragThreshMet){var b=
-Math.abs(this.startX-YAHOO.util.Event.getPageX(a)),f=Math.abs(this.startY-YAHOO.util.Event.getPageY(a));(b>this.clickPixelThresh||f>this.clickPixelThresh)&&this.startDrag(this.startX,this.startY)}if(this.dragThreshMet){if(c&&c.events.b4Drag){c.b4Drag(a);c.fireEvent("b4DragEvent",{e:a})}if(c&&c.events.drag){c.onDrag(a);c.fireEvent("dragEvent",{e:a})}c&&this.fireEvents(a,false)}this.stopEvent(a)}},fireEvents:function(a,c){var b=this.dragCurrent;if(b&&!b.isLocked()&&!b.dragOnly){var f=YAHOO.util.Event.getPageX(a),
-e=YAHOO.util.Event.getPageY(a),g=new YAHOO.util.Point(f,e),e=b.getTargetCoord(g.x,g.y),h=b.getDragEl(),f=["out","over","drop","enter"],i=new YAHOO.util.Region(e.y,e.x+h.offsetWidth,e.y+h.offsetHeight,e.x),j=[],k={},e=[],h={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]},n;for(n in this.dragOvers){var m=this.dragOvers[n];if(this.isTypeOfDD(m)){this.isOverTarget(g,m,this.mode,i)||h.outEvts.push(m);j[n]=true;delete this.dragOvers[n]}}for(var l in b.groups)if("string"==typeof l)for(n in this.ids[l]){m=
-this.ids[l][n];if(this.isTypeOfDD(m)&&m.isTarget&&(!m.isLocked()&&m!=b)&&this.isOverTarget(g,m,this.mode,i)){k[l]=true;if(c)h.dropEvts.push(m);else{j[m.id]?h.overEvts.push(m):h.enterEvts.push(m);this.dragOvers[m.id]=m}}}this.interactionInfo={out:h.outEvts,enter:h.enterEvts,over:h.overEvts,drop:h.dropEvts,point:g,draggedRegion:i,sourceRegion:this.locationCache[b.id],validDrop:c};for(var r in k)e.push(r);if(c&&!h.dropEvts.length){this.interactionInfo.validDrop=false;if(b.events.invalidDrop){b.onInvalidDrop(a);
-b.fireEvent("invalidDropEvent",{e:a})}}for(n=0;n<f.length;n++){l=null;h[f[n]+"Evts"]&&(l=h[f[n]+"Evts"]);if(l&&l.length){j=f[n].charAt(0).toUpperCase()+f[n].substr(1);r="onDrag"+j;g="b4Drag"+j;i="drag"+j+"Event";j="drag"+j;if(this.mode){if(b.events[g]){b[g](a,l,e);b.fireEvent(g+"Event",{event:a,info:l,group:e})}if(b.events[j]){b[r](a,l,e);b.fireEvent(i,{event:a,info:l,group:e})}}else{k=0;for(m=l.length;k<m;++k){if(b.events[g]){b[g](a,l[k].id,e[0]);b.fireEvent(g+"Event",{event:a,info:l[k].id,group:e[0]})}if(b.events[j]){b[r](a,
-l[k].id,e[0]);b.fireEvent(i,{event:a,info:l[k].id,group:e[0]})}}}}}}},getBestMatch:function(a){var c=null,b=a.length;if(b==1)c=a[0];else for(var f=0;f<b;++f){var e=a[f];if(this.mode==this.INTERSECT&&e.cursorIsOver){c=e;break}else if(!c||!c.overlap||e.overlap&&c.overlap.getArea()<e.overlap.getArea())c=e}return c},refreshCache:function(a){var a=a||this.ids,c;for(c in a)if("string"==typeof c)for(var b in this.ids[c]){a=this.ids[c][b];if(this.isTypeOfDD(a)){var f=this.getLocation(a);f?this.locationCache[a.id]=
-f:delete this.locationCache[a.id]}}},verifyEl:function(a){try{if(a&&a.offsetParent)return true}catch(c){}return false},getLocation:function(a){if(!this.isTypeOfDD(a))return null;var c=a.getEl(),b,f,e;try{b=YAHOO.util.Dom.getXY(c)}catch(g){}if(!b)return null;f=b[0];e=f+c.offsetWidth;b=b[1];return new YAHOO.util.Region(b-a.padding[0],e+a.padding[1],b+c.offsetHeight+a.padding[2],f-a.padding[3])},isOverTarget:function(a,c,b,f){var e=this.locationCache[c.id];if(!e||!this.useCache){e=this.getLocation(c);
-this.locationCache[c.id]=e}if(!e)return false;c.cursorIsOver=e.contains(a);var g=this.dragCurrent;if(!g||!b&&!g.constrainX&&!g.constrainY)return c.cursorIsOver;c.overlap=null;if(!f){a=g.getTargetCoord(a.x,a.y);g=g.getDragEl();f=new YAHOO.util.Region(a.y,a.x+g.offsetWidth,a.y+g.offsetHeight,a.x)}if(e=f.intersect(e)){c.overlap=e;return b?true:c.cursorIsOver}return false},_onUnload:function(){this.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",
-[]);this.ids={}},elementCache:{},getElWrapper:function(a){var c=this.elementCache[a];if(!c||!c.el)c=this.elementCache[a]=new this.ElementWrapper(YAHOO.util.Dom.get(a));return c},getElement:function(a){return YAHOO.util.Dom.get(a)},getCss:function(a){return(a=YAHOO.util.Dom.get(a))?a.style:null},ElementWrapper:function(a){this.id=(this.el=a||null)&&a.id;this.css=this.el&&a.style},getPosX:function(a){return YAHOO.util.Dom.getX(a)},getPosY:function(a){return YAHOO.util.Dom.getY(a)},swapNode:function(a,
-c){if(a.swapNode)a.swapNode(c);else{var b=c.parentNode,f=c.nextSibling;if(f==a)b.insertBefore(a,c);else if(c==a.nextSibling)b.insertBefore(c,a);else{a.parentNode.replaceChild(c,a);b.insertBefore(a,f)}}},getScroll:function(){var a,c,b=document.documentElement,f=document.body;if(b&&(b.scrollTop||b.scrollLeft)){a=b.scrollTop;c=b.scrollLeft}else if(f){a=f.scrollTop;c=f.scrollLeft}return{top:a,left:c}},getStyle:function(a,c){return YAHOO.util.Dom.getStyle(a,c)},getScrollTop:function(){return this.getScroll().top},
-getScrollLeft:function(){return this.getScroll().left},moveToEl:function(a,c){var b=YAHOO.util.Dom.getXY(c);YAHOO.util.Dom.setXY(a,b)},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight()},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth()},numericSort:function(a,c){return a-c},_timeoutCount:0,_addListeners:function(){var a=YAHOO.util.DDM;if(YAHOO.util.Event&&document)a._onLoad();else if(!(a._timeoutCount>2E3)){setTimeout(a._addListeners,10);if(document&&document.body)a._timeoutCount=
-a._timeoutCount+1}},handleWasClicked:function(a,c){if(this.isHandle(c,a.id))return true;for(var b=a.parentNode;b;){if(this.isHandle(c,b.id))return true;b=b.parentNode}return false}}}(),YAHOO.util.DDM=YAHOO.util.DragDropMgr,YAHOO.util.DDM._addListeners());
-(function(){var b=YAHOO.util.Event,a=YAHOO.util.Dom;YAHOO.util.DragDrop=function(a,b,f){a&&this.init(a,b,f)};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments)},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},unlock:function(){this.locked=false},isTarget:true,padding:null,dragOnly:false,_domRef:null,
-__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(){},startDrag:function(){},b4Drag:function(){},onDrag:function(){},onDragEnter:function(){},b4DragOver:function(){},onDragOver:function(){},b4DragOut:function(){},onDragOut:function(){},b4DragDrop:function(){},onDragDrop:function(){},onInvalidDrop:function(){},
-b4EndDrag:function(){},endDrag:function(){},b4MouseDown:function(){},onMouseDown:function(){},onMouseUp:function(){},onAvailable:function(){},getEl:function(){if(!this._domRef)this._domRef=a.get(this.id);return this._domRef},getDragEl:function(){return a.get(this.dragElId)},init:function(a,d,f){this.initTarget(a,d,f);b.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var e in this.events)this.createEvent(e+"Event")},initTarget:function(c,d,f){this.config=f||{};this.events=
-{};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof c!=="string"){this._domRef=c;c=a.generateId(c)}this.id=c;this.addToGroup(d?d:"default");this.handleElId=c;b.onAvailable(c,this.handleOnAvailable,this,true);this.setDragElId(c);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig()},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,
-b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events)for(var a in this.config.events)this.config.events[a]===false&&(this.events[a]=false);this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==false;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==false;this.dragOnly=this.config.dragOnly===true?true:false},handleOnAvailable:function(){this.available=
-true;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,f,e){this.padding=!b&&0!==b?[a,a,a,a]:!f&&0!==f?[a,b,a,b]:[a,b,f,e]},setInitPosition:function(c,b){var f=this.getEl();if(this.DDM.verifyEl(f)){var e=c||0,g=b||0,f=a.getXY(f);this.initPageX=f[0]-e;this.initPageY=f[1]-g;this.lastPageX=f[0];this.lastPageY=f[1];this.setStartPosition(f)}},setStartPosition:function(c){c=c||a.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=c[0];this.startPageY=c[1]},addToGroup:function(a){this.groups[a]=
-true;this.DDM.regDragDrop(this,a)},removeFromGroup:function(a){this.groups[a]&&delete this.groups[a];this.DDM.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(c){typeof c!=="string"&&(c=a.generateId(c));this.handleElId=c;this.DDM.regHandle(this.id,c)},setOuterHandleElId:function(c){typeof c!=="string"&&(c=a.generateId(c));b.on(c,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(c);this.hasOuterHandles=true},unreg:function(){b.removeListener(this.id,
-"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},isLocked:function(){return this.DDM.isLocked()||this.locked},handleMouseDown:function(a){var d=a.which||a.button;if(!(this.primaryButtonOnly&&d>1)&&!this.isLocked()){d=this.b4MouseDown(a);this.events.b4MouseDown&&(d=this.fireEvent("b4MouseDownEvent",a));var f=this.onMouseDown(a);this.events.mouseDown&&(f=this.fireEvent("mouseDownEvent",a));if(!(d===false||f===false)){this.DDM.refreshCache(this.groups);d=new YAHOO.util.Point(b.getPageX(a),
-b.getPageY(a));if((this.hasOuterHandles||this.DDM.isOverTarget(d,this))&&this.clickValidator(a)){this.setStartPosition();this.DDM.handleMouseDown(a,this);this.DDM.stopEvent(a)}}}},clickValidator:function(a){a=YAHOO.util.Event.getTarget(a);return this.isValidHandleChild(a)&&(this.id==this.handleElId||this.DDM.handleWasClicked(a,this.id))},getTargetCoord:function(a,b){var f=a-this.deltaX,e=b-this.deltaY;if(this.constrainX){if(f<this.minX)f=this.minX;if(f>this.maxX)f=this.maxX}if(this.constrainY){if(e<
-this.minY)e=this.minY;if(e>this.maxY)e=this.maxY}f=this.getTick(f,this.xTicks);e=this.getTick(e,this.yTicks);return{x:f,y:e}},addInvalidHandleType:function(a){a=a.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(c){typeof c!=="string"&&(c=a.generateId(c));this.invalidHandleIds[c]=c},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){a=a.toUpperCase();delete this.invalidHandleTypes[a]},removeInvalidHandleId:function(c){typeof c!==
-"string"&&(c=a.generateId(c));delete this.invalidHandleIds[c]},removeInvalidHandleClass:function(a){for(var b=0,f=this.invalidHandleClasses.length;b<f;++b)this.invalidHandleClasses[b]==a&&delete this.invalidHandleClasses[b]},isValidHandleChild:function(c){var b=true,f;try{f=c.nodeName.toUpperCase()}catch(e){f=c.nodeName}b=(b=b&&!this.invalidHandleTypes[f])&&!this.invalidHandleIds[c.id];f=0;for(var g=this.invalidHandleClasses.length;b&&f<g;++f)b=!a.hasClass(c,this.invalidHandleClasses[f]);return b},
-setXTicks:function(a,b){this.xTicks=[];this.xTickSize=b;for(var f={},e=this.initPageX;e>=this.minX;e=e-b)if(!f[e]){this.xTicks[this.xTicks.length]=e;f[e]=true}for(e=this.initPageX;e<=this.maxX;e=e+b)if(!f[e]){this.xTicks[this.xTicks.length]=e;f[e]=true}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(a,b){this.yTicks=[];this.yTickSize=b;for(var f={},e=this.initPageY;e>=this.minY;e=e-b)if(!f[e]){this.yTicks[this.yTicks.length]=e;f[e]=true}for(e=this.initPageY;e<=this.maxY;e=e+b)if(!f[e]){this.yTicks[this.yTicks.length]=
-e;f[e]=true}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(a,b,f){this.leftConstraint=parseInt(a,10);this.rightConstraint=parseInt(b,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;f&&this.setXTicks(this.initPageX,f);this.constrainX=true},clearConstraints:function(){this.constrainY=this.constrainX=false;this.clearTicks()},clearTicks:function(){this.yTicks=this.xTicks=null;this.yTickSize=this.xTickSize=0},setYConstraint:function(a,b,f){this.topConstraint=
-parseInt(a,10);this.bottomConstraint=parseInt(b,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;f&&this.setYTicks(this.initPageY,f);this.constrainY=true},resetConstraints:function(){this.initPageX||this.initPageX===0?this.setInitPosition(this.maintainOffset?this.lastPageX-this.initPageX:0,this.maintainOffset?this.lastPageY-this.initPageY:0):this.setInitPosition();this.constrainX&&this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);
-this.constrainY&&this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)},getTick:function(a,b){if(b){if(b[0]>=a)return b[0];for(var f=0,e=b.length;f<e;++f){var g=f+1;if(b[g]&&b[g]>=a)return b[g]-a>a-b[f]?b[f]:b[g]}return b[b.length-1]}return a},toString:function(){return"DragDrop "+this.id}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider)})();YAHOO.util.DD=function(b,a,c){b&&this.init(b,a,c)};
-YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:!0,autoOffset:function(b,a){this.setDelta(b-this.startPageX,a-this.startPageY)},setDelta:function(b,a){this.deltaX=b;this.deltaY=a},setDragElPos:function(b,a){var c=this.getDragEl();this.alignElWithMouse(c,b,a)},alignElWithMouse:function(b,a,c){var d=this.getTargetCoord(a,c);if(this.deltaSetXY){YAHOO.util.Dom.setStyle(b,"left",d.x+this.deltaSetXY[0]+"px");YAHOO.util.Dom.setStyle(b,"top",d.y+this.deltaSetXY[1]+"px")}else{YAHOO.util.Dom.setXY(b,
-[d.x,d.y]);a=parseInt(YAHOO.util.Dom.getStyle(b,"left"),10);c=parseInt(YAHOO.util.Dom.getStyle(b,"top"),10);this.deltaSetXY=[a-d.x,c-d.y]}this.cachePosition(d.x,d.y);var f=this;setTimeout(function(){f.autoScroll.call(f,d.x,d.y,b.offsetHeight,b.offsetWidth)},0)},cachePosition:function(b,a){if(b){this.lastPageX=b;this.lastPageY=a}else{var c=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=c[0];this.lastPageY=c[1]}},autoScroll:function(b,a,c,d){if(this.scroll){var f=this.DDM.getClientHeight(),e=this.DDM.getClientWidth(),
-g=this.DDM.getScrollTop(),h=this.DDM.getScrollLeft(),d=d+b,i=f+g-a-this.deltaY,j=e+h-b-this.deltaX,k=document.all?80:30;c+a>f&&i<40&&window.scrollTo(h,g+k);a<g&&(g>0&&a-g<40)&&window.scrollTo(h,g-k);d>e&&j<40&&window.scrollTo(h+k,g);b<h&&(h>0&&b-h<40)&&window.scrollTo(h-k,g)}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=this.config.scroll!==false},b4MouseDown:function(b){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(b),YAHOO.util.Event.getPageY(b))},
-b4Drag:function(b){this.setDragElPos(YAHOO.util.Event.getPageX(b),YAHOO.util.Event.getPageY(b))},toString:function(){return"DD "+this.id}});YAHOO.util.DDProxy=function(b,a,c){if(b){this.init(b,a,c);this.initFrame()}};YAHOO.util.DDProxy.dragElId="ygddfdiv";
+YAHOO.util.DragDropMgr||(YAHOO.util.DragDropMgr=function(){var b=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,interactionInfo:null,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(a,c){for(var b in this.ids)for(var f in this.ids[b]){var e=this.ids[b][f];this.isTypeOfDD(e)&&e[a].apply(e,c)}},_onLoad:function(){this.init();b.on(document,"mouseup",
+this.handleMouseUp,this,!0);b.on(document,"mousemove",this.handleMouseMove,this,!0);b.on(window,"unload",this._onUnload,this,!0);b.on(window,"resize",this._onResize,this,!0)},_onResize:function(){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:3,clickTimeThresh:1E3,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,fromTimeout:!1,regDragDrop:function(a,
+c){this.initialized||this.init();this.ids[c]||(this.ids[c]={});this.ids[c][a.id]=a},removeDDFromGroup:function(a,c){this.ids[c]||(this.ids[c]={});var b=this.ids[c];b&&b[a.id]&&delete b[a.id]},_remove:function(a){for(var c in a.groups)c&&this.ids[c][a.id]&&delete this.ids[c][a.id];delete this.handleIds[a.id]},regHandle:function(a,c){this.handleIds[a]||(this.handleIds[a]={});this.handleIds[a][c]=c},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(a,c){var b=[],f;for(f in a.groups)for(var e in this.ids[f]){var g=
+this.ids[f][e];if(this.isTypeOfDD(g)&&(!c||g.isTarget))b[b.length]=g}return b},isLegalTarget:function(a,c){for(var b=this.getRelated(a,!0),f=0,e=b.length;f<e;++f)if(b[f].id==c.id)return!0;return!1},isTypeOfDD:function(a){return a&&a.__ygDragDrop},isHandle:function(a,c){return this.handleIds[a]&&this.handleIds[a][c]},getDDById:function(a){for(var c in this.ids)if(this.ids[c][a])return this.ids[c][a];return null},handleMouseDown:function(a,c){this.currentTarget=YAHOO.util.Event.getTarget(a);this.dragCurrent=
+c;var b=c.getEl();this.startX=YAHOO.util.Event.getPageX(a);this.startY=YAHOO.util.Event.getPageY(a);this.deltaX=this.startX-b.offsetLeft;this.deltaY=this.startY-b.offsetTop;this.dragThreshMet=!1;this.clickTimeout=setTimeout(function(){var a=YAHOO.util.DDM;a.startDrag(a.startX,a.startY);a.fromTimeout=!0},this.clickTimeThresh)},startDrag:function(a,c){clearTimeout(this.clickTimeout);var b=this.dragCurrent;b&&b.events.b4StartDrag&&(b.b4StartDrag(a,c),b.fireEvent("b4StartDragEvent",{x:a,y:c}));b&&b.events.startDrag&&
+(b.startDrag(a,c),b.fireEvent("startDragEvent",{x:a,y:c}));this.dragThreshMet=!0},handleMouseUp:function(a){this.dragCurrent&&(clearTimeout(this.clickTimeout),this.dragThreshMet&&(this.fromTimeout&&(this.fromTimeout=!1,this.handleMouseMove(a)),this.fromTimeout=!1,this.fireEvents(a,!0)),this.stopDrag(a),this.stopEvent(a))},stopEvent:function(a){this.stopPropagation&&YAHOO.util.Event.stopPropagation(a);this.preventDefault&&YAHOO.util.Event.preventDefault(a)},stopDrag:function(a,c){var b=this.dragCurrent;
+b&&!c&&(this.dragThreshMet&&(b.events.b4EndDrag&&(b.b4EndDrag(a),b.fireEvent("b4EndDragEvent",{e:a})),b.events.endDrag&&(b.endDrag(a),b.fireEvent("endDragEvent",{e:a}))),b.events.mouseUp&&(b.onMouseUp(a),b.fireEvent("mouseUpEvent",{e:a})));this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(a){var c=this.dragCurrent;if(c){if(YAHOO.util.Event.isIE&&!a.button)return this.stopEvent(a),this.handleMouseUp(a);if(!this.dragThreshMet){var b=Math.abs(this.startX-YAHOO.util.Event.getPageX(a)),
+f=Math.abs(this.startY-YAHOO.util.Event.getPageY(a));(b>this.clickPixelThresh||f>this.clickPixelThresh)&&this.startDrag(this.startX,this.startY)}this.dragThreshMet&&(c&&c.events.b4Drag&&(c.b4Drag(a),c.fireEvent("b4DragEvent",{e:a})),c&&c.events.drag&&(c.onDrag(a),c.fireEvent("dragEvent",{e:a})),c&&this.fireEvents(a,!1));this.stopEvent(a)}},fireEvents:function(a,c){var b=this.dragCurrent;if(b&&!b.isLocked()&&!b.dragOnly){var f=YAHOO.util.Event.getPageX(a),e=YAHOO.util.Event.getPageY(a),g=new YAHOO.util.Point(f,
+e),e=b.getTargetCoord(g.x,g.y),h=b.getDragEl(),f=["out","over","drop","enter"],i=new YAHOO.util.Region(e.y,e.x+h.offsetWidth,e.y+h.offsetHeight,e.x),j=[],k={},e=[],h={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]},n;for(n in this.dragOvers){var m=this.dragOvers[n];this.isTypeOfDD(m)&&(this.isOverTarget(g,m,this.mode,i)||h.outEvts.push(m),j[n]=!0,delete this.dragOvers[n])}for(var l in b.groups)if("string"==typeof l)for(n in this.ids[l])m=this.ids[l][n],this.isTypeOfDD(m)&&(m.isTarget&&(!m.isLocked()&&
+m!=b)&&this.isOverTarget(g,m,this.mode,i))&&(k[l]=!0,c?h.dropEvts.push(m):(j[m.id]?h.overEvts.push(m):h.enterEvts.push(m),this.dragOvers[m.id]=m));this.interactionInfo={out:h.outEvts,enter:h.enterEvts,over:h.overEvts,drop:h.dropEvts,point:g,draggedRegion:i,sourceRegion:this.locationCache[b.id],validDrop:c};for(var s in k)e.push(s);c&&!h.dropEvts.length&&(this.interactionInfo.validDrop=!1,b.events.invalidDrop&&(b.onInvalidDrop(a),b.fireEvent("invalidDropEvent",{e:a})));for(n=0;n<f.length;n++)if(l=
+null,h[f[n]+"Evts"]&&(l=h[f[n]+"Evts"]),l&&l.length)if(j=f[n].charAt(0).toUpperCase()+f[n].substr(1),s="onDrag"+j,g="b4Drag"+j,i="drag"+j+"Event",j="drag"+j,this.mode)b.events[g]&&(b[g](a,l,e),b.fireEvent(g+"Event",{event:a,info:l,group:e})),b.events[j]&&(b[s](a,l,e),b.fireEvent(i,{event:a,info:l,group:e}));else{k=0;for(m=l.length;k<m;++k)b.events[g]&&(b[g](a,l[k].id,e[0]),b.fireEvent(g+"Event",{event:a,info:l[k].id,group:e[0]})),b.events[j]&&(b[s](a,l[k].id,e[0]),b.fireEvent(i,{event:a,info:l[k].id,
+group:e[0]}))}}},getBestMatch:function(a){var c=null,b=a.length;if(1==b)c=a[0];else for(var f=0;f<b;++f){var e=a[f];if(this.mode==this.INTERSECT&&e.cursorIsOver){c=e;break}else if(!c||!c.overlap||e.overlap&&c.overlap.getArea()<e.overlap.getArea())c=e}return c},refreshCache:function(a){var a=a||this.ids,c;for(c in a)if("string"==typeof c)for(var b in this.ids[c])if(a=this.ids[c][b],this.isTypeOfDD(a)){var f=this.getLocation(a);f?this.locationCache[a.id]=f:delete this.locationCache[a.id]}},verifyEl:function(a){try{if(a&&
+a.offsetParent)return!0}catch(c){}return!1},getLocation:function(a){if(!this.isTypeOfDD(a))return null;var c=a.getEl(),b,f,e;try{b=YAHOO.util.Dom.getXY(c)}catch(g){}if(!b)return null;f=b[0];e=f+c.offsetWidth;b=b[1];return new YAHOO.util.Region(b-a.padding[0],e+a.padding[1],b+c.offsetHeight+a.padding[2],f-a.padding[3])},isOverTarget:function(a,c,b,f){var e=this.locationCache[c.id];if(!e||!this.useCache)e=this.getLocation(c),this.locationCache[c.id]=e;if(!e)return!1;c.cursorIsOver=e.contains(a);var g=
+this.dragCurrent;if(!g||!b&&!g.constrainX&&!g.constrainY)return c.cursorIsOver;c.overlap=null;f||(a=g.getTargetCoord(a.x,a.y),g=g.getDragEl(),f=new YAHOO.util.Region(a.y,a.x+g.offsetWidth,a.y+g.offsetHeight,a.x));return(e=f.intersect(e))?(c.overlap=e,b?!0:c.cursorIsOver):!1},_onUnload:function(){this.unregAll()},unregAll:function(){this.dragCurrent&&(this.stopDrag(),this.dragCurrent=null);this._execOnAll("unreg",[]);this.ids={}},elementCache:{},getElWrapper:function(a){var c=this.elementCache[a];
+if(!c||!c.el)c=this.elementCache[a]=new this.ElementWrapper(YAHOO.util.Dom.get(a));return c},getElement:function(a){return YAHOO.util.Dom.get(a)},getCss:function(a){return(a=YAHOO.util.Dom.get(a))?a.style:null},ElementWrapper:function(a){this.id=(this.el=a||null)&&a.id;this.css=this.el&&a.style},getPosX:function(a){return YAHOO.util.Dom.getX(a)},getPosY:function(a){return YAHOO.util.Dom.getY(a)},swapNode:function(a,c){if(a.swapNode)a.swapNode(c);else{var b=c.parentNode,f=c.nextSibling;f==a?b.insertBefore(a,
+c):c==a.nextSibling?b.insertBefore(c,a):(a.parentNode.replaceChild(c,a),b.insertBefore(a,f))}},getScroll:function(){var a,c,b=document.documentElement,f=document.body;b&&(b.scrollTop||b.scrollLeft)?(a=b.scrollTop,c=b.scrollLeft):f&&(a=f.scrollTop,c=f.scrollLeft);return{top:a,left:c}},getStyle:function(a,c){return YAHOO.util.Dom.getStyle(a,c)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(a,c){var b=YAHOO.util.Dom.getXY(c);
+YAHOO.util.Dom.setXY(a,b)},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight()},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth()},numericSort:function(a,c){return a-c},_timeoutCount:0,_addListeners:function(){var a=YAHOO.util.DDM;YAHOO.util.Event&&document?a._onLoad():2E3<a._timeoutCount||(setTimeout(a._addListeners,10),document&&document.body&&(a._timeoutCount+=1))},handleWasClicked:function(a,c){if(this.isHandle(c,a.id))return!0;for(var b=a.parentNode;b;){if(this.isHandle(c,
+b.id))return!0;b=b.parentNode}return!1}}}(),YAHOO.util.DDM=YAHOO.util.DragDropMgr,YAHOO.util.DDM._addListeners());
+(function(){var b=YAHOO.util.Event,a=YAHOO.util.Dom;YAHOO.util.DragDrop=function(a,b,f){a&&this.init(a,b,f)};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments)},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isTarget:!0,padding:null,dragOnly:!1,_domRef:null,__ygDragDrop:!0,
+constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,cursorIsOver:!1,overlap:null,b4StartDrag:function(){},startDrag:function(){},b4Drag:function(){},onDrag:function(){},onDragEnter:function(){},b4DragOver:function(){},onDragOver:function(){},b4DragOut:function(){},onDragOut:function(){},b4DragDrop:function(){},onDragDrop:function(){},onInvalidDrop:function(){},b4EndDrag:function(){},
+endDrag:function(){},b4MouseDown:function(){},onMouseDown:function(){},onMouseUp:function(){},onAvailable:function(){},getEl:function(){this._domRef||(this._domRef=a.get(this.id));return this._domRef},getDragEl:function(){return a.get(this.dragElId)},init:function(a,d,f){this.initTarget(a,d,f);b.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,!0);for(var e in this.events)this.createEvent(e+"Event")},initTarget:function(c,d,f){this.config=f||{};this.events={};this.DDM=YAHOO.util.DDM;
+this.groups={};"string"!==typeof c&&(this._domRef=c,c=a.generateId(c));this.id=c;this.addToGroup(d?d:"default");this.handleElId=c;b.onAvailable(c,this.handleOnAvailable,this,!0);this.setDragElId(c);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig()},applyConfig:function(){this.events={mouseDown:!0,b4MouseDown:!0,mouseUp:!0,b4StartDrag:!0,startDrag:!0,b4EndDrag:!0,endDrag:!0,drag:!0,b4Drag:!0,invalidDrop:!0,b4DragOut:!0,dragOut:!0,dragEnter:!0,
+b4DragOver:!0,dragOver:!0,b4DragDrop:!0,dragDrop:!0};if(this.config.events)for(var a in this.config.events)!1===this.config.events[a]&&(this.events[a]=!1);this.padding=this.config.padding||[0,0,0,0];this.isTarget=!1!==this.config.isTarget;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=!1!==this.config.primaryButtonOnly;this.dragOnly=!0===this.config.dragOnly?!0:!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,
+b,f,e){this.padding=!b&&0!==b?[a,a,a,a]:!f&&0!==f?[a,b,a,b]:[a,b,f,e]},setInitPosition:function(c,b){var f=this.getEl();if(this.DDM.verifyEl(f)){var e=c||0,g=b||0,f=a.getXY(f);this.initPageX=f[0]-e;this.initPageY=f[1]-g;this.lastPageX=f[0];this.lastPageY=f[1];this.setStartPosition(f)}},setStartPosition:function(c){c=c||a.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=c[0];this.startPageY=c[1]},addToGroup:function(a){this.groups[a]=!0;this.DDM.regDragDrop(this,a)},removeFromGroup:function(a){this.groups[a]&&
+delete this.groups[a];this.DDM.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(c){"string"!==typeof c&&(c=a.generateId(c));this.handleElId=c;this.DDM.regHandle(this.id,c)},setOuterHandleElId:function(c){"string"!==typeof c&&(c=a.generateId(c));b.on(c,"mousedown",this.handleMouseDown,this,!0);this.setHandleElId(c);this.hasOuterHandles=!0},unreg:function(){b.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},
+isLocked:function(){return this.DDM.isLocked()||this.locked},handleMouseDown:function(a){var d=a.which||a.button;if(!(this.primaryButtonOnly&&1<d)&&!this.isLocked()){d=this.b4MouseDown(a);this.events.b4MouseDown&&(d=this.fireEvent("b4MouseDownEvent",a));var f=this.onMouseDown(a);this.events.mouseDown&&(f=this.fireEvent("mouseDownEvent",a));if(!(!1===d||!1===f))if(this.DDM.refreshCache(this.groups),d=new YAHOO.util.Point(b.getPageX(a),b.getPageY(a)),(this.hasOuterHandles||this.DDM.isOverTarget(d,this))&&
+this.clickValidator(a))this.setStartPosition(),this.DDM.handleMouseDown(a,this),this.DDM.stopEvent(a)}},clickValidator:function(a){a=YAHOO.util.Event.getTarget(a);return this.isValidHandleChild(a)&&(this.id==this.handleElId||this.DDM.handleWasClicked(a,this.id))},getTargetCoord:function(a,b){var f=a-this.deltaX,e=b-this.deltaY;this.constrainX&&(f<this.minX&&(f=this.minX),f>this.maxX&&(f=this.maxX));this.constrainY&&(e<this.minY&&(e=this.minY),e>this.maxY&&(e=this.maxY));f=this.getTick(f,this.xTicks);
+e=this.getTick(e,this.yTicks);return{x:f,y:e}},addInvalidHandleType:function(a){a=a.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(c){"string"!==typeof c&&(c=a.generateId(c));this.invalidHandleIds[c]=c},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){a=a.toUpperCase();delete this.invalidHandleTypes[a]},removeInvalidHandleId:function(c){"string"!==typeof c&&(c=a.generateId(c));delete this.invalidHandleIds[c]},removeInvalidHandleClass:function(a){for(var b=
+0,f=this.invalidHandleClasses.length;b<f;++b)this.invalidHandleClasses[b]==a&&delete this.invalidHandleClasses[b]},isValidHandleChild:function(c){var b=!0,f;try{f=c.nodeName.toUpperCase()}catch(e){f=c.nodeName}b=(b=b&&!this.invalidHandleTypes[f])&&!this.invalidHandleIds[c.id];f=0;for(var g=this.invalidHandleClasses.length;b&&f<g;++f)b=!a.hasClass(c,this.invalidHandleClasses[f]);return b},setXTicks:function(a,b){this.xTicks=[];this.xTickSize=b;for(var f={},e=this.initPageX;e>=this.minX;e-=b)f[e]||
+(this.xTicks[this.xTicks.length]=e,f[e]=!0);for(e=this.initPageX;e<=this.maxX;e+=b)f[e]||(this.xTicks[this.xTicks.length]=e,f[e]=!0);this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(a,b){this.yTicks=[];this.yTickSize=b;for(var f={},e=this.initPageY;e>=this.minY;e-=b)f[e]||(this.yTicks[this.yTicks.length]=e,f[e]=!0);for(e=this.initPageY;e<=this.maxY;e+=b)f[e]||(this.yTicks[this.yTicks.length]=e,f[e]=!0);this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(a,b,f){this.leftConstraint=
+parseInt(a,10);this.rightConstraint=parseInt(b,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;f&&this.setXTicks(this.initPageX,f);this.constrainX=!0},clearConstraints:function(){this.constrainY=this.constrainX=!1;this.clearTicks()},clearTicks:function(){this.yTicks=this.xTicks=null;this.yTickSize=this.xTickSize=0},setYConstraint:function(a,b,f){this.topConstraint=parseInt(a,10);this.bottomConstraint=parseInt(b,10);this.minY=this.initPageY-this.topConstraint;
+this.maxY=this.initPageY+this.bottomConstraint;f&&this.setYTicks(this.initPageY,f);this.constrainY=!0},resetConstraints:function(){this.initPageX||0===this.initPageX?this.setInitPosition(this.maintainOffset?this.lastPageX-this.initPageX:0,this.maintainOffset?this.lastPageY-this.initPageY:0):this.setInitPosition();this.constrainX&&this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);this.constrainY&&this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)},
+getTick:function(a,b){if(b){if(b[0]>=a)return b[0];for(var f=0,e=b.length;f<e;++f){var g=f+1;if(b[g]&&b[g]>=a)return b[g]-a>a-b[f]?b[f]:b[g]}return b[b.length-1]}return a},toString:function(){return"DragDrop "+this.id}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider)})();YAHOO.util.DD=function(b,a,c){b&&this.init(b,a,c)};
+YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:!0,autoOffset:function(b,a){this.setDelta(b-this.startPageX,a-this.startPageY)},setDelta:function(b,a){this.deltaX=b;this.deltaY=a},setDragElPos:function(b,a){var c=this.getDragEl();this.alignElWithMouse(c,b,a)},alignElWithMouse:function(b,a,c){var d=this.getTargetCoord(a,c);this.deltaSetXY?(YAHOO.util.Dom.setStyle(b,"left",d.x+this.deltaSetXY[0]+"px"),YAHOO.util.Dom.setStyle(b,"top",d.y+this.deltaSetXY[1]+"px")):(YAHOO.util.Dom.setXY(b,[d.x,
+d.y]),a=parseInt(YAHOO.util.Dom.getStyle(b,"left"),10),c=parseInt(YAHOO.util.Dom.getStyle(b,"top"),10),this.deltaSetXY=[a-d.x,c-d.y]);this.cachePosition(d.x,d.y);var f=this;setTimeout(function(){f.autoScroll.call(f,d.x,d.y,b.offsetHeight,b.offsetWidth)},0)},cachePosition:function(b,a){if(b)this.lastPageX=b,this.lastPageY=a;else{var c=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=c[0];this.lastPageY=c[1]}},autoScroll:function(b,a,c,d){if(this.scroll){var f=this.DDM.getClientHeight(),e=this.DDM.getClientWidth(),
+g=this.DDM.getScrollTop(),h=this.DDM.getScrollLeft(),d=d+b,i=f+g-a-this.deltaY,j=e+h-b-this.deltaX,k=document.all?80:30;c+a>f&&40>i&&window.scrollTo(h,g+k);a<g&&(0<g&&40>a-g)&&window.scrollTo(h,g-k);d>e&&40>j&&window.scrollTo(h+k,g);b<h&&(0<h&&40>b-h)&&window.scrollTo(h-k,g)}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=!1!==this.config.scroll},b4MouseDown:function(b){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(b),YAHOO.util.Event.getPageY(b))},
+b4Drag:function(b){this.setDragElPos(YAHOO.util.Event.getPageX(b),YAHOO.util.Event.getPageY(b))},toString:function(){return"DD "+this.id}});YAHOO.util.DDProxy=function(b,a,c){b&&(this.init(b,a,c),this.initFrame())};YAHOO.util.DDProxy.dragElId="ygddfdiv";
YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:!0,centerFrame:!1,createFrame:function(){var b=this,a=document.body;if(!a||!a.firstChild)setTimeout(function(){b.createFrame()},50);else{var c=this.getDragEl(),d=YAHOO.util.Dom;if(!c){c=document.createElement("div");c.id=this.dragElId;var f=c.style;f.position="absolute";f.visibility="hidden";f.cursor="move";f.border="2px solid #aaa";f.zIndex=999;f.height="25px";f.width="25px";f=document.createElement("div");d.setStyle(f,"height","100%");d.setStyle(f,
-"width","100%");d.setStyle(f,"background-color","#ccc");d.setStyle(f,"opacity","0");c.appendChild(f);if(YAHOO.env.ua.ie){f=document.createElement("iframe");f.setAttribute("src","javascript:");f.setAttribute("scrolling","no");f.setAttribute("frameborder","0");c.insertBefore(f,c.firstChild);d.setStyle(f,"height","100%");d.setStyle(f,"width","100%");d.setStyle(f,"position","absolute");d.setStyle(f,"top","0");d.setStyle(f,"left","0");d.setStyle(f,"opacity","0");d.setStyle(f,"zIndex","-1");d.setStyle(f.nextSibling,
-"zIndex","2")}a.insertBefore(c,a.firstChild)}}},initFrame:function(){this.createFrame()},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==false;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId)},showFrame:function(b,a){this.getEl();var c=this.getDragEl(),d=c.style;this._resizeProxy();this.centerFrame&&this.setDelta(Math.round(parseInt(d.width,10)/2),Math.round(parseInt(d.height,
+"width","100%");d.setStyle(f,"background-color","#ccc");d.setStyle(f,"opacity","0");c.appendChild(f);YAHOO.env.ua.ie&&(f=document.createElement("iframe"),f.setAttribute("src","javascript:"),f.setAttribute("scrolling","no"),f.setAttribute("frameborder","0"),c.insertBefore(f,c.firstChild),d.setStyle(f,"height","100%"),d.setStyle(f,"width","100%"),d.setStyle(f,"position","absolute"),d.setStyle(f,"top","0"),d.setStyle(f,"left","0"),d.setStyle(f,"opacity","0"),d.setStyle(f,"zIndex","-1"),d.setStyle(f.nextSibling,
+"zIndex","2"));a.insertBefore(c,a.firstChild)}}},initFrame:function(){this.createFrame()},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=!1!==this.config.resizeFrame;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId)},showFrame:function(b,a){this.getEl();var c=this.getDragEl(),d=c.style;this._resizeProxy();this.centerFrame&&this.setDelta(Math.round(parseInt(d.width,10)/2),Math.round(parseInt(d.height,
10)/2));this.setDragElPos(b,a);YAHOO.util.Dom.setStyle(c,"visibility","visible")},_resizeProxy:function(){if(this.resizeFrame){var b=YAHOO.util.Dom,a=this.getEl(),c=this.getDragEl(),d=parseInt(b.getStyle(c,"borderTopWidth"),10),f=parseInt(b.getStyle(c,"borderRightWidth"),10),e=parseInt(b.getStyle(c,"borderBottomWidth"),10),g=parseInt(b.getStyle(c,"borderLeftWidth"),10);isNaN(d)&&(d=0);isNaN(f)&&(f=0);isNaN(e)&&(e=0);isNaN(g)&&(g=0);f=Math.max(0,a.offsetWidth-f-g);a=Math.max(0,a.offsetHeight-d-e);
b.setStyle(c,"width",f+"px");b.setStyle(c,"height",a+"px")}},b4MouseDown:function(b){this.setStartPosition();var a=YAHOO.util.Event.getPageX(b),b=YAHOO.util.Event.getPageY(b);this.autoOffset(a,b)},b4StartDrag:function(b,a){this.showFrame(b,a)},b4EndDrag:function(){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden")},endDrag:function(){var b=YAHOO.util.Dom,a=this.getEl(),c=this.getDragEl();b.setStyle(c,"visibility","");b.setStyle(a,"visibility","hidden");YAHOO.util.DDM.moveToEl(a,c);b.setStyle(c,
-"visibility","hidden");b.setStyle(a,"visibility","")},toString:function(){return"DDProxy "+this.id}});YAHOO.util.DDTarget=function(b,a,c){b&&this.initTarget(b,a,c)};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return"DDTarget "+this.id}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.5.2",build:"1076"});YAHOO.util.Attribute=function(b,a){if(a){this.owner=a;this.configure(b,true)}};
-YAHOO.util.Attribute.prototype={name:void 0,value:null,owner:null,readOnly:!1,writeOnce:!1,_initialConfig:null,_written:!1,method:null,validator:null,getValue:function(){return this.value},setValue:function(b,a){var c,d=this.owner,f=this.name,e={type:f,prevValue:this.getValue(),newValue:b};if(this.readOnly||this.writeOnce&&this._written||this.validator&&!this.validator.call(d,b))return false;if(!a){c=d.fireBeforeChangeEvent(e);if(c===false)return false}this.method&&this.method.call(d,b);this.value=
-b;this._written=true;e.type=f;a||this.owner.fireChangeEvent(e);return true},configure:function(b,a){b=b||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var c in b)if(c&&YAHOO.lang.hasOwnProperty(b,c)){this[c]=b[c];a&&(this._initialConfig[c]=b[c])}},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig)},refresh:function(b){this.setValue(this.value,b)}};
-(function(){var b=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(a){this._configs=this._configs||{};a=this._configs[a];return!a?void 0:a.value},set:function(a,b,d){this._configs=this._configs||{};a=this._configs[a];return!a?false:a.setValue(b,d)},getAttributeKeys:function(){this._configs=this._configs;var a=[],c,d;for(d in this._configs){c=this._configs[d];b.hasOwnProperty(this._configs,d)&&!b.isUndefined(c)&&(a[a.length]=
-d)}return a},setAttributes:function(a,c){for(var d in a)b.hasOwnProperty(a,d)&&this.set(d,a[d],c)},resetValue:function(a,b){this._configs=this._configs||{};if(this._configs[a]){this.set(a,this._configs[a]._initialConfig.value,b);return true}return false},refresh:function(a,c){this._configs=this._configs;for(var a=(b.isString(a)?[a]:a)||this.getAttributeKeys(),d=0,f=a.length;d<f;++d)this._configs[a[d]]&&(!b.isUndefined(this._configs[a[d]].value)&&!b.isNull(this._configs[a[d]].value))&&this._configs[a[d]].refresh(c)},
-register:function(a,b){this.setAttributeConfig(a,b)},getAttributeConfig:function(a){this._configs=this._configs||{};var c=this._configs[a]||{},d={};for(a in c)b.hasOwnProperty(c,a)&&(d[a]=c[a]);return d},setAttributeConfig:function(a,b,d){this._configs=this._configs||{};b=b||{};if(this._configs[a])this._configs[a].configure(b,d);else{b.name=a;this._configs[a]=this.createAttribute(b)}},configureAttribute:function(a,b,d){this.setAttributeConfig(a,b,d)},resetAttributeConfig:function(a){this._configs=
-this._configs||{};this._configs[a].resetConfig()},subscribe:function(a,b){this._events=this._events||{};a in this._events||(this._events[a]=this.createEvent(a));YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.subscribe.apply(this,arguments)},addListener:function(){this.subscribe.apply(this,arguments)},fireBeforeChangeEvent:function(a){var b;b="before"+(a.type.charAt(0).toUpperCase()+a.type.substr(1)+"Change");a.type=b;return this.fireEvent(a.type,a)},fireChangeEvent:function(a){a.type=
-a.type+"Change";return this.fireEvent(a.type,a)},createAttribute:function(a){return new YAHOO.util.Attribute(a,this)}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider)})();
+"visibility","hidden");b.setStyle(a,"visibility","")},toString:function(){return"DDProxy "+this.id}});YAHOO.util.DDTarget=function(b,a,c){b&&this.initTarget(b,a,c)};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return"DDTarget "+this.id}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.5.2",build:"1076"});YAHOO.util.Attribute=function(b,a){a&&(this.owner=a,this.configure(b,!0))};
+YAHOO.util.Attribute.prototype={name:void 0,value:null,owner:null,readOnly:!1,writeOnce:!1,_initialConfig:null,_written:!1,method:null,validator:null,getValue:function(){return this.value},setValue:function(b,a){var c,d=this.owner,f=this.name,e={type:f,prevValue:this.getValue(),newValue:b};if(this.readOnly||this.writeOnce&&this._written||this.validator&&!this.validator.call(d,b)||!a&&(c=d.fireBeforeChangeEvent(e),!1===c))return!1;this.method&&this.method.call(d,b);this.value=b;this._written=!0;e.type=
+f;a||this.owner.fireChangeEvent(e);return!0},configure:function(b,a){b=b||{};this._written=!1;this._initialConfig=this._initialConfig||{};for(var c in b)c&&YAHOO.lang.hasOwnProperty(b,c)&&(this[c]=b[c],a&&(this._initialConfig[c]=b[c]))},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig)},refresh:function(b){this.setValue(this.value,b)}};
+(function(){var b=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(a){this._configs=this._configs||{};a=this._configs[a];return!a?void 0:a.value},set:function(a,b,d){this._configs=this._configs||{};a=this._configs[a];return!a?!1:a.setValue(b,d)},getAttributeKeys:function(){this._configs=this._configs;var a=[],c,d;for(d in this._configs)c=this._configs[d],b.hasOwnProperty(this._configs,d)&&!b.isUndefined(c)&&(a[a.length]=d);
+return a},setAttributes:function(a,c){for(var d in a)b.hasOwnProperty(a,d)&&this.set(d,a[d],c)},resetValue:function(a,b){this._configs=this._configs||{};return this._configs[a]?(this.set(a,this._configs[a]._initialConfig.value,b),!0):!1},refresh:function(a,c){this._configs=this._configs;for(var a=(b.isString(a)?[a]:a)||this.getAttributeKeys(),d=0,f=a.length;d<f;++d)this._configs[a[d]]&&(!b.isUndefined(this._configs[a[d]].value)&&!b.isNull(this._configs[a[d]].value))&&this._configs[a[d]].refresh(c)},
+register:function(a,b){this.setAttributeConfig(a,b)},getAttributeConfig:function(a){this._configs=this._configs||{};var c=this._configs[a]||{},d={};for(a in c)b.hasOwnProperty(c,a)&&(d[a]=c[a]);return d},setAttributeConfig:function(a,b,d){this._configs=this._configs||{};b=b||{};this._configs[a]?this._configs[a].configure(b,d):(b.name=a,this._configs[a]=this.createAttribute(b))},configureAttribute:function(a,b,d){this.setAttributeConfig(a,b,d)},resetAttributeConfig:function(a){this._configs=this._configs||
+{};this._configs[a].resetConfig()},subscribe:function(a,b){this._events=this._events||{};a in this._events||(this._events[a]=this.createEvent(a));YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.subscribe.apply(this,arguments)},addListener:function(){this.subscribe.apply(this,arguments)},fireBeforeChangeEvent:function(a){var b;b="before"+(a.type.charAt(0).toUpperCase()+a.type.substr(1)+"Change");a.type=b;return this.fireEvent(a.type,a)},fireChangeEvent:function(a){a.type+=
+"Change";return this.fireEvent(a.type,a)},createAttribute:function(a){return new YAHOO.util.Attribute(a,this)}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider)})();
(function(){var b=YAHOO.util.Dom,a=YAHOO.util.AttributeProvider;YAHOO.util.Element=function(a,b){arguments.length&&this.init(a,b)};YAHOO.util.Element.prototype={DOM_EVENTS:null,appendChild:function(a){a=a.get?a.get("element"):a;this.get("element").appendChild(a)},getElementsByTagName:function(a){return this.get("element").getElementsByTagName(a)},hasChildNodes:function(){return this.get("element").hasChildNodes()},insertBefore:function(a,b){a=a.get?a.get("element"):a;b=b&&b.get?b.get("element"):b;
-this.get("element").insertBefore(a,b)},removeChild:function(a){a=a.get?a.get("element"):a;this.get("element").removeChild(a);return true},replaceChild:function(a,b){a=a.get?a.get("element"):a;b=b.get?b.get("element"):b;return this.get("element").replaceChild(a,b)},initAttributes:function(){},addListener:function(a,b,c,d){var f=this.get("element"),d=d||this,f=this.get("id")||f,k=this;if(!this._events[a]){this.DOM_EVENTS[a]&&YAHOO.util.Event.addListener(f,a,function(b){if(b.srcElement&&!b.target)b.target=
-b.srcElement;k.fireEvent(a,b)},c,d);this.createEvent(a,this)}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.addListener.apply(this,arguments)},subscribe:function(){this.addListener.apply(this,arguments)},removeListener:function(a,b){this.unsubscribe.apply(this,arguments)},addClass:function(a){b.addClass(this.get("element"),a)},getElementsByClassName:function(a,c){return b.getElementsByClassName(a,c,this.get("element"))},hasClass:function(a){return b.hasClass(this.get("element"),
+this.get("element").insertBefore(a,b)},removeChild:function(a){a=a.get?a.get("element"):a;this.get("element").removeChild(a);return!0},replaceChild:function(a,b){a=a.get?a.get("element"):a;b=b.get?b.get("element"):b;return this.get("element").replaceChild(a,b)},initAttributes:function(){},addListener:function(a,b,c,d){var f=this.get("element"),d=d||this,f=this.get("id")||f,k=this;this._events[a]||(this.DOM_EVENTS[a]&&YAHOO.util.Event.addListener(f,a,function(b){b.srcElement&&!b.target&&(b.target=
+b.srcElement);k.fireEvent(a,b)},c,d),this.createEvent(a,this));YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.addListener.apply(this,arguments)},subscribe:function(){this.addListener.apply(this,arguments)},removeListener:function(a,b){this.unsubscribe.apply(this,arguments)},addClass:function(a){b.addClass(this.get("element"),a)},getElementsByClassName:function(a,c){return b.getElementsByClassName(a,c,this.get("element"))},hasClass:function(a){return b.hasClass(this.get("element"),
a)},removeClass:function(a){return b.removeClass(this.get("element"),a)},replaceClass:function(a,c){return b.replaceClass(this.get("element"),a,c)},setStyle:function(a,c){var d=this.get("element");return!d?this._queue[this._queue.length]=["setStyle",arguments]:b.setStyle(d,a,c)},getStyle:function(a){return b.getStyle(this.get("element"),a)},fireQueue:function(){for(var a=this._queue,b=0,c=a.length;b<c;++b)this[a[b][0]].apply(this,a[b][1])},appendTo:function(a,c){a=a.get?a.get("element"):b.get(a);
-this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:a});var c=c&&c.get?c.get("element"):b.get(c),d=this.get("element");if(!d||!a)return false;d.parent!=a&&(c?a.insertBefore(d,c):a.appendChild(d));this.fireEvent("appendTo",{type:"appendTo",target:a})},get:function(b){var c=this._configs||{},d=c.element;return d&&!c[b]&&!YAHOO.lang.isUndefined(d.value[b])?d.value[b]:a.prototype.get.call(this,b)},setAttributes:function(a,b){var c=this.get("element"),d;for(d in a)!this._configs[d]&&!YAHOO.lang.isUndefined(c[d])&&
-this.setAttributeConfig(d);c=0;for(d=this._configOrder.length;c<d;++c)a[this._configOrder[c]]!==void 0&&this.set(this._configOrder[c],a[this._configOrder[c]],b)},set:function(b,c,d){var i=this.get("element");if(i){!this._configs[b]&&!YAHOO.lang.isUndefined(i[b])&&f.call(this,b);return a.prototype.set.apply(this,arguments)}this._queue[this._queue.length]=["set",arguments];if(this._configs[b])this._configs[b].value=c},setAttributeConfig:function(b,c,d){var i=this.get("element");i&&!this._configs[b]&&
-!YAHOO.lang.isUndefined(i[b])?f.call(this,b,c):a.prototype.setAttributeConfig.apply(this,arguments);this._configOrder.push(b)},getAttributeKeys:function(){var b=this.get("element"),c=a.prototype.getAttributeKeys.call(this),d;for(d in b)this._configs[d]||(c[d]=c[d]||b[d]);return c},createEvent:function(b,c){this._events[b]=true;a.prototype.createEvent.apply(this,arguments)},init:function(a,b){c.apply(this,arguments)}};var c=function(a,c){this._queue=this._queue||[];this._events=this._events||{};this._configs=
-this._configs||{};this._configOrder=[];c=c||{};c.element=c.element||a||null;this.DOM_EVENTS={click:true,dblclick:true,keydown:true,keypress:true,keyup:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,focus:true,blur:true,submit:true};var h=false;YAHOO.lang.isString(a)&&f.call(this,"id",{value:c.element});if(b.get(a)){h=true;d.call(this,c);var i=c;this.initAttributes(i);this.setAttributes(i,true);this.fireQueue()}YAHOO.util.Event.onAvailable(c.element,function(){h||d.call(this,
-c);this.fireEvent("available",{type:"available",target:c.element})},this,true);YAHOO.util.Event.onContentReady(c.element,function(){if(!h){var a=c;this.initAttributes(a);this.setAttributes(a,true);this.fireQueue()}this.fireEvent("contentReady",{type:"contentReady",target:c.element})},this,true)},d=function(a){this.setAttributeConfig("element",{value:b.get(a.element),readOnly:true})},f=function(a,b){var c=this.get("element"),b=b||{};b.name=a;b.method=b.method||function(b){c[a]=b};b.value=b.value||
-c[a];this._configs[a]=new YAHOO.util.Attribute(b,this)};YAHOO.augment(YAHOO.util.Element,a)})();YAHOO.register("element",YAHOO.util.Element,{version:"2.5.2",build:"1076"});
-YAHOO.util.DataSource=function(b,a){if(b){this.liveData=b;this._oQueue={interval:null,conn:null,requests:[]};if(b.nodeType&&b.nodeType==9)this.dataType=YAHOO.util.DataSource.TYPE_XML;else if(YAHOO.lang.isArray(b))this.dataType=YAHOO.util.DataSource.TYPE_JSARRAY;else if(YAHOO.lang.isString(b))this.dataType=YAHOO.util.DataSource.TYPE_XHR;else if(YAHOO.lang.isFunction(b))this.dataType=YAHOO.util.DataSource.TYPE_JSFUNCTION;else if(b.nodeName&&b.nodeName.toLowerCase()=="table"){this.dataType=YAHOO.util.DataSource.TYPE_HTMLTABLE;
-this.liveData=b.cloneNode(true)}else this.dataType=YAHOO.lang.isObject(b)?YAHOO.util.DataSource.TYPE_JSON:YAHOO.util.DataSource.TYPE_UNKNOWN;if(a&&a.constructor==Object)for(var c in a)c&&(this[c]=a[c]);YAHOO.lang.isNumber(this.maxCacheEntries);this._aIntervals=[];this._sName="DataSource instance"+YAHOO.util.DataSource._nIndex;YAHOO.util.DataSource._nIndex++;this.createEvent("cacheRequestEvent");this.createEvent("cacheResponseEvent");this.createEvent("requestEvent");this.createEvent("responseEvent");
-this.createEvent("responseParseEvent");this.createEvent("responseCacheEvent");this.createEvent("dataErrorEvent");this.createEvent("cacheFlushEvent")}};YAHOO.augment(YAHOO.util.DataSource,YAHOO.util.EventProvider);YAHOO.util.DataSource.TYPE_UNKNOWN=-1;YAHOO.util.DataSource.TYPE_JSARRAY=0;YAHOO.util.DataSource.TYPE_JSFUNCTION=1;YAHOO.util.DataSource.TYPE_XHR=2;YAHOO.util.DataSource.TYPE_JSON=3;YAHOO.util.DataSource.TYPE_XML=4;YAHOO.util.DataSource.TYPE_TEXT=5;YAHOO.util.DataSource.TYPE_HTMLTABLE=6;
+this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:a});var c=c&&c.get?c.get("element"):b.get(c),d=this.get("element");if(!d||!a)return!1;d.parent!=a&&(c?a.insertBefore(d,c):a.appendChild(d));this.fireEvent("appendTo",{type:"appendTo",target:a})},get:function(b){var c=this._configs||{},d=c.element;return d&&!c[b]&&!YAHOO.lang.isUndefined(d.value[b])?d.value[b]:a.prototype.get.call(this,b)},setAttributes:function(a,b){var c=this.get("element"),d;for(d in a)!this._configs[d]&&!YAHOO.lang.isUndefined(c[d])&&
+this.setAttributeConfig(d);c=0;for(d=this._configOrder.length;c<d;++c)void 0!==a[this._configOrder[c]]&&this.set(this._configOrder[c],a[this._configOrder[c]],b)},set:function(b,c,d){var i=this.get("element");if(i)return!this._configs[b]&&!YAHOO.lang.isUndefined(i[b])&&f.call(this,b),a.prototype.set.apply(this,arguments);this._queue[this._queue.length]=["set",arguments];this._configs[b]&&(this._configs[b].value=c)},setAttributeConfig:function(b,c,d){var i=this.get("element");i&&!this._configs[b]&&
+!YAHOO.lang.isUndefined(i[b])?f.call(this,b,c):a.prototype.setAttributeConfig.apply(this,arguments);this._configOrder.push(b)},getAttributeKeys:function(){var b=this.get("element"),c=a.prototype.getAttributeKeys.call(this),d;for(d in b)this._configs[d]||(c[d]=c[d]||b[d]);return c},createEvent:function(b,c){this._events[b]=!0;a.prototype.createEvent.apply(this,arguments)},init:function(a,b){c.apply(this,arguments)}};var c=function(a,c){this._queue=this._queue||[];this._events=this._events||{};this._configs=
+this._configs||{};this._configOrder=[];c=c||{};c.element=c.element||a||null;this.DOM_EVENTS={click:!0,dblclick:!0,keydown:!0,keypress:!0,keyup:!0,mousedown:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,focus:!0,blur:!0,submit:!0};var h=!1;YAHOO.lang.isString(a)&&f.call(this,"id",{value:c.element});if(b.get(a)){h=!0;d.call(this,c);var i=c;this.initAttributes(i);this.setAttributes(i,!0);this.fireQueue()}YAHOO.util.Event.onAvailable(c.element,function(){h||d.call(this,c);this.fireEvent("available",
+{type:"available",target:c.element})},this,!0);YAHOO.util.Event.onContentReady(c.element,function(){if(!h){var a=c;this.initAttributes(a);this.setAttributes(a,!0);this.fireQueue()}this.fireEvent("contentReady",{type:"contentReady",target:c.element})},this,!0)},d=function(a){this.setAttributeConfig("element",{value:b.get(a.element),readOnly:!0})},f=function(a,b){var c=this.get("element"),b=b||{};b.name=a;b.method=b.method||function(b){c[a]=b};b.value=b.value||c[a];this._configs[a]=new YAHOO.util.Attribute(b,
+this)};YAHOO.augment(YAHOO.util.Element,a)})();YAHOO.register("element",YAHOO.util.Element,{version:"2.5.2",build:"1076"});
+YAHOO.util.DataSource=function(b,a){if(b){this.liveData=b;this._oQueue={interval:null,conn:null,requests:[]};b.nodeType&&9==b.nodeType?this.dataType=YAHOO.util.DataSource.TYPE_XML:YAHOO.lang.isArray(b)?this.dataType=YAHOO.util.DataSource.TYPE_JSARRAY:YAHOO.lang.isString(b)?this.dataType=YAHOO.util.DataSource.TYPE_XHR:YAHOO.lang.isFunction(b)?this.dataType=YAHOO.util.DataSource.TYPE_JSFUNCTION:b.nodeName&&"table"==b.nodeName.toLowerCase()?(this.dataType=YAHOO.util.DataSource.TYPE_HTMLTABLE,this.liveData=
+b.cloneNode(!0)):this.dataType=YAHOO.lang.isObject(b)?YAHOO.util.DataSource.TYPE_JSON:YAHOO.util.DataSource.TYPE_UNKNOWN;if(a&&a.constructor==Object)for(var c in a)c&&(this[c]=a[c]);YAHOO.lang.isNumber(this.maxCacheEntries);this._aIntervals=[];this._sName="DataSource instance"+YAHOO.util.DataSource._nIndex;YAHOO.util.DataSource._nIndex++;this.createEvent("cacheRequestEvent");this.createEvent("cacheResponseEvent");this.createEvent("requestEvent");this.createEvent("responseEvent");this.createEvent("responseParseEvent");
+this.createEvent("responseCacheEvent");this.createEvent("dataErrorEvent");this.createEvent("cacheFlushEvent")}};YAHOO.augment(YAHOO.util.DataSource,YAHOO.util.EventProvider);YAHOO.util.DataSource.TYPE_UNKNOWN=-1;YAHOO.util.DataSource.TYPE_JSARRAY=0;YAHOO.util.DataSource.TYPE_JSFUNCTION=1;YAHOO.util.DataSource.TYPE_XHR=2;YAHOO.util.DataSource.TYPE_JSON=3;YAHOO.util.DataSource.TYPE_XML=4;YAHOO.util.DataSource.TYPE_TEXT=5;YAHOO.util.DataSource.TYPE_HTMLTABLE=6;
YAHOO.util.DataSource.ERROR_DATAINVALID="Invalid data";YAHOO.util.DataSource.ERROR_DATANULL="Null data";YAHOO.util.DataSource._nIndex=0;YAHOO.util.DataSource._nTransactionId=0;YAHOO.util.DataSource.prototype._sName=null;YAHOO.util.DataSource.prototype._aCache=null;YAHOO.util.DataSource.prototype._oQueue=null;YAHOO.util.DataSource.prototype._aIntervals=null;YAHOO.util.DataSource.prototype.maxCacheEntries=0;YAHOO.util.DataSource.prototype.liveData=null;YAHOO.util.DataSource.prototype.dataType=YAHOO.util.DataSource.TYPE_UNKNOWN;
-YAHOO.util.DataSource.prototype.responseType=YAHOO.util.DataSource.TYPE_UNKNOWN;YAHOO.util.DataSource.prototype.responseSchema=null;YAHOO.util.DataSource.prototype.connMgr=null;YAHOO.util.DataSource.prototype.connXhrMode="allowAll";YAHOO.util.DataSource.prototype.connMethodPost=!1;YAHOO.util.DataSource.prototype.connTimeout=0;YAHOO.util.DataSource.parseString=function(b){if(!YAHOO.lang.isValue(b))return null;b=b+"";return YAHOO.lang.isString(b)?b:null};
-YAHOO.util.DataSource.parseNumber=function(b){b=b*1;return YAHOO.lang.isNumber(b)?b:null};YAHOO.util.DataSource.convertNumber=function(b){return YAHOO.util.DataSource.parseNumber(b)};YAHOO.util.DataSource.parseDate=function(b){var a=null;if(b instanceof Date)return b;a=new Date(b);return a instanceof Date?a:null};YAHOO.util.DataSource.convertDate=function(b){return YAHOO.util.DataSource.parseDate(b)};YAHOO.uti;
+YAHOO.util.DataSource.prototype.responseType=YAHOO.util.DataSource.TYPE_UNKNOWN;YAHOO.util.DataSource.prototype.responseSchema=null;YAHOO.util.DataSource.prototype.connMgr=null;YAHOO.util.DataSource.prototype.connXhrMode="allowAll";YAHOO.util.DataSource.prototype.connMethodPost=!1;YAHOO.util.DataSource.prototype.connTimeout=0;YAHOO.util.DataSource.parseString=function(b){if(!YAHOO.lang.isValue(b))return null;b+="";return YAHOO.lang.isString(b)?b:null};
+YAHOO.util.DataSource.parseNumber=function(b){b*=1;return YAHOO.lang.isNumber(b)?b:null};YAHOO.util.DataSource.convertNumber=function(b){return YAHOO.util.DataSource.parseNumber(b)};YAHOO.util.DataSource.parseDate=function(b){var a=null;if(b instanceof Date)return b;a=new Date(b);return a instanceof Date?a:null};YAHOO.util.DataSource.convertDate=function(b){return YAHOO.util.DataSource.parseDate(b)};YAHOO.uti;
View
1 test/unit/closure_compiler_test.rb
@@ -57,7 +57,6 @@ def test_exceptions
def test_stderr_reading
js = Compiler.new.compile(File.read('test/fixtures/precompressed.js'))
- File.open('test/fixtures/precompressed-compiled.js', 'w+') {|f| f.write js }
assert js == File.read('test/fixtures/precompressed-compiled.js')
end

0 comments on commit 595f465

Please sign in to comment.
Something went wrong with that request. Please try again.