0){j[d]+=Math.round(g[d]*r);c.stretched[d]=true}}}else{m=1;if(r0?(r-p[m])/(t[m]-p[m]):0;for(d=0;d0){p=i[0][d]-i[1][d];j[d]=i[1][d]+Math.round(p*r)}}}else{for(d=0;d0)j[d]=i[1][d];r-=p[1];m=0;if(r0?
-(r-p[m])/(t[m]-p[m]):0;for(d=0;d-1){var h=p;if(p){p=D+"-rs"+a+"-"+d;g=f.getElement(p);if(!g){c.resizeHandles[d]=p;g=document.createElement("div");g.setAttribute("id",p);g.di=d;g.style.position="absolute";g.style[e.left]=e.margins[1]+"px";g.style[c.size]=c.margins[0]+"px";if(e.cSize)g.style[e.size]=e.cSize-e.margins[2]-e.margins[1]+"px";g.className=c.handleClass;
-b.insertBefore(g,b.firstChild);g.onmousedown=g.ontouchstart=function(ca){wa(a,this,ca||window.event)}}i+=2;v(g,c.left,i+"px");i+=2}else if(c.resizeHandles[d]){g=f.getElement(c.resizeHandles[d]);g.parentNode.removeChild(g);c.resizeHandles[d]=undefined}p=c.config[d][1]!==0;if(r)r=false;else i+=c.margins[0]}else if(c.resizeHandles[d]){g=f.getElement(c.resizeHandles[d]);g.parentNode.removeChild(g);c.resizeHandles[d]=undefined}for(t=0;t=j.length)break;if(w)m+=4;w=c.config[d+n][1]!==0;if(j[d+n-1]>-1&&j[d+n]>-1)m+=c.margins[0];m+=j[d+n]}}var H;v(g,"visibility","");w=o.align>>c.alignBits&15;n=o.ps[a];if(m=n&&o.set[a]){v(g,c.size,n+"px")&&X(o,1);o.set[a]=false}o.size[a]=n;o.psize[a]=n}else{H=o.margin[a];w=Math.max(0,m-H);var ba=a==0&&
-o.sc[a];if(!ma(g)&&(ba||m!=n||o.layout)){if(v(g,c.size,w+"px")){if(!f.isIE&&(f.hasTag(g,"TEXTAREA")||f.hasTag(g,"INPUT"))){v(g,"margin-"+c.left,o.margin[a]/2+"px");v(g,"margin-"+e.left,o.margin[!a]/2+"px")}X(o,1);o.set[a]=true}}else if(o.fs[a])a==0&&v(g,c.size,o.fs[a]-H+"px");else{v(g,c.size,"")&&X(o,1);if(o.set)o.set[a]=false}H=i;o.size[a]=w;o.psize[a]=m}if(W)if(h){v(g,c.left,"4px");m=f.css(g,"position");if(m!=="absolute")g.style.position="relative"}else v(g,c.left,"0px");else v(g,c.left,H+"px");
-if(a==1){if(g.wtResize)g.wtResize(g,o.set[0]?Math.round(o.size[0]):-1,o.set[1]?Math.round(o.size[1]):-1,true);o.dirty=0}}if(j[d]>-1)i+=j[d]}if(c.resizeHandles.length>k){for(h=k;h0)b=Math.min(c.maxSize,b);if(pa){c=f.getElement(D);if(!c)return;for(var e=c,i=e.parentNode;;){if(i.wtGetPS)b=i.wtGetPS(i,e,a,b);b+=aa(i,a);if(i==J)break;if(a==1&&i==c.parentNode&&!i.lh&&i.offsetHeight>b)b=i.offsetHeight;e=i;i=e.parentNode}}else b+=T[a];N.setChildSize(J,a,b)}};this.setConfig=function(a){var b=C;C=a;s[0].config=C.cols;s[1].config=C.rows;s[0].stretched=[];s[1].stretched=[];var c;a=0;for(c=b.items.length;a<
-c;++a){var e=b.items[a];if(e){var i=x(e.id);if(i){i.ps=e.ps;i.sc=e.sc;i.ms=e.ms;i.size=e.size;i.psize=e.psize;i.fs=e.fs;i.margin=e.margin;i.set=e.set}else if(e.set){e.set[0]&&v(e.w,s[0].size,"");e.set[1]&&v(e.w,s[1].size,"")}}}P=ea=true;F.layouts2.scheduleAdjust()};this.getId=function(){return D};this.setElDirty=function(a){if(a=x(a.id)){a.dirty=2;P=true;F.layouts2.scheduleAdjust()}};this.setItemsDirty=function(a){var b,c,e=s[0].config.length;b=0;for(c=a.length;b>i.alignBits&15||!i.stretched[e]){if(!a.ps)a.ps=[];a.ps[b]=c}a.layout=true;X(a,1)}};this.measure=function(a){var b=f.getElement(D);if(b)if(!f.isHidden(b)){ta||
-na();if(P||ea)ua(a,b,la?b.parentNode:null);if(a==1)P=ea=false}};this.setMaxSize=function(a,b){s[0].maxSize=a;s[1].maxSize=b};this.apply=function(a){var b=f.getElement(D);if(!b)return false;if(f.isHidden(b))return true;xa(a,b);return true};this.contains=function(a){var b=f.getElement(D);a=f.getElement(a.getId());return b&&a?f.contains(b,a):false};this.WT=f});
+j.style.display=""}d||(l=a?j.clientHeight:j.clientWidth);k=true;if(a==0&&l==0&&f.isIElt9){l=j.offsetWidth;k=false}var h;if((f.hasTag(j,"TD")||f.hasTag(j,"TH")||$(j.parentNode).hasClass("Wt-domRoot"))&&!(f.isIE&&!f.isIElt9)){d=0;h=1}else{d=c.minSize?c.minSize:i[3];h=0}function G(ca,ha){return ca-ha<=1}if(f.isIElt9&&G(l,h)||G(l,d+M(j,a)))c.maxSize=999999}if(l===0&&c.maxSize===0){l=a?j.clientHeight:j.clientWidth;k=true}}}else{l=f.pxself(b,c.size);u=true}else if(c.sizeSet){l=f.pxself(j,c.size);u=true}var r=
+0;if(j&&j.wtGetPS&&a==1)r=j.wtGetPS(j,b,a,0);d=i[2];if(d=i[3]-r){r=l-i[4];h=[];var p=[0,0],t=[0,0],o=0;for(d=0;d-1){m=-1;sa(c,d)||(c.fixedSize[d]=undefined);if(typeof c.fixedSize[d]!=="undefined"&&(d+1==k||i[1][d+1]>-1))m=c.fixedSize[d];else if(sa(c,d)&&c.config[d][1]!==0&&c.config[d][1][0]>=0){m=c.config[d][1][0];if(c.config[d][1][1])m=(l-i[4])*m/100}if(m>=0){h[d]=-1;j[d]=m;r-=j[d]}else{if(c.config[d][0]>0){m=1;h[d]=c.config[d][0];o+=h[d]}else{m=0;h[d]=0}p[m]+=i[1][d];t[m]+=i[0][d];j[d]=i[0][d]}}else{h[d]=
+-2;j[d]=-1}if(c.fixedSize.length>k)c.fixedSize.length=k;if(o==0){for(d=0;dt[0]+p[1]){r-=t[0];if(r>t[1]){if(c.fitSize){r-=t[1];r=r/o;for(d=0;d0){j[d]+=Math.round(h[d]*r);c.stretched[d]=true}}}else{m=1;if(r0?(r-p[m])/(t[m]-p[m]):0;for(d=0;d0){p=i[0][d]-i[1][d];j[d]=i[1][d]+Math.round(p*r)}}}else{for(d=0;d0)j[d]=i[1][d];r-=p[1];m=0;if(r0?
+(r-p[m])/(t[m]-p[m]):0;for(d=0;d-1){var g=p;if(p){p=D+"-rs"+a+"-"+d;h=f.getElement(p);if(!h){c.resizeHandles[d]=p;h=document.createElement("div");h.setAttribute("id",p);h.di=d;h.style.position="absolute";h.style[e.left]=e.margins[1]+"px";h.style[c.size]=c.margins[0]+"px";if(e.cSize)h.style[e.size]=e.cSize-e.margins[2]-e.margins[1]+"px";h.className=c.handleClass;
+b.insertBefore(h,b.firstChild);h.onmousedown=h.ontouchstart=function(ca){wa(a,this,ca||window.event)}}i+=2;x(h,c.left,i+"px");i+=2}else if(c.resizeHandles[d]){h=f.getElement(c.resizeHandles[d]);h.parentNode.removeChild(h);c.resizeHandles[d]=undefined}p=c.config[d][1]!==0;if(r)r=false;else i+=c.margins[0]}else if(c.resizeHandles[d]){h=f.getElement(c.resizeHandles[d]);h.parentNode.removeChild(h);c.resizeHandles[d]=undefined}for(t=0;t=j.length)break;if(v)m+=4;v=c.config[d+n][1]!==0;if(j[d+n-1]>-1&&j[d+n]>-1)m+=c.margins[0];m+=j[d+n]}}var H;x(h,"visibility","");v=o.align>>c.alignBits&15;n=o.ps[a];if(m=n&&o.set[a]){x(h,c.size,n+"px")&&X(o,1);o.set[a]=false}o.size[a]=n;o.psize[a]=n}else{H=o.margin[a];v=Math.max(0,m-H);var ba=a==0&&
+o.sc[a];if(!ma(h)&&(ba||m!=n||o.layout)){if(x(h,c.size,v+"px")){X(o,1);o.set[a]=true}}else if(o.fs[a])a==0&&x(h,c.size,o.fs[a]-H+"px");else{x(h,c.size,"")&&X(o,1);if(o.set)o.set[a]=false}H=i;o.size[a]=v;o.psize[a]=m}if(W)if(g){x(h,c.left,"4px");m=f.css(h,"position");if(m!=="absolute")h.style.position="relative"}else x(h,c.left,"0px");else x(h,c.left,H+"px");if(a==1){if(h.wtResize)h.wtResize(h,o.set[0]?Math.round(o.size[0]):-1,o.set[1]?Math.round(o.size[1]):-1,true);o.dirty=0}}if(j[d]>-1)i+=j[d]}if(c.resizeHandles.length>
+k){for(g=k;g0)b=Math.min(c.maxSize,b);if(pa){c=f.getElement(D);if(!c)return;for(var e=c,i=e.parentNode;;){if(i.wtGetPS)b=
+i.wtGetPS(i,e,a,b);b+=aa(i,a);if(i==J)break;if(a==1&&i==c.parentNode&&!i.lh&&i.offsetHeight>b)b=i.offsetHeight;e=i;i=e.parentNode}}else b+=T[a];N.setChildSize(J,a,b)}};this.setConfig=function(a){var b=C;C=a;s[0].config=C.cols;s[1].config=C.rows;s[0].stretched=[];s[1].stretched=[];var c;a=0;for(c=b.items.length;a>i.alignBits&15||!i.stretched[e]){if(!a.ps)a.ps=[];a.ps[b]=c}a.layout=true;X(a,1)}};this.measure=function(a){var b=f.getElement(D);if(b)if(!f.isHidden(b)){ta||na();if(P||ea)ua(a,b,la?b.parentNode:null);if(a==1)P=ea=false}};this.setMaxSize=function(a,b){s[0].maxSize=a;s[1].maxSize=b};this.apply=function(a){var b=f.getElement(D);
+if(!b)return false;if(f.isHidden(b))return true;xa(a,b);return true};this.contains=function(a){var b=f.getElement(D);a=f.getElement(a.getId());return b&&a?f.contains(b,a):false};this.WT=f});
WT_DECLARE_APP_MEMBER(1,JavaScriptObject,"layouts2",new (function(){var F=[],D=false,K=this,U=false;this.find=function(q){return(q=document.getElementById(q))?jQuery.data(q,"layout"):null};this.setDirty=function(q){if(q=this.find(q)){q.setDirty();K.scheduleAdjust()}};this.setElementDirty=function(q){var E=q;for(q=q.parentNode;q&&q!=document.body;){var z=jQuery.data(q,"layout");z&&z.setElDirty(E);E=q;q=q.parentNode}};this.setChildLayoutsDirty=function(q,E){var z,A;z=0;for(A=q.descendants.length;z<
-A;++z){var x=q.descendants[z];if(E){var B=q.WT.getElement(x.getId());if(B&&!q.WT.contains(E,B))continue}x.setDirty()}};this.add=function(q){function E(z,A){var x,B;x=0;for(B=z.length;x=6)){V=true;setTimeout(function(){K.adjust()},0)}}};this.adjust=function(q,E){function z(x,B){var y,O;y=0;for(O=x.length;y=6)){V=true;setTimeout(function(){K.adjust()},0)}}};this.adjust=function(q,E){function z(w,B){var y,O;y=0;for(O=w.length;y 0)
layoutContainer.style.width = w +
@@ -170,6 +222,9 @@ WT_DECLARE_WT_MEMBER
el.style['zIndex'] = maxz + 1;
};
+ /*
+ * The user resizes the dialog using the resize handle
+ */
this.onresize = function(w, h, done) {
centerX = centerY = false;
diff --git a/src/js/WDialog.min.js b/src/js/WDialog.min.js
index 1ca6fe477f..9161250426 100644
--- a/src/js/WDialog.min.js
+++ b/src/js/WDialog.min.js
@@ -1,6 +1,6 @@
-WT_DECLARE_WT_MEMBER(1,JavaScriptConstructor,"WDialog",function(h,a,g,k,l,r,s){function t(){if(r){var b=d.pxself(a,"left"),c=d.pxself(a,"top");if(b!=m||c!=n){m=b;n=c;h.emit(a,r,m,n)}}}function u(b,c){if(!v&&s)if(b!=o||c!=p){o=b;p=c;h.emit(a,s,o,p)}}function w(b){var c=b||window.event;b=d.pageCoordinates(c);c=d.windowCoordinates(c);var e=d.windowSize();if(c.x>0&&c.x0&&c.y0)f.style.width=c+d.parsePx($(f).css("borderLeftWidth"))+
-d.parsePx($(f).css("borderRightWidth"))+"px";if(e>0)f.style.height=e+d.parsePx($(f).css("borderTopWidth"))+d.parsePx($(f).css("borderBottomWidth"))+"px";q.centerDialog();a.wtResize&&a.wtResize(a,c,e)}function z(){h.layouts2.adjust()}jQuery.data(a,"obj",this);var q=this,f=$(a).find(".dialog-layout").get(0),d=h.WT,i,j,m=-1,n=-1,o=-1,p=-1,v=false;if(g){g.onmousedown=function(b){b=b||window.event;d.capture(g);b=d.pageCoordinates(b);i=b.x;j=b.y;g.onmousemove=w};g.onmouseup=function(){g.onmousemove=null;
-t();d.capture(null)}}this.centerDialog=function(){if(a.parentNode==null)a=g=null;else if(a.style.display!="none"&&a.style.visibility!="hidden"){var b=d.windowSize(),c=a.offsetWidth,e=a.offsetHeight;if(k){a.style.left=Math.round((b.x-c)/2+(d.isIE6?document.documentElement.scrollLeft:0))+"px";a.style.marginLeft="0px"}if(l){a.style.top=Math.round((b.y-e)/2+(d.isIE6?document.documentElement.scrollTop:0))+"px";a.style.marginTop="0px"}if(a.style.position!="")a.style.visibility="visible";t()}};this.bringToFront=
-function(){var b=0;$(".Wt-dialog, .modal, .modal-dialog").each(function(c,e){b=Math.max(b,$(e).css("z-index"))});if(b>a.style.zIndex)a.style.zIndex=b+1};this.onresize=function(b,c,e){k=l=false;v=!e;y(a,b,c);jQuery.data(f.firstChild,"layout").setMaxSize(0,0);h.layouts2.scheduleAdjust();e&&u(b,c)};f.wtResize=x;a.wtPosition=z;if(a.style.width!="")f.style.width=d.parsePx(a.style.width)>0?a.style.width:a.offsetWidth+"px";if(a.style.height!="")f.style.height=d.parsePx(a.style.height)>0?a.style.height:a.offsetHeight+
-"px";q.centerDialog()});
+WT_DECLARE_WT_MEMBER(1,JavaScriptConstructor,"WDialog",function(i,a,g,l,m,v,w){function x(){if(v){var b=c.pxself(a,"left"),d=c.pxself(a,"top");if(b!=r||d!=s){r=b;s=d;i.emit(a,v,r,s)}}}function y(b,d){if(!z)if(b!=t||d!=u){t=b;u=d;w&&i.emit(a,w,t,u)}}function D(b){var d=b||window.event;b=c.pageCoordinates(d);d=c.windowCoordinates(d);var e=c.windowSize();if(d.x>0&&d.x0&&d.y0)f.style.width=d+c.parsePx($(f).css("borderLeftWidth"))+c.parsePx($(f).css("borderRightWidth"))+"px";if(e>0)f.style.height=e+c.parsePx($(f).css("borderTopWidth"))+c.parsePx($(f).css("borderBottomWidth"))+"px";h.centerDialog();a.wtResize&&a.wtResize(a,d,
+e)}function G(){i.layouts2.adjust()}jQuery.data(a,"obj",this);var h=this,f=$(a).find(".dialog-layout").get(0),c=i.WT,n,o,r=-1,s=-1,t=-1,u=-1,z=false,k=-1,j=-1,p=-1,q=-1;if(g){g.onmousedown=function(b){b=b||window.event;c.capture(g);b=c.pageCoordinates(b);n=b.x;o=b.y;g.onmousemove=D};g.onmouseup=function(){g.onmousemove=null;x();c.capture(null)}}this.centerDialog=function(){if(a.parentNode==null)a=g=null;else if(a.style.display!="none"&&a.style.visibility!="hidden"){var b=c.windowSize(),d=a.offsetWidth,
+e=a.offsetHeight;if(k!=-1)l=true;if(j!=-1)m=true;if(l){a.style.left=Math.round((b.x-d)/2+(c.isIE6?document.documentElement.scrollLeft:0))+"px";a.style.marginLeft="0px"}if(m){a.style.top=Math.round((b.y-e)/2+(c.isIE6?document.documentElement.scrollTop:0))+"px";a.style.marginTop="0px"}if(a.style.position!="")a.style.visibility="visible";x()}};this.bringToFront=function(){var b=0;$(".Wt-dialog, .modal, .modal-dialog").each(function(d,e){b=Math.max(b,$(e).css("z-index"))});if(b>a.style.zIndex)a.style.zIndex=
+b+1};this.onresize=function(b,d,e){l=m=false;z=!e;F(a,b,d);jQuery.data(f.firstChild,"layout").setMaxSize(0,0);i.layouts2.scheduleAdjust();e&&y(b,d)};f.wtResize=E;a.wtPosition=G;if(a.style.width!="")f.style.width=c.parsePx(a.style.width)>0?a.style.width:a.offsetWidth+"px";if(a.style.height!="")f.style.height=c.parsePx(a.style.height)>0?a.style.height:a.offsetHeight+"px";h.centerDialog()});
diff --git a/src/web/DomElement.C b/src/web/DomElement.C
index 6dac989cac..052606847d 100644
--- a/src/web/DomElement.C
+++ b/src/web/DomElement.C
@@ -1577,7 +1577,8 @@ void DomElement::setJavaScriptProperties(EscapeOStream& out,
out << var_ << ".selected=" << i->second << ';';
break;
case PropertySelectedIndex:
- out << var_ << ".selectedIndex=" << i->second << ';';
+ out << "setTimeout(function() { "
+ << var_ << ".selectedIndex=" << i->second << ";}, 0);";
break;
case PropertyMultiple:
out << var_ << ".multiple=" << i->second << ';';
diff --git a/src/web/base64.cpp b/src/web/base64.cpp
index 4d507f0cbb..234be4b0b1 100644
--- a/src/web/base64.cpp
+++ b/src/web/base64.cpp
@@ -18,7 +18,7 @@ namespace base64
const char* to_table_end =
_to_table + sizeof(_to_table);
- const char _from_table[128] =
+ const signed char _from_table[128] =
{
-1, -1, -1, -1, -1, -1, -1, -1, // 0
-1, -1, -1, -1, -1, -1, -1, -1, // 8
@@ -37,5 +37,5 @@ namespace base64
41, 42, 43, 44, 45, 46, 47, 48, // 112
49, 50, 51, -1, -1, -1, -1, -1 // 120
};
- const char* from_table = _from_table;
+ const signed char* from_table = _from_table;
}
diff --git a/src/web/base64.h b/src/web/base64.h
index 7a91981ba1..22ee04bf76 100644
--- a/src/web/base64.h
+++ b/src/web/base64.h
@@ -61,7 +61,7 @@ namespace base64
extern WT_API const char* to_table;
extern WT_API const char* to_table_end;
- extern WT_API const char* from_table;
+ extern WT_API const signed char* from_table;
template
void encode(const InputIterator& begin,
diff --git a/src/web/skeleton/Wt.js b/src/web/skeleton/Wt.js
index 356358e799..1bd908074d 100644
--- a/src/web/skeleton/Wt.js
+++ b/src/web/skeleton/Wt.js
@@ -1098,7 +1098,7 @@ this.parsePx = function(v) {
return parseCss(v, /^\s*(-?\d+(?:\.\d+)?)\s*px\s*$/i, 0);
};
-function parsePct(v, defaultValue) {
+this.parsePct = function(v, defaultValue) {
return parseCss(v, /^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/i, defaultValue);
}
@@ -1113,7 +1113,7 @@ this.pxself = function(c, s) {
};
this.pctself = function(c, s) {
- return parsePct(c.style[s], 0);
+ return WT.parsePct(c.style[s], 0);
};
// Convert from css property to element attribute (possibly a vendor name)
@@ -1193,8 +1193,8 @@ this.IEwidth = function(c, min, max) {
- WT.px(c.parentNode, 'paddingLeft')
- WT.px(c.parentNode, 'paddingRight');
- min = parsePct(min, 0);
- max = parsePct(max, 100000);
+ min = WT.parsePct(min, 0);
+ max = WT.parsePct(max, 100000);
if (r < min)
return min-1;
diff --git a/src/web/skeleton/Wt.min.js b/src/web/skeleton/Wt.min.js
index 3f1238905d..bc50c5a84d 100644
--- a/src/web/skeleton/Wt.min.js
+++ b/src/web/skeleton/Wt.min.js
@@ -14,21 +14,21 @@
http://developer.yahoo.net/yui/license.txt
version: 2.5.2
*/
-_$_$if_DYNAMIC_JS_$_();window.JavaScriptFunction=1;window.JavaScriptConstructor=2;window.JavaScriptObject=3;window.JavaScriptPrototype=4;window.WT_DECLARE_WT_MEMBER=function(P,Q,G,K){if(Q==JavaScriptPrototype){P=G.indexOf(".prototype");_$_WT_CLASS_$_[G.substr(0,P)].prototype[G.substr(P+11)]=K}else _$_WT_CLASS_$_[G]=Q==JavaScriptFunction?function(){return K.apply(_$_WT_CLASS_$_,arguments)}:K};
-window.WT_DECLARE_APP_MEMBER=function(P,Q,G,K){var Y=window.currentApp;if(Q==JavaScriptPrototype){P=G.indexOf(".prototype");Y[G.substr(0,P)].prototype[G.substr(P+11)]=K}else Y[G]=Q==JavaScriptFunction?function(){return K.apply(Y,arguments)}:K};_$_$endif_$_();
-if(!window._$_WT_CLASS_$_)window._$_WT_CLASS_$_=new (function(){function P(a){return a.split("/")[2]}function Q(a,b,c){if(a=="auto"||a==null)return c;return(a=(a=b.exec(a))&&a.length==2?a[1]:null)?parseFloat(a):c}function G(a,b){return Q(a,/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/i,b)}function K(a){if(M==null)return null;if(!a)a=window.event;if(a){for(var b=a=h.target(a);b&&b!=M;)b=b.parentNode;return b==M?h.isIElt9?a:null:M}else return M}function Y(a){var b=K(a);if(b&&!fa){if(!a)a=window.event;fa=true;if(h.isIElt9){h.firedTarget=
-a.srcElement||b;b.fireEvent("onmousemove",a);h.firedTarget=null}else h.condCall(b,"onmousemove",a);return fa=false}else return true}function ga(a){var b=K(a);h.capture(null);if(b){if(!a)a=window.event;if(h.isIElt9){h.firedTarget=a.srcElement||b;b.fireEvent("onmouseup",a);h.firedTarget=null}else h.condCall(b,"onmouseup",a);h.cancelEvent(a,h.CancelPropagate);return false}else return true}function na(a){if(a.addEventListener){a.addEventListener("mousemove",Y,true);a.addEventListener("mouseup",ga,true);
-h.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&h.hasTag(b.target,"HTML")&&ga(b)},true)}else{a.attachEvent("onmousemove",Y);a.attachEvent("onmouseup",ga)}}function oa(){if(!wa){wa=true;na(document.body)}}function xa(){if(!ba){var a,b,c=document.styleSheets;a=0;for(b=c.length;a2};this.drag=function(){++qa};this.arrayRemove=function(a,b,c){c=a.slice((c||b)+1||a.length);a.length=b<0?a.length+b:b;return a.push.apply(a,c)};this.addAll=function(a,b){for(var c=0,g=b.length;c<
-g;++c)a.push(b[c])};var ha=function(){for(var a,b=3,c=document.createElement("div"),g=c.getElementsByTagName("i");c.innerHTML="