$(document).ready(function() {$("a.share").click(function() {var state = $(this).siblings("div.share-box").css("display");if (state == "none") {$(this).siblings("div.share-box").show();} else {$(this).siblings("div.share-box").hide();}return false;});$("div.share-box a").click(function() {$(this).parent("p").parent("div.share-box").hide();if ($(this).attr("href") == "#close") {return false;}});$("#leave-a-reply input[name=submit]").livequery(function() {$(this).click(function() {var name = $("#leave-a-reply input#CommentAuthor").val();var email = $("#leave-a-reply input#CommentEmail").val();var website = $("#leave-a-reply input#CommentUrl").val();var comments = $("#leave-a-reply textarea#CommentBody").val();if ($("#leave-a-reply input#remember_me").attr("checked")) {var remember_me = $("#leave-a-reply input#remember_me").val();} else {var remember_me = "N";}$.post("/ccs-engine/blog-comment-form", { name: name, email: email, website: website, comments: comments, PostID: "21", submit: "Submit", remember_me: remember_me },function(data) {$("#leave-a-reply").html(data);if (data.search('<form') == -1) {/* Reload Comments */$("#comment-holder").load("/ccs-engine/blog-ajax-comments/PostUrl.negotiating-a-better-series-a-deal");if (data.search("Your Comment has been posted!") != -1) {re = new RegExp(/\#comment\-[0-9]+/);var id = data.match(re);$("#comment-holder div" + id).livequery(function() {var currBgColor = $(this).css("background-color");$(this).animate({ backgroundColor: "#fff799" }, 1500).animate({ backgroundColor: currBgColor }, 1500);});}}});return false;});});$("#leave-a-reply").load("/ccs-engine/blog-comment-form/PostID.21");})