$(document).ready(function(){
  

 	
	
     $(".button_hide_show").click(function () {
		
		$(".hidden_forum_news").toggle();
	});    


    $('.menulink').hover(
        function(){
            $(this).parent('.menulist').toggleClass("menuactive");
        } ,
        function(){
            $(this).parent('.menulist').removeClass("menuactive");
        }
    );

    $('.button_login').hover(
        function(){
            $(this).toggleClass("button_login_hover");
        } ,
        function(){
            $(this).removeClass("button_login_hover");
        }
    );

    $('.login_input').hover(
        function(){
            $(this).toggleClass("login_input_hover");
        } ,
        function(){
            $(this).removeClass("login_input_hover");
        }
    );

    $('.imgphoto').hover(
        function(){
            $(this).css('border-color','#6699CC');
        } ,
        function(){
            $(this).css('border-color','#CCCCCC');
        }
    );


//    $('#wysiwyg').wysiwyg();

    $(".nf_lnk").click(function(){
        $(this).parent("p").next("p").toggle("normal")
        .siblings(".news_forum_acc:visible").toggle(200);
    });

    $('.nf_lnk').hover(
        function(){
            $(this).css('text-decoration','none');
        } ,
        function(){
            $(this).css('text-decoration','underline');
        }
    );

    $('.nf_slider').hover(
        function(){
            $(this).attr('src','images/answer_post.gif');
        } ,
        function(){
            $(this).attr('src','images/answer_post_unactive.gif');
        }
    );

});
