/*
 *  © 2000-2009 deviantART, Inc. All rights reserved.
 */
if(!window.AutoExec){AutoExec=[]}window.CritiqueNosub={showModal:function(){var A=$j("<div></div>");var C=$j(".critique_modal").clone().attr("id","critique_modal").css({display:"block"});A.prepend(C);var B=Modals.push.call({},A.get(0),CritiqueNosub.modalCallback);jQuery("#critique_modal div.ratingbox").darating({onHoverChange:CritiqueNosub.updateLabel,onMouseOut:CritiqueNosub.resetLabel})},updateLabel:function(B){B=Math.round(B*2);var A=["Become","A","Pro","Deviant","And","Gain","Access","To","More","Awesome","Features!"];jQuery("#critique_modal .ratings_label strong").html(A[B])},resetLabel:function(){jQuery("#critique_modal .ratings_label strong").text("Try me!")},vote:{submit:function(A,B){DiFi.pushPost("Critique","vote",[A,B],CritiqueNosub.vote.response);DiFi.send();return false},response:function(B,A){if(B){var C="#critique_"+A.request.args[0];$j(C+" .youthought").html(A.response.content)}else{alert("An error occurred. Please try again.")}}}};window.Critique=window.CritiqueNosub;if(window.DWait){DWait.run("jms/pages/critique-unsubscribed.js")};
