c_styles = {};
c_scroll = {};
c_menus = {};
c_hideTimeout = 500;
c_subShowTimeout = 300;
c_keepHighlighted = true;
c_findCURRENT = true;
c_findCURRENTTree = true;
c_overlapControlsInIE = true;
c_rightToLeft = true;
c_imagesPath = "/Skin/icmsdemo/images/Menu/";

/*Horizontal Menu*/
c_menus['Menu1'] = [['horizontal', 'static', '0', '0', true, false, 0, 0, '10em', 'MM', false], [-3, 0, 'auto', '150', '400', 'SM', false]];
c_styles['MM'] = [ // MainMenu (the shorter the class name the better)
[
// MENU BOX STYLE
0, 	// BorderWidth
'solid', // BorderStyle (CSS valid values except 'none')
'transparent', // BorderColor ('color')
0, 	// Padding
'transparent', // Background ('color','transparent','[image_source]')
'', 	// IEfilter (only transition filters work well - not static filters)
''		// Custom additional CSS for the menu box (valid CSS)
], [
// MENU ITEMS STYLE
0, 	// BorderWidth
'solid', // BorderStyle (CSS valid values except 'none')
'solid', // OVER BorderStyle
'transparent', // BorderColor ('color')
'transparent', // OVER BorderColor
10, 	// Padding
'transparent', // Background ('color','transparent','[image_source]')
'[MainMenuHover.png]', // OVER Background
'#000', // Color
'#FFFFFF', // OVER Color
'8pt', 	// FontSize (values in CSS valid units - %,em,ex,px,pt)
'tahoma', // FontFamily
'normal', // FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
'none', 	// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
'none', 	// OVER TextDecoration
'right', 	// TextAlign ('left','center','right','justify')
1, 	// ItemsSeparatorSize
'solid', // ItemsSeparatorStyle (border-style valid values)
'#878787', // ItemsSeparatorColor ('color','transparent')
0, 	// ItemsSeparatorSpacing
true, 			// UseSubMenuImage (true,false)
'[h_arrow.gif]', // SubMenuImageSource ('[image_source]')
'[h_arrow_over.gif]', // OverSubMenuImageSource
7, 		// SubMenuImageWidth
5, 		// SubMenuImageHeight
'15', 		// SubMenuImageVAlign ('pixels from item top','middle')
'solid', 		// VISITED BorderStyle
'transparent', 		// VISITED BorderColor
'transparent', 		// VISITED Background
'#000', 		// VISITED Color
'none', 			// VISITED TextDecoration
'[h_arrow.gif]', // VISITED SubMenuImageSource
'solid', 		// CURRENT BorderStyle
'transparent', 		// CURRENT BorderColor
'[MainMenuSelected.png]', 		// CURRENT Background
'#fff', 		// CURRENT Color
'none', 			// CURRENT TextDecoration
'[h_arrow.gif]', // CURRENT SubMenuImageSource
'', // Custom additional CSS for the items (valid CSS)
'', 	// OVER Custom additional CSS for the items (valid CSS)
'', 	// CURRENT Custom additional CSS for the items (valid CSS)
''		// VISITED Custom additional CSS for the items (valid CSS)
]];

c_styles['SM'] = [ // SubMenus
[
// MENU BOX STYLE
1, 	// BorderWidth
'solid', // BorderStyle (CSS valid values except 'none')
'#b8b7b7', // BorderColor ('color')
2, 	// Padding
'#f7f7f7', // Background ('color','transparent','[image_source]')
'', 	// IEfilter (only transition filters work well - not static filters)
''		// Custom additional CSS for the menu box (valid CSS)
], [
// MENU ITEMS STYLE
0, 	// BorderWidth
'solid', // BorderStyle (CSS valid values except 'none')
'solid', // OVER BorderStyle
'transparent', // BorderColor ('color')
'transparent', // OVER BorderColor
3, 	// Padding
'#eeeeee', // Background ('color','transparent','[image_source]')
'#0c73bd', // OVER Background
'#000000', // Color
'#FFFFFF', // OVER Color
'8pt', 	// FontSize (values in CSS valid units - %,em,ex,px,pt)
'tahoma', // FontFamily
'normal', // FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
'none', 	// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
'none', 	// OVER TextDecoration
'right', 	// TextAlign ('left','center','right','justify')
1, 	// ItemsSeparatorSize
'solid', // ItemsSeparatorStyle (border-style valid values)
'#CBCBEF', // ItemsSeparatorColor ('color','transparent')
1, 	// ItemsSeparatorSpacing
true, 			// UseSubMenuImage (true,false)
'[v_arrow_rtl.gif]', // SubMenuImageSource ('[image_source]')
'[v_arrow_rtl_over.gif]', // OverSubMenuImageSource
6, 		// SubMenuImageWidth
7, 		// SubMenuImageHeight
'8', 		// SubMenuImageVAlign ('pixels from item top','middle')
'solid', 		// VISITED BorderStyle
'#E7E7E7', 		// VISITED BorderColor
'#E7E7E7', 		// VISITED Background
'#000000', 		// VISITED Color
'none', 			// VISITED TextDecoration
'[v_arrow_rtl.gif]', // VISITED SubMenuImageSource
'solid', 		// CURRENT BorderStyle
'transparent', 		// CURRENT BorderColor
'#3d49a4', 		// CURRENT Background
'#FFFFFF', 		// CURRENT Color
'none', 			// CURRENT TextDecoration
'[v_arrow_rtl_over.gif]', // CURRENT SubMenuImageSource
'', // Custom additional CSS for the items (valid CSS)
'', 	// OVER Custom additional CSS for the items (valid CSS)
'', 	// CURRENT Custom additional CSS for the items (valid CSS)
''		// VISITED Custom additional CSS for the items (valid CSS)
]];


/*Vertical Menu*/
c_menus['Menu2'] = [['vertical', 'relative', '0', '0', true, false, 0, 0, '100%', 'TM', false], [-3, 0, 'auto', '150', '400', 'SM', false]];

c_styles['TM'] = [ // MainMenu (the shorter the class name the better)
[
// MENU BOX STYLE
0, 	// BorderWidth
'solid', // BorderStyle (CSS valid values except 'none')
'transparent', // BorderColor ('color')
0, 	// Padding
'transparent', // Background ('color','transparent','[image_source]')
'', 	// IEfilter (only transition filters work well - not static filters)
''		// Custom additional CSS for the menu box (valid CSS)
], [
// MENU ITEMS STYLE
0, 	// BorderWidth
'solid', // BorderStyle (CSS valid values except 'none')
'solid', // OVER BorderStyle
'transparent', // BorderColor ('color')
'transparent', // OVER BorderColor
5, 	// Padding
'transparent', // Background ('color','transparent','[image_source]')
'#055695', // OVER Background
'#000000', // Color
'#FFFFFF', // OVER Color
'8pt', 	// FontSize (values in CSS valid units - %,em,ex,px,pt)
'tahoma', // FontFamily
'normal', // FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
'none', 	// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
'none', 	// OVER TextDecoration
'right', 	// TextAlign ('left','center','right','justify')
1, 	// ItemsSeparatorSize
'solid', // ItemsSeparatorStyle (border-style valid values)
'#e1e1e1', // ItemsSeparatorColor ('color','transparent')
0, 	// ItemsSeparatorSpacing
true, 			// UseSubMenuImage (true,false)
'[v_arrow_rtl.gif]', // SubMenuImageSource ('[image_source]')
'[v_arrow_rtl_over.gif]', // OverSubMenuImageSource
6, 		// SubMenuImageWidth
7, 		// SubMenuImageHeight
'8', 		// SubMenuImageVAlign ('pixels from item top','middle')
'solid', 		// VISITED BorderStyle
'transparent', 		// VISITED BorderColor
'transparent', 		// VISITED Background
'#000000', 		// VISITED Color
'none', 			// VISITED TextDecoration
'[v_arrow_rtl.gif]', // VISITED SubMenuImageSource
'solid', 		// CURRENT BorderStyle
'transparent', 		// CURRENT BorderColor
'#2d73a9', 		// CURRENT Background
'#FFFFFF', 		// CURRENT Color
'none', 			// CURRENT TextDecoration
'[v_arrow_rtl_over.gif]', // CURRENT SubMenuImageSource
'', // Custom additional CSS for the items (valid CSS)
'', 	// OVER Custom additional CSS for the items (valid CSS)
'', 	// CURRENT Custom additional CSS for the items (valid CSS)
''		// VISITED Custom additional CSS for the items (valid CSS)
]];


c_menus['SearchMenu'] = [['horizontal', 'relative', '0', '0', true, false, -1, -1, '350px', 'SE', false], [-3, 0, 'auto', '150', '300', 'SE', false]];

c_styles['SE2'] = [[0, 'none', 'black', 0, '', '', ''], [0, 'solid', 'solid', 'transparent', '#4d4c76', 5, '', 'transparent', '#000000', '#000000', '11px', 'tahoma,arial,helvetica,sans-serif', 'normal', 'none', 'none', 'right', 0, 'solid', '#B3B3B3', 0, true, '[h_arrow.gif]', '[h_arrow_over.gif]', 0, 0, '20', 'none', 'transparent', 'transparent', '#000000', 'none', '[h_arrow.gif]', 'solid', '#CBCBEF', '', '#000000', 'none', '[h_arrow.gif]', '', '', '', '']];


c_styles['SE'] = [ // SubMenus
[
// MENU BOX STYLE
1, 	// BorderWidth
'solid', // BorderStyle (CSS valid values except 'none')
'#b8b7b7', // BorderColor ('color')
2, 	// Padding
'transparent', // Background ('color','transparent','[image_source]')
'', 	// IEfilter (only transition filters work well - not static filters)
''		// Custom additional CSS for the menu box (valid CSS)
], [
// MENU ITEMS STYLE
0, 	// BorderWidth
'solid', // BorderStyle (CSS valid values except 'none')
'solid', // OVER BorderStyle
'transparent', // BorderColor ('color')
'transparent', // OVER BorderColor
1, 	// Padding
'transparent', // Background ('color','transparent','[image_source]')
'transparent', // OVER Background
'#000000', // Color
'#000000', // OVER Color
'8pt', 	// FontSize (values in CSS valid units - %,em,ex,px,pt)
'tahoma', // FontFamily
'normal', // FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
'none', 	// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
'none', 	// OVER TextDecoration
'right', 	// TextAlign ('left','center','right','justify')
1, 	// ItemsSeparatorSize
'solid', // ItemsSeparatorStyle (border-style valid values)
'#CBCBEF', // ItemsSeparatorColor ('color','transparent')
1, 	// ItemsSeparatorSpacing
true, 			// UseSubMenuImage (true,false)
'[h_arrow.gif]', // SubMenuImageSource ('[image_source]')
'[h_arrow_over_red.gif]', // OverSubMenuImageSource
7, 		// SubMenuImageWidth
5, 		// SubMenuImageHeight
'4', 		// SubMenuImageVAlign ('pixels from item top','middle')
'solid', 		// VISITED BorderStyle
'#E7E7E7', 		// VISITED BorderColor
'#E7E7E7', 		// VISITED Background
'#000000', 		// VISITED Color
'none', 			// VISITED TextDecoration
'[h_arrow.gif]', // VISITED SubMenuImageSource
'solid', 		// CURRENT BorderStyle
'transparent', 		// CURRENT BorderColor
'#3d49a4', 		// CURRENT Background
'#FFFFFF', 		// CURRENT Color
'none', 			// CURRENT TextDecoration
'[h_arrow_over_red.gif]', // CURRENT SubMenuImageSource
'', // Custom additional CSS for the items (valid CSS)
'', 	// OVER Custom additional CSS for the items (valid CSS)
'', 	// CURRENT Custom additional CSS for the items (valid CSS)
''		// VISITED Custom additional CSS for the items (valid CSS)
]];


c_menus['Menu_Book'] = [['vertical', 'relative', '0', '0', true, false, -5, 0, '100%', 'TM', false], [-3, 0, 'auto', '130', '300', 'SM', false]];
c_menus['ProductsMenu1'] = [['vertical', 'relative', '0', '0', true, false, -5, 0, '100%', 'TM', false], [-3, 0, 'auto', '130', '300', 'SM', false]];
c_menus['ServicesMenu1'] = [['vertical', 'relative', '0', '0', true, false, -5, 0, '100%', 'TM', false], [-3, 0, 'auto', '130', '300', 'SM', false]];




c_scroll['Menu1'] = [
[
'bar', // Container ID = Container Class
20, // scroll Icon Width
'bar_right', // scroll Right Icon Span Class
'bar_left' // scroll Left Icon Span Class
]
];

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 = [""];
function c_gO(i) { return c_d.getElementById(i) };
function c_gT(o, t) { return o.getElementsByTagName(t) };
function c_nN(o) { return o.nodeName.replace(/.*:/, "").toUpperCase() };
function c_cE(t, o) { var n = o.namespaceURI; return n ? c_d.createElementNS(n, t) : c_d.createElement(t) };
function c_gA(l) {
    var a = l.firstChild;
    while (a) {
        if (c_nN(a) == "A") return a;
        a = a.nextSibling
    }
    return c_gT(l, "a")[0]
};
function c_gL(a) {
    a = a.parentNode;
    while (c_nN(a) != "LI") a = a.parentNode;
    return a
};
function c_sC(o, c) {
    var n = o.className;
    o.className = n ? n.indexOf(c) < 0 ? n + " " + c : n : c
};
function c_aE(o, e, f) { if (typeof o[e] != "function") { o[e] = f } else if (o[e] != f && o[e] != c_fE) { o["O" + e] = o[e]; o["N" + e] = f; o[e] = c_fE } };
function c_fE(e) {
    if (!e) e = event;
    var t = e.type; this["Oon" + t](e);
    this["Non" + t](e)
};
function c_cT(p, c) {
    while (c) { if (c == p) return 1; try { c = c.parentNode } catch (e) { break } }
    return 0
};
function c_cI(s, i) {
    var b = "background-image:", c = "background-color:"; if (!i) i = ";";
    if (s.charAt(0) == "[") {
        s = c_imagesPath + s.substring(1, s.length - 1);
        if (!c_I[s]) {
            c_I[s] = new Image;
            c_I[s].src = s
        }
        return b + "url('" + s + "')" + i + c + "transparent" + i
    }
    return b + "none" + i + c + s + i
};
function c_fC(r) {
    var l, a, as, d, n, h, H, i;
    d = /(index|default)\.[^#\?]*/i; n = /#.*/; h = location.href.replace(d, "");
    as = c_gT(r, "a");
    for (i = 0; i < as.length; i++) {
        a = as[i]; H = a.href.replace(d, "");
        if (H != "javascript:;" && (H == h || H == h.replace(n, ""))) {
            c_sC(a, "CURRENT"); if (c_findCURRENTTree) {
                l = c_gL(a).parentNode.parentNode;
                while (c_nN(l) == "LI") {
                    c_sC(c_gA(l), "CURRENT");
                    l = l.parentNode.parentNode
                }
            }
        }
    }
};
function c_hS() {
    if (c_h) return;
    var i, s = c_gT(c_d, "select");
    for (i = 0; i < s.length; i++) { s[i].VS = s[i].currentStyle.visibility; s[i].style.visibility = "hidden" } c_h = 1
};
function c_sS() {
    if (!c_h) return;
    var i, s = c_gT(c_d, "select");
    for (i = 0; i < s.length; i++) s[i].style.visibility = s[i].VS;
    c_h = 0
};
function c_iF(u, w, h, x, y) {
    if (!u.IF) u.IF = c_iA.length;
    var i = u.IF;
    c_iA[i] = c_cE("<iframe src=javascript:0 tabindex=-9 style=position:absolute;z-index:9000;width:" + w + "px;height:" + h + "px;left:" + x + "px;top:" + y + "px;filter:alpha(opacity=0)>", "");
    u.parentNode.insertBefore(c_iA[i], u)
};
function c_hI(i) { var g = c_iA[i].removeNode(1) };
function c_pA(a, C, r, h, l) {
    var s, c, X = -C[0], Y = X; s = a.firstChild;
    if (c_iEW && !c_iE8 && h || c_iEM) { X = l && h ? r ? c_iEWo && !c_iEW5 && !c_r ? -C[0] - C[5] * 2 - C[23] : 0 : C[16] > 0 && !/NOSEPA/.test(c_gL(a).className) ? C[18] == "transparent" ? C[16] + C[19] * 2 : C[19] : 0 : 0; Y = 0 } c = "top:" + (Y + parseInt(C[25] == "middle" ? (a.offsetHeight - C[24]) / 2 : C[25])) + "px;" + (r ? "left" : "right") + ":" + (X + C[0] + C[5]) + "px;display:block;";
    c_iE ? s.style.cssText = c : s.setAttribute("style", c);
    if (c_iEM) Y = s.offsetWidth
};
function c_fW(u) {
    var l, a, S, w = 0, W, C = c_styles[u.className][0], M = c_menus[u.MM][1], b = C[0] * 2 + C[3] * 2, n, x;
    n = parseInt(M[3]) || 0;
    x = parseInt(M[4]) || 0;
    l = u.firstChild; while (l) {
        if (c_nN(l) == "LI") {
            a = c_gA(l);
            S = a.style; if (u.AW == 1) {
                if (c_iEW5x) a.innerHTML = "<nobr>" + a.innerHTML + "</nobr>";
                W = a.offsetWidth; if (w < W) w = W;
                if (c_iEW5x) a.innerHTML = a.firstChild.innerHTML
            } if (!c_iEW5x) {
                S.whiteSpace = "normal";
                S.display = "block"
            }
        } l = l.nextSibling
    } if (u.AW == 1) {
        w += b;
        if (w < n) w = n;
        if (x && w > x) w = x;
        u.style.width = w - (!c_oM ? b : 0) + "px"
    }
};
function c_fA(u) {
    var C = c_styles[u.className][1];
    if (C[20]) {
        var l = u.firstChild;
        while (l) {
            if (l.SH) c_pA(c_gA(l), C, u.RL, u.HR);
            l = l.nextSibling
        }
    } u.FM = 1
};
function c_iL(u) {
    var l, a, f, c;
    f = u.LV == 1;
    c = c_menus[u.MM][f ? 0 : 1][f ? 10 : 6];
    l = u.firstChild; while (l) {
        if (c_nN(l) == "LI") {
            a = c_gA(l); if (f && !u.PP) a.VU = 1;
            c_aE(a, "onfocus", c_oF);
            c_aE(a, "onblur", c_oB);
            c_aE(a, "onmousedown", c_oD);
            if (c) { a.OC = 1; c_aE(a, "onclick", c_oC) } c_aE(a, "onmouseover", c_oV);
            c_aE(a, "onmouseout", c_oU);
            if (a.className && /NOLINK/.test(a.className)) a.href = "javascript:;"
        } l = l.nextSibling
    } if (!f || !u.HR || !c_r) c_sC(c_gL(a), "NOSEPARATOR")
};
function c_oD() { this.MD = 1 };
function c_oB() {
    if (!this.MD) c_mU();
    this.MD = 0
};
function c_oF() { c_mV(); c_c = this; c_sM(1) };
function c_oC() {
    c_c = this;
    if (!c_gL(c_c).SH) return;
    c_sM(1);
    if (c_c.blur) c_c.blur();
    return false
};
function c_oV(e) {
    if (!e) e = event; if (this.VU) c_mV();
    if (c_cT(this, e.relatedTarget || e.fromElement) && (!c_oP || e.offsetX != 0 || e.offsetY != 0)) return;
    if (c_s) { clearTimeout(c_s); c_s = 0 } c_c = this;
    c_s = setTimeout("c_sM()", c_subShowTimeout)
};
function c_oU(e) {
    if (!e) e = event;
    if (this.VU) c_mU();
    if (c_cT(this, e.relatedTarget || e.toElement)) return;
    if (this.blur) this.blur();
    if (c_s) { clearTimeout(c_s); c_s = 0 }
};
function c_mV() { clearTimeout(c_T) };
function c_mU() {
    clearTimeout(c_T);
    c_T = setTimeout("c_hD()", c_hideTimeout)
};
function c_hM(o, f) {
    var S = o.style; S.display = "none";
    S.visibility = "hidden";
    if (f) o.parentNode.style.zIndex = 1;
    if (c_F[0] && o.IF) c_hI(o.IF)
};
function c_hD() {
    var i, o; if (c_s) {
        clearTimeout(c_s);
        c_s = 0
    }
    for (i = c_S.length - 1; i > 0; i--) {
        o = c_S[i];
        if (i != 1 || o.PP) c_hM(o, (i != 1 && (c_iE || c_gCo)));
        o = c_O[i];
        if (o && c_keepHighlighted) o.className = o.CN
    }
    c_S = [""];
    c_O = [""];
    c_c = null;
    if (c_F[1]) c_sS()
};
function c_rL() {
    if (c_iEW && !c_iEW5) {
        var o = c_dB;
        while (o) {
            if (o.dir == "rtl" || o.currentStyle && o.currentStyle.direction == "rtl") return 1;
            o = o.parentNode
        }
    }
    return 0
};
function c_cA(o, f) {
    var c = { x: 0, y: 0 };
    while (o && (!f || o != c_dB)) { c.x += o.offsetLeft; c.y += o.offsetTop; o = o.offsetParent }
    return c
};
function c_gW() {
    var c, f, d, b, i, w = "clientWidth", h = "clientHeight", A, B, D;
    f = c_gC ? 15 : 0;
    d = c_dE[h];
    b = c_dB[h];
    i = c_w.innerHeight;
    A = { h: b, w: c_dB[w] };
    B = { h: d, w: c_dE[w] };
    D = c_qM ? c_dB : c_dE;
    c = !i ? c_qM ? A : B : d && b && (!c_kN || c_kN4) && (!c_sF || c_sF3) ? d > b ? d > i ? A : B : b > i ? B : A : b && c_gC ? A : { h: i - f, w: innerWidth - f };
    c.x = c_w.pageXOffset || D.scrollLeft * (c_rL() && c_iE8 ? -1 : 1) - (c_rL() && !c_iE8 ? D.scrollWidth - c.w : 0) || 0;
    c.y = c_w.pageYOffset || D.scrollTop || 0;
    return c
};
function c_kW(x, y, w, h, c, r, f) {
    if (f) { c.x = 0; c.y = 0 }
    var k = { y: 0 };
    if (r && x < c.x || !r && x + w > c.x + c.w) k.x = 1;
    if (h < c.h && y + h > c.y + c.h) k.y = c.y + c.h - h - y;
    else if (h >= c.h || y < c.y) k.y = c.y - y;
    return k
};
function c_pM(u) {
    var x, y, sX, sY, aX, aY, w, h, M, S, p, l, a, f, C, W, H, c, k, b;
    S = u.style;
    w = u.offsetWidth;
    h = u.offsetHeight;
    M = c_menus[u.MM];
    l = u.parentNode;
    p = l.parentNode;
    a = c_gA(l);
    f = u.LV == 2;
    C = c_cA(l, c_sF && !c_sF3 && M[0][1] != "relative");
    W = a.offsetWidth; H = a.offsetHeight; c = c_gW();
    sX = f ? M[0][6] : M[1][0];
    sY = f ? M[0][7] : M[1][1];
    if (f && u.HR) { x = u.RL ? W - w - sX : sX; y = u.BT ? -h - sY : H + sY }
    else { x = u.RL ? sX - w : W - sX; y = u.BT ? H - sY - h : sY } aX = C.x + x;
    aY = C.y + y;
    if (c_gC && c_pS >= 20010801 || c_iEW && !c_iE8 || c_oP && !c_oP9 || c_sF3 || c_kN4)
        while (p.LV && (p.LV > 1 || p.PP)) {
        b = c_styles[p.className][0][0];
        aX += b;
        aY += b;
        if (c_gC13 && M[0][1] == "fixed") break;
        p = p.parentNode.parentNode
    }
    k = c_kW(aX, aY, w, h, c, u.RL, M[0][1] == "fixed" && !c_iEWo && !c_iEM && (!c_gCo || c_gC13));
    if (k.x) x = f && u.HR ? u.RL ? c.x - aX + x : c.x + c.w - w - aX + x : u.RL ? W - sX : sX - w;
    y += k.y;
    S.right = "auto";


    /*iCMS*/
    if (c_scroll[u.MM]) {
        var Scroll_M = c_scroll[u.MM];
        if (M[0][0] == 'horizontal') {
            if (GetOffset(l) < GetOffset(document.getElementById(Scroll_M[0][0]))) {
                if (c_rightToLeft) {
                    document.getElementById(Scroll_M[0][0]).scrollLeft -= (GetOffset(document.getElementById(Scroll_M[0][0])) - GetOffset(l) + 2);
                }
                else {
                    document.getElementById(Scroll_M[0][0]).scrollLeft += (GetOffset(document.getElementById(Scroll_M[0][0])) - GetOffset(l) + 2);
                }
            }
            if (c_rightToLeft) {
                if (l.firstChild.className == 'MMO' || l.firstChild.className == 'CURRENT MMO') {
                    if (GetOffset(l) + l.offsetWidth < u.offsetWidth + GetOffset(document.getElementById(Scroll_M[0][0]))) {
                        x = M[0][6];
                    }
                }
                else {
                    if (u.offsetWidth > GetOffset(l.offsetParent) - GetOffset(document.getElementById(Scroll_M[0][0]))) {
                        x = l.offsetWidth - M[1][0]
                    }
                }
            }
            else {
                if (l.firstChild.className == 'MMO' || l.firstChild.className == 'CURRENT MMO') {
                    x = M[0][6];
                    var Ww = u.offsetWidth - l.offsetWidth;
                    if (Ww < 0) Ww = -Ww;
                    if (x + GetOffset(l) + u.offsetWidth > GetOffset(document.getElementById(Scroll_M[0][0])) + document.getElementById(Scroll_M[0][0]).offsetWidth) {
                        x = -Ww
                    }
                }
                else {
                    var Ww = u.offsetWidth - l.offsetWidth;
                    if (GetOffset(l.offsetParent) + u.offsetWidth > document.getElementById(Scroll_M[0][0]).offsetWidth) {
                        x = -(u.offsetWidth - M[1][0]);
                    }
                    else {
                        x = u.offsetWidth - M[1][0] - Ww;
                    }
                }
            }
        }
    }
    /*iCMS*/

    if (c_nS) {
        S.left = "auto";
        S.top = "auto";
        S.marginLeft = x + "px";
        S.marginTop = y - H + "px"
    }
    else {
        S.left = x + "px";
        S.top = y + "px";
        if (c_F[0]) c_iF(u, w, h, x, y);
        if (c_F[1]) c_hS()
    }
};
function c_sM(c) {
    var a, l, u, U, S, v, k, i, o;
    a = c_c;
    if (!a) return;
    l = c_gL(a);
    if (c_dV && c_dV.getComputedStyle && c_dV.getComputedStyle(a, "").getPropertyValue("display") == "inline" || l.currentStyle && l.currentStyle.listStyleType && l.currentStyle.listStyleType != "none") return;
    u = l.parentNode;
    v = u.LV;
    if (c_S.length > v + 1 && c_S[v + 1].style.display != "none") {
        k = c_o[v] != a ? v : v + 1;
        for (i = c_S.length - 1; i > k; ) c_hM(c_S[i--])
    }
    if (v == 1) {
        o = c_S[1];
        if (o && o != u && o.PP) c_hM(o)
    }
    if (c_keepHighlighted) for (i = v + 1; i >= v; i--) {
        o = c_O[i];
        if (o && o.className.indexOf(c_gL(o).parentNode.className + "O") > -1 && (i > v || c_O[v] != a)) o.className = o.CN
    }
    c_o[v] = a;
    c_S[v] = u;
    if (a.OC && !c || !l.SH) return;
    U = c_gT(l, "ul")[0];
    S = U.style;
    if (S.display == "block") return;
    if (c_keepHighlighted) {
        a.CN = a.className || "";
        a.className = (a.CN ? a.CN + " " : "") + u.className + "O"
    }
    if (c_iE || c_gCo) {
        if (c_O[v]) c_gL(c_O[v]).style.zIndex = 1;
        l.style.zIndex = 10000
    }
    c_O[v] = a;
    c_S[v + 1] = U;
    if (c_iEW5) c_nF(u);
    if (!U.FM) {
        S.display = "none";
        S.visibility = "hidden";
        S.overflow = "visible"; if (c_iEW) {
            if (!c_iEW5) c_fL(U);
            S.height = "auto"
        }
    } S.display = "block";
    if (!U.FM && U.AW) c_fW(U);
    c_pM(U);
    if (!U.FM) c_fA(U);
    if (c_iEW5) c_nF(u, 1);
    if (c_oPo2 || c_oP && U.RL || c_kN4 || c_sF3) {
        S.display = "none";
        i = U.offsetHeight; S.display = "block"
    }
    c_sH(U)
};
function c_sH(u) {
    var f = (!c_iEW5 && typeof u.filters != "unknown" && (u.filters || "").length != 0 && typeof u.filters[0].apply != c_u);
    if (f) u.filters[0].apply();
    u.style.visibility = "visible";
    if (f) u.filters[0].play()
};
function c_fL(u) {
    u = u.children;
    for (var i = 0; i < u.length; ) u[i++].style.styleFloat = "left"
};
function c_nF(u, f) {
    u = c_gT(u, "li")[0];
    if (f) { u.style.styleFloat = u.FT }
    else { u.FT = u.currentStyle.styleFloat; u.style.styleFloat = "none" }
};
function c_iM(m, r) {
    var M, N, u, us, U, p, l, a, i, j, s, c, S, C; M = c_menus[m][0];
    N = c_menus[m][1];
    r.MM = m;
    r.PP = M[1] == "popup";
    r.HR = M[0] == "horizontal" && !r.PP; r.RL = M[4] || c_r;
    r.BT = M[5];
    if (c_iEM && c_r && r.HR) return;
    r.className = M[9];
    r.LV = 1;
    us = c_gT(r, "ul");
    U = [];
    for (i = 0; i < us.length; ) U[i] = us[i++]; if (!c_iEM) {
        var L, P;
        s = c_cE("span", r);
        if ((!c_iE || c_iE8) && (!c_oP || c_oP9) && (!c_sF || c_sF3) && (!c_gC || c_pS >= 20061010) && !c_kN) {
            L = c_cE("span", s);
            P = c_cE("span", L);
            P.appendChild(c_d.createTextNode("+ "));
            L.appendChild(P)
        }
        else {
            L = c_d.createTextNode("\u00a0")
        }
        s.appendChild(L)
    }
    for (i = 0; i < U.length; ) {
        u = U[i++];
        u.MM = m;
        u.PP = r.PP;
        u.HR = r.HR;
        u.RL = r.RL;
        u.BT = r.BT;
        u.AW = N[2] == "auto" ? u.style.width ? 2 : 1 : 0;
        p = u.parentNode.parentNode;
        if (!u.className) u.className = p == r ? N[5] : p.className; u.LV = 2;
        while (p != r) { u.LV++; p = p.parentNode.parentNode } l = u.parentNode; l.SH = 1;
        p = l.parentNode;
        S = p.className;
        C = c_styles[S][1];
        if (C[20]) {
            a = c_gA(l); a.style[r.RL ? "paddingLeft" : "paddingRight"] = (C[5] * 2 + C[23]) + "px";
            if (c_iEM) { s = '<span class="' + S + 'S"></span>' + a.innerHTML; a.innerHTML = ""; a.innerHTML = s }
            else {
                c = s.cloneNode(true);
                c.className = S + "S";
                if (P) c.firstChild.className = S + "SL";
                a.insertBefore(c, a.firstChild)
            } if (u.LV == 2) c_pA(a, C, r.RL, r.HR, 1)
        }
        c_iL(u);
        u.onmouseover = c_mV;
        u.onmouseout = c_mU;
        if ((c_iEWo || c_iEMn) && r.HR) {
            C = c_styles[u.className][1];
            S = "border-width:0 0 " + (C[18] == "transparent" ? 0 : C[16]) + "px 0;padding:0 0 " + (C[16] > 0 ? C[18] == "transparent" ? C[19] * 2 + C[16] : C[19] : 0) + "px 0;margin:0 0 " + (C[16] > 0 && C[18] != "transparent" ? C[19] : 0) + "px 0;";
            for (j = 0; j < u.children.length - 1; ) u.children[j++].runtimeStyle.cssText = S
        }
    }
    c_iL(r);
    if (r.PP) { r.onmouseover = c_mV; r.onmouseout = c_mU }
    if (c_iEWo) r.style.backgroundImage = "url(https://)";
    if (c_findCURRENT) c_fC(r);
    r.IN = 2
};
function c_mN() {
    if (c_oP7m || c_kNv && !c_kN || c_iC || c_iEMo || c_M) return;
    if (typeof c_L != c_u) c_M = 1;
    var m, r, h, u, U, c, l;
    for (m in c_menus) {
        r = (c_iEM || c_gC && c_pS < 20040113 && c_x) && !c_M ? 0 : c_gO(m);
        if (!r) { c = 1 } else if (!r.IN) {
            if (c_iEW) {
                h = r.outerHTML || ""; u = (h.match(/<UL/ig) || "").length;
                U = (h.match(/<\/UL/ig) || "").length
            } if (u && u == U || r.nextSibling || c_M) {
                l = r.lastChild;
                while (c_nN(l) != "LI") l = l.previousSibling;
                if (c_gA(l).offsetHeight) {
                    if (typeof c_dB == c_u) c_dB = c_gT(c_d, "body")[0]; r.IN = 1; c_iM(m, r)
                }
                else { c = 1 }
            }
            else { c = 1 }
        }
    } if (c) setTimeout("c_mN()", 100)
};
function c_cS() {
    var A = [], c, C, m, M, N, p, f, r, h, t, i, a, P, x, y, Q = c_r ? "right" : "left", s, E = "/", F = "*", D = E + F + F + E, H, T, L, R; s = { b: "background-image:", d: "display:block;", f: "float:left;", g: "float:" + Q + ";", h: "* html>body ", i: " !important;", l: "float:none;", m: "margin:0", p: "padding:0", r: "margin-left:", s: "screen,projection,print", t: "transparent", w: "white-space:", x: "px 0 0;", y: ":visited", z: ">li{left:0;}", A: "position:absolute;", B: "background", C: " li a.CURRENT", D: "{position:fixed;}* html ul#", F: ":first-child", H: "height:1%;", I: "display:inline;", N: " li a.NOROLL", R: "position:relative;", S: "position:static;", T: "text-decoration:", W: "width:100%;", X: "border-color:", Y: "border-style:", Z: "border-width:" };
    for (c in c_styles) A[A.length] = "." + c;
    c_[0] += A.join(",") + "," + A.join(" li,") + " li{" + s.d + "list-style:none;" + s.p + ";" + s.m + ";line-height:normal;direction:ltr;}" + A.join(" li,") + " li{" + s.R + s.B + ":none;" + s.W + "}" + A.join(" a,") + " a{" + s.d + s.R + (c_r ? "direction:rtl;" : "") + "}" + s.h + A.join(" a," + s.h) + " a{" + s.S + "}* html " + A.join(" li,* html ") + " li{" + s.I + "display" + D + ":block;float" + D + ":left;}*" + s.F + "+html " + A.join(" li,*" + s.F + "+html ") + " li{" + s.f + "}" + s.h + A.join(" li," + s.h) + " li{" + s.d + "}" + A.join(" ul,") + " ul{display:none;" + s.A + "top:-9999px;width:11px;overflow:hidden;z-index:11111;}ul" + D + A.join(" ul,ul" + D) + " ul{" + s.d + "}* html " + A.join(" ul,* html ") + " ul{" + s.d + "}.NOSEPARATOR{" + s.Z + "0" + s.i + s.p + s.i + s.m + s.i + "}.NOLINK{cursor:default" + s.i + "}"; for (m in c_menus) {
        M = c_menus[m][0];
        N = c_menus[m][1];
        C = c_styles[M[9]];
        p = M[1] == "popup";
        f = M[1] == "fixed";
        r = M[1] == "relative";
        h = M[0] == "horizontal";
        a = N[2] == "auto";
        P = M[5] && !p ? "bottom" : "top"; x = "#" + m;
        if (!p) C[3] = 1;
        c_[0] += x + "{" + (!p ? s.Z + "0;" + s.p + ";" + s.B + "-color:" + s.t + ";" + s.b + "none;" : "") + "z-index:" + (p ? 10900 : 9999) + ";position:" + (p ? "absolute" : h && r ? "static" : M[1]) + ";height:auto;}" + x + " ul{" + (M[4] && !h || c_r ? "right:0;" : "left:-800px;") + "}" + (f ? "ul" + x + "{" + s.A + "}ul" + D + x + s.D + m + "{" + s.A + "}ul" + D + x + " ul" + s.D + m + " ul{" + s.A + "}" : ""); if (!c_gC) c_[1] += "ul" + x + " ul{" + s.A + "}"; c_[c_r ? 0 : 1] += "* html " + x + " a{" + (!h || p ? s.H : c_r ? s.S : "") + "}*" + s.F + "+html " + x + " a{" + (!h || p ? "min-" + s.H : s.S) + "}" + (!h || p ? s.h + x + " a{height:auto;}" : ""); if (!h || p) {
            c_[0] += x + "{" + P + ":" + (p ? "-9999px" : M[3]) + ";" + (M[4] && !p ? "right" : Q) + ":" + (p ? "0" : M[2]) + ";width:" + M[8] + ";}";
            if (r) c_[0] += s.h + x + ">li{" + s.r + (M[4] ? "" : "-") + M[2] + s.i + s.W + "}" + s.h + x + ">li" + s.F + "{" + s.r + "0" + s.i + "}"
        }
        else {
            c_[0] += x + "{" + P + ":0;" + Q + ":0;" + s.W + (r ? "padding-" + P + ":" + M[3] + ";" + s.g : "margin-" + P + ":" + M[3] + ";") + "}" + x + " li{" + s.g + "width:auto;left:" + (c_r ? "-" : "") + M[2] + ";}";
            C = C[1];
            if (C[16] > 0) { t = C[18] == s.t; y = "li{" + s.Z + "0 " + (t ? 0 : C[16]) + s.x + s.p + " " + (t ? C[19] * 2 + C[16] : C[19]) + s.x + s.m + " " + (t ? 0 : C[19]) + s.x + "}"; c_[0] += x + ">" + y + "@media " + s.s + "{* html " + x + " " + y + "}" } c_[0] += x + " a{" + s.w + " " + D + "nowrap;}head" + s.F + "+body " + x + s.z + "*>*>html:lang(en)," + x + s.z + x + ">li" + s.F + "{margin-" + Q + ":" + M[2] + s.i + "}" + x + ">li>a{" + E + F + E + F + E + E + F + E + s.f + E + F + " " + F + E + "}" + s.h + x + ">li>a{" + s.g + "}" + (r ? "* html " + x + "{" + s.l + "}" : "") + s.h + x + ">li{" + s.l + "}" + (c_r ? "" : "* html>bo\\64 y " + x + ">li{" + s.g + "}"); c_[1] += x + " ul li{left:0;" + s.W + "}"
        } c_[0] += x + " ul li{" + s.l + "}";
        c_[1] += x + " ul a{" + (c_iEW ? s.H : "") + (c_iEWo && h && !p && !c_r ? s.S : "") + (!c_iEWo && a ? c_iE7 || c_iE8 ? "display:inline-block;" : s.I : "") + s.w + (a && !c_iEW5x ? "nowrap" : "normal") + ";}" + x + " ul{" + (c_iEW ? "overflow:scroll;height:11px;" : "") + (a ? "" : "width:" + N[2] + ";") + "}" + (c_nS ? x + " li{" + s.S + "}" : "")
    } for (c in c_styles) {
        m = c_styles[c][0];
        i = c_styles[c][1];
        x = "." + c; y = x + " li a";
        c_[c_styles[c][3] ? 0 : 1] += x + "{" + s.Z + m[0] + "px;" + s.Y + m[1] + ";" + s.X + m[2] + ";padding:" + m[3] + "px;" + c_cI(m[4]) + (m[5] != "" ? "filter:" + m[5] + ";" : "") + (m[6] + (m[6] != "" && m[6].charAt(m[6].length - 1) != ";" ? ";" : "")) + "}" + x + " li{" + s.Y + i[17] + ";" + s.X + i[18] + ";" + s.Z + "0 0 " + (i[18] == s.t ? 0 : i[16]) + "px 0;" + s.p + " 0 " + (i[16] > 0 ? i[18] == s.t ? i[19] * 2 + i[16] : i[19] : 0) + "px 0;" + s.m + " 0 " + (i[16] > 0 && i[18] != s.t ? i[19] : 0) + "px 0;}" + x + s.C + "," + x + s.C + ":link," + x + s.C + s.y + "{" + s.Z + i[0] + "px;" + s.Y + i[32] + ";" + s.X + i[33] + ";" + c_cI(i[34]) + "color:" + i[35] + ";" + s.T + i[36] + ";" + (i[40] + (i[40] != "" && i[40].charAt(i[40].length - 1) != ";" ? ";" : "")) + "}" + y + "," + y + ":link{cursor:pointer;" + s.Z + i[0] + "px;" + s.Y + i[1] + ";" + s.X + i[3] + ";padding:" + i[5] + "px;" + c_cI(i[6]) + "color:" + i[8] + ";font-size:" + i[10] + ";font-family:" + i[11] + ";font-weight:" + i[12] + ";" + s.T + i[13] + ";text-align:" + i[15] + ";" + (i[38] + (i[38] != "" && i[38].charAt(i[38].length - 1) != ";" ? ";" : "")) + "}" + y + s.y + "{" + s.Z + i[0] + "px;" + s.Y + i[26] + ";" + s.X + i[27] + ";" + c_cI(i[28]) + "color:" + i[29] + ";" + s.T + i[30] + ";" + (i[41] + (i[41] != "" && i[41].charAt(i[41].length - 1) != ";" ? ";" : "")) + "}" + y + ":hover," + y + ":focus," + y + ":active," + y + x + "O," + y + x + "O:link," + y + x + "O" + s.y + "," + x + s.C + ":hover," + x + s.C + ":focus," + x + s.C + ":active{" + s.Z + i[0] + "px;" + s.Y + i[2] + ";" + s.X + i[4] + ";" + c_cI(i[7]) + "color:" + i[9] + ";" + s.T + i[14] + ";" + (i[39] + (i[39] != "" && i[39].charAt(i[39].length - 1) != ";" ? ";" : "")) + "}" + x + s.N + "{" + s.Y + i[1] + s.i + s.X + i[3] + s.i + c_cI(i[6], s.i) + "color:" + i[8] + s.i + s.T + i[13] + s.i + "}"; if (i[20]) c_[1] += x + s.C + " " + x + "S," + x + s.C + ":link " + x + "S," + x + s.C + s.y + " " + x + "S{" + c_cI(i[37]) + "}" + y + " " + x + "S," + y + ":link " + x + "S{" + s.A + c_cI(i[21]) + s.B + "-repeat:no-repeat;width:" + i[23] + "px;height:" + i[24] + "px;display:none;overflow:hidden;font:10px/" + i[24] + "px sans-serif;" + s.m + ";" + s.p + ";}" + y + s.y + " " + x + "S{" + c_cI(i[31]) + "}" + y + ":hover " + x + "S," + y + ":focus " + x + "S," + y + ":active " + x + "S," + y + x + "O " + x + "S," + y + x + "O:link " + x + "S," + y + x + "O" + s.y + " " + x + "S," + x + s.C + ":hover " + x + "S," + x + s.C + ":focus " + x + "S," + x + s.C + ":active " + x + "S{" + c_cI(i[22]) + "}" + x + s.N + " " + x + "S{" + c_cI(i[21], s.i) + "}" + y + " " + x + "SL{display:list-item;width:300px;list-style:none inside url('" + c_imagesPath + i[21].substring(1, i[21].length - 1) + "');visibility:hidden;" + (c_r ? "text-align:right;" : "") + "}" + y + " " + x + "SL span{visibility:visible;" + (c_iE8 ? s.A : "") + "}"
    } R = c_[0] + (!c_oP7m && (!c_kNv || c_kN) && !c_iC && !c_iEMo ? c_[1] : "");
    if (!c_oP7m) H = c_gT(c_d, "head")[0];
    T = c_d.styleSheets; L = T ? T.length : 0;
    if (H && (T || c_oPv >= 7.5) && !c_iEM && (!c_gC || c_x) && (!c_kNv || c_kN) && (!c_sF || c_sFv >= 400)) {
        var S = c_cE("style", H);
        S.setAttribute("type", "text/css");
        S.setAttribute("media", s.s);
        H.appendChild(S);
        if (T && T.length > L && T[L].insertRule) {
            T = T[L];
            R = R.replace(/}([^}])/g, "}|$1").split("|");
            for (i = 0; i < R.length; ) try { T.insertRule(R[i++], T.cssRules.length) } catch (e) { }
        }
        else {
            c_iE ? T[L].cssText = R : S.appendChild(c_d.createTextNode(R))
        }
    }
    else {
        c_d.write('<style type="text/css" media="' + s.s + '">' + R + '</style>')
    }
    c_mN()
};
if (c_dl || c_oP) {
    c_wL = c_w.onload || 0;
    c_w.onload = function() {
        c_L = 1;
        if (c_wL) c_wL()
    };
    c_cS()

}

;

window.onload = function() {
    setTimeout(function () { ScrollFinder() }, 200)
};
function ScrollFinder() {
     var m;
    for (m in c_scroll) { ScrollMenuMaker(m);}
};

function ScrollMenuMaker(id) {
    var menu = document.getElementById(id);
    var menuparent = menu.offsetParent;
    //menuparent.style.zIndex = parseInt(new Date().getTime() / 1000);

    var nodes = menu.getElementsByTagName('LI');
    var StripWidth = 0;
    for (var i = 0; i < nodes.length; i++) {
        if (nodes[i].parentNode.id == id) {
            StripWidth += nodes[i].offsetWidth
        }
    }
    if (menuparent.className == c_scroll[id][0][0]) {
        if (document.getElementById(id).offsetWidth < StripWidth) {
            menuparent.style.overflow = 'hidden';
            var BarRight = document.createElement('span');
            var BarLeft = document.createElement('span');
            BarRight.innerHTML = '&nbsp;';
            BarRight.onmouseover = function() {
                scrollDivDown(document.getElementById(id).parentNode)
            };
            BarRight.onmouseout = function() {
                clearTimeout(timerDown)
            };
            BarRight.className = c_scroll[id][0][2];
            BarLeft.innerHTML = '&nbsp;';
            BarLeft.onmouseover = function() {
                scrollDivUp(document.getElementById(id).parentNode)
            };
            BarLeft.onmouseout = function() {
                clearTimeout(timerUp)
            };
            BarLeft.className = c_scroll[id][0][3];
            menuparent.parentNode.insertBefore(BarRight, menuparent);
            menuparent.parentNode.insertBefore(BarLeft, menuparent);
            menu.style.width = StripWidth + 'px';
            menuparent.parentNode.style.direction = 'ltr';
            var browseWidth = 0;
            var browseHeight = 0;
            var h_Scrollertime = 0;
            if (browser.msie && eval(browser.version) == 6) {
                menuparent.style.width = '94%'
            }
            menu.onmouseover = function() {
                clearTimeout(h_Scrollertime);
                browseHeight = document.body.offsetHeight - 50;
                if (browser.mozilla) {
                    //menuparent.style.marginBottom = (browseHeight - GetOffset(document.getElementById(id), true)) + 'px';
                }
                menuparent.style.paddingBottom = (browseHeight - GetOffset(document.getElementById(id), true)) + 'px';
                menuparent.style.zIndex = parseInt(new Date().getTime() / 1000);
            };
            menu.onmouseout = function() {
                h_Scrollertime = setTimeout(function() { HideScrollerMenu() }, c_hideTimeout)
                menuparent.style.zIndex = 0;

            };
            function HideScrollerMenu() {
                menuparent.style.marginBottom = '0px';
                menuparent.style.paddingBottom = '0px'
            }
            if (c_rightToLeft) { menuparent.scrollLeft = menuparent.scrollWidth }
            else { menuparent.scrollLeft = 0 }
        }
    }
}
var defaultStep = 5;
var step = defaultStep;
function scrollDivDown(obj) {
    var Scl = obj.scrollLeft; obj.scrollLeft += step;
    timerDown = setTimeout(function() { scrollDivDown(obj) }, 5)
};
function scrollDivUp(obj) {
    var Scl = obj.scrollLeft;
    obj.scrollLeft -= step;
    timerUp = setTimeout(function() { scrollDivUp(obj) }, 5)
};
function SetScroll(id, scrollpositon) {
    var Scl = document.getElementById(id).scrollLeft;
    document.getElementById(id).scrollLeft += scrollpositon
};
function GetOffset(elem, Top) {
    var left = 0, top = 0, results;
    function getNextAncestor(oElement) {
        var actualStyle;
        if (window.getComputedStyle) { actualStyle = getComputedStyle(oElement, null).position }
        else if (oElement.currentStyle) { actualStyle = oElement.currentStyle.position }
        else { actualStyle = oElement.style.position }
        if (actualStyle == 'absolute' || actualStyle == 'fixed') { return true }
        else { return false }
    } if (elem) with (browser) {
        var absolute = getNextAncestor(elem), parent = elem.parentNode, offsetParent = elem.offsetParent, doc = elem.ownerDocument, safari2 = safari && parseInt(version) < 522;
        if (elem.getBoundingClientRect) {
            box = elem.getBoundingClientRect();
            add(box.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft), box.top + Math.max(doc.documentElement.scrollTop, doc.body.scrollTop)); if (msie) {
                var border = 0;
                border = (border == "medium" || document.compatMode && parseInt(version) >= 7) && 2 || border; add(-border, -border)
            }
        } else {
            add(elem.offsetLeft, elem.offsetTop);
            while (offsetParent) {
                add(offsetParent.offsetLeft, offsetParent.offsetTop);
                if (mozilla && /^t[d|h]$/i.test(parent.tagName) || !safari2) border(offsetParent);
                if (safari2 && !absolute && getNextAncestor(offsetParent) == "absolute") absolute = true; offsetParent = offsetParent.offsetParent
            } while (parent.tagName && !/^body|html$/i.test(parent.tagName)) { if (!/^inline|table-row.*$/i.test(parent.style.display)) add(-parent.scrollLeft, -parent.scrollTop); if (mozilla && parent.style.overflow != "visible") border(parent); parent = parent.parentNode } if (safari2 && absolute) add(-doc.body.offsetLeft, -doc.body.offsetTop)
        } results = { top: top, left: left }
    } if (Top) { return results.top };
    return results.left;
    function border(elem) {
        add(elem.style.borderLeftWidth, elem.style.borderTopWidth)
    };
    function add(l, t) { left += parseInt(l) || 0; top += parseInt(t) || 0 }
};
var userAgent = navigator.userAgent.toLowerCase();
var browser = { version: (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1], safari: /webkit/.test(userAgent), opera: /opera/.test(userAgent), msie: /msie/.test(userAgent) && !/opera/.test(userAgent), mozilla: /mozilla/.test(userAgent) && !/(compatible|webkit)/.test(userAgent) };

