c_hideTimeout=500; // 1000==1 second
c_subShowTimeout=250;
c_keepHighlighted=true;
c_findCURRENT=false; // find the item linking to the current page and apply it the CURRENT style class
c_findCURRENTTree=true;
c_overlapControlsInIE=true;
c_rightToLeft=false; // if the menu text should have "rtl" direction (e.g. Hebrew, Arabic)

c_d = document;
c_u = "undefined";
c_n = navigator;
c_w = window;
c_a = c_n.userAgent.toLowerCase();
c_dl = c_d.getElementsByTagName && !!c_d.createElement;
c_qM = c_d.compatMode != "CSS1Compat";
c_mC = /mac/.test(c_a);
c_iE = c_dl && !c_w.innerWidth && /msie/.test(c_a);
c_iEM = c_mC && c_iE;
c_iEMo = c_iEM && /msie 5\.0/.test(c_a);
c_iEMn = c_iEM && /msie 6/.test(c_a);
c_iE8 = c_iE && !!c_d.querySelector;
c_iE7 = c_iE && typeof c_d.documentElement.currentStyle.minWidth != c_u && !c_qM && !c_iE8;
c_iEW = c_iE && !c_mC;
c_iEWo = c_iEW && !c_iE7 && !c_iE8;
c_iEW5 = c_iEWo && !c_d.createEventObject;
c_iEW5x = c_iEWo && !c_d.compatMode;
c_oPv = /opera/.test(c_a) ? parseFloat(c_a.replace(/.*opera[ \/]/, "")) : 0;
c_oP = c_oPv >= 5;
c_oP7 = c_oPv >= 7;
c_oP7m = c_oP && !c_oP7;
c_oPo2 = c_oP7 && c_oPv < 7.2;
c_oP9 = c_oPv >= 9;
c_kNv = /konqueror/.test(c_a) ? parseFloat(c_a.replace(/.*eror\//, "")) : 0;
c_kN = c_kNv >= 3.2;
c_kN4 = c_kNv >= 4;
c_sFv = /webkit/.test(c_a) ? parseFloat(c_a.replace(/.*bkit\//, "")) : 0;
c_sF = c_sFv > 0;
c_sF3 = c_sFv >= 420;
c_iC = /icab/.test(c_a);
c_gC = c_n.product == "Gecko" && !c_sF && !c_kNv;
c_pS = c_n.productSub;
c_gCo = c_gC && c_pS < 20031007;
c_gC13 = c_gC && c_pS >= 20030312;
c_nS = !c_iE && (!c_kN || c_kN4) && (!c_sF || c_sFv < 125 || c_sF3);
c_oM = (c_iEWo || c_oP7 && !c_oP9 || c_iEMn) && c_qM || c_iEM && !c_iEMn && (!c_d.doctype || !/\.dtd/.test(c_d.doctype.name));
c_dE = c_d.documentElement || "";
c_dV = c_d.defaultView;
c_x = /xml/i.test(c_d.contentType);
c_r = typeof c_rightToLeft != c_u ? c_rightToLeft : 0;
c_ = [ "", "" ];
c_h = c_s = c_T = c_M = 0;
c_c = null;
c_o = [ "" ];
c_O = [ "" ];
c_S = [ "" ];
c_I = {};
c_F = c_overlapControlsInIE ? [ c_iEW && !c_iEW5, c_iEW5 ] : [ 0, 0 ];
c_iA = [ "" ];

c_menus = [];
c_menus['MainMenuTollbar'] = [ ['vertical', 'absolute', '1em', '1em', true, false, 1, 1, '8em', 'MM', false ], [ 5, 1, 'auto', '100','300', 'SM', false ] ];

function c_pF() {
	if (typeof c_dB == c_u)
		return;
	var r, x, y, i, M, D;
	D = c_qM ? c_dB : c_dE;
	x = c_w.pageXOffset || D.scrollLeft
			- (c_rL() ? D.scrollWidth - D.clientWidth : 0) || 0;
	y = c_w.pageYOffset || D.scrollTop || 0;
	for (i = 0; i < c_fT.length;) {
		r = c_fT[i++];
		M = c_menus[r.MM][0];
		r = r.style;
		if (M[4] && M[0] != "horizontal" || c_r) {
			if (c_iEWo) {
				if (c_rL()) {
					r.right = -x + "px";
				} else {
					r.right = "1px";
					r.right = "0";
				}
			} else {
				r.right = -x + "px";
			}
		} else {
			r.left = x + "px";
		}
		if (M[5]) {
			if (c_iEWo) {
				if (c_rL()) {
					r.bottom = -y + "px";
				} else {
					r.bottom = "1px";
					r.bottom = "0";
				}
			} else {
				r.bottom = -y + "px";
			}
		} else {
			r.top = y + "px";
		}
	}
};
function c_fF() {
	if (c_PF)
		return;
	if (typeof c_L != c_u)
		c_PF = 1;
	var r, m, M;
	for (m in c_menus) {
		r = c_gO(m);
		if (r && !r.PF && (!c_iEM || c_PF)) {
			r.PF = 1;
			M = c_menus[m][0];
			if (M[1] == "fixed")
				if (c_iC) {
					r.style.position = "fixed";
				} else {
					if (!c_iEM || !M[5])
						c_fT[c_fT.length] = r;
					if (!r.MM)
						r.MM = m;
					r = r.style;
					if (M[0] != "horizontal") {
						r[M[4] || c_r ? "marginRight" : "marginLeft"] = M[2];
						r[M[4] || c_r ? "right" : "left"] = "0";
						r[M[5] ? "marginBottom" : "marginTop"] = M[3];
						r[M[5] ? "bottom" : "top"] = "0";
					}
				}
			if (!c_iC)
				c_pF();
		}
	}
	setTimeout("c_fF()", 100);
};

