	function resettop() {
		$('.top_gl').css({"background-image":"url(imghtml/glavnaya_desel.gif)"});
		$('.top_pgl').css({"background-image":"url(imghtml/ldrd.gif)"});
		$('.top_okomp').css({"background-image":"url(imghtml/top_deselect.gif)"});
		$('.top_pokomp').css({"background-image":"url(imghtml/ldrd.gif)"});
		$('.top_kont').css({"background-image":"url(imghtml/top_deselect.gif)"});
		$('.top_pkont').css({"background-image":"url(imghtml/ldrd.gif)"});
		$('.top_gnn').css({"background-image":"url(imghtml/gnn_desel.gif)"});
	}
	
	function resetmiddle() {
		$('.m_poisk').css({"background-image":"url(imghtml/glavnaya_desel.gif)"});
		$('.m_ppoisk').css({"background-image":"url(imghtml/ldrd.gif)"});
		$('.m_vizy').css({"background-image":"url(imghtml/top_deselect.gif)"});
		$('.m_pvizy').css({"background-image":"url(imghtml/ldrd.gif)"});
		$('.m_turpobel').css({"background-image":"url(imghtml/top_deselect.gif)"});
		$('.m_pturpobel').css({"background-image":"url(imghtml/ldrd.gif)"});
		$('.m_pinogr').css({"background-image":"url(imghtml/top_deselect.gif)"});
		$('.m_ppinogr').css({"background-image":"url(imghtml/ldrd.gif)"});
		$('.m_ovzyvy').css({"background-image":"url(imghtml/gnn_desel.gif)"});
	}
	
	function showInfo(inf) {
		$('.MiniInfoWindow').text(inf);
		$('.MiniInfoWindow').show();
	}
	
	function hideInfo() {
		$('.MiniInfoWindow').text('');
		$('.MiniInfoWindow').hide();
	}


$(function()
{
	$('.top_gl').mouseover(function(){
		resettop();
		$(this).css({"background-image":"url(imghtml/glavnaya_sel.gif)"});
		$('.top_pgl').css({"background-image":"url(imghtml/lsrd.gif)"});
	});
	$('.top_okomp').mouseover(function(){
		resettop();
		$('.top_pgl').css({"background-image":"url(imghtml/rdls.gif)"});
		$(this).css({"background-image":"url(imghtml/top_select.gif)"});
		$('.top_pokomp').css({"background-image":"url(imghtml/lsrd.gif)"});	
	});			
	$('.top_kont').mouseover(function(){
		resettop();
		$('.top_pokomp').css({"background-image":"url(imghtml/rdls.gif)"});
		$(this).css({"background-image":"url(imghtml/top_select.gif)"});
		$('.top_pkont').css({"background-image":"url(imghtml/lsrd.gif)"});	
	});
	$('.top_gnn').mouseover(function(){
		resettop();
		$('.top_pkont').css({"background-image":"url(imghtml/rdls.gif)"});
		$(this).css({"background-image":"url(imghtml/gnn_sel.gif)"});
	});
	
	
	$('.m_poisk').mouseover(function(){
		resetmiddle();
		$(this).css({"background-image":"url(imghtml/glavnaya_sel.gif)"});
		$('.m_ppoisk').css({"background-image":"url(imghtml/lsrd.gif)"});
	});
	$('.m_vizy').mouseover(function(){
		resetmiddle();
		$('.m_ppoisk').css({"background-image":"url(imghtml/rdls.gif)"});
		$(this).css({"background-image":"url(imghtml/top_select.gif)"});
		$('.m_pvizy').css({"background-image":"url(imghtml/lsrd.gif)"});	
	});			
	$('.m_turpobel').mouseover(function(){
		resetmiddle();
		$('.m_pvizy').css({"background-image":"url(imghtml/rdls.gif)"});
		$(this).css({"background-image":"url(imghtml/top_select.gif)"});
		$('.m_pturpobel').css({"background-image":"url(imghtml/lsrd.gif)"});	
	});
	$('.m_pinogr').mouseover(function(){
		resetmiddle();
		$('.m_pturpobel').css({"background-image":"url(imghtml/rdls.gif)"});
		$(this).css({"background-image":"url(imghtml/top_select.gif)"});
		$('.m_ppinogr').css({"background-image":"url(imghtml/lsrd.gif)"});	
	});
	$('.m_ovzyvy').mouseover(function(){
		resetmiddle();
		$('.m_ppinogr').css({"background-image":"url(imghtml/rdls.gif)"});
		$(this).css({"background-image":"url(imghtml/gnn_sel.gif)"});
	});
	
	
	
	
	$('.bann').mouseout(function(){
		hideInfo();
	});
	
	
	$('#addotzyv').click(function(){
		$('#otzyv').slideToggle(100);
		$('#question').slideUp(100);
	});
	$('#addquestion').click(function(){
		$('#question').slideToggle(100);
		$('#otzyv').slideUp(100);
	});

});
