$(document).ready(function(){
  $(".spec_link").hover(
	function(){
		$(this).find(".name").css("color","#FFF");
		$(this).find(".grad").css("color","#FFF");
		$(this).find(".text").css("color","#FFF");
		$(this).find(".spec").css("background","#ad0c0c");
	},
	function(){
		$(".spec .name").css("color","#12474d");
		$(".spec .grad").css("color","#ad0c0c");
		$(".spec .text").css("color","#000000");
		$(this).find(".spec").css("background","none");
	});
  /*sobitie*/
  $(".sob_link").hover(
	function(){
		$(this).find(".data").css({color:"#FFF",background:"#ad0c0c"});
		$(this).find(".caption").css({color:"#FFF",background:"#ad0c0c"});
		$(this).find(".anons").css({color:"#FFF",background:"#ad0c0c"});
		$(this).find(".red_png").show();
		$(this).find(".white_png").hide();
		/*$(this).find(".sob").css("background","#ad0c0c");
*/
	},
	function(){
		$(this).find(".data").css({color:"#A0B2B8",background:"none"});
		$(this).find(".caption").css({color:"#12474D",background:"none"});
		$(this).find(".anons").css({color:"#12474D",background:"none"});
		$(this).find(".red_png").hide();
		$(this).find(".white_png").show();
	});
  //$(".menu_item").click(function(){
    //$(".hidden").toggle("slide", {direction:"up"}, "slow");								 
  //})  
  $("#price_table tr:odd").css("background-color","#f6f9f8");
  $("#price_table tr:even").not(".table_head").css("background-color","#e0eae9");
  
  $(".hl td.yes").mouseover(function(){
		   index=($(this).parent().find("td").index(this));			 
		   $(this).parent().find("a").css({
						   color:"#FFF",	
						   background:"#ad0c0c"
						   });
		  $(".top_table td").eq(index).css({						  
						   background:"#ad0c0c",
						   color:"#FFF"})
		}).mouseout(function(){
		   $(this).parent().find("a").css({
						   color:"#ab0d0d",
						   background:"#FFF"});
		  $(".top_table td").eq(index).css({						  
						   background:"#FFF",
						   color:"#a0b2b8"})
	    });
  
  
  //для расписания
  $(".hl td.yess").mouseover(function(){
		   index=($(this).parent().find("td").index(this));
		   $(this).parent().find("a").css({
						   color:"#FFF",	
						   background:"#ad0c0c"
						   });
		  $(this).parent().parent().find("tr.top_table td").eq(index).css({						  
						   background:"#ad0c0c",
						   color:"#FFF"})
		}).mouseout(function(){
		   $(this).parent().find("a").css({ 
						   color:"#ab0d0d",
						   background:"#FFF"});
		  $(this).parent().parent().find("tr.top_table td").eq(index).css({						  
						   background:"#FFF",
						   color:"#a0b2b8"})
	    });
  $("#phone_click").click(function(){
								   $("#vspl").slideToggle();
								   });
   $(".telephone").click(function(){
								   $("#vspl_top").slideToggle();
								   });
	//partn
	$(".part_item").mouseover( function() {
        $(".img_na",this).hide();
		$(".img_a",this).show();
     });
     $(".part_item").mouseout( function() {
		$(".img_a",this).hide();
		$(".img_na",this).show();
     });
});

// top;
function toptext(id) {
	//$('#load').show();
	$('#toptext').load('/systems/includes/php/toptext.php', { 'id':id }, function() {
	//$('#load').hide();
	});
}
