imageSlide.Registry = []imageSlide.aniLen = 250imageSlide.hideDelay = 100imageSlide.minCPUResolution = 10function imageSlide(id, dir, left, top, width, height, parentid, degrade, debug){	this.ie = document.all ? 1 : 0	this.ns4 = document.layers ? 1 : 0	this.dom = document.getElementById ? 1 : 0	if (this.ie || this.ns4 || this.dom) {		this.degrade = degrade;		this.debug = debug;		this.id = id		this.parentid = parentid		this.dir = dir		this.orientation = dir == "left" || dir == "right" ? "h" : "v"		this.dirType = dir == "right" || dir == "down" ? "-" : "+"		this.dim = this.orientation == "h" ? width : height		this.hideTimer = false		this.aniTimer = false		this.open = false		this.over = false		this.startTime = 0		this.gRef = "imageSlide_"+id		eval(this.gRef+"=this")		imageSlide.Registry[id] = this				this.initleft = left		this.inittop = top		this.initwidth = width		this.initheight = height		var d = document		d.write('<style type="text/css">')		d.write('#' + this.id + 'Container { visibility:hidden; ')		d.write('left:' + left + 'px; ')		d.write('z-index:' + 50 + '; ')		d.write('top:' + top + 'px; ')		d.write('overflow:hidden; }')		d.write('#' + this.id + 'Container, #' + this.id + 'Content { position:absolute; ')		d.write('width:' + width + 'px; ')		d.write('height:' + height + 'px; ')		d.write('z-index:' + 50 + '; ')		d.write('clip:rect(0 ' + width + ' ' + height + ' 0); ')		d.write('}')		d.write('</style>')		this.load()	}}imageSlide.prototype.load = function() {	var d = document	var lyrId1 = this.id + "Container"	var lyrId2 = this.id + "Content"	var obj1 = this.dom ? d.getElementById(lyrId1) : this.ie ? d.all[lyrId1] : d.layers[lyrId1]	if (obj1) var obj2 = this.ns4 ? obj1.layers[lyrId2] : this.ie ? d.all[lyrId2] : d.getElementById(lyrId2)	if (!obj1 || !obj2) {		window.setTimeout(this.gRef + ".load()", 1000);	} else {		this.container = obj1		this.menu = obj2		this.style = this.ns4 ? this.menu : this.menu.style		// SEE NOTE ABOVE.  The following function call for the 31 menus bug.		//this.setStyle()		this.homePos = eval("0" + this.dirType + this.dim)		this.outPos = 0		this.accelConst = (this.outPos - this.homePos) / imageSlide.aniLen / imageSlide.aniLen 		if (this.ns4) this.menu.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);		this.menu.onmouseover = new Function("imageSlide.showMenu('" + this.id + "')")		this.menu.onmouseout = new Function("imageSlide.hideMenu('" + this.id + "')")		this.endslide()	}}imageSlide.showMenu = function(id){	var reg = imageSlide.Registry	var obj = imageSlide.Registry[id]	if (obj.container) {		obj.over = true		if (obj.hideTimer) { reg[id].hideTimer = window.clearTimeout(reg[id].hideTimer) }		if (obj.degrade) {			obj.open = true;			obj.endslide();			obj.setVisibility(true);		}		var z		z = (!obj.open && !obj.aniTimer);		if (z) reg[id].startslide(true)	}	if (obj.ns4) obj.menu.routeEvent(Event.MOUSEOVER);}imageSlide.hideMenu = function(id){	var obj = imageSlide.Registry[id]	if (obj.container) {		if (obj.hideTimer) window.clearTimeout(obj.hideTimer)		obj.hideTimer = window.setTimeout("imageSlide.hide('" + id + "')", imageSlide.hideDelay);	}	if (obj.ns4) obj.menu.routeEvent(Event.MOUSEOUT);}imageSlide.hide = function(id){	var obj = imageSlide.Registry[id]	var reg = imageSlide.Registry	obj.over = false	if (obj.hideTimer) window.clearTimeout(obj.hideTimer)	obj.hideTimer = 0	var overchild = false;	for (menu in reg) {		var pid = imageSlide.Registry[menu].parentid		if (pid == id) overchild = imageSlide.Registry[menu].over ? true : overchild			}	if (obj.open && !obj.aniTimer && !overchild) {		if (obj.degrade) {			obj.open = false;			obj.endslide();		} else {			obj.startslide(false);		}	}}imageSlide.prototype.startslide = function(open) {	this.open = open	if (open) this.setVisibility(true)	this.startTime = (new Date()).getTime() 	this.aniTimer = window.setInterval(this.gRef + ".slide()", imageSlide.minCPUResolution)}imageSlide.prototype.slide = function() {	var elapsed = (new Date()).getTime() - this.startTime	if (elapsed > imageSlide.aniLen) this.endslide()	else {		var d = Math.round(Math.pow(imageSlide.aniLen-elapsed, 2) * this.accelConst)		if (this.open && this.dirType == "-") d = -d		else if (this.open && this.dirType == "+") d = -d		else if (!this.open && this.dirType == "-") d = -this.dim + d		else d = this.dim + d		this.moveTo(d)	}}imageSlide.prototype.endslide = function() {	this.aniTimer = window.clearTimeout(this.aniTimer)	this.moveTo(this.open ? this.outPos : this.homePos)	if (!this.open) this.setVisibility(false)	if (((this.open && !this.over) || (!this.open && this.over)) && (!this.parent || this.parent.open)) {		this.startslide(this.over)	} else {		var overchild = false;		var reg = imageSlide.Registry		for (menu in reg) {			var pid = imageSlide.Registry[menu].parentid			if (pid == this.id) overchild = imageSlide.Registry[menu].over ? true : overchild				}		if (!overchild && this.parentid && !imageSlide.Registry[this.parentid].over) imageSlide.hide(this.parentid);	}}imageSlide.prototype.setVisibility = function(bShow) { 	var s = this.ns4 ? this.container : this.container.style	s.visibility = bShow ? "visible" : "hidden"}imageSlide.prototype.moveTo = function(p) { 	this.style[this.orientation == "h" ? "left" : "top"] = p}imageSlide.prototype.getPos = function(c) {	return parseInt(this.style[c])}