function showBlock(name)
{
    var obj, obj_arr = new Array('quicknav', 'cityselect', 'authorization');
    if (obj = document.getElementById(name)) {
    	if (self.innerHeight) {
		x = self.innerWidth;
		y = self.innerHeight;
		// IE 6 Strict Mode
	} else if (document.documentElement && document.documentElement.clientHeight) {
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
		// Остальные версии IE
	} else if (document.body) {
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	var top = document.body.scrollTop;
	var left = document.body.scrollLeft;

	var width = $("#"+name).width();
	var height = $("#"+name).height();
	
	var halfX = x /2;
	var halfWidth = width / 2;
	var leftPad = (left + halfX) - halfWidth;

	var halfY = y /2;
	var halfHeight = height / 2;
	var topPad = (top + halfY) - halfHeight;

	$("#"+name).css('top', topPad);
	$("#"+name).css('left', leftPad);
	    if (obj.style.display == 'none') {
			obj.style.display = 'block';
        } else {
            obj.style.display = 'none';
    	}
	}
    //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)';
    }
}