/* Generated 2012-01-27 11:29:04*/jQuery(document).ready(function(){if(jQuery(".more-carousel").length>0){jQuery(".more-carousel .section-content ul").jcarousel({vertical:true,scroll:8,wrap:"last"})}if(document.userToken){if(document.jsItemID){jQuery(this).webService({type:"get",url:"/services/gateway/?service[module]=Content&service[action]=GetContentManageToolsBlock&service[format]=html&params[itemType]="+document.jsItemType+"&params[itemId]="+document.jsItemID+"&params[articleId]="+document.jsItemID+"&params[theme]=Content&user[token]="+document.userToken,dataType:"html",success:function(a){jQuery("#manage-tools").html(a)}});articleManageTools.init()}if(document.jsItemID){siteComments.init()}}jQuery("#comment_UserComment").keyup(function(a){if(jQuery(this).val().length<255){jQuery("#comment_AddArea .button").removeAttr("disabled");jQuery("#word-count").html(255-jQuery("#comment_UserComment").val().length);jQuery("#word-count").removeClass("over")}else{jQuery("#comment_AddArea .button").attr("disabled","true");jQuery("#word-count").addClass("over");jQuery("#word-count").html(255-jQuery("#comment_UserComment").val().length)}});jQuery(".music-reviews.listing-article a").hover(function(){jQuery(this).parent("span").parent("div").find(".content-grouper").show()},function(){jQuery(this).parent("span").parent("div").find(".content-grouper").hide()});eventAddInvite.init();$("#Suspend_Article_button").live("click",function(){jQuery(this).webService({type:"post",url:"/services/gateway/?service[module]=Content&service[action]=suspendArticle&service[format]=json&params[id]="+document.jsItemID+"&user[token]="+document.userToken,dataType:"html",loading:true,loadingLocation:"#Suspend_Article",success:function(a){jQuery("#content").prepend('<div class="notification"><h5 style="color:#9A090A; font-size:15px; font-weight:bold;">This article has been suspended</h5><p>Suspending the article will move it back into the moderation queue.</p></div>');jQuery("#content .notification").fadeIn()}})});$("#comments-posts .comment-like").click(function(c){c.preventDefault();if(typeof(csrf_token)=="undefined"){loginModal()}else{var a=$(this).html();a++;$(this).html(a);var d=$(this).attr("rel");$(this).attr("disabled","disabled");var b="/forum/post_thanks.php?do=post_thanks_add&using_ajax=1&p="+d;jQuery(this).webService({type:"POST",url:b,data:"securitytoken="+csrf_token,dataType:"html"})}})});
