﻿    var tmr = new Object();
    function ShowSub(el,cc)
    {
        window.clearTimeout(tmr[cc]);
        pos = Position.cumulativeOffset(el);
        Element.setStyle(cc,{left:pos[0] + Element.getWidth(el) + 'px', top: (pos[1]-3) + 'px'});
        Effect.Appear(cc);
    }
    function Show(cc)
    {
        window.clearTimeout(tmr[cc]);
    }
    function HideSub(cc)
    {
        tmr[cc] = window.setTimeout("Element.hide('"+cc+"');", 100);
    }
    
    
    function Nav(el)
    {
        if(el.value=='0' || !el.value) return;
        window.open(el.value);
        el.options[0].selected = true;
    }