function hideTextSearch() 
{
    document.getElementById( 'input-search' ).value = '';
}

function show_subcat( id, url )
{

    //ukrycie wszystkich submenu
    for (var i=0; i<arrSubmenu.length; i++ ) {
        try {
            var tId = 'subcat_'+arrSubmenu[i];
            if ( tId != id ) {
                document.getElementById( tId ).style.display = 'none';
            }
        }catch(e){}
    }


    try {
        var obj = document.getElementById(id);
        if ( obj.style.display == 'none' ) {
           obj.style.display = 'block';
            //location.href = url;
            return;
        }
        
        //location.href = url;
        obj.style.display = 'none';
        return;
    }
    catch (e) {
    }


    location.href = url;
}
