//==============================================================================
// File     : fdc.js
// Created  : 2004-01-09 Chris Wirth
// Modified : 2007-01-10 Chris Wirth
// Content  : Browser detection, dhtml support
//==============================================================================
    function fdcBrowser() {
		this.fOnMouseMoves = new Array();
		this.fOnMouseDowns = new Array();
		this.fOnMouseUps = new Array();
		this.fOnLoads = new Array();
		this.fOnResizes = new Array();
		this.fOnFocuses = new Array();
		this.fOnKeyPresses = new Array();
		this.fOnKeyDowns = new Array();
		this.fOnKeyUps = new Array();
		this.fx = 0;
		this.fy = 0;
		this.V=parseFloat(navigator.appVersion.indexOf("MSIE")>0?navigator.appVersion.split(";")[1].substr(6):navigator.appVersion);
		this.N=navigator.appName;
		this.IsWin=(navigator.userAgent.indexOf('Win')!=-1);
		this.IsMac=(navigator.userAgent.indexOf('Mac')!=-1);
		this.KQ=(this.N.indexOf('Konqueror')!=-1&&(this.V>=5))?true:false;
		this.OP=(navigator.userAgent.indexOf('Opera')!=-1&&this.V>=4)?true:false;
		this.NS=(this.N.indexOf('Netscape')!=-1&&(this.V>=4&&this.V<5)&&!this.OP)?true:false;
		this.SM=(this.N.indexOf('Netscape')!=-1&&(this.V>=5)||this.OP)?true:false;
		this.IE=(this.N.indexOf('Explorer')!=-1&&(this.V>=4)||this.SM||this.KQ)?true:false;
		this.SF=(navigator.userAgent.indexOf('Safari')!=-1)?true:false;
		this.fDebugLevel = 0;
	} /* fdcBrowser */
	fdcBrowser.prototype.debug = function (s) {
	} /* debug */
	fdcBrowser.prototype.installOnMouseMove = function (obj) {
		var i = 0;
		while (i < this.fOnMouseMoves.length && this.fOnMouseMoves[i] != obj) { i = i+1; };
		if (i >= this.fOnMouseMoves.length) { this.fOnMouseMoves[this.fOnMouseMoves.length] = obj; };
	}
	fdcBrowser.prototype.installOnMouseDown = function (obj) {
		var i = 0;
		while (i < this.fOnMouseDowns.length && this.fOnMouseDowns[i] != obj) { i = i+1; };
		if (i >= this.fOnMouseDowns.length) { this.fOnMouseDowns[this.fOnMouseDowns.length] = obj; };
	}
	fdcBrowser.prototype.installOnMouseUp = function (obj) {
		var i = 0;
		while (i < this.fOnMouseUps.length && this.fOnMouseUps[i] != obj) { i = i+1; };
		if (i >= this.fOnMouseUps.length) { this.fOnMouseUps[this.fOnMouseUps.length] = obj; };
	}
	fdcBrowser.prototype.installOnLoad = function (obj) {
		var i = 0;
		while (i < this.fOnLoads.length && this.fOnLoads[i] != obj) { i = i+1; };
		if (i >= this.fOnLoads.length) { this.fOnLoads[this.fOnLoads.length] = obj; };
	}
	fdcBrowser.prototype.installOnResize = function (obj) {
		var i = 0;
		while (i < this.fOnResizes.length && this.fOnResizes[i] != obj) { i = i+1; };
		if (i >= this.fOnResizes.length) { this.fOnResizes[this.fOnResizes.length] = obj; };
	}
	fdcBrowser.prototype.installOnFocus = function (obj) {
		var i = 0;
		while (i < this.fOnFocuses.length && this.fOnFocuses[i] != obj) { i = i+1; };
		if (i >= this.fOnFocuses.length) { this.fOnFocuses[this.fOnFocuses.length] = obj; };
	}
	fdcBrowser.prototype.installOnKeyPress = function (obj) {
		var i = 0;
		while (i < this.fOnKeyPresses.length && this.fOnKeyPresses[i] != obj) { i = i+1; };
		if (i >= this.fOnKeyPresses.length) { this.fOnKeyPresses[this.fOnKeyPresses.length] = obj; };
	}
	fdcBrowser.prototype.installOnKeyDown = function (obj) {
		var i = 0;
		while (i < this.fOnKeyDowns.length && this.fOnKeyDowns[i] != obj) { i = i+1; };
		if (i >= this.fOnKeyDowns.length) { this.fOnKeyDowns[this.fOnKeyDowns.length] = obj; };
	}
	fdcBrowser.prototype.installOnKeyUp = function (obj) {
		var i = 0;
		while (i < this.fOnKeyUps.length && this.fOnKeyUps[i] != obj) { i = i+1; };
		if (i >= this.fOnKeyUps.length) { this.fOnKeyUps[this.fOnKeyUps.length] = obj; };
	}
	
	fdcBrowser.prototype.removeOnMouseMove = function (obj) {
		var i = 0;
		while (i < this.fOnMouseMoves.length && this.fOnMouseMoves[i] != obj) { i = i+1; };
		if (i < this.fOnMouseMoves.length) { this.fOnMouseMoves.splice(i,1); };
	} 
	fdcBrowser.prototype.removeOnMouseDown = function (obj) {
		var i = 0;
		while (i < this.fOnMouseDowns.length && this.fOnMouseDowns[i] != obj) { i = i+1; };
		if (i < this.fOnMouseDowns.length) { this.fOnMouseDowns.splice(i,1); };
	}
	fdcBrowser.prototype.removeOnMouseUp = function (obj) {
		var i = 0;
		while (i < this.fOnMouseUps.length && this.fOnMouseUps[i] != obj) { i = i+1; };
		if (i < this.fOnMouseUps.length) { this.fOnMouseUps.splice(i,1); };
	}
	fdcBrowser.prototype.removeOnLoad = function (obj) {
		var i = 0;
		while (i < this.fOnLoads.length && this.fOnLoads[i] != obj) { i = i+1; };
		if (i < this.fOnLoads.length) { this.fOnLoads.splice(i,1); };
	}
	fdcBrowser.prototype.removeOnResize = function (obj) {
		var i = 0;
		while (i < this.fOnResizes.length && this.fOnResizes[i] != obj) { i = i+1; };
		if (i < this.fOnResizes.length) { this.fOnResizes.splice(i,1); };
	}
	fdcBrowser.prototype.removeOnFocus = function (obj) {
		var i = 0;
		while (i < this.fOnFocuses.length && this.fOnFocuses[i] != obj) { i = i+1; };
		if (i < this.fOnFocuses.length) { this.fOnFocuses.splice(i,1); };
	}
	fdcBrowser.prototype.removeOnKeyPress = function (obj) {
		var i = 0;
		while (i < this.fOnKeyPresses.length && this.fOnKeyPresses[i] != obj) { i = i+1; };
		if (i < this.fOnKeyPresses.length) { this.fOnKeyPresses.splice(i,1); };
	}
	fdcBrowser.prototype.removeOnKeyDown = function (obj) {
		var i = 0;
		while (i < this.fOnKeyDowns.length && this.fOnKeyDowns[i] != obj) { i = i+1; };
		if (i < this.fOnKeyDowns.length) { this.fOnKeyDowns.splice(i,1); };
	}
	fdcBrowser.prototype.removeOnKeyUp = function (obj) {
		var i = 0;
		while (i < this.fOnKeyUps.length && this.fOnKeyUps[i] != obj) { i = i+1; };
		if (i < this.fOnKeyUps.length) { this.fOnKeyUps.splice(i,1); };
	}
//==============================================================================
// DHTML support
//==============================================================================
function getObjNN4(obj,name) {
	var ls = obj.layers, l = null, i, t = null;
	for (i=0;i<ls.length;i++) {
		if (ls[i].id == name) l = ls[i]; else if (ls[i].layers.length) t = getObjNN4(ls[i],name);
		if (t) l = t;
	} /* for */
	return l;
} /* getObjNN4 */
function getObj(itsID) {
	var l = null, obj = null;
	if (gB.NS) {
		l = getObjNN4(document,itsID);
	} else {
		if (gB.V>=5) l = document.getElementById(itsID); else l = document.all[itsID];
	} /* if */
	if (l != null) {
		obj = new Object();
		obj.fID = itsID;
		obj.fLayer = l;
		obj.fAlpha = 1.0;
		if (gB.NS) {
			obj.x = l.left;
			obj.y = l.top;
			obj.show = function () { this.fLayer.visibility="show"; }
			obj.hide = function () { this.fLayer.visibility="hide"; }
			obj.area = function() { return [this.x,this.y,this.fLayer.clip.width,this.fLayer.clip.height]; }
			obj.size = function(dw,dh) { this.fLayer.clip.width = parseInt(this.fLayer.clip.width)+dw; this.fLayer.clip.height = parseInt(this.fLayer.clip.height)+dh; }
			obj.sizeTo = function(w,h) { this.fLayer.clip.width = w; this.fLayer.clip.height = h; }
			obj.move = function(dx,dy) { this.x = this.x+dx; this.y = this.y+dy; this.fLayer.moveTo(this.x,this.y); }
			obj.moveTo = function(x,y) { this.x = x; this.y = y; this.fLayer.moveTo(x,y); }
			obj.getZ = function() { return parseInt(this.fLayer.zIndex); }
			obj.setZ = function(z) { var n = parseInt(z); if (!isNaN(n)) { this.fLayer.zIndex = z; } }
			obj.clip = function(x,y,w,h) {x = x-this.x; y = y-this.y; var c = this.fLayer.clip; c.left = Math.max(0,x); c.top = Math.max(0,y); c.right = Math.max(0,x+w); c.bottom = Math.max(0,y+h+20); }
		} else if (gB.IE&&!gB.SM) {
			obj.show = function () { this.fLayer.style.visibility="visible"; if (this.fAlpha != "") this.fLayer.style.filter = this.fAlpha; }
			obj.hide = function () { this.fLayer.style.visibility="hidden"; }
			obj.area = function() { return [parseInt(this.fLayer.style.pixelLeft),parseInt(this.fLayer.style.pixelTop),parseInt(this.fLayer.style.width),parseInt(this.fLayer.style.height)]; }
			obj.size = function(dw,dh) { this.fLayer.style.width = parseInt(this.fLayer.style.width)+dw; this.fLayer.style.height = parseInt(this.fLayer.style.height)+dh; }
			obj.sizeTo = function(w,h) { this.fLayer.style.width = w; this.fLayer.style.height = h; }
			obj.move = function(dx,dy) { this.fLayer.style.pixelLeft = parseInt(this.fLayer.style.pixelLeft)+dx; this.fLayer.style.pixelTop = parseInt(this.fLayer.style.pixelTop)+dy; }
			obj.moveTo = function(x,y) { this.fLayer.style.pixelLeft = x; this.fLayer.style.pixelTop = y; }
			obj.getZ = function() { return parseInt(this.fLayer.style.zIndex); }
			obj.setZ = function(z) { var n = parseInt(z); if (!isNaN(n)) { this.fLayer.style.zIndex = n; } }
			if (gB.IsWin) {
				obj.clip = function(x,y,w,h) { x = x-parseInt(this.fLayer.style.pixelLeft); y = y-parseInt(this.fLayer.style.pixelTop); this.fLayer.style.clip = "rect("+Math.max(0,y)+" "+Math.max(0,x+w)+" "+Math.max(0,y+h)+" "+Math.max(0,x)+")"; }
				obj.opacity = function(alpha) { this.fAlpha = parseFloat(alpha); if (this.fAlpha >= 1.0) this.fLayer.style.filter = ""; else this.fLayer.style.filter = "alpha(opacity="+(100*alpha)+",finishopacity=0,style=0)"; }
			} else if (gB.IsMac) {
				obj.clip = function(x,y,w,h) { x = x-parseInt(this.fLayer.style.pixelLeft); y = y-parseInt(this.fLayer.style.pixelTop); this.fLayer.style.clip = "rect("+Math.max(0,y)+" "+Math.max(0,x+w)+" "+Math.max(0,y+h)+" "+Math.max(0,x)+")"; }
			} /* if */
		} else {
			obj.show = function () { this.fLayer.style.visibility="visible"; }
			obj.hide = function () { this.fLayer.style.visibility="hidden"; }
			obj.area = function() { return [parseInt(this.fLayer.style.left),parseInt(this.fLayer.style.top),parseInt(this.fLayer.style.width),parseInt(this.fLayer.style.height)]; }
			obj.size = function(dw,dh) { this.fLayer.style.width = parseInt(this.fLayer.style.width)+dw+"px"; this.fLayer.style.height = parseInt(this.fLayer.style.height)+dh+"px"; }
			obj.sizeTo = function(w,h) { this.fLayer.style.width = w+"px"; this.fLayer.style.height = h+"px"; }
			obj.move = function(dx,dy) { this.fLayer.style.left = parseInt(this.fLayer.style.left)+dx+"px"; this.fLayer.style.top = parseInt(this.fLayer.style.top)+dy+"px"; }
			obj.moveTo = function(x,y) { this.fLayer.style.left = x+"px"; this.fLayer.style.top = y+"px"; }
			obj.getZ = function() { return parseInt(this.fLayer.style.zIndex); }
			obj.setZ = function(z) { var n = parseInt(z); if (!isNaN(n)) { this.fLayer.style.zIndex = n; } }
			obj.clip = function(x,y,w,h) { x = x-parseInt(this.fLayer.style.left); y = y-parseInt(this.fLayer.style.top); this.fLayer.style.clip = "rect("+Math.max(0,y)+" "+Math.max(0,x+w)+" "+Math.max(0,y+h)+" "+Math.max(0,x)+")"; }
			obj.opacity = function(alpha) { this.fAlpha = parseFloat(alpha); this.fLayer.style.opacity = alpha; }
		} /* if */
		obj.inside = function(x,y) { var a = this.area(); a[2] = a[0]+a[2]; a[3] = a[1]+a[3]; return(x>=a[0]&&x<=a[2]&&y>=a[1]&&y<=a[3]); }
		if (obj.clip == null) {
			obj. clip = function(x,y,w,h) { }
		} /* if */
		if (obj.opacity == null) {
			obj.opacity = function(alpha) { this.fAlpha = alpha; }
		} /* if */
	}  /* if */
	return obj;
} /* getObj */
function findImg(d,imgName) {
	var i;
	var tmp;
	if (d.images != null) return d.images[imgName];
	if (d.layers != null) {
		for(i=0; i<d.layers.length; i++) {
			tmp = findImg(d.layers[i].document, imgName);
			if (tmp) return tmp;
		} /* for */
	} /* if */
	return null;
} /* findImg */
function setImg(imgID,srcPath) {
	var img = findImg(document,imgID);
	if (img != null) img.src = srcPath;
} /* setImg */
function getImgOffset(f, imgName, ox, oy) {
	var i, tmp;
	if (f.left) {
		ox += f.left;
		oy += f.top;
	} /* if */
	if (f.document.images[imgName]) return [ox, oy];
	for(i=0; i<f.document.layers.length; i++) {
		tmp = getImgOffset(f.document.layers[i], imgName, ox, oy);
		if (tmp) return [tmp[0], tmp[1]];
	} /* for */		
	return null;
} /* getImgOffset */
function getImgArea(imgName) {
	var f, p, x, y, objImg;
	f = window;
	objImg = findImg(f.document,imgName);
	if (objImg == null) return[0,0,0,0];
	if (gB.IE)	{
		x = objImg.offsetLeft;
		y = objImg.offsetTop;
		p = objImg.offsetParent;
		while (p!=null)	{
			y = y+p.offsetTop;
			x = x+p.offsetLeft;
			p = p.offsetParent;
		} /* while */
	} else {
		p = getImgOffset(f,imgName,0,0);
		x = objImg.x + p[0];
		y = objImg.y + p[1];
	} /* if */
	return [x, y, parseInt(objImg.width), parseInt(objImg.height)];
} /* getImgArea */
function getDocArea(objDoc) {
	var p, x, y, w, h;
	if (objDoc.body != null)	{
		x = objDoc.body.offsetLeft;
		y = objDoc.body.offsetTop;
		if (gB.OP) {
			w = objDoc.body.offsetWidth;
			h = objDoc.body.offsetHeight;
		} else {
			w = objDoc.body.scrollWidth;
			h = objDoc.body.scrollHeight;
		} /* if */
		p = objDoc.offsetParent;
		while (p!=null)	{
			y = y+p.offsetTop;
			x = x+p.offsetLeft;
			p = p.offsetParent;
		} /* while */
	} else if (objDoc.width != null || objDoc.height != null) {
		x = 0;
		y = 0;
		w = objDoc.width;
		h = objDoc.height;
	} /* if */	
	return [parseInt(x), parseInt(y), parseInt(w), parseInt(h)];
} /* getDocArea */
function getWindowArea(objWdw) {
	var x = 0, y = 0, w = 0, h = 0;
	var d = objWdw.document;
	if (typeof( objWdw.pageYOffset ) == 'number') {
		y = objWdw.pageYOffset;
		x = objWdw.pageXOffset;
	} else if (d.body && ( d.body.scrollLeft || d.body.scrollTop)) {
		y = d.body.scrollTop;
		x = d.body.scrollLeft;
	} else if (d.documentElement && ( d.documentElement.scrollLeft || d.documentElement.scrollTop)) {
		y = d.documentElement.scrollTop;
		x = d.documentElement.scrollLeft;
	} /* if */
	if (typeof(objWdw.innerWidth) == 'number') {
		w = objWdw.innerWidth;
		h = objWdw.innerHeight;
	} /* if */
	if (!gB.SF || w <= 0 || h <= 0) {
		if ( d.body && ( d.body.clientWidth || d.body.clientHeight ) ) {
			w = d.body.clientWidth;
			h = d.body.clientHeight;
		} else if (d.documentElement && ( d.documentElement.clientWidth || d.documentElement.clientHeight ) ) {
			w = d.documentElement.clientWidth;
			h = d.documentElement.clientHeight;
		} /* if */
	} /* if */
	return [parseInt(x), parseInt(y), parseInt(w), parseInt(h)];
} /* getWindowArea */
function getScrollOffset(objWdw) {
	var x = 0, y = 0;
	var d = objWdw.document;
	if (typeof( objWdw.pageYOffset ) == 'number') {
		y = objWdw.pageYOffset;
		x = objWdw.pageXOffset;
	} else if (d.body && ( d.body.scrollLeft || d.body.scrollTop)) {
		y = d.body.scrollTop;
		x = d.body.scrollLeft;
	} else if (d.documentElement && ( d.documentElement.scrollLeft || d.documentElement.scrollTop)) {
		y = d.documentElement.scrollTop;
		x = d.documentElement.scrollLeft;
	} /* if */
	return [parseInt(x), parseInt(y)];
} /* getScrollOffset */
function getHtmlElementArea(objHtml) {
    var x = 0, y = 0, w = 0, h = 0;
    if (objHtml != null) {
        w = parseInt(objHtml.offsetWidth);
        h = parseInt(objHtml.offsetHeight);
        var p = objHtml;
        while (p != null) {
			x = x+p.offsetLeft;
			y = y+p.offsetTop;
			p = p.offsetParent;
        }
    }
    return [x,y,w,h];
} /* getHtmlElementArea */
//==============================================================================
// Events
//==============================================================================
function cancelEvent(e) {
	if (e == null) e = window.event;
	if (gB.IE) {
		e.cancelBubble = true;
		e.returnValue = false;
	}
	if (e.stopPropagation != null) e.stopPropagation();
	if (e.preventDefault != null) e.preventDefault();
} /* cancelEvent */
function handleOnMouseMove(e) {
	var i;
	if (gB.IE) {
		if (!gB.SM) {
			if (event==null) {
				if (document.window.event==null) return; else e = document.window.event;
			} else {
				e = event;
			} /* if */
		} /* if */
		gB.fx = e.clientX;
		gB.fy = e.clientY;
	} /* if */
	if (gB.NS) {
		gB.fx = e.pageX;
		gB.fy = e.pageY;
	} /* if */
	if (gB.fDebugLevel > 1) gB.debug("move "+gB.fx+" "+gB.fy);
	for(i=0;i<gB.fOnMouseMoves.length;i++) {
	    if (gB.fOnMouseMoves[i].onMouseMove != null) {
			gB.fOnMouseMoves[i].onMouseMove(e);
	    } else {
			gB.fOnMouseMoves[i](e);
	    }
	} /* for */
} /* handleOnMouseMove */
function handleOnMouseDown(e) {
	var i;
	for(i=0;i<gB.fOnMouseDowns.length;i++) {
		if (gB.fOnMouseDowns[i].onMouseDown != null) {
			gB.fOnMouseDowns[i].onMouseDown(e);
	    } else {
		    gB.fOnMouseDowns[i](e);
		}
	} /* for */
} /* handleOnMouseDown */
function handleOnMouseUp(e) {
	var i;
	for(i=0;i<gB.fOnMouseUps.length;i++) {
	    if (gB.fOnMouseUps[i].onMouseUp != null) {
			gB.fOnMouseUps[i].onMouseUp(e);
	    } else {
		    gB.fOnMouseUps[i](e);
		}
	} /* for */
} /* handleOnMouseUp */
function handleOnLoad(e) {
	var i;
	for(i=0;i<gB.fOnLoads.length;i++) {
	    if (gB.fOnLoads[i].onLoad != null) {
			gB.fOnLoads[i].onLoad(e);
	    } else {
		    gB.fOnLoads[i](e);
		}
	} /* for */
} /* handleOnLoad */
function handleOnResize(e) {
	var i;
	for(i=0;i<gB.fOnResizes.length;i++) {
	    if (gB.fOnResizes[i].onResize != null) {
			gB.fOnResizes[i].onResize(e);
	    } else {
		    gB.fOnResizes[i](e);
		}
	} /* for */
} /* handleOnResize */
function handleOnKeyPress(e) {
	var i;
	for(i=0;i<gB.fOnKeyPresses.length;i++) {
	    if (gB.fOnKeyPresses[i].onKeyPress != null) {
			gB.fOnKeyPresses[i].onKeyPress(e);
	    } else {
		    gB.fOnKeyPresses[i](e);
		}
	} /* for */
} /* handleOnKeyPress */
function handleOnKeyDown(e) {
	var i;
	for(i=0;i<gB.fOnKeyDowns.length;i++) {
	    if (gB.fOnKeyDowns[i].onKeyDown != null) {
			gB.fOnKeyDowns[i].onKeyDown(e);
	    } else {
		    gB.fOnKeyDowns[i](e);
		}
	} /* for */
} /* handleOnKeyDown */
function handleOnKeyUp(e) {
	var i;
	for(i=0;i<gB.fOnKeyUps.length;i++) {
	    if (gB.fOnKeyUps[i].onKeyUp != null) {
			gB.fOnKeyUps[i].onKeyUp(e);
	    } else {
		    gB.fOnKeyUps[i](e);
		}
	} /* for */
} /* handleOnKeyUp */
//==============================================================================
// Setup
//==============================================================================
gB = new fdcBrowser();
if (gB.NS) {
	if (window.onmousemove != null) {
		gB.installOnMouseMove(window.onmousemove);
	} /* if */
	if (window.onmousedown != null) {
		gB.installOnMouseDown(window.onmousedown);
	} /* if */
	if (window.onmouseup != null) {
		gB.installOnMouseUp(window.onmouseup);
	} /* if */
	if (window.onkeypress != null) {
		gB.installOnKeyPress(window.onkeypress);
	} /* if */
	if (window.onkeydown != null) {
		gB.installOnKeyDown(window.onkeydown);
	} /* if */
	if (window.onkeyup != null) {
		gB.installOnKeyUp(window.onkeyup);
	} /* if */
	window.captureEvents(Event.MOUSEMOVE+Event.MOUSEDOWN+Event.MOUSEUP+Event.KEYPRESS+Event.KEYDOWN+Event.KEYUP);
	window.onmousemove = handleOnMouseMove;
	window.onmousedown = handleOnMouseDown;
	window.onmouseup = handleOnMouseUp;
	window.onkeypress = handleOnKeyPress;
	window.onkeydown = handleOnKeyDown;
	window.onkeyup = handleOnKeyUp;
} /* if */
if (gB.IE) {
	if (document.onmousemove != null) {
		gB.installOnMouseMove(document.onmousemove);
	} /* if */
	if (document.onmousedown != null) {
		gB.installOnMouseDown(document.onmousedown);
	} /* if */
	if (document.onmouseup != null) {
		gB.installOnMouseUp(document.onmouseup);
	} /* if */
	if (document.onkeypress != null) {
		gB.installOnKeyPress(document.onkeypress);
	} /* if */
	if (document.onkeydown != null) {
		gB.installOnKeyDown(document.onkeydown);
	} /* if */
	if (document.onkeyup != null) {
		gB.installOnKeyUp(document.onkeyup);
	} /* if */
	document.onmousemove = handleOnMouseMove;
	document.onmousedown = handleOnMouseDown;
	document.onmouseup = handleOnMouseUp;
	document.onkeypress = handleOnKeyPress;
	document.onkeydown = handleOnKeyDown;
	document.onkeyup = handleOnKeyUp;
} /* if */
if (window.onload != null) {
	gB.installOnLoad(window.onload);
} /* if */
window.onload = handleOnLoad;
if (window.onresize != null) {
	gB.installOnResize(window.onresize);
} /* if */
window.onresize = handleOnResize;