function setLocality(value,denySelect) {
	if (!denySelect) {
		$('.select-box').slideDown(300);
	} 
	selectItem(value, 'region');	
}

function setEstateType(value) {
	selectItem(value, 'type');
    if ($('h2#hp-buildings-offer-header').length > 0) {
        if ($('html').scrollTop() > parseInt($('h2#hp-buildings-offer-header').get(0).offsetTop)) {
            $('html').scrollTop(parseInt($('h2#hp-buildings-offer-header').get(0).offsetTop));
        }
    }
    $('select#type').stop().animate({'backgroundColor': '#fffdbe'}, 250, function(){
        $(this).animate({'backgroundColor': 'white'}, 750);
    });
}
