/* AUTOMATED FILE. DO NOT EDIT. */
$().ready(function(){$(document).on("click",".connect-user",function(){var t=$(this),n=$(this).data("to_user"),e=$(this).data("to_user_name");return $.ajax({url:"/user/toggleUserConnection",type:"post",data:{to_user_id:n},success:function(n){if(n){var o=1==n?"You are now connected to ":"Connection request sent to ";t.parent().fadeOut("slow",function(){t.parent().html(o+e)}),t.parent().fadeIn(),_gaTracker("send","event","Event Stream","User Connected to User",window.location.href)}}}),!1})}),$(document).on("click",".join-community-member",function(){var t=$(this),n=$(this).data("community_id"),e=$(this).data("community_name");return $.ajax({url:"/community/toggleCommunityJoin",type:"POST",data:{community_id:n},success:function(n){if(n){if("2"==n)return window.location="/user/signup",!1;t.parent().fadeOut("slow",function(){t.parent().html("You have joined "+e)}),t.parent().fadeIn(),_gaTracker("send","event","Event Stream","User Joined Community",window.location.href)}}}),!1});var blur_comment=function(t){t.siblings("input[type=submit]").hide(),t.removeClass("focus")};$(".container").on("click",".event-add-comment",function(){_this=$(this),$(_this).find("input[type=submit]").show(),$(_this).find("textarea").addClass("focus")});