function printArticle(id) { window.open("http://news.mync.com/site/news/print/" + id + "/"); } $(document).ready(function() { var share_open = false; $("#share_this_btn").click(function() { if (share_open == true) { $("#share_this_img").attr("src", "http://static.mync.com/images/siteart/share_open.png"); $("#share_this").css("display", "none"); share_open = false; } else { $("#share_this_img").attr("src", "http://static.mync.com/images/siteart/share_close.png"); $("#share_this").css("display", "block"); share_open = true; } }); $("#report_abuse_btn").mouseover(function() { $("#report_abuse_img").attr("src", "http://static.mync.com/images/siteart/abuse_flag_on.png"); }); $("#report_abuse_btn").mouseout(function() { $("#report_abuse_img").attr("src", "http://static.mync.com/images/siteart/abuse_flag_off.png"); }); $("#send_to_friend_btn").mouseout(function() { $("#send_to_friend_img").attr("src", "http://clayton.mync.com/images/buttons/email.jpg"); }); $("#send_to_friend_btn").mouseover(function() { $("#send_to_friend_img").attr("src", "http://clayton.mync.com/images/buttons/email_roll.jpg"); }); /*$("#abuse_submit").click(function() { $("#abuse_report_inner").html("Loading "); target_url = abuse_ajax_server+"?url="+$("#abuse_url").val()+"&name="+$("#abuse_name").val(); $.ajax({ type: "POST", url: target_url, success: function(msg) { $("#abuse_report_inner").html("Abuse report recieved. Thank You."); } }); return false; }); */ });