$(document).ready(function(){

/*меню*/
    $(".nav1").bind("mouseover", function(){
        $(this).addClass("o1");
        $(this).css("p", "color:#fff;");
    });
    $(".nav1").bind("mouseout", function(){
        $(this).removeClass("o1");
    });

    $(".nav2").bind("mouseover", function(){
        $(this).addClass("o2");
    });
    $(".nav2").bind("mouseout", function(){
        $(this).removeClass("o2");
    });

    $(".nav3").bind("mouseover", function(){
        $(this).addClass("o3");
    });
    $(".nav3").bind("mouseout", function(){
        $(this).removeClass("o3");
    });

    $(".nav4").bind("mouseover", function(){
        $(this).addClass("o4");
    });
    $(".nav4").bind("mouseout", function(){
        $(this).removeClass("o4");
    });

    $(".nav5").bind("mouseover", function(){
        $(this).addClass("o5");
    });
    $(".nav5").bind("mouseout", function(){
        $(this).removeClass("o5");
    });


/*бордер на каталоге услуг на главной*/
    $(".serv_ind").bind("mouseover", function(){
        $(this).css("border", "1px solid #dddddd");
    });

    $(".serv_ind").bind("mouseout", function(){
        $(this).css("border", "1px solid #fff");
    });

/*бегунок*/
	$(".img_begun").bind('mouseover', function(){
		this.src=this.src.replace('/img/begunok_g.png', '/img/begunok_o.png');
	});
	$(".img_begun").bind('mouseout', function(){
		this.src=this.src.replace('/img/begunok_o.png', '/img/begunok_g.png');
	});

/*изменение картинок на главной - подробнее, все*/
	$(".img_hits").bind('mouseover', function(){
		this.src=this.src.replace('/img/all_hits.jpg', '/img/all_hits_a.jpg');
	});
	$(".img_hits").bind('mouseout', function(){
		this.src=this.src.replace('/img/all_hits_a.jpg', '/img/all_hits.jpg');
	});

	$("#delivery_ind img").bind('mouseover', function(){
		this.src=this.src.replace('img/more.jpg', 'img/more_a.jpg');
	});
	$("#delivery_ind img").bind('mouseout', function(){
		this.src=this.src.replace('img/more_a.jpg', 'img/more.jpg');
	});

	$("#pay img").bind('mouseover', function(){
		this.src=this.src.replace('img/more.jpg', 'img/more_a.jpg');
	});
	$("#pay img").bind('mouseout', function(){
		this.src=this.src.replace('img/more_a.jpg', 'img/more.jpg');
	});

/*блок публикаций на главной*/
	$("#one").bind('mouseover', function(){
		$("#one span").css('background-color', '#818181');
	});
	$("#one").bind('mouseout', function(){
		$("#one span").css('background-color', '#c4c4c4');
	});

	$("#two").bind('mouseover', function(){
		$("#two span").css('background-color', '#818181');
	});
	$("#two").bind('mouseout', function(){
		$("#two span").css('background-color', '#c4c4c4');
	});

	$("#three").bind('mouseover', function(){
		$("#three span").css('background-color', '#818181');
	});
	$("#three").bind('mouseout', function(){
		$("#three span").css('background-color', '#c4c4c4');
	});


/*всплывающее окно*/
	$("#pop1").bind("click", function(){
		$("#shadow").css("display","block");
		$("#popup").css("display","block");
	});

	$("#pop2").bind("click", function(){
		$("#shadow").css("display","block");
		$("#popup").css("display","block");
	});

	$("#pop3").bind("click", function(){
		$("#shadow").css("display","block");
		$("#popup").css("display","block");
	});

	$("#pop4").bind("click", function(){
		$("#shadow").css("display","block");
		$("#popup").css("display","block");
	});

	$("#pop5").bind("click", function(){
		$("#shadow").css("display","block");
		$("#popup").css("display","block");
	});

	$("#pop6").bind("click", function(){
		$("#shadow").css("display","block");
		$("#popup").css("display","block");
	});

	$(".pop_7").bind("click", function(){
		$("#shadow").css("display","none");
		$("#popup").css("display","none");
	});

	$("#shadow").bind("click", function(){
		$("#shadow").css("display","none");
		$("#popup").css("display","none");
	});

	$("#tab_del .td_1").bind("onmouseover", function(){
		$(this).css("text-decoration","none");
	});
	$("#tab_del .td_1").bind("onmouseout", function(){
		$(this).css("text-decoration","underline");
	});





});

