// JavaScript Document

$(document).ready(function()
    {
      $(".newanswer").hide();

        $(".add-new-answer").toggle(function()
            {
				$(this).next().show();
                $(this).text("Скрыть дополнительный ответ");
                
            }, function(){
				$(this).next().hide();
                $(this).text("Добавить свой ответ");
            });

   // $("#image").css("width", "100px");
        $(".pre-obj a img").hover(function()
            {
				original = $(this).attr("src");
				$(this).attr("src", $(this).parent().attr("href"));
                $(this).animate({width: "200px"}, 500);
				$(this).addClass("over");
				//$(this).parent().attr("title", 'Уменьшить');
                //$('p').text("Click To Zoom Out");
                
            }, function(){
                $(this).animate({width: "100px"}, 500);
				$(this).attr("src", original);
				$(this).attr("class", "");
				//$(this).parent().attr("title", 'Увеличить');
                //$('p').text("Click To Zoom In");
            });
    });
