function show_auth(){
	document.getElementById('auth_open').style.display='block';
	document.getElementById('auth_open_email').focus();
}
function hide_auth(){
	document.getElementById('auth_open').style.display='none';
}
function stars_over(idd){
	document.getElementById('stars').style.backgroundPosition='0 -'+((idd.title-1)*15)+'px';
}
function stars_out(){
	document.getElementById('stars').style.backgroundPosition='0 -75px';
}
function advice(id) {
	$.post('/advices_ajax/'+id+'/?', {}, function(returned_data) {
		//alert(returned_data);
		$('#advice').html(returned_data);
	});
	return false;
}
var hideTime;
var hideTime2;
var hideTime3;
var hideTime4;
function showMore() {
	window.clearTimeout(hideTime);
	document.getElementById('moreopen').style.display = 'block';
}

function hideMore() {
	hideTime=window.setTimeout(function(){document.getElementById('moreopen').style.display = 'none';},200);
}
function showCitySelect() {
	window.clearTimeout(hideTime);
	document.getElementById('city_select_hidd').style.display = 'block';
}

function hideCitySelect() {
	hideTime=window.setTimeout(function(){document.getElementById('city_select_hidd').style.display = 'none';},300);
}
function showHlebSelect2() {
	window.clearTimeout(hideTime2);
	document.getElementById('hleb2').style.display = 'block';
}
function hideHlebSelect2() {
		hideTime2=window.setTimeout(function(){document.getElementById('hleb2').style.display = 'none';},300);
}
function showHlebSelect3() {
	window.clearTimeout(hideTime3);
	document.getElementById('hleb3').style.display = 'block';
}
function hideHlebSelect3() {
		hideTime3=window.setTimeout(function(){document.getElementById('hleb3').style.display = 'none';},300);
}
function showHlebSelect4() {
	window.clearTimeout(hideTime4);
	document.getElementById('hleb4').style.display = 'block';
}
function hideHlebSelect4() {
		hideTime4=window.setTimeout(function(){document.getElementById('hleb4').style.display = 'none';},300);
}
function show_pw(a_idd, tbl_idd){
	if(a_idd.className=='show_down'){
		document.getElementById(tbl_idd).style.display='block';
		a_idd.className='show_up';
	}
	else{
		document.getElementById(tbl_idd).style.display='none';
		a_idd.className='show_down';
	}
	return false
}
function show_goods_cat(){
	document.getElementById('show_categories').style.display='block';
	document.getElementById('show_filters').style.display='none';
}
function show_goods_filters(){
	document.getElementById('show_categories').style.display='none';
	document.getElementById('show_filters').style.display='block';
}
