/*
 * AcmeMenu v2.7
 *
 * Copyright (c) 2003-2005 Mackley F. Pexton.  All rights reserved.
 *
 * This is free software for individual, educational, and non-profit
 * use provided that this copyright notice appears on all copies.
 * Instructions and source code are available at www.acmebase.org/menu.
 * Optimized version is for sale at https://order.acmebase.com.
 * Commercial web sites are required to have an inexpensive license.
 * This software is part of the AcmeBase project at www.acmebase.org.
 * Send correspondence and feedback to: mack_pexton[at]acmebase.org.
 */
d_=document;_a=navigator.userAgent;_p=Menu.prototype;
bv.isNS=(_a.indexOf("Netscape")>=0)?1:0;bv.isNS71=(_a.indexOf("Netscape/7.1")>=0)?1:0;bv.isOpr=(_a.indexOf("Opera")>=0)?1:0;bv.isOpr5=(_a.search(/Opera.5/)>=0)?1:0;bv.isOpr6=(_a.search(/Opera.6/)>=0)?1:0;bv.isOpr7=(_a.search(/Opera.7/)>=0)?1:0;bv.isSafari=(_a.search(/Safari/)>=0)?1:0;bv.isKonq=(navigator.vendor=="KDE")?1:0;bv.isIE=(d_.all&&!bv.isOpr&&!bv.isKonq);bv.isIE6=(bv.isIE&&d_.compatMode&&d_.compatMode.indexOf("CSS1")>=0)?1:0;bv.isIE5Mac=(bv.isIE&&_a.indexOf('Mac')>=0)?1:0;bv.isIE5=(bv.isIE&&!bv.isIE5Mac&&!bv.isIE6)?1:0;bv.isMoz=(!bv.isNS&&!bv.isOpr&&!bv.isIE&&!bv.isSafari&&!bv.isKonq&&_a.indexOf("Mozilla")==0)?1:0;
function bv(){var v,s="";for(v in bv)if(v.substring(0,2)=="is"&&bv[v])s+=(s?" ":"")+v;return s;}
function make_menu(id,k5,keep_open){var m;if(Menu._m[id]){var d4;for(d4 in Menu._m){m=Menu._m[d4];if(m.top.id==id){m.hide_menu();delete Menu._m[d4];}}}var manual=0;keep_open=(keep_open!=null&&keep_open)?1:Menu.KeepOpen;m=new Menu(id,k5,manual,keep_open);m.i4();var a1=m.a1;if(a1){if(a1.onmouseover&&a1.onmouseover!=Menu.b3)a1.d9=a1.onmouseover;if(a1.onmouseout&&a1.onmouseout!=Menu.c8)a1.f2=a1.onmouseout;a1.onmouseover=Menu.b3;a1.onmouseout=Menu.c8;if(bv.isNS)Menu.c7(a1);}else{m.l3();}if(d_.body.parentNode.onclick&&d_.body.parentNode.onclick!=Menu.f1)Menu.e0=d_.body.parentNode.onclick;d_.body.parentNode.onclick=Menu.f1;if(window.onresize&&window.onresize!=Menu.h3)Menu.e7=window.onresize;window.onresize=Menu.h3;return m;}
function menu(id,k5,keep_open){var m=Menu._m[id];if(!m){if(!getElementRef(id)){return;}var manual=1;keep_open=keep_open?1:0;m=new Menu(id,k5,manual,keep_open);m.i4();Menu.f8(m,getElementRef(id));}if(!m.a1){return;}if(m.keep_open&&!m.manual){m.freeze();return;}if(m.is_visible){if(m.manual){if(m.b4)m.b4=m.ClickStop=0;m.hide_submenu();}else{m.ClickStop=1;m.b4=1;m.show_menu();if(Menu.a2&&autoplay.c9)autoplay.pause();Menu.a3=m;}}else{m.show_menu();}}
function submenu(id){var m=Menu._m[id];if(m){if(!m.manual)return;if(m.is_visible){m.hide_submenu();}else{if(m.b5.f0)m.b5.hide_submenu();m.b5.j7(id);}return;}}
function hide_menus(k4){var m,id;for(id in Menu._m){m=Menu._m[id];if(!m.keep_open)m.hide_menu();if(k4)m.c2=0;}Menu.b9=0;}
function reset_menus(){initialize_menus();}
function initialize_menus(){Menu.MenuOffsetX=0;Menu.MenuOffsetY=0;Menu.SubmenuOffsetX=0;Menu.SubmenuOffsetY=0;Menu.MenuPosition="D";Menu.SubmenuPosition="R";Menu.MenuAlign="L";Menu.SubmenuAlign="T";Menu.AllowReposition=1;Menu.MenuOrientation="V";Menu.SubmenuOrientation="V";Menu.BodyMarginTop=0;Menu.ClickStart=0;Menu.ClickStop=Menu.ClickStart||0;Menu.KeepOpen=0;Menu.HideDelayTime=0;Menu.AllowFreeze=1;Menu.CacheLocation=1;Menu.MenuFixed=0;Menu.SubmenuFixed=0;Menu.ZIndex=100;Menu.HighlightSuffix="-hilite";Menu.OnShowMenu=null;Menu.OnHideMenu=null;Menu.TimeToShow=150;Menu.TimeToHide=100;Menu.Group++;if(Menu.initialize_effects)Menu.initialize_effects();}
Menu.Group=-1;initialize_menus();Menu.menus=Menu._m={};Menu.b9=0;Menu.a3=null;Menu.d7=null;Menu.b7=[];Menu.a7=null;Menu.max_z=0;Menu.a2=0;Menu.m0=/menu\([ 	]*(['"]?)([^'",)]+)/;Menu.f9=/submenu\([ 	]*(['"]?)([^'",)]+)/;
function Menu(id,j0,manual,keep_open){if(id)this.e=getElementRef(id);if(j0)this.a1=getElementRef(j0);this.id=id;this.is_submenu=0;this.m8=0;this.c2=0;this.f4=0;this.k0=0;this.h0=this.a1?0:1;this.is_visible=this.h0?1:0;this.b5=null;this.f0=null;this.top=this;this.x=null;this.y=null;this.z=Menu.ZIndex;this.a5=null;this.g9=null;this.g4=null;this.f7=null;this.h7=0;this.j2=0;this.manual=manual;this.keep_open=keep_open;Menu._m[id]=this;}
Menu.k8=function(a5){return a5?a5:window.event?window.event:null;}
Menu.e6=function(a5){return a5.target?a5.target:a5.srcElement?a5.srcElement:null;}
Menu.e4=function(href){if(bv.isKonq){return href.match(Menu.m0).replace(/.*['"]/,"");}else{return RegExp.$1?RegExp.$2:eval(RegExp.$2);}}
Menu.b3=function(a5){a5=Menu.k8(a5);var e=Menu.e6(a5);clearTimeout(Menu.d7);var d4,e2,i5;var m,a0;for(a0=e;a0!=null;a0=a0.parentNode){if(a0.d9)a0.d9(a5);if(a0.id&&(m=Menu._m[a0.id])){if(Menu.a7&&Menu.a7.e!=a0)Menu.a7.thaw();m.l2(a5);if(m.f0&&(!e2||m.f0.id!=e2)){m.f0.hide_submenu();}if(e2){m.j7(e2,i5);}else{m.show_menu();}if(Menu.a2&&autoplay.c9)autoplay.pause();break;}if(a0.href){if(a0.href.match(Menu.f9)){e2=Menu.e4(a0.href);i5=a0;continue;}if(a0.href.match(Menu.m0)){if(Menu.a2&&autoplay.c9)autoplay.pause();d4=Menu.e4(a0.href);if(Menu.a7)Menu.a7.thaw();if((m=Menu._m[d4])){if(!m.c2)m.l2(a5);if(m.ClickStart&&!Menu.b9){break;}m.show_menu();}break;}}}}

Menu.c8 = function(a5) {
	a5 = Menu.k8(a5);
	var e = Menu.e6(a5);
	

	if (bv.isNS) {

		if (e.nodeName == "TEXTAREA") return;
		if (e.nodeName == "OPTION") return;
	}
	var m, top;
	var d4, e2;
	var a0;
	for (a0 = e; a0 != null; a0 = a0.parentNode) {
		if (a0.f2) a0.f2(a5);

		if (a0.id && (m = Menu._m[a0.id])) {
			if (Menu.a2 && autoplay.c9
			&& ! Menu.a7 && ! Menu.a3) autoplay.resume();
			if (m.keep_open) break;
			if (m.top.ClickStop) {
				if (m.top.b4)
					m.top.b4 = m.top.ClickStop = false;
				if (m.top.HideDelayTime) {
					

					Menu.d7 = setTimeout(
					  "hide_menus()", m.top.HideDelayTime);
				}
				break;
			}
			m.top.hide_submenu();

			break;
		}

		if (a0.href) {

			if (a0.href.match(Menu.f9)) {
				e2 = Menu.e4(a0.href);
				continue;
			}

			if (a0.href.match(Menu.m0)) {

				d4 = Menu.e4(a0.href);

				if ((m = Menu._m[d4])) {
					if (Menu.a2 && autoplay.c9
					&& ! Menu.a7 && ! Menu.a3)
						autoplay.resume();
					if (m.ClickStop) {

						if (m.HideDelayTime) {
							

							Menu.d7 = setTimeout(
							  "hide_menus()",m.HideDelayTime);break;}else{break;}}if(m.keep_open){if(Menu.b7[m.Group]&&Menu.b7[m.Group]!=m){clearTimeout(m.h7);Menu.b7[m.Group].show_menu();}break;}m.hide_submenu();}break;}}}}
Menu.i0=function(a5){a5=Menu.k8(a5);var e=Menu.e6(a5);var m,a0;for(a0=e;a0!=null;a0=a0.parentNode){if(a0.href&&!a0.href.match(Menu.f9)){hide_menus();if(Menu.a2&&autoplay.c9)autoplay.pause();break;}if(!a0.onclick)continue;if(a0.f6)a0.f6(a5);if(a0.id&&(m=Menu._m[a0.id])){m.freeze();break;}}if(!bv.isSafari){a5.cancelBubble=1;if(a5.stopPropagation)a5.stopPropagation();}return 1;}
Menu.h6=function(a5){a5=Menu.k8(a5);var e=Menu.e6(a5);if(e.f6)e.f6(a5);a5.cancelBubble=1;if(a5.stopPropagation)a5.stopPropagation();if(bv.isSafari||bv.isKonq){while(e){if(e.href&&e.href.match(Menu.f9)){submenu(Menu.e4(e.href));break;}e=e.parentNode;}}return 1;}
Menu.f1=function(a5){hide_menus();if(Menu.e0){return Menu.e0(a5);}}

Menu.h3 = function(a5) {

	

	hide_menus('relocate');if(Menu.e7)return Menu.e7(a5);}
Menu.g3=function(a5){if(Menu.a7)Menu.a7.thaw();}
_p.freeze=function(){if(this.k0)this.g6();if(Menu.a7){if(Menu.a7==this){return;}else{Menu.a7.thaw();}}this.g9=this.e;this.g4=this.g9.onmouseout;this.g9.onmouseout=null;this.f7=d_.body.parentNode.onclick;d_.body.parentNode.onclick=Menu.g3;if(Menu.a2&&autoplay.c9)autoplay.pause();Menu.a7=this;if(bv.isMoz)this.show_menu();}
_p.thaw=function(){if(this.g9){this.g9.onmouseout=this.g4;d_.body.parentNode.onclick=this.f7;}this.g9=null;Menu.a7=null;if(!this.top.keep_open){if(this.f0)this.hide_submenu();var m=this;do{m.hide_menu();}while((m=m.b5));}if(Menu.a2&&autoplay.c9)autoplay.resume();}

Menu.l6 = {
	"#text":	true,
	"SELECT":	true,
	"TEXTAREA":1};Menu.f8=function(m,e){if(e.href&&e.href.match(Menu.f9)){var id=Menu.e4(e.href);var submenu=m.j6(id,e);Menu.f8(submenu,getElementRef(id));return;}if(e.childNodes){var n;for(n=0;n<e.childNodes.length;n++){if(!Menu.l6[e.childNodes[n].nodeName]){Menu.f8(m,e.childNodes[n]);}}}}
Menu.c7=function(e){var h4;if(e.childNodes){var n;for(n=0;n<e.childNodes.length;n++){h4=e.childNodes[n];if(h4.nodeType!=1)continue;if(h4.onmouseover&&h4.onmouseover!=Menu.b3)h4.d9=h4.onmouseover;h4.onmouseover=Menu.b3;}}}
_p.j6=function(d4,j0){var submenu=new Menu(d4,j0,this.manual,this.keep_open);submenu.b5=this;submenu.top=this.top;submenu.is_submenu=1;submenu.z=this.z+10;return submenu;}
_p.i4=function(){var v,c;for(v in Menu){c=v.substr(0,1);if(c==c.toUpperCase()){this[v]=Menu[v];}}}


_p.l3 = function() {

	if (! this.e) this.e = getElementRef(this.id);

	if (! this.e) {
		
		return;
	}

	if (this.manual) {

		this.c2   = true;
		this.f4 = true;

		this.e.style.zIndex = Menu.ZIndex;

		this.AllowReposition = false;

		if (d_.body.parentNode.onclick && ! this.e.onclick) {
			this.e.onclick = Menu.h6;
		}
	}
	else {
		if (! this.is_submenu) this.k9();
		this.k0 = this.is_submenu
			      ? (this.top.SubmenuFixed || false)
			      : (this.top.MenuFixed || false);
		if (this.e.onmouseover && this.e.onmouseover != Menu.b3)
			this.e.d9 = this.e.onmouseover;
		if (this.e.onmouseout && this.e.onmouseout != Menu.c8)
			this.e.f2  = this.e.onmouseout;
		if (this.e.onclick && this.e.onclick != Menu.i0)
			this.e.f6     = this.e.onclick;
		this.e.onmouseover = Menu.b3;
		this.e.onmouseout  = Menu.c8;

		if (this.top.AllowFreeze) this.e.onclick = Menu.i0;

		if (bv.isNS) Menu.c7(this.e);
	}

	this.h2	= (getElementStyle(this.e,"display") == "none")||bv.isSafari?1:0;this.m8=1;}
_p.k9=function(){if(this.ClickStart)this.ClickStop=1;if(this.HideDelayTime){this.HideDelayTime=parseFloat(this.HideDelayTime)*1000.0;this.ClickStop=1;}if(Menu.a2){this.p1();this.q6();}}

_p.m4 = function() {

	

	if (this.a5) {
		if (this.is_submenu)	{ this.g7(); }
		else			{ this.i1();    }

		var l8 = bv.isIE5 && self.parent.frames.length == 0 ? -2 : 0;
		this.e.style.left = (this.x + l8) + "px";
		this.e.style.top  = (this.y + l8) + "px";if(bv.isOpr5)this.e.style.pixelTop=(this.y+l8);}this.e.style.zIndex=this.z;if(this.top.CacheLocation&&(!this.b5||this.b5.c2))this.c2=1;this.f4=0;}

_p.j3 = function(submenu) {

	var p = this.top.SubmenuPosition;
	if (p == "R" || p == "L") {

		this.x = getEventElementLeft(submenu.a5, this.e, 
					this.b0("left"),
					this.g5("left"));
	}
	else {
		this.y = getEventElementTop(submenu.a5, this.e, 
					this.b0("top"),
					this.g5("top"));}this.c2=1;}

_p.l4 = function() {

	if (! this.e) return;

	this.f4 = true;

	if (this.manual) return;

	if (this.is_submenu) {
		this.g2();
		this.g0();
	}
	else {
		this.h5();   
		this.h1();
	}

	var l8 = bv.isIE5 && self.parent.frames.length == 0 ? -2 : 0;
	this.e.style.left = (this.x + l8) + "px";
	this.e.style.top  = (this.y + l8) + "px";if(bv.isOpr5)this.e.style.pixelTop=this.y;}

_p.l2 = function(a5) {

	this.a5 = {
		"target"  : (a5.target ? a5.target : a5.srcElement ? a5.srcElement : null),

		"offsetX" : (a5.offsetX ? a5.offsetX : 0),
		"offsetY" : (a5.offsetY ? a5.offsetY : 0),
		"clientX" : (a5.clientX ? a5.clientX : 0),
		"clientY":(a5.clientY?a5.clientY:0)};}

_p.show_menu = function() {

	

	clearTimeout(this.j2);
	clearTimeout(this.h7);

	if (this.is_submenu) this.k6();

	if (this.h0) this.d5();

	if (this.is_visible) return;
	this.h7 = setTimeout("Menu._m['"+this.id+"'].do_show_menu()",this.top.TimeToShow);}
_p.do_show_menu=function(){if(this.is_visible)return;if(this.top.ClickStop&&this.b5&&!this.b5.is_visible)return;if(!this.m8)this.l3();if(!this.k0&&(!this.c2||(this.b5&&!this.b5.c2)))this.m4();if(Menu.a2&&this.z>Menu.max_z){Menu.max_z=this.z;}else{this.e.style.zIndex=this.z=++Menu.max_z;}this.g6();if(this.tear_off_menu)this.tear_off_menu.close();if(Menu.a2){this.o3();}else{if(this.h2)this.e.style.display="block";this.e.style.visibility="visible";}if(!this.k0){if(!this.f4)this.l4();if(this.top.AllowReposition)this.k7();}if(this.a1.className){this.a1.className+=this.top.HighlightSuffix;}this.is_visible=1;if(!this.is_submenu&&!this.manual)this.d5();if(this.top.OnShowMenu)this.top.OnShowMenu(this);}
_p.hide_menu=function(){clearTimeout(this.j2);clearTimeout(this.h7);if(this.h0)this.d2();if(!this.is_visible)return;this.j2=setTimeout("Menu._m['"+this.id+"'].do_hide_menu()",this.top.TimeToHide);}
_p.do_hide_menu=function(){if(!this.is_visible||this.h0)return;if(Menu.a2){this.o7();}else{if(!this.tear_off_menu){this.e.style.visibility="hidden";if(this.h2)this.e.style.display="none";}}if(this.a1.className&&this.top.HighlightSuffix){var re=new RegExp(this.top.HighlightSuffix);this.a1.className=this.a1.className.replace(re,"");}this.is_visible=0;if(!this.is_submenu&&!this.manual)this.d2();if(this.top.OnHideMenu)this.top.OnHideMenu(this);}
_p.j7=function(d4,j0){var submenu=Menu._m[d4];if(!submenu)submenu=this.j6(d4,j0);this.f0=submenu;submenu.a5=this.a5;submenu.show_menu();}
_p.hide_submenu=function(){if(this.f0)this.f0.hide_submenu();this.hide_menu();}
_p.k6=function(){var m,f0=this;while((m=f0.b5)){m.show_menu();if(m.f0&&m.f0!=f0)m.f0.hide_submenu();m.f0=f0;f0=m;}}
_p.g6=function(){if(Menu.a3&&Menu.a3!=this.top){Menu.a3.hide_submenu();Menu.b9=0;}if(this.keep_open){var m=Menu.b7[this.top.Group];if(m&&m!=this.top){m.hide_submenu();}}}
_p.d5=function(){if(this.ClickStop){if(Menu.a3&&Menu.a3!=this){clearTimeout(Menu.d7);Menu.a3.do_hide_menu();}Menu.a3=this;Menu.b9=1;}if(this.keep_open){var m=Menu.b7[this.top.Group];if(m&&m!=this)m.do_hide_menu();Menu.b7[this.top.Group]=this;Menu.b9=0;}}
_p.d2=function(){if(Menu.a3&&Menu.a3==this){if(this.b4)this.b4=this.ClickStop=0;Menu.a3=null;}var m=Menu.b7[this.top.Group];if(m&&m==this){Menu.b7[this.top.Group]=null;}}
_p.i1=function(){this.x=getEventElementLeft(this.a5,this.a1,this.a4("left"),this.a9("left"))+this.top.MenuOffsetX;this.y=this.c1()+this.e5()+this.top.MenuOffsetY;}
_p.g7=function(){var b5=this.b5;if(b5.h0&&!b5.c2)b5.j3(this);this.x=(this.top.SubmenuOrientation=="V"&&this.top.MenuOrientation=="V"?b5.x+getElementWidth(b5.e):getEventElementLeft(this.a5,this.a1,this.a4("left"),this.a9("left"))+getElementWidth(this.a1))+this.top.SubmenuOffsetX;this.y=(this.top.SubmenuOrientation!="N"?this.i7():this.c1())+this.top.SubmenuOffsetY;}
_p.h5=function(){switch(this.top.MenuPosition){case "U":this.y-=getElementHeight(this.e)+this.e5()+this.top.MenuOffsetY*2;break;case "L":this.x-=getElementWidth(this.e)+this.top.MenuOffsetX*2;this.y=this.c1()+this.top.MenuOffsetY;break;case "R":this.x+=getElementWidth(this.a1);this.y=this.c1()+this.top.MenuOffsetY;break;case "D":default:}}
_p.g2=function(){switch(this.top.SubmenuPosition){case "L":this.x=(this.top.SubmenuOrientation=="V"&&this.top.MenuOrientation=="V"?this.b5.x:getEventElementLeft(this.a5,this.a1,this.a4("left"),this.a9("left")))-getElementWidth(this.e)-this.top.SubmenuOffsetX;break;case "D":this.x=(this.top.SubmenuOrientation!="N"?this.f3():getEventElementLeft(this.a5,this.a1,this.a4("left"),this.a9("left")))+this.top.SubmenuOffsetX;this.y=(this.top.SubmenuOrientation=="H"&&this.top.MenuOrientation=="H"?this.b5.y+getElementHeight(this.b5.e,this.b5.getBorderHeight()):this.c1()+this.e5())+this.top.SubmenuOffsetY;break;case "U":this.x=(this.top.SubmenuOrientation!="N"?this.f3():getEventElementLeft(this.a5,this.a1,this.a4("left"),this.a9("left")))+this.top.SubmenuOffsetX;this.y=(this.top.SubmenuOrientation=="H"&&this.top.MenuOrientation=="H"?this.b5.y:this.c1())-getElementHeight(this.e,this.getBorderHeight())-this.top.SubmenuOffsetY;break;case "R":default:}}
_p.h1=function(){switch(this.top.MenuAlign){case "R":this.x-=getElementWidth(this.e)-getElementWidth(this.a1)+this.top.MenuOffsetX;break;case "B":this.y-=getElementHeight(this.e)-getElementHeight(this.a1)+this.top.MenuOffsetY;break;case "L":case "T":default:}}
_p.g0=function(){switch(this.top.SubmenuAlign){case "R":this.x-=getElementWidth(this.e)-getElementWidth(this.b5.e)+this.top.SubmenuOffsetX;break;case "B":this.y-=getElementHeight(this.e)-getElementHeight(this.b5.e)+this.top.SubmenuOffsetY;break;case "L":case "T":default:}}
_p.k7=function(){var g1=0;var e=this.e;var b=d_.body;var r0=window.innerWidth?window.innerWidth:b.clientWidth?b.clientWidth:b.offsetWidth;var p3=window.innerHeight?window.innerHeight:b.clientHeight?b.clientHeight:b.offsetHeight;var o4=b.scrollLeft?b.scrollLeft:(b.parentNode&&b.parentNode.scrollLeft)?b.parentNode.scrollLeft:0;var q1=b.scrollTop?b.scrollTop:(b.parentNode&&b.parentNode.scrollTop)?b.parentNode.scrollTop:0;var p0=o4+r0;var n2=q1+p3;var p2=e.offsetWidth?e.offsetWidth:getElementWidth(e);var n3=e.offsetHeight?e.offsetHeight:getElementHeight(e);var m7=e.offsetLeft?e.offsetLeft:getElementLeft(e);var n7=e.offsetTop?e.offsetTop:getElementTop(e);var q7=m7+p2;var p4=n7+n3;if(q7>p0){m7=p0-p2;g1=1;}if(p4>n2){n7=n2-n3;g1=1;}if(m7<o4){m7=o4;g1=1;}if(n7<q1){n7=q1;g1=1;}if(g1){this.e.style.left=m7+"px";this.e.style.top=n7+"px";if(bv.isOpr5)this.e.style.pixelTop=n7;this.c2=0;}}
_p.f3=function(){var l=getEventElementLeft(this.a5,this.a1,this.a4("left"),this.a9("left"));var o=tableOffset(this.e);var p=this.g5("left");var b=this.b0("left");return l-o-p-b;}
_p.i7=function(){var t=this.c1();var o=tableOffset(this.e);var p=this.g5("top");var b=this.b0("top");return t-o-p-b;}
_p.c1=function(){var a1=this.a1;var hy;if(bv.isIE){hy=getEventElementTop(this.a5,a1,this.a4("top"),this.a9("top"));return hy;}hy=getEventElementTop(this.a5,a1);var e8=0;if(this.a5.target.nodeName=="IMG"){var d=getElementStyle(a1,"display");if(d=="inline")e8=1;if(d=="")e8=1;}if((bv.isOpr5||bv.isOpr6)&&this.a5.target.toString().indexOf("HTMLImage")>0)e8=1;if(e8){var iy=getEventElementTop(this.a5);return iy<hy?iy:hy;}return hy;}
_p.e5=function(){var a1=this.a1;if(bv.isIE)return getElementHeight(a1);var e8=0;if(this.a5.target.nodeName=="IMG"){var d=getElementStyle(a1,"display");if(d=="inline")e8=1;if(d=="")e8=1;}if((bv.isOpr5||bv.isOpr6)&&this.a5.target.toString().indexOf("HTMLImage")>0)e8=1;if(bv.isOpr7)e8=1;if(e8){var ih=getElementHeight(this.a5.target);var hh=getElementHeight(a1);return ih>hh?ih:hh;}return getElementHeight(a1);}
_p.b0=function(position){var width=getBorderWidth(this.e,position);if(getBorderWidth.j8)return width;if(this.is_submenu&&this.top.SubmenuBorderWidth!=null)return this.top.SubmenuBorderWidth;if(this.top.MenuBorderWidth!=null)return this.top.MenuBorderWidth;return 0;}
_p.a4=function(position){var width=getBorderWidth(this.a1,position);if(getBorderWidth.j8)return width;if(this.is_submenu){if(this.top.SubmenuHeaderBorderWidth!=null)return this.top.SubmenuHeaderBorderWidth;}else{if(this.top.MenuHeaderBorderWidth!=null)return this.top.MenuHeaderBorderWidth;}return 0;}
_p.g5=function(position){var p=getPadding(this.e,position);if(getPadding.j8)return p;if(this.is_submenu){if(this.top.SubmenuPaddingHorz!=null&&(position=="left"||position=="right"))return this.top.SubmenuPaddingHorz;if(this.top.SubmenuPaddingVert!=null&&(position=="top"||position=="bottom"))return this.top.SubmenuPaddingVert;if(this.top.SubmenuPadding!=null)return this.top.SubmenuPadding;}if(this.top.MenuPaddingHorz!=null&&(position=="left"||position=="right"))return this.top.MenuPaddingHorz;if(this.top.MenuPaddingVert!=null&&(position=="top"||position=="bottom"))return this.top.MenuPaddingVert;if(this.top.MenuPadding!=null)return this.top.MenuPadding;return 0;}
_p.a9=function(position){var p=getPadding(this.a1,position);if(getPadding.j8)return p;if(this.is_submenu){if(this.top.SubmenuHeaderPaddingHorz!=null&&(position=="left"||position=="right"))return this.top.SubmenuHeaderPaddingHorz;if(this.top.SubmenuHeaderPaddingVert!=null&&(position=="top"||position=="bottom"))return this.top.SubmenuHeaderPaddingVert;if(this.top.SubmenuHeaderPadding!=null)return this.top.SubmenuHeaderPadding;}return 0;}
_p.getBorderWidth=function(){if(this.BorderWidth==null)this.BorderWidth=Math.floor((this.b0("left")+this.b0("right"))/2);return this.BorderWidth;}
_p.getBorderHeight=function(){if(this.BorderHeight==null)this.BorderHeight=Math.floor((this.b0("top")+this.b0("bottom"))/2);return this.BorderHeight;}
function parseNum(s){if(s)return parseInt("0"+s,10);return 0;}
function getElementRef(id){if(!id)return null;if(typeof id=="string"){if(d_.getElementById)return d_.getElementById(id);if(d_.all)return d_.all[id];return null;}if(typeof id=="object")return id;return null;}
function getEventElementLeft(a5,a0,b1,c0){if(!a5)a5=window.event;if(!a0)a0=a5.target?a5.target:a5.srcElement?a5.srcElement:null;a0=getElementRef(a0);var x;var e,ox;var a8=0;if(bv.isIE5||bv.isOpr5){if(b1==null)b1=getBorderWidth(a0,"left");e=a5.target?a5.target:a5.srcElement?a5.srcElement:null;if(!e.nodeName||e.nodeName!="IMG"||!e.parentNode||e.parentNode.nodeName!="A"||!e.offsetParent||e.offsetParent.nodeName=="A"){while(e){if(e==a0)break;a8+=e.offsetLeft;e=e.offsetParent;}}a8+=b1;x=a5.clientX-a5.offsetX-a8;if(bv.isIE5)x+=d_.body.scrollLeft;return x;}else if(bv.isIE5Mac){if(b1==null)b1=getBorderWidth(e,"left");if(c0==null)c0=getPadding(e,"left");e=a5.target?a5.target:a5.srcElement?a5.srcElement:null;if(e.nodeName&&e.nodeName=="IMG"&&e.parentNode&&e.parentNode.nodeName=="A"&&e.offsetParent&&e.offsetParent.nodeName!="A"){x=a5.clientX-a5.offsetX-b1-c0;}else{ox=0;k2=0;while(e){ox+=e.offsetLeft;if(e==a0)k2=1;if(!k2){a8+=e.offsetLeft;}e=e.offsetParent;}a8+=b1+c0;x=getMargin(d_.body,"left")+ox-a8;}return x;}else if(bv.isOpr6){x=getElementLeft(a0);return x;}else{e=a0;while(e&&e.nodeType!=1){e=e.parentNode};x=getElementLeft(e);return x;}return 0;}
function getEventElementTop(a5,a0,b1,c0){if(!a5)a5=window.event;if(!a0)a0=a5.target?a5.target:a5.srcElement?a5.srcElement:null;a0=getElementRef(a0);var y;var e,oy;var a8=0;if(bv.isIE5||bv.isIE5Mac||bv.isOpr5){if(b1==null)b1=getBorderWidth(a0,"top");if(bv.isIE5Mac&&c0==null)c0=getPadding(a0,"top");e=a5.target?a5.target:a5.srcElement?a5.srcElement:null;oy=a5.offsetY;if(!e.nodeName||e.nodeName!="IMG"||!e.parentNode||e.parentNode.nodeName!="A"||!e.offsetParent||e.offsetParent.nodeName=="A"){while(e){if(e==a0)break;a8+=e.offsetTop;e=e.offsetParent;}}a8+=b1;if(bv.isIE5Mac)a8+=c0;y=a5.clientY-oy-a8;if(bv.isIE5)y+=d_.body.scrollTop;return y;}else if(bv.isOpr6){y=getElementTop(a0)+Menu.BodyMarginTop;return y;}else{e=a0;while(e&&e.nodeType!=1){e=e.parentNode};y=getElementTop(e);return y;}return 0;}
function getElementLeft(e){var x=e.offsetLeft;while((e=e.offsetParent)){x+=e.offsetLeft;if(bv.isSafari||bv.isKonq){if(getElementStyle(e,'position')=='absolute')break;}else{if(!((bv.isNS71||bv.isIE6||bv.isMoz)&&e.nodeName=='TABLE')){x+=getBorderWidth(e,"left");}}if(e.border&&parseNum(e.border)>0){if(bv.isNS||bv.isMoz)x--;if(bv.isIE6||bv.isOpr7)x++;}}return x;}
function getElementTop(e){var y=e.offsetTop;while((e=e.offsetParent)){y+=e.offsetTop;if(bv.isSafari||bv.isKonq){if(getElementStyle(e,'position')=='absolute')break;}else{if(!((bv.isNS71||bv.isIE6||bv.isMoz)&&e.nodeName=='TABLE')){y+=getBorderWidth(e,"top");}}if(parseNum(e.border)>0){if(bv.isNS||bv.isMoz)y--;if(bv.isIE6||bv.isOpr7)y++;}}return y;}
function getElementStyle(e,i2,d6,d1,d0,position,c3,e1,c6,a6,b8){if(!d6)d6=i2;var sty;if(e.style){if((sty=e.style[i2])){}else if(d1!=null&&(sty=e.style[d1])){sty=parseStyleSetting(sty,position);}else if(c3!=null&&(sty=e.style[c3])){sty=parseBorderSetting(sty,c6);}else if(a6!=null&&(sty=e.style[a6])){sty=parseBorderSetting(sty,c6);}if(sty){if(c6==null||c6!="width"){return sty;}else{if(sty.match(/\d/))return sty;}}}var vs,v=d_.defaultView;if(v&&v.getComputedStyle&&(vs=v.getComputedStyle(e,""))){sty=vs.getPropertyValue(d6);if(sty!=null){if(sty=='0px'&&e.nodeName=='TABLE'&&(d0=='padding'||d0=='margin')){;}else{return sty;}}if(d0!=null){sty=parseStyleSetting(vs.getPropertyValue(d0),position);if(sty!=null){return sty;}}if(e1!=null){sty=parseBorderSetting(vs.getPropertyValue(e1),c6);if(sty!=null){return sty;}}if(b8!=null){sty=parseBorderSetting(vs.getPropertyValue(b8),c6);if(sty!=null){return sty;}}}if(e.currentStyle){sty=e.currentStyle[i2];if(sty!=null){return sty;}if(d1!=null){sty=parseStyleSetting(e.currentStyle[d1],position);if(sty!=null){return sty;}}if(c3!=null){sty=parseBorderSetting(e.currentStyle[c3],c6);if(sty!=null){return sty;}}if(a6!=null){sty=parseBorderSetting(e.currentStyle[a6],c6);if(sty!=null){return sty;}}}var l9=d_.styleSheets;var o1,s;if(l9&&l9.length>0){for(var x=0;x<l9.length;x++){var rules=l9[x].cssRules;if(rules&&rules.length>0){for(var y=0;y<rules.length;y++){if(rules[y].style){s=e3(e,d6,rules[y]);if(s!=null)sty=s;}else{o1=rules[y].styleSheet;for(var z=0;z<o1.cssRules.length;z++){s=e3(e,d6,o1.cssRules[z]);if(s!=null)sty=s;}}}}}}if(sty!=null){return sty;}return null;}
function e3(e,d6,rule){var t=rule.selectorText;var z=rule.style;if(bv.isSafari){if(t.substr(0,1)=='*'){t='#'+t.substr(5,(t.length-7));}else{t=t.replace((new RegExp("\\[.*?\\]")),"");}}var re=e.className?new RegExp("\\."+e.className+"$"):null;if(z[d6]!=''&&z[d6]!=null&&((t==e.nodeName||t.match(re))||(e.id&&t=='#'+e.id))){return z[d6];}return null;}
function parseStyleSetting(j9,position){if(!j9)return null;if(!position)return j9;j9.match(/(\S+)(\s+(\S+)(\s+(\S+)(\s+(\S+))?)?)?/);if(position=="top"){return RegExp.$1;}if(position=="right"){if(RegExp.$3)return RegExp.$3;return RegExp.$1;}if(position=="bottom"){if(RegExp.$5)return RegExp.$5;return RegExp.$1;}if(position=="left"){if(RegExp.$7)return RegExp.$7;if(RegExp.$3)return RegExp.$3;return RegExp.$1;}}
function parseBorderSetting(j9,c6){if(!c6||c6=="width"){if(j9.match(/(\d+px)/))return RegExp.$1;return 0;}}
function getBorderWidth(e,position){var width;var d1="borderWidth";var d0="border-width";var a6="border";var b8="border";if(!position){width=getElementStyle(e,d1,d0,null,null,null,a6,b8,"width");}else{var Position=position.substr(0,1).toUpperCase()+position.substr(1);var i2="border"+Position+"Width";var d6="border-"+position+"-width";var c3="border"+Position;var e1="border-"+position;width=getElementStyle(e,i2,d6,d1,d0,position,c3,e1,"width",a6,b8);}if(width==null||!width.match(/\d/)){getBorderWidth.j8=0;return 0;}else{getBorderWidth.j8=1;return parseNum(width);}}
function getPadding(e,position){var p,s="padding";if(!position){p=getElementStyle(e,s,s);}else{var Position=position.substr(0,1).toUpperCase()+position.substr(1);p=getElementStyle(e,(s+Position),(s+"-"+position),s,s,position);}if(p==null){getPadding.j8=0;return 0;}else{getPadding.j8=1;return parseNum(p);}}
function getMargin(e,position){var m,s="margin";if(!position){m=getElementStyle(e,s,s);}else{var Position=position.substr(0,1).toUpperCase()+position.substr(1);m=getElementStyle(e,(s+Position),(s+"-"+position),s,s,position);}if(m==null){getMargin.j8=0;return 0;}else{getMargin.j8=1;return parseNum(m);}}
function tableOffset(e){var m3=0;if(e&&e.nodeName=="TABLE"){m3=(e.cellPadding==""?1:parseNum(e.cellPadding))+(e.cellSpacing==""?1:parseNum(e.cellSpacing))+parseNum(e.border);if(e.cellPadding==""&&e.cellSpacing=="")m3++;}else if(bv.isOpr6||bv.isOpr5){m3=(e.cellPadding==null?1:parseNum(e.cellPadding))+(e.cellSpacing==null?1:parseNum(e.cellSpacing))+parseNum(e.border);}return m3;}
function getElementWidth(e){if(!e)return;var h8=0;if(e.offsetWidth){h8=e.offsetWidth;}else if(e.clip&&e.clip.width){h8=e.clip.width;}else if(e.style&&e.style.pixelWidth){h8=e.style.pixelWidth;}return parseInt(h8);}
function getElementHeight(e){if(!e)return;var h8=0;if(e.offsetHeight){h8=e.offsetHeight;}else if(e.clip&&e.clip.height){h8=e.clip.height;}else if(e.style&&e.style.pixelHeight){h8=e.style.pixelHeight;}return parseInt(h8);}
