/* menu1 */
var t = 0;
var m1_current = 0;

function m1_ovr(id) {
    if (t != 0) clearTimeout(t);
    if (m1_current > 0 && m1_current != id) {
        hide_all();
    }
}

function m1d_ovr(id, act) {
    if (t != 0) clearTimeout(t);
    if (m1_current > 0 && m1_current != id) {
        hide_all();
    }
    document.getElementById('td1'+id).style.borderTopColor = '#01858a'
    document.getElementById('td1'+id).style.backgroundImage = 'url(/images/m1a.gif)'
    document.getElementById('m1'+id).style.borderRightColor = '#CACACA'
    document.getElementById('m2d'+id).style.display = 'block'
    m1_current = id
}
function m1d_out(id, act) {
    t = setTimeout("m1d_out_t('"+id+"')",500)
}
function m1d_out_t(id, act) {
    document.getElementById('td1'+id).style.borderTopColor = ''
    document.getElementById('td1'+id).style.backgroundImage = ''
    document.getElementById('m1'+id).style.borderRightColor = ''
    document.getElementById('m2d'+id).style.display = ''
    m1_current = 0
}
function hide_all() {
    for (i = 1; i <= menuNum; i++) {
        obj = document.getElementById('m2d'+i);
        if (!obj) continue;
        m1d_out_t(i);
    }
}




/* select fil */
var fil_current = 0

function sel_fil(box) {
	  num = box.options[box.selectedIndex].value
    if (num != fil_current) {
        for (i = 1; i <= fil_total; i++) {
            if (i != num) {
                obj = document.getElementById('f'+i)
                if (!obj) continue
                obj.style.display = ''
            }
        }
        if (num > 0) document.getElementById('f'+num).style.display = 'block'
    }
    fil_current = num
}
