
// Title: Tigra Menu GOLD
// URL: http://www.softcomplex.com/products/tigra_menu_gold/
// Version: 2.5
// Date: 11-20-2003 (mm-dd-yyyy)
// Technical Support: support@softcomplex.com (specify product title and order ID)
// Notes: Registration needed to use this script legally.
// Visit official site for details.

// A path to Tigra Menu GOLD files from the PAGE containinig Menu
var TMenu_path_to_files = '/jsps/js/';

// Please, don't change below this line
// ----------------------------------------------------------------------------------
var menus = [], TMg, TM08 = ['click', 'mouseout', 'mouseover', 'mousedown'];

function TM09(TM0A)
    {
    for (var i in menus)
        {
        if (TM0A && menus[i].TM0B && !menus[i].TMc)
            menus[i].TM0B.TM0C.menus[i].TM0D();

        menus[i].TM0D();
        menus[i].TM0E = true
        }
    }

function TM0F(TM0G)
    {
    var TM0H;

    if (this.width != (TM0H = this.TM0I(window)))
        {
        this.width = TM0H;

        TM0A = TM0G = true
        }

    if (this.height != (TM0H = this.TM0J(window)))
        {
        this.height = TM0H;

        TM0A = TM0G = true
        }

    if (this.TM0K != (TM0H = this.TM0L(window)))
        {
        this.TM0K = TM0H;

        TM0G = true
        }

    if (this.TM0M != (TM0H = this.TM0N(window)))
        {
        this.TM0M = TM0H;

        TM0G = true
        }

    if (TM0G)
        this.TM0D(TM0A)
    }

function menu(TM0O, TM0P, TM0Q)
    {
    this.TM0O = TM0O;

    this.TM0P = TM0P;
    this.TMi = [];
    this.TM0R = [];
    this.TMT = [];
    this.exec = TM0S;
    this.hide = TM0T;
    this.on = [];
    this.onclick = TM0U;
    this.onmouseout = TM0V;
    this.onmouseover = TM0W;
    this.onmousedown = TM0X;
    this.TM0D = TM0Y;
    this.TM0Z = TMN;
    this.TM0a = this.TMd = this.TMQ = 0;
    this.TM07 = function()
        {
        } ;

    if (TM0Q)
        {
        this.TMQ = TM0Q.zIndex || 0;

        this.TMc = Boolean(TM0Q.frames);
        this.TMd = TM0Q.popup ? -1 : 0;
        var TM0b = TM0Q.frames;

        if (this.TMd)
            {
            this.TM03 = TMy;

            this.expand = TM04;
            this.TM06 = function()
                {
                }
            }

        if (TM0Q.forms)
            {
            this.TMK = TM0Q.forms;

            this.TM07 = TMG
            }
        }

    this.TM0c = { 'width': 100, 'height': 20, 'block_top': null, 'block_left': null, 'vertical': false,
                  'expd_delay': 0, 'hide_delay': 100, 'table': [0, 0, 0], 'css': { 'table': '', 'inner': '', 'outer': ''
    }
    };

    this.TMR = -1;
    this.TMh = this;
    this.TMV = function(TM0d)
        {
        return this.TM0c[TM0d]
        } ;

    if (!TMg)
        {
        TMg = new TM0();

        TMg.TM0e = navigator.userAgent.indexOf('Gecko') > -1;
        TMg.TMn = TMenu_path_to_files + 'pixel.gif';

        if (!TMg.TM0f)
            TMg.TM0f = 'onload';

        TMg.TM0I = window.innerWidth != null ? function(w)
            {
            return w.innerWidth
            } : function(w)
            {
            return w.document.body.offsetWidth
            } ;

        TMg.TM0J = window.innerHeight != null ? function(w)
            {
            return w.innerHeight
            } : function(w)
            {
            return w.document.body.offsetHeight
            } ;

        TMg.TM0L = window.pageXOffset != null ? function(w)
            {
            return w.pageXOffset
            } : function(w)
            {
            return w.document.body.scrollLeft
            } ;

        TMg.TM0N = window.pageYOffset != null ? function(w)
            {
            return w.pageYOffset
            } : function(w)
            {
            return w.document.body.scrollTop
            } ;

        TMg.TM0D = TM09;
        TMg.TM0g = TM0F
        }

    this.id = TM0Q && TM0Q.key ? TM0Q.key : menus.length;
    menus[this.id] = this;
    this.TMY = [];
    this.TMt = this.TM0O.length;
    this.TM0h = Boolean(this.TM0P[0].block_top == null && this.TM0P[0].block_left == null);

    for (var i = 0; i < this.TMt; i++)
        new TM0i(i, this, this, i);

    this.TM0Z(1);
    this.TMe = this.TMf;

    for (i = 0; i < this.TMT.length; i++)
        this.TMT[i].TM0j();

    if (top != window)
        {
        if (!top.TM0k)
            {
            top.TM0k = { 'TM0m': [], 'f_refresh': function()
                {
                for (var TM0l in this.TM0m)
                    {
                    for (var TM0n in this.TM0m[TM0l].frames)
                        this.TM0m[TM0l].frames[TM0n].TMg.TM0g()
                    }

                setTimeout('top.TM0k.f_refresh()', 500)
                }
            };

            var TMb = TMg.TMF[TMg.TM0f] ? new String(TMg.TMF[TMg.TM0f]) : '', TM0o;

            if ((TM0o = TMb.indexOf('{')) > -1)
                TMb = TMb.substring(TM0o + 1, TMb.lastIndexOf('}') - 1) + ';';

            TMg.TMF[TMg.TM0f] = Function(TMb + 'top.TM0k.f_refresh()')
            }

        if (!top.TM0k.TM0m[this.id])
            top.TM0k.TM0m[this.id] = { 'frames': []
            };

        this.TM0B = top.TM0k.TM0m[this.id];
        this.TM0B.frames[this.TM0B.frames.length] = window;

        if (this.TMc)
            {
            var TM0p = 0;

            this.TM0B.TM0C = window;
            this.TM0b = [];

            for (i in TM0b)
                {
                this.TM0b[i] = [];

                for (var j in TM0b[i])
                    {
                    this.TM0b[i][j] = eval('top.' + TM0b[i][j]);

                    if (this.TM0b[i][j].menu)
                        TM0p++
                    }
                }

            this.TM0B.TM0p = TM0p
            }
        }

    else
        setInterval('TMg.TM0g()', 500)
    }

function TM0Y()
    {
    if (this.TM0B)
        {
        this.TM0b = this.TM0B.TM0C.menus[this.id].TM0b;

        if (this.TMc)
            {
            var TM0q = 0, TM0r;

            this.TM0B.TM0s = [];

            for (i in this.TM0b)
                {
                TM0r = 0;

                for (j in this.TM0b[i])
                    {
                    if (!this.TM0B.TM0s[this.TM0b[i][j].name])
                        this.TM0B.TM0s[this.TM0b[i][j].name] = { 'x': TM0r, 'y': TM0q
                        };

                    TM0r += TMg.TM0I(this.TM0b[i][j])
                    }

                TM0q += TMg.TM0J(this.TM0b[i][j])
                }

            this.TM0B.TMe = TMg.TM4(this.TMe, this.TM0B.TM0s[window.name].x - TMg.TM0L(window),
                                    this.TM0B.TM0s[window.name].y           - TMg.TM0N(window))
            }

        else
            {
            TMg.TMB(this.TMe,
                    { 'x': this.TM0B.TMe.x - this.TM0B.TM0s[window.name].x + TMg.TM0L(window),
                      'y': this.TM0B.TMe.y - this.TM0B.TM0s[window.name].y + TMg.TM0N(window)
            });

            TMg.TM8(this.TMe, 1)
            }
        }

    if (document.layers)
        for (var TM0l = 0; TM0l < this.TMt; TM0l++)
            this.TMT[TM0l].TM00(0);

    else if (TM0t)
        for (var TM0l = 0; TM0l < this.TMt; TM0l++)
            this.TMT[TM0l].TM06()
    }

function TM0S(id, TM0u)
    {
    if (!this.TM0E)
        return;

    if (this.TM0B && TM0u)
        {
        for (var TM0v in this.TM0B.frames)
            {
            if (!this.TM0B.frames[TM0v].menus[this.id].TM0R[id]
                    || !this.TM0B.frames[TM0v].menus[this.id].TM0R[id].elements)
                return setTimeout('menus["' + this.id + '"].exec("' + id + '",' + TM0u + ')', 100)
            }

        for (TM0v in this.TM0B.frames)
            this.TM0B.frames[TM0v].menus[this.id]['on' + TM08[TM0u]](id)
        }

    else if (this.TM0B && !this.TMc)
        {
        if (!this.TM0B.TM0C.menus[this.id].TM0R[id] || !this.TM0B.TM0C.menus[this.id].TM0R[id].elements)
            return setTimeout('menus["' + this.id + '"].exec("' + id + '",' + TM0u + ')', 100);

        return this.TM0B.TM0C.menus[this.id]['on' + TM08[TM0u]](id)
        }

    else
        return menus[this.id]['on' + TM08[TM0u]](id)
    }

function TM0T()
    {
    if (this.TM0a > 0 || !this.TM0w)
        return;

    if (this.TMJ)
        this.TMJ.TM03(this.TMd);

    this.TMJ = null;

    if (!TMg.TM2 && !TMg.TM0e)
        this.TM07(true)
    }

function TM0U(id)
    {
    var TM0x = Boolean(this.TM0R[id].TMq[1]);

    if (TM0x && this.TM0B)
        for (var i in this.TM0B.frames)
            this.TM0B.frames[i].menus[this.id].TMJ.TM03(0);

    return TM0x
    }

function TM0V(id)
    {
    this.TM0a--;

    this.TM0R[id].TM00(0);

    if (this.TM0y)
        clearTimeout(this.TM0y);

    this.TM0w = setTimeout('menus["' + this.id + '"].hide()', this.TM0R[id].TMV('hide_delay'));

    if (this.TM0R[id].TMi.sb != null)
        top.status = '';

    if (this.TM0R[id].TMi.oo != null)
        this.TM0R[id].TMi.oo(id)
    }

function TM0W(id)
    {
    if ((TMg.TM0e || window.opera) && this.TM0R[id].TMx == 1)
        return;

    this.TM0a++;

    for (var TM0z = this.TM0R[id]; TM0z.elements; TM0z = TM0z.TMs)
        TM0z.TM00(1);

    var TM0z = this.TM0R[id];
    clearTimeout(this.TM0w);
    this.TM0w = null;

    if (TM0z.TMi.sb != null)
        setTimeout('menus["' + this.id + '"].TM0R["' + id + '"].TM14()', 10);

    this.TM02 = TM0z;

    if (TM0z.TMi.oh != null)
        TM0z.TMi.oh(id);

    if (TM0z.TMs.TMT[0].TM10 < 0)
        return;

    if (TM0z.TMs.TMT[0].TM10)
        this.TM0y = setTimeout('menus["' + this.id + '"].TM0R["' + id + '"].expand()', TM0z.TMs.TMT[0].TM10);

    else
        TM0z.expand()
    }

function TM0X(id)
    {
    this.TM0R[id].TM00(2);

    if (this.TM0R[id].TMs.TMT[0].TM10 < 0)
        this.TM0R[id].expand()
    }

function TM0i(TM11, TMs, TMh, TM12)
    {
    this.id = this.TM11 = new String(TM11);

    this.TMs = TMs;
    this.TMh = TMh;
    this.TMr = this.TM11.split('_');
    this.TMR = this.TMr.length - 1;
    var TM13 = '';

    for (var i = 0; i <= this.TMR; i++)
        TM13 += '[' + (Number(this.TMr[i]) + (i ? 3 : 0)) + ']';

    eval('this.TMq = this.TMh.TM0O' + TM13);

    if (!this.TMq)
        return;

    this.TMi = this.TMq[2] ? this.TMq[2] : [];
    this.TMh.TM0R[this.id] = this;
    TMs.TMT[TMs.TMT.length] = this;
    this.TM00 = TMw;
    this.TM14 = TM15;
    this.TM06 = TM16;
    this.TM0Z = TMp;
    this.TMV = TM17;
    this.TMX = TM18;
    this.TM0j = TMv;
    this.TM03 = TMy;
    this.expand = TM04;

    if (!TM12)
        {
        this.TM19 = this.TMs.TMi.bt || this.TMV('block_top');

        this.TM1A = this.TMs.TMi.bl || this.TMV('block_left');
        this.TM1B = this.TMV('top') < 0;
        this.TM1C = this.TMV('left') < 0;
        this.TM1D = this.TMV('width');
        this.TM1E = this.TMV('height');
        this.TMu = this.TMV('vertical');
        this.TM1F = this.TMV('wise_pos');
        this.TM10 = this.TMV('expd_delay')
        }

    var TM1G = this.TMs.TMT[0].TM1D, TM1H = this.TMs.TMT[0].TM1E;

    if (this.TMs.TMT[0].TMu)
        {
        if (this.TMs.TMi.bw != null)
            TM1G = this.TMs.TMi.bw;

        if (this.TMi.sh != null)
            TM1H = this.TMi.sh
        }

    else
        {
        if (this.TMs.TMi.bh != null)
            TM1H = this.TMs.TMi.bh;

        if (this.TMi.sw != null)
            TM1G = this.TMi.sw
        }

    this.TMs.TMY[TM12] = this.TM0Z(TM1G, TM1H);
    this.TMt = this.TMq.length - 3;

    if (this.TMt > 0)
        {
        this.TMT = [];

        this.TM1I = TMN;
        this.TM05 = TM1J;

        if (TM0t && !document.layers)
            {
            this.TM05();

            this.TM1K = this.TMR == 0 && this.TMh.TM0h
            }
        }
    }

function TM1J()
    {
    this.TMY = [];

    for (var i = 0; i < this.TMt; i++)
        if (this.TMq[3 + i])
            new TM0i(this.TM11 + '_' + i, this, this.TMh, i);

        else
            this.TMt--;

    this.TM1I();

    for (i in this.TMT)
        this.TMT[i].TM0j()
    }

function TM15()
    {
    top.status = this.TMi.sb
    }

function TM17(TM0d)
    {
    var TM1L = null, TM1M = this.TMh.TM0P[this.TMR];

    if (TM1M)
        TM1L = TM1M[TM0d];

    return (TM1L == null ? this.TMs.TMV(TM0d) : TM1L)
    }

function TM18(TM1N, TM1O)
    {
    var TM1P = this.TMV('css'), TM1Q = TM1P[TM1N];

    if (typeof (TM1Q) == 'string')
        return TM1Q;

    for (var TM1R = TM1O; TM1R >= 0; TM1R--)
        if (TM1Q[TM1R])
            return TM1Q[TM1R]
    }

function TM16(TMC, value)
    {
    if (this.TMt > 0)
        {
        var TM1S = this.TMT[0],
            TM1T = TMg.TM4(this.elements[0],                      this.TMi.bl ? this.TMi.bl : TM1S.TM1A,
                           this.TMi.bt ? this.TMi.bt : TM1S.TM19, this.TM1K);

        if (TM1S.TM1C)
            TM1T.x -= TMg.TMD(this.TMf);

        if (TM1S.TM1B)
            TM1T.y -= TMg.TMD(this.TMf, 1);

        if (TM1S.TM1F && !this.TMh.TM0B)
            {
            var wise = TM1S.TM1F,        TM1U = TMg.TMD(this.TMf, 0), TM1V = TMg.TMD(this.TMf, 1),
                TM1W = TMg.TM0I(window), TM1X = TMg.TM0J(window),     TM1Y = TMg.TM0L(window),
                TM1Z = TMg.TM0N(window);

            if (TM1T.x + TM1U > TM1W + TM1Y)
                TM1T.x = (wise == 1 ? TM1W + TM1Y : TM1T.x) - TM1U;

            if (TM1T.y + TM1V > TM1X + TM1Z)
                TM1T.y = (wise == 1 ? TM1X + TM1Y : TM1T.y) - TM1V;

            if (TM1T.x < TM1Y)
                TM1T.x = TM1Y;

            if (TM1T.y < TM1Z)
                TM1T.y = TM1Z
            }

        TMg.TMB(this.TMf, TM1T);

        if (this.TMo)
            TMg.TMB(this.TMo, TM1T);

        if (TM0t && !document.layers)
            for (var TM0l = 0; TM0l < this.TMt; TM0l++)
                this.TMT[TM0l].TM06()
        }
    }

var TM1a = navigator.appVersion.match(/MSIE [0-9.]+/),
    TM0t = window.opera
        || !TM1a || !TM1a[0] || TM1a[0].replace('MSIE ', '') < 4.99
                             || (navigator.appVersion.indexOf('Mac') > -1 && navigator.appVersion.indexOf('MSIE') > -1)
                             || navigator.userAgent.indexOf('Konqueror') > -1;
document.write('<scr' + 'ipt language="JavaScript" src="' + TMenu_path_to_files + 'menu.'
                      + (document.layers ? 'lay' : TM0t ? 'opr' : 'dom') + '.js"></scr'        + 'ipt>');

