// CodeThatMenu
// Version: 2.0.3 (10.12.03.1)
// Script must be registered in order to be used on your sites.
// Copyright (c) 2003 by CodeThat.Com
// http://www.codethat.com/

var CT_IMG_BLANK = "img/1x1.gif";

function CT_pre(src)
{	return CodeThat.preload(src); };

var CT_fnv = ua.oldOpera || ua.nn4 ? CT_vis : CT_inhvis;

function CT_copy(src, dest, menu, box)
{
	for ( var i in src )
		if ( Und(dest[i]) )
			if ( menu || !box || i != 'bgcolor' && i != 'bgimg' && i != 'border' && i != 'shadow' && i != 'itemoffset' && i != 'opacity' )
				dest[i] = src[i];
};

function CT_mnuLrSource(w, h, t, l, ox, oy, z, a, v, bgc, bgi, b, html, ev, al)
{
	var i = this._l.length, lw = w, lh = h;
	var st, lr = this._l[i] = [CodeThat.newID(), ox, oy];
	if ( b )
	{
		var bw = b.width;
		if ( ua.moz || ua.oldOpera || ua.nn4 )
		{
			lw -= 2 * bw;
			lh -= 2 * bw;
		}
		if ( !ua.nn4 )
			st = "border:" + bw + "px " + (b.style || 'solid') + ' ' + b.color;
		else
		{
			html = CT_lrSource('s' + lr[0], lw, lh, bw, bw, 1, 1, '', bgc || this._p.style.bgcolor, bgi, '', '', '', '', z+1, '', '', html);
			lw = w;
			lh = h;
			bgc = b.color;
			bgi = '';
		}
	}
	return CT_lrSource(lr[0], lw, lh, t + oy, l + ox, a, v, '', bgc, bgi, '', '', '', st, z, al, ev, html);
};

function CT_Border(d, b, hor, w)
{
	var bw = b.width, bc = b.color;
	var def = d || {}, bsrc = '', sz = def.size || w;
	if ( Def(d) )
	{
		var i, tdw, tblw, tblh , atr, add, diff = sz;
		bw = pI(def.width || bw);
		bc = def.color || bc;
		tblw = hor ? sz : bw;
		tblh = hor ? bw : sz;
		atr = hor ? ' width=' : ' height=';
		add = hor ? (' height=' + tblh) : (' width=' + tblw);

		if ( Def(def.el) )
		{
			var elw, elm = def.el;
			for ( i = 0; i < elm.length; i++ )
			{
				elw = pI(elm[i].width);
				if ( !isNaN(elw) )
					diff -= elw;
			}
			if ( diff < 0)
				diff = 0;
			bsrc = '<table cellpadding=0 cellspacing=0 border=0 width=' + tblw + ' height=' + tblh + '>' + (hor ? '<tr>' : '');
			for ( i = 0; i < elm.length; i++ )
			{
				var imsrc = '', bgimg = '';
				if ( !hor )
					bsrc += '<tr>';
				tdw = elm[i].width;
				imsrc = elm[i].src || CT_IMG_BLANK;
				if ( Undef(tdw) )
				{
					tdw = diff;
					bgimg = imsrc;
					imsrc = CT_IMG_BLANK;
				}
				tdw = atr + tdw;
				bsrc += '<td' + tdw + (Def(bgimg) ? ' background=" ' + bgimg + '"' : '')
					+ (Def(elm[i].color) ? ' bgcolor="' + elm[i].color + '"' : '')
					+ add + '>' + '<img src="' + imsrc + '"' + tdw + add + '></td>';
				if ( !hor )
					bsrc += '</tr>';
			};

			bsrc += (hor ? '</tr>' : '') + '</table>';
		}
	}

	return Def(d) || Def(bw) && Und(d) ? ([bsrc, (hor ? sz :bw) ,bc, pI(def.offset || (hor ? -bw : 0)), (hor ? bw : sz)]) : null;
};

function CMenu(def, id)
{
	var t = this;
	t.id = id;
	t.open = [];
	if ( Undef(def) )
		def = {};
	if ( Undef(def.type) )
		def.type = "bar";
	t.dd = (def.type == "dropdown");
	if ( Undef(def.style) )
		def.style={};

	var o = def.style;
	o.box = pB(o.box, 1);
	if ( Und(o.bgcolor) )
		o.bgcolor = 'white';
	o.z = o.z || 1;
	if ( Undef(def.position) )
		def.position = {};
	o = def.position;
	o.pos = o.pos || [0,0];
	o.pos[0] = pI(o.pos[0]);
	o.pos[1] = pI(o.pos[1]);
	o.anchor_side = o.anchor_side || "nw";

	t.menu = new CPopupMenu(def, t, null, t.id + ".menu");
	t.timer = def.timer || 1000;
	t.otime = def.otime || 10;

	CT_IMG_BLANK = def.imgblank || CT_IMG_BLANK;
	CT_pre(CT_IMG_BLANK);
	_CT_menus[_CT_menus.length]=t;
};

{
	var CMp = CMenu.prototype;

	CMp.create = function()
	{	this.menu.createTop(); };

	CMp.handleEvent=function(e, s1, s2, src)
	{
		if ( !this._dis )
		{
			var t = this;
			t.clearTimer();
			if ( e=='i' )
			{
				var o = t.open, l = o.length;
				if ( Undef(s1) )
					t.hide();
				else if ( Undef(s2) || (l != 0 && o[l-1].id != s2.id))
					t.hideAfter(s1);
				if ( Def(s2) )
					t.showTimer(s2);
				if ( Def(src) )
					src.over();
			}
			else if (e == 'o' )
			{
				t.setTimer();
				if ( Def(src) )
					src.out();
			}
		}
	};

	CMp.clearTimer = function()
	{
		if ( Def(this._to) )
			clearTimeout(this._to);
			this._to=''
	};

	CMp.setTimer = function()
	{
		if ( this._to )
			return;

		this._to = setTimeout(this.id + '.hide()', this.timer);
	};

	CMp.showTimer = function(m)
	{
		if ( this._to )
			return;
		this._to = setTimeout(this.id + '.show(' + m._path + ')', this.otime);
	};

	CMp.show = function(path)
	{
		path.visible(1);
		this.open[this.open.length] = path;
		this._to = '';
	};

	CMp.hide = function()
	{
		if ( this.open.length > 0 )
			this.hideAfter({"id" : ''});
			this._to = '';
	};

	CMp.hideAfter = function(path)
	{
		var i, l, o;
		while ( (l = (o = this.open).length) > 0 && o[l-1].id != path.id )
		{
			i = l - 1;
			o[i].visible(0);
			this.open = o.slice(0,i);
		}
	};

	CMp.popupAt = function(x,y)
	{
		this.menu.moveRel(x,y);
		this.popup();
	};

	CMp.popupEv = function(e)
	{	this.popupAt(e.x, e.y); };

	CMp.popup = function()
	{ this.handleEvent('i', null, this.menu); };

	CMp.run = function()
	{
		this.menu.create();
		this.menu.moveLayers();
		if ( this.menu.type != 'popup' )
			this.menu.visible(1);
		this._op = 1;
	};
}

function CPopupMenu(def, p, p_lvl, path)
{
	var t = this;
	t.id = CodeThat.newID();
	if ( Undef(def) )
		def = {};
	t._p = p;
	t._p_lvl = p_lvl;
	t._top = Undef(p_lvl);
	t._tid = t._p._tid || t._p.id;
	t.dd = p_lvl && p_lvl.dd || p.dd;
	t._path = path;

	var o = t.style=t._top ? def.style || {} : {};
	if ( Def(o.box) )
		o.box = pB(o.box, 1);
	if ( Def(o.itemoffset) )
	{
		o.itemoffset.x = pI(o.itemoffset.x || 0);
		o.itemoffset.y = pI(o.itemoffset.y || 0);
	}
	if ( Def(o.size) )
	{
		o.size[0] = pI(o.size[0]);
		o.size[1] = pI(o.size[1]);
	}
	if ( Def(o.shadow) )
		o.shadow.width = pI(o.shadow.width || 5);
	if ( Def(o.border) )
		o.border.width = pI(o.border.width || 1);
	t.itemover = t._top ? def.itemover || {} : {};

	o = t.position = def.position || {};
	if ( Def(o.pos) )
	{
		o.pos[0] = pI(o.pos[0]);
		o.pos[1] = pI(o.pos[1]);
	}
	else
		o.pos = [0,0];

	if ( Def(o.menuoffset) )
	{
		o.menuoffset.x = pI(o.menuoffset.x || 0);
		o.menuoffset.y = pI(o.menuoffset.y || 0);
	}

	if ( t._top || t.dd )
	{
		t.style.direction = t.style.direction || (t._top && t.dd ? "h" : "v");
		o.anchor = o.anchor || (p_lvl && p_lvl._p.dd ? "sw" : "ne");
	}
	t.separator = def.separator || {};
	t.defaction = def.defaction || {};
	if ( !t._top )
	{
		t.style.z = t.style.z || ( p.style.z + 5 );
		CT_copy(p_lvl.style, t.style, 1);
		CT_copy(p_lvl.itemover, t.itemover, 1);
		CT_copy(p_lvl.position, t.position, 1);
		CT_copy(p_lvl.defaction, t.defaction, 1);
	}
	else
	{
		t.type = def.type;
		t.style.z = t.style.z || 1;
	}
	t.createItems(def);
	t._l = [];
};


{
	var CPp = CPopupMenu.prototype;

	CPp.createTop = function()
	{
		var mw, mh, t = this, st = t.style;
		var p = t.position.pos, w = t.width(), h = t.height();

		if ( st.box )
		{
			mw = w;
			mh = h;
		}
		else
		{
			mw = (pI(st.fixwidth) || w);
			mh = (pI(st.fixheight) || h);
		}

		t.createLr(mw, mh, p[1], p[0], 0, 0, st.z, 1, 0);
	};

	CPp.createLr = function(w, h, t, l, ox, oy, z, a, v, bgc, bgi, html, ev, al)
	{
		var i = this._l.length;
		var lr = this._l[i] = [CodeThat.newID(), ox, oy];
		var b = this.style.box;
		CT_createLayer(lr[0], w, h, t+oy, l+ox, a, v, '', bgc, bgi, '', (b || ua.nn4 ? 'hidden' : 'visible'), '', '', z, al, ev, html);
		return i;
	};

	CPp.create = function()
	{
		var t = this;
		var i, b = t.style.box;
		var p = t.position.pos, w = t.width(), h = t.height(), st = t.style, z = st.z;
		var iw = w, ih = h, iox = 0, ioy = 0;

		t.moveItems();
		var itsrc = t.itSrc();
		t._b = t.createLr(w, h, p[1], p[0], 0, 0, (b ? (z+2) : z), 1, 0, (b ? st.bgcolor : ''), (b ? st.bgimg : ''), (ua.nn4 ? '' : itsrc), ['mouseover', t._tid + '.clearTimer()', 'mouseout', t._tid + '.setTimer()']);

		if ( ua.nn4 )
			dw(itsrc);

		/* - Remove (C) notice which appears over logo
		if ( t._top )
		{
			var ln = unescape('%43%6F%64%65%54%68%61%74%2E%43%6F%6D');
			t.createLr(150, 20, p[1], p[0], 0, (b ? h : -20), z+5, 1 , 0, '', '', ln.fontcolor('#AAAAAA').fontsize(-2).link('http://'+ln));
		}
		*/

		if ( b )
		{
			var j = st.shadow;
			if ( j )
			{
				t.createLr(j.width, h, p[1], p[0], w, j.width, z, 1, 0, j.color, '', '', '');
				t.createLr(w, j.width, p[1], p[0], j.width, h, z, 1, 0, j.color, '', '', '');
			}

			j = st.border;
			if ( j )
			{
				var bpr, bw = w;

				bpr = CT_Border(j.l, j, 0, h);
				if ( bpr )
				{
					iox = -bpr[1];
					t.createLr(bpr[1], bpr[4], p[1], p[0], -bpr[1], bpr[3], z+1, 1, 0, bpr[2], '', bpr[0], '');
					bw += bpr[1];
				}

				bpr = CT_Border(j.r, j, 0, h);
				if ( bpr )
				{
					t.createLr(bpr[1], bpr[4], p[1], p[0], w, bpr[3], z+1, 1, 0, bpr[2], '', bpr[0], '');
					bw += bpr[1];
				}

				bpr = CT_Border(j.t, j, 1, bw);
				if ( bpr )
				{
					ioy = -bpr[4];
					t.createLr(bpr[1], bpr[4], p[1], p[0], bpr[3], -bpr[4], z+1, 1, 0, bpr[2], '', bpr[0], '');
				}

				bpr = CT_Border(j.b, j, 1, bw);
				if ( bpr )
				{
					ih += bpr[4];
					t.createLr(bpr[1], bpr[4], p[1], p[0], bpr[3], h, z+1, 1, 0, bpr[2], '', bpr[0], '');
				}

				iw = bw;
			}
		}
		else
		{
			iox = t._fx1;
			ioy = t._fy1;
			iw = Math.max(iw, t._fx2 - iox);
			ih = Math.max(ih, t._fy2 - ioy);
		}

		if ( ua.ie55up )
			t.createLr(iw, ih, p[1], p[0], iox, ioy, z-1, 1, 0, '', '', '<iframe frameborder=0 '+(location.protocol=='https:'?' src="/blank.html"':'')+' style="filter:Alpha(Opacity=0);visibility:inherit;position:absolute;top:0px;left:0px;height:100%;width:100%"></iframe>');

		for ( i = t.items.length; i > 0; )
			t.items[--i].createChild();

		t.created = 1;
	};

	CPp.itSrc = function()
	{
		var i = 0, src = '', it = this.items;
		for ( ; i < it.length; )
			src += it[i++].src();
		return src;
	};

	CPp.AbsPos = function()
	{
		var p;
		if ( this._top )
			p = this.created ? CT_getAbsPos(this._l[0][0]) : this.position.pos;
		else
			p = this.position.pos || [0,0];
		return [p[0],p[1]];
	};

	CPp.moveItems = function()
	{
		var i, ap, ix, iy, ox, oy, t = this;
		var dh = t.hor(), it = t.items, b = t.style.box, ioff = t.style.itemoffset;

		t._fx1 = t._fy1 = t._fx2 = t._fy2 = ox = oy =0;

		if ( ua.nn4 )
			ap = t.position.pos || [0,0];
		if ( b )
		{
			ix = 0;
			iy = 0;
		}
		else
			iy = ix = 0;

		if ( Def(ioff) )
		{
			ox = pI(ioff.x || 0);
			oy = pI(ioff.y || 0);

			if ( b )
			{
				ix += ox;
				iy += oy;
			}
		}

		for ( i = 0; i < it.length; i++ )
		{
			var p, s = it[i].style.size;

			if ( b || !it[i].Pos())
			{
				it[i].Pos([ix,iy]);
				if ( dh )
					ix += s[0] + ox;
				else
					iy += s[1] + oy;
			}

			if ( ua.nn4 )
				it[i].moveRel(ap[0], ap[1]);
			else if ( !b&&ua.ie55up )
			{
				p = it[i].Pos();
				t._fx1 = Math.min(t._fx1, p[0]);
				t._fy1 = Math.min(t._fy1, p[1]);
				t._fx2 = Math.max(t._fx2, p[0] + s[0]);
				t._fy2 = Math.max(t._fy2, p[1] + s[1]);
			}
		}
	};

	CPp.moveSubs = function()
	{
		var o, p = this.AbsPos(), i = this._top ? 1 : 0;

		for ( ; i < this._l.length; )
		{
			o = this._l[i++];
			CT_moveTo(o[0], p[0] + o[1], p[1] + o[2]);
		}
	};

	CPp.moveLayers = function(ns)
	{
		this.moveSubs();
		if ( ua.nn4 )
			this.moveItems();

		var i, it = this.items;
		if ( !ns )
			for ( i = it.length; i > 0; )
				it[--i].moveChild();
	};

	CPp.imVis = function(v)
	{
		var i, it = this.items;
		for ( i = 0; i <it.length; i++ )
			it[i].visible(v);
	};

	CPp.visible = function(v)
	{
		var i, t = this;
		t.vis = v;
		for ( i = 0; i < t._l.length; i++ )
			CT_vis(t._l[i][0], v);
		if ( ua.oldOpera || ua.nn4 )
			t.imVis(v);
		if ( t._p.setOver )
			t._p.setOver(v);
	};

	CPp.moveTo = function(x, y, ns)
	{
		var i, o, p = this.position;
		p.pos = [x,y];
		if ( this._l.length > 0)
		{
			CT_moveTo(this._l[0][0], x, y);
			this.moveLayers(ns);
		}
	};

	CPp.moveRel = function(x, y)
	{
		var w, h, off, t = this, p = t.position, a = p.anchor, as = p.anchor_side;
		if ( t._p.width )
		{
			w = t._p.width();
			h = t._p.height();

			if ( a == 'nw' || a == 'sw' || a == 'w')
			{}
			else if ( a == 'ne' || a == 'se' || a == 'e' )
				x += w;

			if ( a == 'nw' || a == 'ne' || a == 'n' )
			{}
			else if ( a == 'sw' || a == 'se' || a == 's' )
				y += h;

			if ( a == 'n' || a == 's' )
				x = Math.ceil(x + w / 2);
			if ( a == 'e' || a== 'w' )
				y = Math.ceil(y + h / 2);
		}

		w = t.width(), h =t.height();
		if ( as == 'nw' || as == 'sw' || as == 'w' )
		{}
		else if( as == 'ne' || as == 'se' || as == 'e' )
			x -= w;

		if( as == 'nw' || as == 'ne' || as == 'n' )
		{}
		else if( as == 'sw' || as == 'se' || as == 's' )
			y -= h;

		if ( as == 'n' || as == 's' )
			x -= Math.floor(w/2);
		if ( as== 'e' || as == 'w' )
			y -= Math.floor(h/2);

		if ( Def(off = p.menuoffset) )
		{
			x += off.x;
			y += off.y;
		}
		t.moveTo(x,y);
	};

	CPp.hor = function()
	{	return this.style.direction == 'h'; };

	CPp.width = function(c)
	{
		var i, obj, h, r = 0, ix = 0, t = this, it = t.items;
		if ( t.style.box )
			if ( !Und(t._b) && !c )
				r = CT_getWidth(t._l[t._b][0]);
			else
			{
				h=t.hor();
				if ( Def(obj = t.style.itemoffset) )
					ix = obj.x;
				for ( i = 0; i < it.length; i++ )
				{
					var iw = it[i].style.size[0];
					r = h ? (r + iw + ix) : Math.max(r,iw);
				}
				r += (h ? 1 : 2) * ix;
			}
		else
			r = it[0].style.size[0];
		return r;
	};

	CPp.height = function(c)
	{
		var i, h, obj, r = 0, iy = 0, t = this, it = t.items;
		if ( t.style.box )
			if ( !Und(t._b) && !c )
				r = CT_getHeight(t._l[t._b][0]);
			else
			{
				h = t.hor();
				if ( Def(obj=t.style.itemoffset) )
					iy = obj.y;
				for ( i = 0; i < it.length; i++ )
				{
					var ih = it[i].style.size[1];
					r = h ? Math.max(r, ih) : (r + ih + iy);
				}
				r += (h ? 2 : 1) * iy;
			}
		else
			r = it[0].style.size[1];
		return r;
	};

	CPp.createItems = function(def)
	{
		this.items = [];
		var i, it = def.items;
		if ( Und(it) )
			return;
		if ( Und(it.length) && Def(it.item) )
			it=it.item;
		if ( Und(it.length) )
			it=[it];
		for ( i = 0; i < it.length; i++ )
			this.addItem(it[i]);
	};

	CPp.addItem = function(def)
	{
		var it = this.items;
		return it[it.length] = new CMenuItem(def, this, this._path + ".items[" + it.length + "]");
	};
}

function CMenuItem(def, p, path)
{
	this._p = p;
	this._tid = p._tid;
	this._path = path;

	if ( Def(def) && def.type == 'separator' )
	{
		def = p.separator;
		def.type = 'separator';
	}
	this.initDef(def);
	this._l=[];
};

{
	var CMp = CMenuItem.prototype;
	CMp.lrSrc = CT_mnuLrSource;

	CMp.initDef = function(def)
	{
		var t = this;
		if ( Undef(def) )
			def={};
		t.text = def.text;
		t.textover = def.textover;

		var o = t.style = def.style || {};
		if ( Def(o.size) )
		{
			o.size[0]  = pI(o.size[0]);
			o.size[1] = pI(o.size[1]);
		}
		if ( Def(o.shadow) )
			o.shadow.width = pI(o.shadow.width || 5);
		if ( Def(o.border) )
			o.border.width = pI(o.border.width || 1);
		o.z = o.z || (t._p.style.z + 5);
		t.styleover = def.styleover || {};
		CT_copy(t._p.style, t.style, 0, t._p.style.box);
		CT_copy(t._p.itemover, t.styleover, 0);
		if ( def.menu && t._path.split('.').length < 7)
			t.menu = new CPopupMenu(def.menu, t, t._p, t.child());
		else
			t.menu = null;
		t.action = def.action || {};
		CT_copy(t._p.defaction, t.action, 0);

		var o = t.position = def.position || {};
		if ( Def(o.pos) )
		{
			o.pos[0] = pI(o.pos[0]);
			o.pos[1] = pI(o.pos[1]);
		}
		t.type = def.type;
		t.sep = (def.type == 'separator');
	};

	CMp.src = function()
	{
		var t = this, src = '';
		var p = t.Pos() || [0,0], st = t.style, s = st.size, _z = st.z, vis = !ua.nn4 || t._p.vis, m_o = t.sep || t.frm;
		var w = s[0], h = s[1], x = p[0], y = p[1], ox = 0, oy = 0;
		var act = t.action, js = act.js, url = act.url, target = act.target;
		var anch = !m_o && (js || url);
		var p_p = t._p._path;

		if ( anch )
		{
			src += '<a href="' + (url||'#') + (target ? '" target="' + target: '')
				+ '" onClick="' + (ua.nn4 ? '' : 'this.blur();') + t._tid + '.hide();' + (js ? js : url ? '':'return false')
				+ '" title="' + (act.title || '') + '">';
		}

		if ( !m_o )
			src = t.lrSrc(w, h, y, x, 0, 0, _z + 5, 1, vis, '', '', '',
							src + '<img border=0 src="' + CT_IMG_BLANK + '" width = ' + w + ' height=' + h + '>' + (anch ? '</a>' : ''),
							['mouseover', t._tid + ".handleEvent('i'," + p_p + (!m_o ? "," + t.child() + "," + t._path : '') + ");CodeThat.cancelEvent(event)" ,
								'mouseout' , t._tid + ".handleEvent('o'," + p_p + ",null" + (!m_o ? ("," + t._path) : '') + ");CodeThat.cancelEvent(event)"]);

		var bg = st.bgimg, bgc = st.bgcolor, brd = st.border;
		src += t.lrSrc(w, h, y, x, ox, oy, _z + 2, 1, vis, bgc, bg, brd, t.sep ? '' : t.gHTML(0));
		if ( !m_o )
			src += t.lrSrc(w, h, y, x, ox, oy, _z + 4, 1, 0, (t.styleover.bgcolor || bgc), (t.styleover.bgimg || bg), (t.styleover.border || brd), t.gHTML(1));

		var v = st.shadow;
		if ( v )
			src += t.lrSrc(w, h, y, x, v.width, v.width, _z, 1, vis, v.color);

		return src;
	};

	CMp.gHTML = function(n)
	{
		var t = this;
		var sto, st = t.style;
		var im, ei = st.imgendoff, brd = st.border, w = st.size[0], h = st.size[1], txt = t.text;

		if ( t.menu )
			im = st.imgdir;
		else
		{
			im = st.imgitem;
			if ( ei )
				ei = {src:CT_IMG_BLANK, width:ei.width, height:ei.height}
		}

		var al = st.align, css = st.css, tcol = st.color;
		if ( n == 0 )
			return t.mkHTML(w, h, tcol, css, al, t.text, im, ei, brd);
		if ( n == 1 )
		{
			txt = (t.textover || txt);
			sto = t.styleover;
			if ( t.menu )
			{
				im = sto.imgdir || st.imgdiropen || im;
				ei = st.imgendon || ei;
			}
			else
				im = sto.imgitem || im;
		}

		return t.mkHTML(w, h, sto.color || tcol, sto.css || css, sto.align || al, txt, im, ei, sto.border || brd);
	};

	CMp.fillLr = function()
	{
		var t = this;
		CT_HTML(t._l[1][0], t.gHTML(0));
		if ( !t.sep )
			CT_HTML(t._l[2][0], t.gHTML(1));
	};

	CMp.mkHTML = function(lw, lh, fn, css, al, txt, img, ei, b)
	{
		var spc, iw, ih, w, isrc = '', src = '';
		if ( txt || Def(img) || Def(ei) )
		{
			src = '<table border=0 cellpadding=0 cellspacing=0 width=100%><tr>';
			if ( b )
			{
				lw -= 2 * b.width;
				lh -= 2 * b.width;
			}
			if ( img )
			{
				spc = img.space || this.style.imgspace;
				spc = pI(spc || 0);
				iw = pI(img.width);
				ih = pI(img.height);
				w = iw + spc * 2;
				lw -= w;
				src += '<td width=' + w + ' height=' + ih + '><img src="' + img.src + '" width=' + iw + ' height=' + ih + ' hspace=' + spc + ' border=0></td>';
			}
			if ( ei )
			{
				spc = ei.space || this.style.imgspace;
				spc = pI(spc || 0);
				iw = pI(ei.width);
				ih = pI(ei.height);
				w = iw + spc * 2;
				lw -= w;
				isrc = '<td width=' + w + ' height=' + ih + ' align=right><img src="' + ei.src + '" width=' + iw + ' height=' + ih + ' hspace=' + spc + ' border=0></td>';
			}
			if ( txt )
				src += '<td' + (al ? (' align=' + al) : '') + ' height="' + lh + '" width="' + lw
					+ '"><div' + (css ? (' class="' + css + '"') : '') + '>'
					+ (fn ? ('<font color=' + fn + '>' + txt + '</font>') : txt)
					+ '</div></td>';
			src += isrc + '</tr></table>';
		}
		return src;
	};

// ABOVE OK

	CMp.createChild = function()
	{	if ( this.menu ) this.menu.create(); };

	CMp.child = function()
	{	return this._path + ".menu"; };

	CMp.visible = function(v)
	{
		var i, t = this;
		if ( t._l.length )
		{
			for ( i = 0; i < t._l.length; )
				CT_fnv(t._l[i++][0], v);
			if ( t._l[2] )
				CT_hide(t._l[2][0]);
		}
	};

	CMp.Pos = function(p)
	{	return Def(p) ? (this.position.pos = p) : this.position.pos; };

	CMp.Type = function()
	{	return this.type; };

	CMp.AbsPos = function()
	{
		var pos = this._p.AbsPos();
		pos[0] += this.Pos()[0];
		pos[1] += this.Pos()[1];
		return pos;
	};

	CMp.width = function()
	{	return this.style.size[0]; };

	CMp.height = function()
	{	return this.style.size[1]; };

	CMp.moveChild = function()
	{
		if ( this.menu )
		{
			var ap = this.AbsPos();
			this.menu.moveRel(ap[0], ap[1]);
		}
	};

	CMp.moveRel = function(x, y)
	{
		var i = 0, l = this._l, p = this.Pos();
		for ( ; i<l.length ; i++ )
			CT_moveTo(l[i][0], x + p[0] + l[i][1], y + p[1] + l[i][2]);
	};

	CMp.over = function()
	{
		var t = this;
		CT_fnv(t._l[2][0], 1);
		CT_hide(t._l[1][0]);
		var scr = t.action.over;
		if ( Def(scr) )
			eval(scr);
	};

	CMp.out = function()
	{
		if ( !this.menu || !this._over )
		{
			this.setBool(1);
			var scr = this.action.out;
			if ( Def(scr) )
				eval(scr);
		}
	};

	CMp.setOver = function(v)
	{
		this._over = v;
		this.setBool(!v);
	};

	CMp.setBool = function(v)
	{
		var t = this;
		if ( v )
		{
			CT_hide(t._l[2][0]);
			if ( !(ua.nn4 || ua.oldOpera) || t._p.vis )
			{
				CT_fnv(t._l[1][0], 1);
			}
		}
	};
}

var _CT_menus = [];

function CT_m_load()
{	CodeThat.setOnResize(CT_m_res, 1); };

function CT_m_res()
{
	if ( ua.oldOpera || ua.nn4 )
	{
		if ( Undef(window._CT_reloading) )
		{
			window._CT_reloading = 1;
			location.reload(1);
		}
	}
};

if ( ua.oldOpera )
	CodeThat.setOnLoad(CT_m_load);
else
	CodeThat.setOnResize(CT_m_res);