function showBlock(name)
{
    var obj, obj_arr = new Array('quicknav', 'cityselect', 'authorization');

    for (i=0; i<obj_arr.length; i++) {
        if (obj = document.getElementById(obj_arr[i])) {
            if (name == obj_arr[i]) {
                if (obj.style.visibility == 'visible') {
                    obj.style.visibility = 'hidden';
                    unclipSelect('layer1');
                    unclipSelect('layer2');
                } else {
                    obj.style.display = 'block';
                    obj.style.visibility = 'visible';
                    if (obj_arr[i] == 'authorization') {
                        var login_obj = document.getElementById('login');
                        login_obj.focus();
                        unclipSelect('layer1');
                        unclipSelect('layer2');
                    }
                    if (obj_arr[i] == 'cityselect') {
                        clipSelect('layer1', '44');
                        clipSelect('layer2', '69');
                    }
                }
            } else {
                obj.style.visibility = 'hidden';
            }
        }
    }

    return false;
}

function clipSelect (name, width) {
    if (clipObj = document.getElementById(name)) {
        clipObj.style.clip = 'rect(auto '+width+'px auto auto)';
    }
}

function unclipSelect (name) {
    if (clipObj = document.getElementById(name)) {
        clipObj.style.clip = 'rect(auto auto auto auto)';
    }
}
