function toggleHDCityPanel() {
	var pnl = document.getElementById("topWeatherCityPanel");
	pnl.style.left =  (Position.cumulativeOffset($('weatherConditionTable'))[0] - 30)+'px';
	pnl.style.top =  (Position.cumulativeOffset($('weatherConditionTable'))[1])+'px';
	visible = pnl.style.display == "none";
	
	if (visible)
		showWeatherCityPanel(true);
	else
		cancelWeatherChange();
}

function showWeatherCityPanel(visible){
	var pnl = document.getElementById("topWeatherCityPanel");
	pnl.style.display = visible ? "block" : "none";
}

function cancelWeatherChange() {
	var lst = document.getElementById("topWeatherCityList");
	showWeatherCityPanel(false);
}

//hava
function weatherConditionSelector(cityId){
//	new Ajax.Updater(document.getElementById('weatherBody'),'weatherCondition.action?weatherCityId='+cityId,{asynchronous: true, method:'get'});
	$.ajax({
		type: 'GET',
		url: 'weatherCondition.action',
		data: 'weatherCityId='+cityId,
		success: function(respond) {$('#weatherBody').html(respond);}
	});
}
