if(isIE){  tdn.style.left = dojo.html.abs(tdn, dojo.html.boxSizing.MARGIN_BOX).x; if(tdn.previousSibling){ this._IEOriginalPos = ['after',tdn.previousSibling]; }else if(tdn.nextSibling){ this._IEOriginalPos = ['before',tdn.nextSibling]; }else{ this._IEOriginalPos = ['',tdn.parentNode]; } dojo.body().appendChild(tdn); 
if(isIE){  tdn.style.left = dojo.html.abs(tdn, dojo.html.boxSizing.MARGIN_BOX).x; if(tdn.previousSibling){ this._IEOriginalPos = ['after',tdn.previousSibling]; }else if(tdn.nextSibling){ this._IEOriginalPos = ['before',tdn.nextSibling]; }else{ this._IEOriginalPos = ['',tdn.parentNode]; } dojo.body().appendChild(tdn); 
	globalOnScrollHandler: function(){		var isIE = dojo.render.html.ie;		if(!this._handleScroll){ return; }		var dh = dojo.html;		var tdn = this.editor.toolbarWidget.domNode;		var db = dojo.body();		if(!this._scrollSetUp){			this._scrollSetUp = true;			var editorWidth =  dh.getMarginBox(this.editor.domNode).width; 			this._scrollThreshold = dh.abs(tdn, true).y;			// dojo.debug("threshold:", this._scrollThreshold);			if((isIE)&&(db)&&(dh.getStyle(db, "background-image")=="none")){				with(db.style){					backgroundImage = "url(" + dojo.uri.moduleUri("dojo.widget", "templates/images/blank.gif") + ")";					backgroundAttachment = "fixed";				}			}		}		var scrollPos = (window["pageYOffset"]) ? window["pageYOffset"] : (document["documentElement"]||document["body"]).scrollTop;		// FIXME: need to have top and bottom thresholds so toolbar doesn't keep scrolling past the bottom		if(scrollPos > this._scrollThreshold){			// dojo.debug(scrollPos);			if(!this._fixEnabled){				var tdnbox = dojo.html.getMarginBox(tdn);				this.editor.editorObject.style.marginTop = tdnbox.height+"px";				if(isIE){					// FIXME: should we just use setBehvior() here instead?					tdn.style.left = dojo.html.abs(tdn, dojo.html.boxSizing.MARGIN_BOX).x;					if(tdn.previousSibling){						this._IEOriginalPos = ['after',tdn.previousSibling];					}else if(tdn.nextSibling){						this._IEOriginalPos = ['before',tdn.nextSibling];					}else{						this._IEOriginalPos = ['',tdn.parentNode];					}					dojo.body().appendChild(tdn);					dojo.html.addClass(tdn, "IEFixedToolbar");				}else{					with(tdn.style){						position = "fixed";						top = "0px";					}				}				tdn.style.width = tdnbox.width + "px";				tdn.style.zIndex = 1000;				this._fixEnabled = true;			}			// if we're showing the floating toolbar, make sure that if			// we've scrolled past the bottom of the editor that we hide			// the toolbar for this instance of the editor.			// TODO: when we get multiple editor toolbar support working			// correctly, ensure that we check this against the scroll			// position of the bottom-most editor instance.			if(!dojo.render.html.safari){				// safari reports a bunch of things incorrectly here				var eHeight = (this.height) ? parseInt(this.editor.height) : this.editor._lastHeight;				if(scrollPos > (this._scrollThreshold+eHeight)){					tdn.style.display = "none";				}else{					tdn.style.display = "";				}			}		}else if(this._fixEnabled){			(this.editor.object || this.editor.iframe).style.marginTop = null;			with(tdn.style){				position = "";				top = "";				zIndex = "";				display = "";			}			if(isIE){				tdn.style.left = "";				dojo.html.removeClass(tdn, "IEFixedToolbar");				if(this._IEOriginalPos){					dojo.html.insertAtPosition(tdn, this._IEOriginalPos[1], this._IEOriginalPos[0]);					this._IEOriginalPos = null;				}else{					dojo.html.insertBefore(tdn, this.editor.object||this.editor.iframe);				}			}			tdn.style.width = "";			this._fixEnabled = false;		}	},
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js