(function(A){A.fn.autoResize=function(B){var C=A.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1000},B);
this.filter("textarea").each(function(){var E=A(this).css({resize:"none","overflow-y":"hidden"}),G=E.height(),H=(function(){var I=["height","width","lineHeight","textDecoration","letterSpacing"],J={};
A.each(I,function(K,L){J[L]=E.css(L);
});
return E.clone().removeAttr("id").removeAttr("name").css({position:"absolute",top:0,left:-9999}).css(J).attr("tabIndex","-1").insertBefore(E);
})(),F=null,D=function(){H.height(0).val(A(this).val()).scrollTop(10000);
var J=Math.max(H.scrollTop(),G)+C.extraSpace,I=A(this).add(H);
if(F===J){return ;
}F=J;
if(J>=C.limit){A(this).css("overflow-y","");
return ;
}C.onResize.call(this);
C.animate&&E.css("display")==="block"?I.stop().animate({height:J},C.animateDuration,C.animateCallback):I.height(J);
};
E.unbind(".dynSiz").bind("keyup.dynSiz",D).bind("keydown.dynSiz",D).bind("change.dynSiz",D);
});
return this;
};
})(jQuery);

(function(D){var C=[];
D.tools=D.tools||{};
D.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(G,E,F){A[G]=[E,F];
}};
var A={toggle:[function(H){var G=this.getConf(),F=this.getTip(),E=G.opacity;
if(E<1){F.css({opacity:E});
}F.show();
H.call();
},function(E){this.getTip().hide();
E.call();
}],fade:[function(E){this.getTip().fadeIn(this.getConf().fadeInSpeed,E);
},function(E){this.getTip().fadeOut(this.getConf().fadeOutSpeed,E);
}]};
function B(O,N){var E=this,J=D(this);
O.data("tooltip",E);
var I=O.next();
if(N.tip){I=D(N.tip);
if(I.length>1){I=O.nextAll(N.tip).eq(0);
if(!I.length){I=O.parent().nextAll(N.tip).eq(0);
}}}function F(R){var S=N.relative?O.position().top:O.offset().top,T=N.relative?O.position().left:O.offset().left,Q=N.position[0];
S-=I.outerHeight()-N.offset[0];
T+=O.outerWidth()+N.offset[1];
var V=I.outerHeight()+O.outerHeight();
if(Q=="center"){S+=V/2;
}if(Q=="bottom"){S+=V;
}Q=N.position[1];
var U=I.outerWidth()+O.outerWidth();
if(Q=="center"){T-=U/2;
}if(Q=="left"){T-=U;
}return{top:S,left:T};
}var L=O.is(":input"),P=L&&O.is(":checkbox, :radio, select, :button"),M=O.attr("type"),G=N.events[M]||N.events[L?(P?"widget":"input"):"def"];
G=G.split(/,\s*/);
if(G.length!=2){throw"Tooltip: bad events configuration for "+M;
}O.bind(G[0],function(Q){if(N.oneInstance){D.each(C,function(){this.hide();
});
}var R=I.data("trigger");
if(R&&R[0]!=this){I.hide().stop(true,true);
}Q.target=this;
E.show(Q);
G=N.events.tooltip.split(/,\s*/);
I.bind(G[0],function(){E.show(Q);
});
if(G[1]){I.bind(G[1],function(){E.hide(Q);
});
}});
O.bind(G[1],function(Q){E.hide(Q);
});
if(!D.browser.msie&&!L&&!N.predelay){O.mousemove(function(){if(!E.isShown()){O.triggerHandler("mouseover");
}});
}if(N.opacity<1){I.css("opacity",N.opacity);
}var H=0,K=O.attr("title");
if(K&&N.cancelDefault){O.removeAttr("title");
O.data("title",K);
}D.extend(E,{show:function(Q){if(Q){O=D(Q.target);
}clearTimeout(I.data("timer"));
if(I.is(":animated")||I.is(":visible")){return E;
}function R(){I.data("trigger",O);
var S=F(Q);
if(N.tip&&K){I.html(O.data("title"));
}Q=Q||D.Event();
Q.type="onBeforeShow";
J.trigger(Q,[S]);
if(Q.isDefaultPrevented()){return E;
}S=F(Q);
I.css({position:"absolute",top:S.top,left:S.left});
var T=A[N.effect];
if(!T){throw'Nonexistent effect "'+N.effect+'"';
}T[0].call(E,function(){Q.type="onShow";
J.trigger(Q);
});
}if(N.predelay){clearTimeout(H);
H=setTimeout(R,N.predelay);
}else{R();
}return E;
},hide:function(Q){clearTimeout(I.data("timer"));
clearTimeout(H);
if(!I.is(":visible")){return ;
}function R(){Q=Q||D.Event();
Q.type="onBeforeHide";
J.trigger(Q);
if(Q.isDefaultPrevented()){return ;
}A[N.effect][1].call(E,function(){Q.type="onHide";
J.trigger(Q);
});
}if(N.delay&&Q){I.data("timer",setTimeout(R,N.delay));
}else{R();
}return E;
},isShown:function(){return I.is(":visible, :animated");
},getConf:function(){return N;
},getTip:function(){return I;
},getTrigger:function(){return O;
},bind:function(R,Q){J.bind(R,Q);
return E;
},onHide:function(Q){return this.bind("onHide",Q);
},onBeforeShow:function(Q){return this.bind("onBeforeShow",Q);
},onShow:function(Q){return this.bind("onShow",Q);
},onBeforeHide:function(Q){return this.bind("onBeforeHide",Q);
},unbind:function(Q){J.unbind(Q);
return E;
}});
D.each(N,function(R,Q){if(D.isFunction(Q)){E.bind(R,Q);
}});
}D.prototype.tooltip=function(G){var F=this.eq(typeof G=="number"?G:0).data("tooltip");
if(F){return F;
}var E=D.extend(true,{},D.tools.tooltip.conf);
if(D.isFunction(G)){G={onBeforeShow:G};
}else{if(typeof G=="string"){G={tip:G};
}}G=D.extend(true,E,G);
if(typeof G.position=="string"){G.position=G.position.split(/,?\s/);
}if(G.lazy!==false&&(G.lazy===true||this.length>20)){this.one("mouseover",function(H){F=new B(D(this),G);
F.show(H);
C.push(F);
});
}else{this.each(function(){F=new B(D(this),G);
C.push(F);
});
}return G.api?F:this;
};
})(jQuery);
(function(A){var B=A.tools.tooltip;
B.effects=B.effects||{};
B.effects.slide={version:"1.0.0"};
A.extend(B.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!A.browser.msie});
var C={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};
A.tools.tooltip.addEffect("slide",function(H){var F=this.getConf(),E=this.getTip(),D=F.slideFade?{opacity:F.opacity}:{},G=C[F.direction]||C.up;
D[G[1]]=G[0]+"="+F.slideOffset;
if(F.slideFade){E.css({opacity:0});
}E.show().animate(D,F.slideInSpeed,H);
},function(H){var F=this.getConf(),D=F.slideOffset,E=F.slideFade?{opacity:0}:{},G=C[F.direction]||C.up;
var I=""+G[0];
if(F.bounce){I=I=="+"?"-":"+";
}E[G[1]]=I+"="+D;
this.getTip().animate(E,F.slideOutSpeed,function(){A(this).hide();
H.call();
});
});
})(jQuery);
(function(C){var D=C.tools.tooltip;
D.plugins=D.plugins||{};
D.plugins.dynamic={version:"1.0.1",conf:{api:false,classNames:"top right bottom left"}};
function A(E){var H=C(window);
var F=H.width()+H.scrollLeft();
var G=H.height()+H.scrollTop();
return[E.offset().top<=H.scrollTop(),F<=E.offset().left+E.width(),G<=E.offset().top+E.height(),H.scrollLeft()>=E.offset().left];
}function B(E){var F=E.length;
while(F--){if(E[F]){return false;
}}return true;
}C.fn.dynamic=function(G){var F=C.extend({},D.plugins.dynamic.conf),H;
if(typeof G=="number"){G={speed:G};
}G=C.extend(F,G);
var I=G.classNames.split(/\s/),E;
this.each(function(){if(C(this).tooltip().jquery){throw"Lazy feature not supported by dynamic plugin. set lazy: false for tooltip";
}var J=C(this).tooltip().onBeforeShow(function(O,N){var K=this.getTip(),L=this.getConf();
if(!E){E=[L.position[0],L.position[1],L.offset[0],L.offset[1],C.extend({},L)];
}C.extend(L,E[4]);
L.position=[E[0],E[1]];
L.offset=[E[2],E[3]];
K.css({visibility:"hidden",position:"absolute",top:N.top,left:N.left}).show();
var M=A(K);
if(!B(M)){if(M[2]){C.extend(L,G.top);
L.position[0]="top";
K.addClass(I[0]);
}if(M[3]){C.extend(L,G.right);
L.position[1]="right";
K.addClass(I[1]);
}if(M[0]){C.extend(L,G.bottom);
L.position[0]="bottom";
K.addClass(I[2]);
}if(M[1]){C.extend(L,G.left);
L.position[1]="left";
K.addClass(I[3]);
}if(M[0]||M[2]){L.offset[0]*=-1;
}if(M[1]||M[3]){L.offset[1]*=-1;
}}K.css({visibility:"visible"}).hide();
});
J.onShow(function(){var K=this.getConf(),L=this.getTip();
K.position=[E[0],E[1]];
K.offset=[E[2],E[3]];
});
J.onHide(function(){var K=this.getTip();
K.removeClass(G.classNames);
});
H=J;
});
return G.api?H:this;
};
})(jQuery);

JASK.namespace("question");
(function(A){A.fn.ja_answerareafocus=function(){return this.each(function(){A(this).focusout(function(){var B=A(this).val();
if(!B||B==null||B==""||$j.trim(B).length==0){A(this).addClass("b").val("Answer this question...");
}});
A(this).focusin(function(C){var D=C.target;
var B=D.value.length;
if(B==0||D.value=="Answer this question..."){A(this).removeClass("b").val("");
}});
});
};
})(jQuery);
(function(A){A.fn.ja_editAnswer=function(){return this.each(function(){A(this).click(function(B){B.preventDefault();
$j.jStorage.set("orginalAnswer",$j("#ans-edit-txt").val());
var C=$j("#ansid").val();
$j("#answer-"+C+" .hideOnEdit").hide();
$j("#ansMod").show();
});
});
};
})(jQuery);
(function(A){A.fn.ja_cancelEditAnswer=function(){return this.each(function(){A(this).click(function(D){D.preventDefault();
var B=A(this);
JASK.question.hideToolTip();
$j("#answer_error").html("");
$j("#ans-edit-txt").val($j.jStorage.get("orginalAnswer"));
var C=$j("#apid"+$j("#ansid").val());
$j("#answer-"+$j("#ansid").val()+" .hideOnEdit").show();
$j("#ansMod").hide();
});
});
};
})(jQuery);

JASK.namespace("question");
(function(A){A.fn.ja_submitanswer=function(B){return this.each(function(){A(this).click(function(){var C=A("#answerfrm > textarea"),I=$j("#answer-form-txt").val(),J=this,H=A("#facebookShare").attr("checked");
if(JASK.question.okToAnswer(B)){var F=JASK.cfg.ldomain+"/ja-submit-answer?qid="+JASK.cfg.queryid;
var E=A.serializeObject(A(this).parents("form"));
var G=B?$j("#edit_ans_form"):$j("#answerfrm");
if($j("#recaptchaDialog").is(":visible")){if($j.trim($j("#answerRecaptcha .recaptcha").val()).length==0){$j("#recaptchaError").hide();
$j("#recaptchaEmpty").show();
JASK.cfg.ans_count=0;
return ;
}E=A.serializeObject(G);
E["recaptcha_challenge_field"]=Recaptcha.get_challenge();
E["recaptcha_response_field"]=$j("#answerRecaptcha .recaptcha").val();
$j("#recaptchaEmpty").hide();
$j("#recaptchaDialog").dialog("close");
}E["spellingErrorCount"]=G.find("textarea").data("spellErrors");
var D=$j("#answerfrm > #answer_error");
$j(D).html("");
$j(J).showBusy();
A.post(F,E,function(N){var L=false;
$j(J).showDone();
if($j("#ans-edit-txt").is(":visible")){L=true;
}if(A("errormessage",N).attr("type")=="error"&&A("errormessage",N).attr("code")==161){$j(D).html("<span class='error b txt3'>"+JASK.answer.throttleError+"</span>");
}else{if(A("errormessage",N).attr("type")=="error"&&A("errormessage",N).attr("code")==165){$j(D).html("<span class='error b txt3'>"+JASK.answer.dailyThrottleError+"</span>");
}else{if(A("errormessage",N).attr("type")=="error"&&A("errormessage",N).attr("code")==173){var O="Some one from your organization is already answered this question.";
$j(D).html("<span class='error b txt3'>"+O+"</span>");
}else{if(A("errormessage",N).attr("type")=="error"){var O="Sorry, there was an error saving your answer. Please try again!";
$j(D).html("<span class='error b txt3'>"+O+"</span>");
JASK.cfg.ans_count=0;
}else{if(A("errormessage",N).attr("type")=="spam"){$j("#recaptchaError").hide();
$j("#recaptchaEmpty").hide();
$j("#recaptchaBtn").unbind("click");
$j("#recaptchaBtn").ja_submitanswer(L);
if(!$j("#recaptchaDialog").data("inited")){$j("#recaptchaDialog").data("inited",true);
$j("#recaptcha_image").attr("id","recaptcha_image_old");
$j("#answerRecaptcha #answerRecaptchaImage").attr("id","recaptcha_image");
}Recaptcha.create("6LeUnAIAAAAAAFK4AJHqebEoW5xCHMe5MmwvQHJL","recaptcha_image",{theme:"custom"});
Recaptcha.focus_response_field=function(){};
var M=$j("#answerRecaptcha .recaptcha");
M.val(M.attr("default"));
M.toggleClass("prefocus",true);
M.toggleClass("postfocus",false);
$j("#recaptchaDialog").dialog("open");
JASK.cfg.ans_count=0;
}else{if(A("errormessage",N).attr("type")=="recaptcha"){$j("#recaptchaError").show();
$j("#recaptchaEmpty").hide();
$j("#recaptchaBtn").unbind("click");
$j("#recaptchaBtn").ja_submitanswer(L);
Recaptcha.reload();
var M=$j("#answerRecaptcha .recaptcha");
M.val(M.attr("default"));
M.toggleClass("prefocus",true);
M.toggleClass("postfocus",false);
$j("#recaptchaDialog").dialog("open");
JASK.cfg.ans_count=0;
}else{if(A("html",N).text()!=0){var K=A("html",N).text();
A("#ui-ans-container").html(K);
if(A("thankyoumessage",N).text()!=0){A(".answer:last .postContent","#ui-ans-container").append(A("thankyoumessage",N).text());
}JASK.question.bindQuestionBehaviors();
A("a.collapsibleLink").ja_collapsibleMenu();
$j("#jaques_anch").hide();
$j(".editCntDwn").each(function(){JASK.question.countDownTimer($j(this));
});
if(L){$j("#editQStatus").html("<span> - <span class='succmsg txt2 pl0'>Answer updated!</span></span>");
}else{$j(document).trigger("cppthanks");
if(H==="checked"){if(A("socialsharing",N).text()!=0){A(".answer:last .postContent","#ui-ans-container").append(A("socialsharing",N).text());
}$j(document).trigger("facebookShare",[{answerText:I,userMessage:JASK.answer.facebookUserMessage,avatarURL:JASK.CPCookie.getAvatarURL(),questionText:$j("#questionText").text(),questionId:JASK.question.id,questionURL:JASK.question.url,callback:function(P){var Q;
A("#socialSharingInProgress").hide();
if(P.errorCode===0){A("#socialSharingSuccess").show();
}else{A("#socialSharingError").show();
}}}]);
}}JASK.question.bindAnswerSpellCheck();
$j(document).trigger("cppMessage");
if($j(".jaqa_edit")){$j(".jaqa_edit").ja_editAnswer();
$j("#jaqa_editCancel").ja_cancelEditAnswer();
}JASK.question.embedYouTube();
JASK.question.initModeratedAnswers();
}}}}}}}},"xml");
}else{$j(".sc-answer-err").slideUp();
}return false;
});
A(this).keyup(function(D){var C=(D.keyCode?D.keyCode:D.which);
if(C==13){$j(".answerfrmbtn").trigger("click");
return false;
}});
A(this).focusin(function(){$j(this).css("outline","#000 dotted thin");
});
A(this).focusout(function(){$j(this).css("outline","none");
});
});
};
A(document).bind("facebookShare",function(D,E){var B={APIKey:JASK.cfg.gigyaAPIKey};
var C=function C(G){if(G&&G.errorCode===0){var F=new gigya.services.socialize.UserAction();
if(F!==null){F.addMediaItem({type:"image",src:E.avatarURL,href:E.questionURL});
F.setUserMessage(E.userMessage);
F.setTitle(E.questionText);
F.setLinkBack(E.questionURL);
F.setDescription(E.answerText);
F.addActionLink("Read More Answers",E.questionURL);
A("#socialSharingInProgress").show();
gigya.services.socialize.publishUserAction(B,{userAction:F,facebookUserAction:F,callback:E.callback?E.callback:function(){}});
}}};
if(gigya.services.socialize.UserAction&&E!=null){gigya.services.socialize.getUserInfo(B,{callback:function(F){if(F&&F.errorCode===0&&A.inArray("facebook",F.user.providers)>-1){C(F);
}else{gigya.services.socialize.addConnection(B,{provider:"facebook",callback:C});
}}});
}});
})(jQuery);
JASK.question.storeAnswer=function storeAnswer(){if($j("#answer-form-txt").length&&$j("#answer-form-txt").val()){$j.jStorage.set("answer",$j("#answer-form-txt").val());
}};


JASK.cfg.ans_count=0;
JASK.namespace("answer");
JASK.namespace("question");
JASK.question.okToAnswer=function(E,C){var B=true;
JASK.cfg.ans_count++;
var D=(E)?$j("#edit_ans_form > #answer_error"):$j("#answerfrm > #answer_error");
var H="";
if(!E&&JASK.cfg.ans_count>1){B=false;
return B;
}var A=(E)?$j("#ans-edit-txt"):$j("#answer-form-txt");
if(C&&$j(C).length>0){A=$j(C);
D=$j("#mkt_error");
}var F=$j.noOfLinksInText(A.val());
var G=A.val();
if(!G){H="Sorry, you cannot submit a blank answer!";
$j(D).html("<span class='error b txt3'>"+H+"</span>");
JASK.cfg.ans_count=0;
B=false;
}else{if(G=="Answer this question..."){JASK.cfg.ans_count=0;
B=false;
}else{if(G==null||G==""||$j.trim(G).length==0){H="Sorry, you cannot submit a blank answer!";
$j(D).html("<span class='error b txt3'>"+H+"</span>");
JASK.cfg.ans_count=0;
B=false;
}else{if(G.length>JASK.communityCfg.answerCharLimit){H=JASK.communityCfg.answerCharLimitExceedError;
$j(D).html("<span class='error b txt3'>"+H+"</span>");
JASK.cfg.ans_count=0;
B=false;
}else{if(!G.match(/[a-z0-9]/)){H="Please don't use all caps for your answer.";
$j(D).html("<span class='error b txt3'>"+H+"</span>");
JASK.cfg.ans_count=0;
B=false;
}else{if(F>JASK.communityCfg.answerMaxUrlAllowedCount){$j(D).html("<span class='error b txt3'>"+JASK.communityCfg.answerSpamLinksError+"</span>");
JASK.cfg.ans_count=0;
B=false;
}}}}}}return B;
};
JASK.question.hideToolTip=function(){$j("#ans-sc-wrp").hide();
var A=$j(".sc-toggle > .hide-ss");
A.text("Show Suggestions");
A.removeClass("hide-ss").addClass("show-ss");
$j("#ans-sc-wrp").data("animateMode","0");
};
JASK.question.hideQuestionSpellcheckToolTip=function(){$j("#askq_sc_wrp").css("display","none");
$j("#askq_help").css("display","block");
var A=$j(".q-sc-toggle > .hide-ss");
A.text("Show Suggestions");
A.removeClass("hide-ss").addClass("show-ss");
$j("#askq_sc_wrp").data("animateMode","0");
};
JASK.question.validateAnswer=function(C,B){var A={};
JASK.cfg.ans_count++;
var E="";
if(!C&&JASK.cfg.ans_count>1){A={valid:false};
}var D=$j.noOfLinksInText(B);
if(!B){E="Sorry, you cannot submit a blank answer.";
JASK.cfg.ans_count=0;
A={valid:false,error:E};
}else{if(B==null||B==""||$j.trim(B).length==0){E="Sorry, you cannot submit a blank answer.";
A={valid:false,error:E};
JASK.cfg.ans_count=0;
}else{if(!B.match(/[a-z0-9]/)){E="Please don't use all caps for your answer.";
A={valid:false,error:E};
JASK.cfg.ans_count=0;
}else{if(D>JASK.communityCfg.answerMaxUrlAllowedCount){A={valid:false,error:JASK.communityCfg.answerSpamLinksError};
JASK.cfg.ans_count=0;
}else{if(B.length>JASK.communityCfg.answerCharLimit){A={valid:false,error:JASK.communityCfg.answerCharLimitExceedError};
JASK.cfg.ans_count=0;
}else{A={valid:true};
}}}}}return A;
};

JASK.namespace("question");
JASK.namespace("validation");
JASK.question.validateDetail=function validateDetail(B){var A={"error":"","valid":true};
var C=B||"";
if(C.length===0){return A;
}else{if($j.hasHTML(C)){A={"error":"HTML is not allowed.","valid":false};
}else{if(C.length>1200){A={"error":"Sorry, the details for your question needs to be limited to only 1,200 characters.","valid":false};
}}}return A;
};
JASK.question.validateQuestion=function(G){var M={"error":"","valid":true};
var B=G||"";
var I=JASK.communityCfg;
var C=$j.trim(B).length;
if(C==0){M={"error":I.QUESTION_EMPTY,valid:false};
}else{if(B.length>I.qBoxCharLimit){M={"error":I.QUESTION_LEN,valid:false};
}else{var H=$j.trim(B).split(" ");
var E=H.length;
var K=$j.trim(B).replace(/[^a-zA-Z 0-9]+/g,"").split(" ");
var J=K.length;
if((E<15)){JASK.question.hasQuestionWarnings=1;
M={"error":"",valid:true};
}if(E<=2){M={"error":I.AS_A_QUESTION,valid:false};
}else{if($j.trim(B).match(/[A-Z]/)&&!$j.trim(B).match(/[a-z0-9]/)){M={"error":I.QUESTION_CAPS,valid:false};
}else{if((B.replace(/\s\s+/g,"").indexOf("??")>-1)||(B.replace(/\s\s+/g,"").indexOf("? ?")>-1)){M={"error":I.QUESTION_MULTI_QUES_MARK,valid:false};
}else{for(var F=0;
F<J;
F++){if(($j.inArray(K[F].toLowerCase(),I.INVALID_SHORTHAND_WORDS.split(","))>-1)){if(M.valid){M={"error":I.QUESTION_SHORT_TEXT,valid:false};
break;
}}}if(M.valid){var A=$j.trim(B).match(/\b[^\Wa-z0-9_]+\b/g);
var L=A!=null?A.length:0;
if(L>0){var D=0;
if(J==3){D=Math.round(J*(33/100));
}else{D=Math.round(J*(40/100));
}if(L>D){M={"error":I.QUESTION_CAPS_LIMITED,valid:false};
}}}}}}}}JASK.question.hasQuestionErrors=(M.valid?0:1);
return M;
};
JASK.question.charLimit=function(G){var H=G.target;
var A=$j(G.target).parents("form");
var D=A.find(".cdisplay:first");
var F=JASK.communityCfg.qBoxCharLimit;
var E=A.find(".aq_button");
var C=H.value.length;
var B=F-C;
if(B<0){D.css("color","#B10000");
if(E.hasClass("askpplbtn")){A.find(".aq_button").toggleClass("askpplbtn askpplbtn-dis");
}}else{D.css("color","#666666");
if(E.hasClass("askpplbtn-dis")){A.find(".aq_button").toggleClass("askpplbtn askpplbtn-dis");
}}D.text((B<0)?0:B);
};

JASK.namespace("question");
(function(A){A.fn.ja_vote=function(){return this.each(function(){A(this).click(function(){if(!JASK.isAuthenticated()){JASK.ask_dialog.initSignin(3155);
return false;
}else{var G=this.id.split("-");
var C=G[1];
var J=G[2];
var I="#rate-"+C+"-"+J;
var D="#cnt-"+C+"-"+J;
if(J==1){var F="#rate-"+C+"-6";
var K="#cnt-"+C+"-6";
}if(A(this).hasClass("usr-voted")){A(I).removeClass("ratelink");
A(F).removeClass("ratelink");
A(I).unbind("click");
A(F).unbind("click");
var B="#usrvote-"+C+"-sorry";
A(B).fadeIn(200).fadeTo(1000,1).fadeOut(750);
return false;
}var H=this;
var E=JASK.cfg.ldomain+"/ja-vote";
A.post(E,{"id":C,"userId":JASK.cfg.uid,"type":J,"engine_id":"add_vote"},function(O){if(O&&O.status["@code"]==100){var N="#usrvote-"+C+"-thnks";
A(D).text((parseInt(A(D).text())+1));
if(J==1){if(JASK.ja.question.voteuppks&&JASK.ja.question.voteuppks[C]){spk(H,JASK.ja.question.voteuppks[C]);
}A(I).css("cursor","default");
A(F).css("cursor","default");
A(I).addClass("usr-voted");
A(I).removeClass("usrvote_up_enab");
A(I).addClass("usrvote_up_disab");
A(F).addClass("usr-voted");
A(D).parent("div").addClass("usrcnt_up_bg");
A(""+D+"> span").addClass("usrcnt_up_1");
A(""+D+"> span").unwrap();
A(""+K+"> span").unwrap();
A("#answer-"+C+" .votes > span").show();
var M=A(H).offset().top;
var L=A(H).offset().left;
A(N).css("top",M+18);
A(N).css("left",L-28);
A(N).fadeIn(200).fadeTo(1000,1).fadeOut(1500);
}}},"json");
return false;
}});
A(this).mouseover(function(){var B=this.id.split("-");
var E=B[1];
var C=B[2];
var D="#cnt-"+E+"-"+C;
A(D).css("text-decoration","underline");
});
A(this).mouseout(function(){var B=this.id.split("-");
var E=B[1];
var C=B[2];
var D="#cnt-"+E+"-"+C;
A(D).css("text-decoration","none");
});
});
};
})(jQuery);

JASK.namespace("question");
JASK.question.embedYouTube=function embedYouTube(){$j(".yte").each(function(B,C){var D=$j(C).attr("data-youtube-id");
if(!D){return true;
}var A="http://gdata.youtube.com/feeds/api/videos/"+D+"?alt=json-in-script&format=5&callback=?";
$j.getJSON(A,function(E){JASK.question.loadYouTubeData(D,E);
});
});
};
JASK.question.loadYouTubeData=function loadYouTubeData(D,C){var A=function(F,H){var E=F.length>H;
if(E){F=F.substring(0,H);
var G=F.lastIndexOf(" ");
if(G>0){F=F.substring(0,G);
}F+=" ...";
}return F;
};
var B="#yte-"+D+" ";
$j(B+".ytThumbnail").attr("src",C.entry.media$group.media$thumbnail[2].url);
$j(B+".ytThumbnail").attr("alt",C.entry.title.$t);
$j(B+".ytTitle a").text(A(C.entry.title.$t,35));
$j(B+".ytContent").text(A(C.entry.content.$t,110));
$j(B).css("visibility","visible");
$j(B+".ytImageSection").click(JASK.question.showYouTubePlayer);
$j(B+".ytTitle a").click(JASK.question.showYouTubePlayer);
$j("#ytp-"+D+" .hider").click(JASK.question.hideYouTubePlayer);
};
JASK.question.showYouTubePlayer=function showYouTubePlayer(A){A.preventDefault();
var C=$j(this).parents(".yte").attr("data-youtube-id");
var B=$j("#ytp-"+C+" .player").attr("data-src");
$j(this).parents(".yte").hide();
$j("#ytp-"+C).show();
$j("#ytp-"+C+" .player").attr("src",B);
};
JASK.question.hideYouTubePlayer=function showYouTubePlayer(A){A.preventDefault();
var B=$j(this).parents(".ytp").attr("data-youtube-id");
$j(this).parents(".ytp").hide();
$j("#yte-"+B).show();
$j("#ytp-"+B+" .player").attr("src","");
};

JASK.namespace("question");
(function(A){A.fn.ja_closeform=function(){return this.each(function(){A(this).focusout(function(){var C=A(this).val();
if(!C||C==null||C==""||$j.trim(C).length==0){var B=A(this).closest(".tglformcontainer").siblings(".tglform").first();
B.toggle();
A(this).closest(".tglformcontainer").toggle();
A(this).closest(".tglformcontainer").siblings(".com-box-beak").toggle();
}});
});
};
})(jQuery);
(function(A){A.fn.ja_openform=function(){return this.each(function(){A(this).focusin(function(){var D=A(this).siblings(".tglformcontainer").first();
D.toggle();
var C=D.find(".cmterror");
C.html("");
var B=D.find("textarea").first();
A(this).toggle();
A(this).siblings(".com-box-beak").toggle();
setTimeout(function(){B.focus();
},10);
});
});
};
})(jQuery);
JASK.question.okToPost=function okToPost(B,D){var A=true;
var E="";
var C="";
if($j(B).is("div")){C=$j(B).text();
}else{C=$j(B).val();
}if(!C||C==null||C==""||$j.trim(C).length==0){E="Sorry, you cannot submit a blank comment!";
D.html("<span class='error b txt3'>"+E+"</span>");
A=false;
}else{if(!C.match(/[a-z0-9]/)){E="Please don't use all caps for your comment.";
D.html("<span class='error b txt3'>"+E+"</span>");
A=false;
}}return A;
};
JASK.question.scrollToComment=function scrollToComment(){var I=$j.getUrlParam("cpid");
if(I!=null&&typeof I!="undefined"&&I.length>0){var J=$j("#cpid"+I);
if(J.length>0){var C=J.closest(".uiblock_comments");
var E=C.attr("id").split("-");
var B=E[0];
var A=C.siblings("a#"+B).attr("name");
if(A!=null&&typeof A!="undefined"&&A.length>0){window.location.hash=A;
var D=C.is(":hidden");
var G="#"+B+"-toggleStatus";
$j(G).toggleClass("tglplus",D);
$j(G).toggleClass("tglminus",!D);
}}else{var H="#apid"+I;
var F=$j(""+H+"> a").attr("name");
if(F!=null&&typeof F!="undefined"&&F.length>0){window.location.hash=F;
}}return false;
}};
(function(B){B.fn.storeComment=function A(){if($j(this).length&&$j(this).val()){$j.jStorage.set("comment",{"id":$j(this).attr("id"),value:$j(this).val()});
}};
B.fn.ja_comment=function(){return this.each(function(){var C=false;
B(this).click(function(){if(!JASK.isAuthenticated()){B("textarea",B(this).parent()).storeComment();
JASK.ask_dialog.initSignin(3154);
return false;
}else{var G=this;
if(C||$j(G).data("isBusy")){return false;
}var E=JASK.cfg.ldomain+"/ja-comment";
if(B(this).parent("form").length!=0){JASK["lastCommentForm"]=B.serializeObject(B(this).parent("form"));
}_form=JASK["lastCommentForm"];
var H=_form["commented_id"];
var D=B("#"+H+"cmtform");
var F=B("#"+H+"cmterror");
_form["engine_id"]="add_comment";
if(JASK.question.okToPost(D,F)){F.html("");
if($j("#recaptchaDialog").is(":visible")){if($j.trim($j("#answerRecaptcha .recaptcha").val()).length==0){$j("#recaptchaError").hide();
$j("#recaptchaEmpty").show();
return ;
}_form["recaptcha_challenge_field"]=Recaptcha.get_challenge();
_form["recaptcha_response_field"]=$j("#answerRecaptcha .recaptcha").val();
$j("#recaptchaEmpty").hide();
$j("#recaptchaDialog").dialog("close");
}$j(G).showBusy();
C=true;
B.post(E,_form,function(O){$j(G).showDone();
C=false;
if(B("errormessage",O).attr("type")=="spam"){$j("#recaptchaError").hide();
$j("#recaptchaEmpty").hide();
$j("#recaptchaBtn").unbind("click");
$j("#recaptchaBtn").ja_comment();
$j("#recaptcha_image").attr("id","recaptcha_image_old");
$j("#answerRecaptcha #answerRecaptchaImage").attr("id","recaptcha_image");
Recaptcha.create("6LeUnAIAAAAAAFK4AJHqebEoW5xCHMe5MmwvQHJL","recaptcha_image",{theme:"custom"});
Recaptcha.focus_response_field=function(){};
var N=$j("#answerRecaptcha .recaptcha");
N.val(N.attr("default"));
N.toggleClass("prefocus",true);
N.toggleClass("postfocus",false);
$j("#recaptchaDialog").dialog("open");
}else{if(B("errormessage",O).attr("type")=="recaptcha"){$j("#recaptchaError").show();
$j("#recaptchaEmpty").hide();
$j("#recaptchaBtn").unbind("click");
$j("#recaptchaBtn").ja_comment();
Recaptcha.reload();
var N=$j("#answerRecaptcha .recaptcha");
N.val(N.attr("default"));
N.toggleClass("prefocus",true);
N.toggleClass("postfocus",false);
$j("#recaptchaDialog").dialog("open");
}else{if(B("html",O).text()!=0){var Q=(_form["comment_type"]==0)?"question":"answer";
var K=B("html",O).text();
var S="#"+Q+H+"-comment-container";
$j(S).append(K);
$j(".com-box-beak",$j(S).siblings(".filled-box")).remove();
var R="#"+H+"cmtcnt-st";
var J="#"+H+"cmtcnt-end";
B(R).text("(");
B(J).text(")");
var U="#"+H+"cmtcnt-txt";
var L=(B(U).text()==null||B(U).text()=="")?"0":B(U).text();
if($j("span.abstract",K).length){B(U).text(parseInt(L)+1);
}D.val("");
if(B(U).text()>=1){B(R).show();
B(U).show();
B(J).show();
}var P=B(K).find(".slidableComment").attr("id");
if(P!=null&&typeof P!="undefined"&&P.length>0){$j("#"+P).ja_slidablePost("Comment");
$j("#"+P.split("-")[0]+"-arrow").ja_slidablePost("Comment");
}var T=$j(".comment-count",$j(S).parents(".postContent"));
var I=$j(T).text();
I=I&&$j.trim(I)!==""?I:"0";
I=parseInt(I,10);
$j(T).text(++I);
}else{if(B("errormessage",O).attr("code")==162){F.html("<span class='error b txt3'>"+JASK.comment.throttleError+"</span>");
}else{if(B("errormessage",O).attr("code")==166){F.html("<span class='error b txt3'>"+JASK.comment.dailyThrottleError+"</span>");
}else{var M="Sorry, there was an error saving your comment. Please try again!";
F.html("<span class='error b txt3'>"+M+"</span>");
return false;
}}}}}},"xml");
return false;
}return false;
}});
B(this).keyup(function(E){var D=(E.keyCode?E.keyCode:E.which);
if(D==13){$j(this).trigger("click");
return false;
}});
B(this).focusin(function(){$j(this).css("outline","#000 dotted thin");
});
B(this).focusout(function(){$j(this).css("outline","none");
});
});
};
})(jQuery);
(function(A){A.fn.toggleComments=function(){A(this).each(function(){A(this).click(function(){A(".toggle",A(this)).toggleClass("open");
var C=A(this).parents(".answer"),B=A(".comments",C).toggle();
});
});
};
})(jQuery);

(function(C){function B(){var G=$j("#cppthanks");
if(G){G.fadeIn(200).fadeTo(1000,1).fadeOut(8000);
}}C(document).bind("cppthanks",B);
function E(){var G=$j("img[cpp]");
G.each(function(){var I=$j(this),J="#"+I.attr("cpp")+"PM";
I.attr("title","");
var H=I.parents("a").first();
if(H&&H.length&&H.attr("href")){H.data("href",H.attr("href")).removeAttr("href");
H.click(function(){H.attr("href",H.data("href"));
});
}$j(this).tooltip({tip:J,effect:"slide",direction:"up",opacity:0.97,fadeOutSpeed:10,predelay:100,delay:300,position:"bottom right",offset:[-40,5]});
});
}function D(){var G=$j("img[cppab]","#ui-ans-container");
G.each(function(){var H=$j(this),I="#"+H.attr("cppab")+"AB";
H.attr("title","");
$j(this).tooltip({tip:I,effect:"slide",direction:"up",opacity:0.97,fadeOutSpeed:10,predelay:100,delay:300,position:"top right",offset:[60,2]});
});
}var A=false;
function F(){if(typeof _gaq!="undefined"&&_gaq&&_gaq.push&&!A){A=true;
$j("[data-program-id]").each(function(H,G){_gaq.push(["_trackPageview","/program/answer-view/"+$j(G).attr("data-program-id")]);
});
}}C(document).bind("cppMessage",E);
C(document).bind("cppMessage",D);
C(document).bind("cppMessage",F);
C(document).ready(function(){$j(document).trigger("cppMessage");
});
})(jQuery);

JASK.addInterest=function addInterest(B,A){A=$j.trim(A.replace(/[,]/g," "));
if(JASK.isValidInterest(B,A)){var D=[];
$j.each(JASK.profile.interests[B].hash,function(E,F){if($j.trim(F).length>0){D.push(F);
}});
D.push(A);
var C=$j.serializeObject($j("form#myForm4"));
C["interestsVersion"]=2;
C["engine"]=B;
C["interests"]=D.join(",");
$j.post(JASK.cfg.ldomain+"/ja-profile-interests?cp=true",C,function(G){if(G.status["@code"]!=100){return ;
}var F=JASK.profile.interests[B];
F.hash[A.toLowerCase()]=A;
F.count++;
var E=$j("."+B+" .template").clone().removeClass("template").addClass("interest").css("display","");
$j(E).insertAfter("."+B+" .template");
$j(E).find("span").text(A);
$j(E).find(".remove").attr("id",A);
$j(E).ja_makeInterestEditable(B);
$j("."+B+".add").val("");
$j("#profileProgress").load(JASK.cfg.ldomain+"/ja-profile-progress?cp=true&rnd="+new Date().getTime());
},"json");
}};
JASK.isValidInterest=function isValidInterest(B,A){$j("."+B+".errormsg").html("");
if($j.trim(A).length==0){return false;
}if($j.trim(A).length>JASK.ja.maxTopicLength){$j("."+B+".errormsg").html(JASK.ja.topicLengthErrMsg);
return false;
}var C={"interests":{"What do you know about?":1,"Example: Mountain biking":1},"favoritePlaces":{"Where you have been?":1,"Example: Oakland  CA":1},"favMovieMusicTV":{"What do you like?":1,"Example: The Hangover":1}};
if(C[B][A]){return false;
}if(JASK.profile.interests[B].hash[A.toLowerCase()]){$j("."+B+".errormsg").html("You have already added that topic.");
return false;
}if(JASK.cfg.isAnswerExchangePartner=="true"&&JASK.profile.interests[B].count>=150){$j("."+B+".errormsg").html("You may not enter more than 150 topics of interest. In order to add a new topic, please remove one or more of the existing topics.");
return false;
}else{if(JASK.profile.interests[B].count>=50){$j("."+B+".errormsg").html("You may not enter more than 50 topics of interest. In order to add a new topic, please remove one or more of the existing topics.");
return false;
}}if($j.hasHTML(A)){$j("."+B+".errormsg").html("HTML is not allowed.");
return false;
}return true;
};

(function(A){A.fn.ja_makeInterestEditable=function(B){return this.each(function(){var D=this;
A(this).mouseover(function(E){E.preventDefault();
A(this).addClass("selectedinterest");
A(this).children(".remove").addClass("delicon");
});
A(this).mouseleave(function(E){E.preventDefault();
A(this).removeClass("selectedinterest");
A(this).children(".remove").removeClass("delicon");
});
var C=this;
A(this).children(".remove").mouseover(function(E){E.preventDefault();
A(this).addClass("redicon");
A(this).removeClass("delicon");
A(C).addClass("removeinterest");
});
A(this).children(".remove").mouseleave(function(E){E.preventDefault();
A(this).removeClass("redicon");
A(this).addClass("delicon");
A(C).removeClass("removeinterest");
});
A(this).children(".remove").click(function(G){G.preventDefault();
sct("53685");
var E=$j(this).attr("id");
var F=A.serializeObject(A("#myForm4"));
F["engine"]=B;
F["interestsVersion"]=2;
var H=[];
$j.each(JASK.profile.interests[B].hash,function(I,J){if(J!=E){H.push(J);
}});
F["interests"]=H.join(",");
A.post(JASK.cfg.ldomain+"/ja-profile-interests?cp=true",F,function(J){A("#profileProgress").load(JASK.cfg.ldomain+"/ja-profile-progress?cp=true&rnd="+new Date().getTime());
var I=JASK.profile.interests[B];
delete I.hash[E.toLowerCase()];
I.count--;
A(D).remove();
},"json");
});
});
};
})(jQuery);


(function(A){A.fn.ja_editsocialprofile=function(){return this.each(function(){A(this).click(function(B){B.preventDefault();
var E={};
var I=false;
E["attributes"]={};
var D=JASK.cfg.ldomain+"/ja-edit-social-profile";
var H=$j("#editsocialprofile_frm");
var K=A.serializeObject(A("#editsocialprofile_frm"));
E["user"]=K;
var G="HTML is not allowed.";
var J="Your changes saved successfully";
var F="Error in saving your settings";
var L=true;
JASK.showValidateMsg("clear_html","#editprofile_ok");
$j("div.editproferroric").hide();
H.find(".txtin_pro").each(function(){var M=$j(this);
if(M.val()!=M.attr("data-val")){I=true;
}});
H.find("*[data-social]").each(function(N,P){var M=[];
var O="#"+$j(this).attr("id")+"-error";
if($j.hasHTML(P.value)){L=false;
JASK.showValidateMsg("error",O,G);
}else{$j(O).html("");
M.push(P.value);
M.push($j(this).attr("data-social"));
M.push($j(this).attr("data-social-id"));
E.attributes[P.name]=M;
}});
if($j.hasHTML(K["firstName"])){JASK.showValidateMsg("error","#prof-fName-error",G);
L=false;
}else{$j("#prof-fName-error").html("");
}if($j.hasHTML(K["lastName"])){JASK.showValidateMsg("error","#prof-lName-error",G);
L=false;
}else{$j("#prof-lName-error").html("");
}var C=K["zipCode"];
if(!(C==""||$j.trim(C).length==0)&&(!C.match(/[1-9]/)||C.length!=5)){JASK.showValidateMsg("error","#prof-zip-error","Please enter a valid zipcode");
L=false;
}else{$j("#prof-zip-error").html("");
}if($j.hasHTML(K["about"])){JASK.showValidateMsg("error","#prof-abt-error",G);
L=false;
}else{if(K["about"].length>1028){JASK.showValidateMsg("error","#prof-abt-error","The about me section cannot be greater than 1028 characters.");
L=false;
}else{$j("#prof-abt-error").html("");
}}if($j.hasHTML(K["hometown"])){JASK.showValidateMsg("error","#prof-ht-error",G);
L=false;
}else{$j("#prof-ht-error").html("");
}if($j.hasHTML(K["website"])){JASK.showValidateMsg("error","#prof-web-error",G);
L=false;
}else{$j("#prof-web-error").html("");
}if(I){if(L){A.post(D,"json="+encodeURIComponent($j.toJSON(E))+"&profileMode=site",function(N){if(N.status["@code"]==100){JASK.showValidateMsg("success_clear","#editprofile_ok",J,2000);
if($j("#edit-prof-title")&&E.attributes["title"]){$j("#edit-prof-title").val(E.attributes["title"][0]).attr("data-val",E.attributes["title"][0]);
if(E.attributes["title"][0]!=""&&$j.trim(E.attributes["title"][0]).length>0){$j("#view-prof-title").text(E.attributes["title"][0]);
$j("#prof-title").show();
}else{$j("#prof-title").hide();
}}if($j("#edit-prof-ind")&&E.attributes["industry"]){$j("#edit-prof-ind").val(E.attributes["industry"][0]).attr("data-val",E.attributes["industry"][0]);
if(E.attributes["industry"][0]!=""&&$j.trim(E.attributes["industry"][0]).length>0){$j("#view-prof-ind").text(E.attributes["industry"][0]);
$j("#prof-ind").show();
}else{$j("#prof-ind").hide();
}}var M=false;
if(K["firstName"]&&K["firstName"]!=""&&$j.trim(K["firstName"]).length>0){$j("#edit-prof-fName").val(K["firstName"]).attr("data-val",K["firstName"]);
$j("#view-prof-name").text(K["firstName"]);
M=true;
}else{$j("#view-prof-name").text("");
$j("#edit-prof-fName").val("").attr("data-val","");
}if(K["lastName"]&&K["lastName"]!=""&&$j.trim(K["lastName"]).length>0){$j("#edit-prof-lName").val(K["lastName"]).attr("data-val",K["lastName"]);
$j("#view-prof-name").text($j("#view-prof-name").text()+" "+K["lastName"]);
M=true;
}else{$j("#edit-prof-lName").val("").attr("data-val","");
}if(M){$j("#prof-name").show();
}else{$j("#prof-name").hide();
}if($j("#edit-prof-zip").length>0){if(!(C==""||$j.trim(C).length==0)){$j("#edit-prof-zip").val(K["zipCode"]).attr("data-val",K["zipCode"]);
$j("#view-prof-zip").text(K["zipCode"]);
$j("#prof-zip").show();
}else{$j("#edit-prof-zip").val(K["zipCode"]).attr("data-val",K["zipCode"]);
$j("#prof-zip").hide();
}}if($j("#edit-prof-web").length>0){if(!(K["website"]==""||$j.trim(K["website"]).length==0)){$j("#edit-prof-web").val(K["website"]).attr("data-val",K["website"]);
$j("#view-prof-web").text(K["website"]);
$j("#view-prof-web").attr("href",$j.prefixHttp(K["website"]));
$j("#prof-web").show();
}else{$j("#edit-prof-web").val(K["website"]).attr("data-val",K["website"]);
$j("#prof-web").hide();
}}if(!(K["hometown"]==""||$j.trim(K["hometown"]).length==0)){$j("#edit-prof-ht").val(K["hometown"]).attr("data-val",K["hometown"]);
$j("#view-prof-ht").text(K["hometown"]);
$j("#prof-ht").show();
}else{$j("#edit-prof-ht").val(K["hometown"]).attr("data-val",K["hometown"]);
$j("#prof-ht").hide();
}if(!(K["about"]==""||$j.trim(K["about"]).length==0)){$j("#edit-prof-abt,#view-prof-abt").attr("data-val",K["about"]);
$j("#view-prof-abt").text(K["about"]);
$j("#prof-abt").show();
}else{$j("#edit-prof-abt,#view-prof-abt").attr("data-val",K["about"]);
$j("#prof-abt").hide();
}$j("#editprofile").hide();
$j("#viewprof").show();
}else{JASK.showValidateMsg("error","#editprofile_ok",F);
}},"json");
}}else{$j("#viewprof").show();
$j("#editprofile").hide();
}});
A(this).keyup(function(C){var B=(C.keyCode?C.keyCode:C.which);
if(B==13){$j("#editsocialprofile_btn").trigger("click");
return false;
}});
A(this).focusin(function(){$j(this).css("outline","#000 dotted thin");
});
A(this).focusout(function(){$j(this).css("outline","none");
});
});
};
})(jQuery);

$j(document).ready(function(){var B=JASK.cfg.ldomain+"/ja-delete-avatar?tok="+$j("#userToken").text();
$j(".followLink").ja_addFollow();
$j(".blockLink").ja_blockUser();
$j("#changeavatar").css("display","block");
$j(".avatar").removeClass("avtbddum");
$j(".avatar").addClass("avtbd");
$j(".innerbd").addClass("avtinbd");
function C(F){$j("img","#profileAvatar").attr("src",F);
$j("#nmAvatar img").attr("src",F);
$j("#profileProgress").load(JASK.cfg.ldomain+"/ja-profile-progress?rnd="+new Date().getTime());
$j("#avtDialog").dialog("close");
}$j("a.pImgLink",$j("#changeavatar").siblings("#profileAvatar")).click(function(){$j("#avtDialog").dialog("open");
return false;
});
function E(){$j.getJSON(B,{},function(F){});
}$j(".saveAvatar").click(function(){JASK.profile.avatar.doPick("avatar-save");
var H=JASK.cfg.ldomain+"/ja-avatar?cp=true",I="";
for(var G=0;
G<window.frames.length;
G++){if(window.frames[G].name==="avtframe"){I=window.frames[G].AVT.getAvatarURL();
}}var F=$j("#userToken");
if(JASK.CPCookie.getAvatarURL()!=I){$j.post(H,{"avatarUrl":I,"userId":JASK.cfg.uid},function(L){var K=new RegExp("://(.[^/]+)");
var J=I.match(K)[1];
if(J!=JASK.cfg.staticDomain){B+="&avtcd=ap";
}E();
C(I);
});
}else{C(I);
}});
$j("#rmavatar").click(function(){E();
$j("#prightimage").attr("src",JASK.CPCookie.getAvatarURL());
});
$j(".cancelavatar").click(function(){JASK.profile.avatar.doPick("avatar-cancel");
$j("#avtDialog").dialog("close");
E();
});
$j("#collapsibleLink-profile").ja_collapsibleMenu();
$j(".flagprofile").click(JASK.profile.report);
$j(".interests .interest").ja_makeInterestEditable("interests");
$j(".favoritePlaces .interest").ja_makeInterestEditable("favoritePlaces");
$j(".favMovieMusicTV .interest").ja_makeInterestEditable("favMovieMusicTV");
function D(G){if(G==null){return{hash:{},count:0};
}if(G.length>1&&G.indexOf("[")==0){G=G.substring(1);
}if(G.length&&G.lastIndexOf("]")==(G.length-1)){G=G.substring(0,G.length-1);
}if($j.trim(G).length==0){return{hash:{},count:0};
}G=G.split(",");
var H={},F=[];
$j.each(G,function(I,J){if($j.trim(J).length>0){H[$j.trim(J.toLowerCase())]=$j.trim(J);
}});
return{hash:H,count:G.length};
}var A=JASK.profile.interests={};
A.interests=D($j("#myForm4 input[name=interests]").val());
A.favoritePlaces=D($j("#myForm4 input[name=places]").val());
A.favMovieMusicTV=D($j("#myForm4 input[name=peoplelist]").val());
$j(".addinterest").click(function(F){JASK.addInterest("interests",$j("#newinterest").val());
});
$j(".addplaces").click(function(F){JASK.addInterest("favoritePlaces",$j("#newplace").val());
});
$j(".addpeople").click(function(F){JASK.addInterest("favMovieMusicTV",$j("#newpeople").val());
});
});
$j(document).ready(function(){var B=new JASK.logging.JALogger();
var A=$j("#connectionsProfile .followLink");
if(A.length>0){var D=A.attr("data-state");
var C="/connections/profile/"+D;
B.impression({"iId":C});
B.bindActivity("#connectionsProfile");
}});
$j(document).ready(function(){var E="jav";
var D="00000000000000000000000000000001";
var C=$j("#claraAdCat").text();
var B=JASK.cfg.ldomain+"/ja-avatar-dialog";
function A(G){var F=JASK.cfg.ldomain+"/comm-match?qsrc="+$j("#querySource").text()+"&id="+G+"&qid="+D+"&ac="+C;
$j.get(F);
}$j("#changelink, #profileAvatar").click(function(){A(E);
$j("#tglplus").css("display","block");
$j("#tglminus").css("display","none");
$j("#galavatars").css("display","none");
$j("#choosegaldisp").css("display","block");
$j("#choosegalhide").css("display","none");
$j("#avtDialog").dialog("open");
});
$j("#avtDialog").dialog({width:710,height:1010,autoOpen:$j("#avtDialogOpen").text()=="true"?true:false,modal:true,open:function(){$j("#avtframediv").html('<iframe name="avtframe" id="avtframe" src="'+B+"?uperr=false&date="+new Date().getTime()+'" width="680px" height="200px" scrolling="no" frameborder="0" style="margin-left:-8px;"/>');
}});
sct(53687);
});

JASK.namespace("profile");
JASK.profile.removeAvatar=function(){var A=JASK.cfg.ldomain+"/ja-delete-avatar?tok="+$j("#userToken").text();
$j.getJSON(A,{"":""},function(B){});
};
JASK.profile.report=function(A,B){var C=A.target?A.target:A;
reason=$j(C).attr("data-reason"),userId=$j("#otherUserId").val();
if(!JASK.isAuthenticated()){JASK.ask_dialog.initSignInOrUp(JASK.cfg.trackerData.qsrc,function(){JASK.profile.report(C,function(){$j(document).trigger("login");
});
});
return false;
}var D=function(){$j("#collapsibleLink-profile, #collapsibleMenu-profile").remove();
$j("#reportedReason").text($j(C).text().toLowerCase());
$j("#reported").show();
if(typeof B==="function"){B.apply(window);
}};
$j.post(JASK.cfg.ldomain+"/reportProfile",{"userId":userId,"reason":reason},function(E){if(E.status["@code"]==100){D();
}},"json");
};
(function(A){A.fn.ja_interestfocus=function(){return this.each(function(){var B=A(this).attr("id");
A(this).focus(function(C){C.preventDefault();
switch(B){case"newinterest":if($j("input#"+B).val()=="Example: Mountain biking"){$j("input#"+B).val("");
}break;
case"newplace":if($j("input#"+B).val()=="Example: Oakland, CA"){$j("input#"+B).val("");
}break;
case"newpeople":if($j("input#"+B).val()=="Example: The Hangover"){$j("input#"+B).val("");
}break;
}});
});
};
})(jQuery);
(function(A){A.fn.ja_selectimg=function(){return this.each(function(){A(this).mouseover(function(B){B.preventDefault();
A(this).css("border-color","#55BBDD");
});
A(this).mouseleave(function(B){B.preventDefault();
A(this).css("border-color","#FFFFFF");
});
A(this).click(function(H){var G=A(this).attr("src");
var E=A("#userToken");
var F=new RegExp("://(.[^/]+)");
var C=G.match(F)[1];
if(C==GlobalNav.Variables["_staticDomain"]){var B=JASK.cfg.ldomain+"/ja-delete-avatar?tok="+E.text();
$j.getJSON(B,{"":""},function(I){if(I){}});
}if(window.frames.length>0){for(var D=0;
D<window.frames.length;
D++){if(window.frames[D].name==="avtframe"){window.frames[D].AVT.setPreview(G);
}}}});
});
};
})(jQuery);
$j(document).ready(function(){$j("#newinterest").profileSuggestion("http://"+JASK.ssCfg.server+"/query?sstype=soft&fn=topicsSuggestion&pn=ctopic","newinterest");
$j("#newplace").profileSuggestion("http://"+JASK.ssCfg.server+"/query?sstype=prefix&fn=topicsSuggestion&pn=location","newplace");
$j("#newpeople").profileSuggestion("http://"+JASK.ssCfg.server+"/query?sstype=soft&fn=topicsSuggestion&pn=entertainment","newpeople");
});
$j(document).ready(function(){$j("#newinterest, #newplace, #newpeople").ja_interestfocus();
});
$j(document).ready(function(){$j("#newinterest").keyup(function(B){var A=(B.keyCode?B.keyCode:B.which);
if(A==13){$j(".ac_results_profile").css("display","none");
JASK.addInterest("interests",$j("#newinterest").val());
return false;
}});
});
$j(document).ready(function(){$j("#newplace").keyup(function(B){var A=(B.keyCode?B.keyCode:B.which);
if(A==13){$j(".ac_results_profile").css("display","none");
JASK.addInterest("favoritePlaces",$j("#newplace").val());
return false;
}});
});
$j(document).ready(function(){$j("#newpeople").keyup(function(B){var A=(B.keyCode?B.keyCode:B.which);
if(A==13){$j(".ac_results_profile").css("display","none");
JASK.addInterest("favMovieMusicTV",$j("#newpeople").val());
return false;
}});
});
$j(document).ready(function(){$j("#editproflk").click(function(A){A.preventDefault();
sct("53683");
$j("#editsocialprofile_frm .form_error_field").html("");
$j("#editsocialprofile_frm .form_error_field").hide("");
JASK.showValidateMsg("clear_html","#editprofile_ok");
$j("#viewprof").toggle();
$j("#editprofile").toggle();
$j("#editsocialprofile_frm input").each(function(){$j(this).val($j(this).attr("data-val"));
});
$j("#editsocialprofile_frm textarea").each(function(){$j(this).val($j(this).attr("data-val"));
});
$j("div.editproferroric").hide();
});
$j("#editsocialprofile_cancel").click(function(A){A.preventDefault();
JASK.showValidateMsg("clear_html","#editprofile_ok");
$j("#viewprof").show();
$j("#editprofile").hide();
});
$j("#editsocialprofile_btn").ja_editsocialprofile();
});
(function(A){A.fn.ja_deleteSocialAtt=function(B){return this.each(function(){var C=this;
A(this).mouseover(function(D){D.preventDefault();
A(this).css({"border-style":"solid","border-color":"#B10000","border-width":"1px"});
A(".remove",D.currentTarget).addClass("delicon");
});
A(".remove",this).mouseover(function(){A(this).removeClass("delicon");
A(this).addClass("redicon");
});
A(".remove",this).mouseleave(function(){A(this).removeClass("redicon");
A(this).addClass("delicon");
});
A(".remove",this).click(function(F){F.preventDefault();
var G=A(this).attr("data-provider");
var E=JASK.cfg.ldomain+"/ja-delete-social-attribute?provider="+G+"&name="+B;
var D={};
A.post(E,D,function(H){if(H&&H.status["@code"]==100){A(C).hide();
A("."+G+"_connections").hide();
}},"json");
});
A(this).mouseleave(function(D){D.preventDefault();
A(this).css({"border-style":"solid","border-color":"#FFFFFF","border-width":"1px"});
A(".remove",D.currentTarget).removeClass("redicon");
A(".remove",D.currentTarget).removeClass("delicon");
});
});
};
})(jQuery);
(function(A){A.fn.ja_dispgal=function(){var B=false;
return this.each(function(){A(this).click(function(){if(!B){$j.get(JASK.cfg.ldomain+"/ja-avatar-gallery",{},function(C){$j("#galavatars").html(C);
$j(".avtr").ja_selectimg();
B=true;
});
}A("#tglminus").css("display","block");
A("#tglplus").css("display","none");
A("#galavatars").css("display","block");
A("#choosegaldisp").css("display","none");
A("#choosegalhide").css("display","block");
});
});
};
})(jQuery);
(function(A){A.fn.ja_hidegal=function(){return this.each(function(){A(this).click(function(){A("#tglplus").css("display","block");
A("#tglminus").css("display","none");
A("#galavatars").css("display","none");
A("#choosegaldisp").css("display","block");
A("#choosegalhide").css("display","none");
});
});
};
})(jQuery);
(function(A){A.fn.ja_dispload=function(){return this.each(function(){A(this).click(function(B){B.preventDefault();
$j("#uploadbtn").hide().delay(100).fadeIn(100,function(){$j("#uploadbtn").hide();
$j("#uploadblock").show();
$j("#uploadtxt").show();
document.uploadavatarform.submit();
});
});
});
};
})(jQuery);
$j(document).ready(function(){$j(".uploadbtn").ja_dispload();
$j("#tglplus").ja_dispgal();
$j("#tglminus").ja_hidegal();
$j("#choosegaldisp").ja_dispgal();
$j("#choosegalhide").ja_hidegal();
$j(".edit_linkedin_connections").ja_deleteSocialAtt("connections");
$j(".edit_facebook_connections").ja_deleteSocialAtt("connections");
});

JASK.namespace("profile.avatar");
JASK.profile.avatar.doPick=(function(){var D="javu";
var B="javi";
var H="javc";
var G="jau";
var F="00000000000000000000000000000001";
function C(){var I="0";
var L=$j.cookie("ldpt");
if(L&&L.length>0){var J=L.indexOf("porg=");
if(J!=-1){try{I=L.substring(J+5,J+9);
}catch(K){}}}return I;
}function A(K){var I=K;
var J=C();
var L=K.indexOf("&ex=");
if(L!=-1){I=K.substring(0,L);
}return($j.param.querystring(I,"ld="+J)+"&ex=");
}function E(M){var L={en:"",io:"0",b:"",tp:"d",ec:"1",ex:""};
var I=M.split("-");
var J=I[0];
var K=I[1];
if(K=="cancel"){L.en=H;
}else{if(K=="upload"){L.en=D;
}else{if(K=="save"){L.en=B;
}}}if(J=="avatar"){L.b=G;
}return L;
}return(function(L){var K=E(L);
var J=encodeURI(_SP(K));
J=A(J);
J=$j.param.querystring(J,"qs="+JASK.cfg.trackerData.qsrc);
J=$j.param.querystring(J,"id="+F);
J=decodeURI($j.param.querystring(J,"p=1"));
var I=new Image();
I.src=J;
});
})();

JASK.namespace("qserp");
$j(document).ready(function(){$j("#sq_form").submitQuestion();
JASK.qserp.bindQuestionSpellcheck("qtxt");
JASK.qserp.bindQuestionSpellcheck("qdetail");
$j("#askq_tt_wrp .tt-close").click(function(){$j(".scq-toggle > .hide-ss").click();
});
});
JASK.qserp.bindQuestionSpellcheck=function bindQuestionSpellcheck(A){$j("#"+A).focus(function(){var B=$j(this).attr("id");
$j(".sc_error").each(function(){if(B+"_error"!=$j(this).attr("id")){$j(this).hide();
}});
});
JASK.qserp.showTooltip($j("#"+A));
$j("#"+A).ja_spellcheck({events:{shouldSpellCheck:function(){var C=this._element;
var D=$j("#"+C);
var B=(D.data("spellErrors")>0);
return B;
}},url:JASK.cfg.scDomain+"/ja-spellcheck",renderError:function(E,D,C){var F=$j("#"+A).data("spellErrors");
if(F>0){$j("#"+A+"_error_msg").html(F+" misspelling"+(F==1?"":"s")+" above");
$j("#"+A+"_error").show();
var B=$j("#askq_tt_wrp");
B.find(".sc-desc").html(D);
}else{$j("#"+A+"_error").hide();
}if(!C){JASK.qserp.resetErrorMessage(A);
}},hideSuggestion:function(B){var C=$j("#"+A).data("spellErrors");
if(C>0&&!B){$j("#"+A).trigger("displaySpellErrors");
}else{$j("#askq_tt_wrp").css("display","none");
}}});
};
JASK.qserp.hideSuggestions=function hideSuggestions(A){$j(".scq-toggle > .hide-ss").click();
};
$j(".scq-toggle > .show-ss").live("click",function(){$j(this).removeClass("show-ss").addClass("hide-ss");
var A=$j(this).data("input-id");
JASK.spellcheck.showSuggestions(A);
$j("#"+A).trigger("tt");
$j(this).html("Close");
return false;
});
$j(".scq-toggle > .hide-ss").live("click",function(){$j("#askq_tt_wrp").css("display","none");
$j(this).removeClass("hide-ss").addClass("show-ss");
$j(this).html("Show Suggestions &raquo;");
});
JASK.qserp.resetErrorMessage=function resetErrorMessage(B){$j("#askq_tt_wrp").css("display","none");
var A=$j("#"+B+"_error").find(".toggle-ss");
A.removeClass("hide-ss").addClass("show-ss");
A.html("Show Suggestions &raquo;");
};
JASK.qserp.showTooltip=function showTooltip(A){A.tooltip({events:{input:"tt, tt2",tooltip:""},tip:"#askq_tt_wrp",position:"center right",offset:[A.attr("id")=="qtxt"?30:15,17],onShow:function(){if(this.getTrigger().data("spellErrors")<=0){JASK.question.hideToolTip();
}else{A.ui_position({target:"#askq_tt_wrp",offset:"0 0",at:"top"});
var B=$j("#askq_tt_wrp");
if(B.data("animateMode")!="1"){B.animate({left:"-=15"});
B.data("animateMode","1");
}else{B.css("left",(B.position().left-15)+"px");
}}}});
JASK.spellcheck.showSuggestions(A.attr("id"));
};

(function(A){A.fn.ja_blockUser=function(){return this.each(function(){A(this).click(function(I){I.preventDefault();
var F=A(this);
if(F.attr("requesting")=="true"){return ;
}var H=F.attr("data-state");
var E=JASK.cfg.ldomain+"/ja-follow";
var D=F.attr("data-id");
var G=$j("#dynupdate").val()||"";
var C=F.attr("data-uname");
var B=JASK.cfg.ldomain+"/ja-following-update?id="+D+"&uname="+C;
if(H==="block"){F.attr("requesting","true");
$j.post(E,{connectToId:D,type:1},function(J){if(J&&J.status["@code"]==100){sct("54408");
F.attr("data-state","unblock");
if(A(F.find(".bg-button")).length>0){var K=F.find("span");
K.text(K.text().replace(/Block/,"UnBlock"));
}else{var M=A(F.find("span")[0]);
var L=A(F.find("span")[1]);
L.html(L.html().replace(/Block/,"Unblock"));
M.removeClass("blockico").addClass("unblockico");
}if(G){A.get(B,function(N){if(N!=null&&N.length!=0){$j("#followingBlock").html(N);
}});
}$j("#errormsg").hide();
$j("#successmsg").show();
$j("#blocksuccess").show();
$j("#unblocksuccess").hide();
$j("#unfollowsuccess").hide();
$j("#followsuccess").hide();
}else{$j("#errormsg").show();
}F.attr("requesting","false");
},"json");
}else{if(H==="unblock"){F.attr("requesting","true");
$j.post(E,{connectToId:D,type:3},function(J){if(J&&J.status["@code"]==100){sct("54438");
F.attr("data-state","block");
if(A(F.find(".bg-button")).length>0){var K=F.find("span");
K.text(K.text().replace(/UnBlock/,"Block"));
}else{var M=A(F.find("span")[0]);
var L=A(F.find("span")[1]);
L.html(L.html().replace(/Unblock/,"Block"));
M.removeClass("unblockico").addClass("blockico");
}$j("#errormsg").hide();
$j("#successmsg").show();
$j("#unblocksuccess").show();
$j("#blocksuccess").hide();
}else{$j("#errormsg").show();
}F.attr("requesting","false");
},"json");
}}});
});
};
})(jQuery);
(function(A){A.fn.ja_addFollow=function(){return this.each(function(){A(this).click(function(I){I.preventDefault();
var F=A(this);
if(F.attr("requesting")=="true"){return ;
}var H=F.attr("data-state");
var E=JASK.cfg.ldomain+"/ja-follow";
var D=F.attr("data-id");
var G=$j("#dynupdate").val()||"";
var C=F.attr("data-uname");
var B=JASK.cfg.ldomain+"/ja-follow-update?id="+D+"&uname="+C;
if(H==="follow"){F.attr("requesting","true");
$j.post(E,{connectToId:D,type:0},function(J){if(J&&J.status["@code"]==100){sct("54406");
F.attr("data-state","unfollow");
if(A(F.find(".bg-button")).length>0){var K=F.find("span");
K.text(K.text().replace(/Follow/,"Unfollow"));
}else{var M=A(F.find("span")[0]);
var L=A(F.find("span")[1]);
L.text(L.text().replace(/Follow/,"Unfollow"));
M.removeClass("followico").addClass("unfollowico");
}if(G){A.get(B,function(N){if(N!=null&&N.length!=0){$j("#followersBlock").html(N);
}});
}$j("#errormsg").hide();
$j("#successmsg").show();
$j("#followsuccess").show();
$j("#unfollowsuccess").hide();
$j("#blocksuccess").hide();
$j("#unblocksuccess").hide();
}else{$j("#errormsg").show();
}F.attr("requesting","false");
},"json");
}else{if(H==="unfollow"){F.attr("requesting","true");
$j.post(E,{connectToId:D,type:2},function(J){if(J&&J.status["@code"]==100){sct("54407");
F.hide();
F.parent(".connectionBlock").slideUp();
if(JASK.cfg.viewerIsOwner=="true"){$j(".followingHeaderTotal").each(function(){var K=parseInt($j(this).text());
K--;
$j(this).text(K);
});
}if(G){A.get(B,function(K){if(K!=null&&K.length!=0){$j("#followersBlock").html(K);
}});
}$j("#errormsg").hide();
$j("#successmsg").show();
$j("#unfollowsuccess").show();
$j("#followsuccess").hide();
$j("#blocksuccess").hide();
$j("#unblocksuccess").hide();
}else{$j("#errormsg").show();
}F.attr("requesting","false");
},"json");
}}});
});
};
})(jQuery);

JASK.namespace("connections");
JASK.connections=(function(A){A.importContacts=function F(O){var L={"facebook":54514,"linkedin":54515,"yahoo":54516,"google":54517};
var N=L[O];
if(N){sct(N);
}var M={};
var I={};
var J=$j("#userId").val();
var K=$j("#userEmail").val();
var H=JASK.cfg.ldomain+"/ja-create-token";
$j("#successmsg").hide();
$j("#import_ok").hide();
$j("#invtemails_ok").hide();
$j("#invtemails_error").hide();
if(O=="facebook"){$j.post(H,{userid:J,email:K},function(P){if(P&&P.status["@code"]==100&&P.status["@message"]!=null){var Q=B(P.status["@message"]);
var R="Get great answers on Ask.com from the web and real people too!";
R+=" Click 'Accept' below to join your friends in the Ask.com community.";
I={title:"Invite your friends to connect on Ask.com",text:R,name:"Ask.com",actionText:"Grow your Ask.com network",actionURL:Q,repeatFreq:1,repeatCap:100,reinviteFreq:1,reinviteCap:100};
M={invite:I,provider:O};
gigya.services.socialize.removeConnection(JASK.social.conf,{callback:function(){gigya.services.socialize.addConnection(JASK.social.conf,M);
}});
}else{JASK.showValidateMsg("error_message","#import_ok","Oops, Please try again");
}},"json");
}else{if(O=="linkedin"){$j.post(H,{userid:J,email:K},function(P){if(P&&P.status["@code"]==100&&P.status["@message"]!=null){var Q={multiInviteUrl:B(P.status["@message"])};
M={context:Q,provider:O,enabledProviders:O,disabledProviders:"facebook",callback:D};
gigya.services.socialize.addConnection(JASK.social.conf,M);
}else{JASK.showValidateMsg("error_message","#import_ok","Oops, Please try again");
}},"json");
}else{$j("#hidden_emails").val("");
$j("#invite_emails").val("");
$j("#social_import_search").val("");
$j("#hiddenemail_provider").val($j.capitalize(O));
$j("#social_import_panel").hide();
$j("#social_import_data").html("");
$j("#social_import_spinner").show();
$j("#social_import_close").show();
$j("#no_contacts").hide();
$j("#social_import_msg_panel").show();
$j("#social_import_titleicon").removeClass().addClass(O+"-icon");
$j("#contactsDlg_titlebar").text($j.capitalize(O));
$j("#contactsDlg span.social_contact_provider").text($j.capitalize(O));
$j("#social_import_ok").html("");
$j("#social_import_error").html("");
$j("#social_import_panel INPUT[type='checkbox']").attr("checked",false);
JASK.showValidateMsg("clearTip","#multinvt_tt");
$j("#contactsDlg").dialog("open");
gigya.services.socialize.addConnection(JASK.social.conf,{provider:O,callback:JASK.connections.addConnectionSuccess,context:{askProvider:O}});
}}};
function B(H){return JASK.cfg.ldomain+"/jinv?id="+encodeURIComponent(H)+"&tokentype=multi";
}A.addConnectionSuccess=function C(H){if(H.errorCode==0&&H.user){gigya.services.socialize.getContacts(JASK.social.conf,{enabledProviders:H.context.askProvider,callback:JASK.connections.getContactsSuccess});
}};
A.getContactsSuccess=function E(K){if(K.errorCode==0){var O=K["contacts"].asArray();
O.sort(function(R,Q){var T=R["firstName"];
var S=Q["firstName"];
if(!T||T==""){return 1;
}else{if(!S||S==""){return -1;
}else{T=T.charAt(0).toUpperCase();
S=S.charAt(0).toUpperCase();
if(!T.match(/[a-zA-Z]/)){return 1;
}if(!S.match(/[a-zA-Z]/)){return -1;
}return(T<S)?-1:(T>S)?1:0;
}}});
if(null!=O&&O.length>0){var P=$j("#template_social_contact");
var J="";
for(var N in O){var H=P.html();
var I=O[N];
var L=$j("#defaultavt-"+$j("#hiddenemail_provider").val()).val();
if(I["photoURL"]&&I["photoURL"]!=""){L=I["photoURL"];
}H=H.replace(/socialcnt-val/,I["email"]);
H=H.replace(/socialcnt-email/,I["email"]);
H=H.replace(/socialcnt-name/,I["firstName"]+" "+I["lastName"]);
H=H.replace(/xsrc="socialcnt-src/,'src="'+L);
if(N==O.length-1){H=H.replace("uiblock_br","");
}J+=H;
}$j("#social_import_data").html(J);
$j("#social_contact_no").text(O.length);
$j("#social_import_msg_panel").hide();
$j("#social_import_panel").show();
$j(".social_contact_row").click(function(){var Q=$j(this).find(".socialcnt-check").get()[0];
if($j(this).data("selectState")!="on"){$j(this).css("background-color","#dcf1f9");
$j(this).data("selectState","on");
Q.checked=true;
}else{$j(this).css("background-color","#fff");
$j(this).data("selectState","off");
Q.checked=false;
}});
}else{$j("#social_import_panel").hide();
$j("#social_import_spinner").hide();
$j("#no_contacts").show();
$j("#social_import_close").show();
$j("#social_import_msg_panel").show();
}}else{$j("#social_import_panel").hide();
$j("#social_import_spinner").hide();
$j("#no_contacts").hide();
$j("#social_import_close").show();
var M="Sorry, we were'nt able to import your "+$j("#hiddenemail_provider").val()+" contacts at this time.";
JASK.showValidateMsg("error_message","#social_import_ok",M);
}};
function D(H){if(H.user!=null&&typeof H.user!="undefined"){var J="";
if(H.context!=null&&typeof H.context!="undefined"){J=H.context.multiInviteUrl;
}var I={multiInviteUrl:J,userFirstName:H.user.firstName,userLastName:H.user.lastName};
var K={width:700,height:400,context:I,showCaption:true,enabledProviders:"linkedin",disabledProviders:"facebook",captionText:"Invite your friends to connect on Ask.com",showTermsLink:false};
K["onSelectionDone"]=function(M){if(M!=null&&typeof M!="undefined"){var O=M["friends"];
if(null!=O){var L=0;
var S=O["arr"];
if(S!=null){L=S.length;
}var N={friendsCount:L};
var P="I'd like to connect with you on Ask.com";
if(M.context!=null&&typeof M.context!="undefined"){P="Get great answers from the web and real people too!";
P+="\n\nWhat do you get by joining?";
P+="\n- Answers from real people";
P+="\n- When you send a question to the community you're asking real people with real experience";
P+="\n- The chance to help others";
P+="\n- Make someone's day by answering a question about something you know";
P+="\n- See what people are asking";
P+="\n- Discover what's on people's minds and lend your point of view too";
P+="\n\nTo create your new account, click the invitation link below.";
P+="\n\n"+M.context.multiInviteUrl;
}var R={context:N,recipients:O,body:P,callback:G,subject:"Join me at Ask.com"};
if(L>0){gigya.services.socialize.sendNotification(JASK.social.conf,R);
}else{var Q="You did not select any of your LinkedIn contacts.";
JASK.showValidateMsg("error_message","#import_ok",Q);
$j("#import_ok").show();
}}}};
if(H.errorCode==0){gigya.services.socialize.showFriendSelectorUI(JASK.social.conf,K);
}}}function G(H){var I="";
if(H!=null&&H.errorCode==0){I="Congratulations, you've sent "+H.context.friendsCount;
if(H.context.friendsCount>1){I+=" connection requests!";
}else{I+=" connection request!";
}JASK.showValidateMsg("success_message","#import_ok",I);
}else{I="LinkedIn reported an error with your request. Please try again.";
JASK.showValidateMsg("error_message","#import_ok",I);
}$j("#import_ok").show();
}return A;
})(JASK.connections);
(function(A){A.fn.inPageSearch=function(B){return this.each(function(){A(this).keyup(function(){var C=$j.trim(A(this).val());
if(C.length>0){A(B).hide();
A(B).filter(":containsIgnoreCase("+C+")").show();
}else{A(B).show();
}});
});
};
})(jQuery);

$j(document).ready(function(){$j("#contactsDlg").dialog({width:700,height:530,autoOpen:false,modal:true,draggable:false,resizable:false,show:{effect:"fade",duration:400},hide:{effect:"fade",duration:400}});
});
$j(document).ready(function(){$j(".social_importnone").click(function(A){A.preventDefault();
$j("#social_import_data .social_contact_row:visible").each(function(){if($j(this).data("selectState")=="on"){$j(this).click();
}});
});
$j(".social_importall").click(function(A){A.preventDefault();
$j("#social_import_data .social_contact_row:visible").each(function(){if($j(this).data("selectState")!="on"){$j(this).click();
}});
});
$j("#social_import_submit").click(function(){var C=[];
$j("#social_import_data input:checkbox:checked").each(function(){C.push($j(this).val());
});
if(null!=C&&C.length>0){$j("#invite_emails").val($j.uniqueArray(C).join(", "));
var A="";
if(C.length>1){A=C.length+" email addreesses from ";
}else{A=C.length+" email address from ";
}$j("#importsuccess_no").text(A);
$j("#importsuccess_provider").text($j("#hiddenemail_provider").val());
$j("#invite_emails").tooltip({tip:"#multinvt_tt_container",relative:true,position:"center right",offset:[25,12],delay:0,events:{tooltip:""},onShow:function(){if($j("#invite_emails").data("tooltip-displayed")){var D=$j("#invite_emails").data("tooltip");
D.hide();
}else{$j("#invite_emails").data("tooltip-displayed",true);
}}});
$j("#invite_emails").data("tooltip-displayed",false);
$j("#contactsDlg").dialog("close");
$j(document).scrollTop($j("#invite_emails").position().top);
$j("#invite_emails").get()[0].focus();
}else{var B="Please select emails to continue.";
JASK.showValidateMsg("error_message","#social_import_error",B);
}return false;
});
$j("#social_import_cancel,#social_import_close").click(function(A){A.preventDefault();
$j("#contactsDlg").dialog("close");
});
$j("#social_import_search").inPageSearch("#social_import_data div.social_contact_row");
$j("#social_import_search").keydown(function(B){var A=(B.keyCode?B.keyCode:B.which);
if(A==13){B.preventDefault();
return false;
}});
$j("#multi_invite_submit").click(function(A){A.preventDefault();
JASK.connections.userMultiInvites();
});
$j("#inviter_name").focusin(function(){var A=$j("#inviter_name").val();
if(A!=null&&$j.trim(A).length>0&&(A=="Enter First Name, Last Name"||A=="Your name")){$j("#inviter_name").val("");
$j("#inviter_name").css("font-style","");
$j("#inviter_name").removeClass("info");
}});
});

JASK.namespace("connections");
JASK.connections.userMultiInvites=function userMultiInvites(){$j("#invtemails_ok").hide();
$j("#invtemails_error").hide();
var B=JASK.cfg.ldomain+"/ja-multi-invite";
B+="?qsrc=4109";
var A=$j.serializeObject($j("#multi_invt_form"));
A["engine_id"]="multi_invite";
A["invite_cc"]=$j("input[name=invite_cc][type=checkbox]").is(":checked")?1:0;
A["note"]=$j.stripURLs(A["note"]);
if(JASK.connections.validateMultiInviteFields()&&JASK.connections.validateInviteEmails()){$j.post(B,A,function(C){if(C==null){JASK.showValidateMsg("error_message","#invtemails_error","Oops, Please try again");
$j("#invtemails_error").show();
}else{if(C.status["@code"]==100){JASK.showValidateMsg("success_message","#invtemails_ok","Request successfully sent");
$j("#invtemails_ok").show();
$j("#invite_emails").val("");
}else{JASK.showValidateMsg("error_message","#invtemails_error","Oops, Please try again");
$j("#invtemails_error").show();
}}$j("#successmsg").hide();
$j("#import_ok").hide();
},"json");
}return false;
};
JASK.connections.validateMultiInviteFields=function validateMultiInviteFields(){var B=true;
var D=$j("#invite_emails").val();
var A=$j("#inviter_note").val();
var C=$j("#inviter_name").val();
if(!D||D==null||D==""||$j.trim(D).length==0){B=false;
}else{if(!A||A==null||A==""||$j.trim(A).length==0||$j.hasHTML(A)){B=false;
}else{if(!C||C==null||C==""||$j.trim(C).length==0||C=="Enter First Name, Last Name"){B=false;
}}}if(!B){JASK.showValidateMsg("error_message","#invtemails_error","Please complete all the fields");
$j("#invtemails_error").show();
}return B;
};
JASK.connections.validateInviteEmails=function validateInviteEmails(){var C=true;
var D="Please enter a valid email address";
var E=$j("#invite_emails").val().split(",");
for(var B=0;
B<E.length;
B++){var A=E[B];
C=$j.isValidEmail($j.trim(A));
if(!C){break;
}}if(C&&E.length>75){C=false;
D="You can send a maximum of 75 connection requests per day";
}if(!C){JASK.showValidateMsg("error_message","#invtemails_error",D);
$j("#invtemails_error").show();
}return C;
};

JASK.namespace("question");
JASK.question.editTimer=function countDownTimer(C){var B=new Date(C.data("expires"));
var A=C.data("post-id");
C.countdown({until:B,onTick:function(D){if(D[5]==0&&D[6]==10){$j(".editFade").fadeOut(10000);
}$j(C).text(JASK.question.getCountdownMessage(D));
},tickInterval:1,onExpiry:function(){JASK.question.editTimedOut();
}});
};
JASK.question.getCountdownMessage=function getCountDownMessage(C){var B=0;
var A;
if(C[5]>0){B=C[5];
if(C[5]>1){A=" minutes ";
}else{A=" minute ";
}}else{B=C[6];
if(C[6]>1){A=" seconds ";
}else{if(C[6]==1){A=" second ";
}else{$j("#editQ").hide();
}}}if(B&&A){return"("+B+A+"left)";
}else{return"";
}};
JASK.question.editTimedOut=function editTimedOut(){$j("#saveQuestion, #saveAnswer").unbind();
$j(".jaq_edit, .jaqa_edit").unbind().hide();
$j(".editTimer").html("Sorry, you ran out of time");
};
JASK.question.editQuestion=function editQuestion(B){var A="";
B.preventDefault();
if($j("#ques-edit-txt").is("div")){A=$j("#ques-edit-txt").text();
}else{A=$j("#ques-edit-txt").val();
}$j.jStorage.set("orginalQTitle",A);
$j.jStorage.set("orginalQDesc",$j("#ques-detail-txt").val());
$j("#ques-edit-txt").live("keyup",function(H){var I=H.target;
var G=$j(H.target).parents("form");
var C=G.find(".cdisplay");
var F=JASK.question.qBoxLength;
var E=I.value.length;
var D=F-E;
if(D<=0){$j(".charlimit").css("color","#B10000");
}else{$j(".charlimit").css("color","#666666");
}C.text((D<0)?0:D);
});
$j("#ques-edit-txt").keyup();
$j("#ques-edit-txt").live("focus",function(){$j(".charlimit").fadeIn();
});
$j("#ques-edit-txt").live("blur",function(){$j(".charlimit").fadeOut();
});
$j(".question .hideOnEdit").hide();
$j("#editQStatus").html("");
$j("#quesMod").show();
};
JASK.question.cancelEditQuestion=function cancelEditQuestion(A){if(A){A.preventDefault();
}$j("#ques-edit-txt").val($j.jStorage.get("orginalQTitle"));
$j("#ques-detail-txt").val($j.jStorage.get("orginalQDesc"));
JASK.question.hideEditQuestion();
};
JASK.question.hideEditQuestion=function hideEditQuestion(){$j("#quesMod").hide();
$j(".qimg-l").show();
$j(".question .hideOnEdit").show();
$j("#question_ok").html("");
$j("#detail_ok").html("");
$j(".uiblock_medcontent").css("margin-left","63px");
};
JASK.question.saveQuestionEdit=function saveQuestionEdit(F){F.preventDefault();
var D=$j(this);
var C=JASK.cfg.ldomain+"/ja-edit-question";
var B=$j.serializeObject(D.parents("#edit_ques_form"));
var E=$j("#question_ok");
var A=JASK.question.validateQuestion($j("#ques-edit-txt").val());
if(!A.valid){E.html(A.error);
return false;
}A=JASK.question.validateDetail($j("#ques-detail-txt").val());
if(!A.valid){E.html(A.error);
return false;
}E.html("");
$j.post((C+"?tfid=JAAskQForm"),B,function(L){question_updated=false;
sct(53701);
var G=L.status["@code"];
if(G==100||G==158){$j("#quesMod").hide();
var I=D.parents(".question");
var K=$j.trim($j("#ques-edit-txt").val());
var H=K.charAt(0).toUpperCase()+K.slice(1);
$j("#questionText").html(H);
$j("#questionDetail").html($j("#ques-detail-txt").val());
$j(".question .hideOnEdit").show();
$j("#editQStatus").show();
$j("#editQStatus").html("<span class='succmsg b'>Your question has been updated!</span>");
$j("#qnatwt").before('<div style="clear:left;"></div>');
}else{var J="Sorry, there was an error saving your question. Please try again!";
E.html("<span class='error b'>"+J+"</span>");
return false;
}$j("#question_ajx_err").unbind();
},"json");
question_updated=true;
return false;
};

JASK.namespace("question");
(function(A){A.fn.ja_report=function(){return this.each(function(){var B=A(this);
if(!B.data("ja_report")){B.data("ja_report",1);
B.click(function(){if(!JASK.isAuthenticated()){JASK.ask_dialog.initSignin(JASK.question.getFlagLinkQsrc(this));
return false;
}else{var E=JASK.cfg.ldomain+"/ja-report";
var D=this.id.split("-");
var G=D[1];
var F=D[2];
var C=this;
A.post(E,{"id":G,"userId":JASK.cfg.uid,"type":F,"engine_id":"add_vote"},function(L){if(L.status["@code"]==100){if(JASK.ja.question.flagpks&&JASK.ja.question.flagpks[G]){spk(C,JASK.ja.question.flagpks[G]);
}var H="#flag-"+G+"-"+F;
var K=A(H).closest(".c-linkmenu");
var J=A(K).siblings("a.collapsibleLink");
var I=A(K).siblings(".post-report-template");
K.remove();
J.remove();
I.show();
}},"json");
return false;
}});
}});
};
})(jQuery);
JASK.question.getFlagLinkQsrc=function getFlagLinkQsrc(B){var A="";
var E=($j(B).parents()[2]).id;
var C=E.split("-");
var D=C[1];
if(D.indexOf("cmt")!=-1){A=3153;
}else{if(D.indexOf("q")!=-1){A=3157;
}else{A=3156;
}}return A;
};

JASK.namespace("question");
JASK.question.qBoxLength=140;
JASK.question.INVALID_SHORTHAND_WORDS=JASK.question.INVALID_SHORTHAND_WORDS||"";
JASK.question.bindQuestionBehaviors=function bindQuestionBehaviors(){$j(".ratelink").ja_vote();
$j(".flaglink").ja_report();
$j(".commentSlideLink").ja_slidableLink({speed:15});
$j(".slidableLink").ja_slidableLink();
$j(".commentbutton").ja_comment();
$j(".answerfrmbtn").ja_submitanswer();
$j(".editanswerfrmbtn").ja_submitanswer();
$j("#saveAnswer").ja_submitanswer(true);
$j("#saveAnswer").ja_addClickId(54486);
$j("#saveQuestion").click(JASK.question.saveQuestionEdit);
$j("#saveQuestion").keyup(function(B){var A=(B.keyCode?B.keyCode:B.which);
if(A==13){$j(this).trigger("click");
return false;
}});
$j("#saveQuestion").focusin(function(){$j(this).css("outline","#000 dotted thin");
});
$j("#saveQuestion").focusout(function(){$j(this).css("outline","none");
});
$j("#saveQuestion").ja_addClickId(54483);
$j(".tglform").ja_openform();
$j(".cmtform").ja_closeform();
$j(".cmtform").val("");
$j(".cmtform").ja_textarealimit({limit:2048});
$j("#answer-form-txt").ja_answerareafocus();
$j(".jaq_edit").ja_addClickId(54482);
$j(".jaqa_edit").ja_addClickId(54485);
$j("#jaq_editCancel").ja_addClickId(54484);
$j("#jaqa_editCancel").ja_addClickId(54487);
$j("#leftnav li a.lnv_qna").ja_addClickId(53324);
$j("#leftnav li a.lnv_prof").ja_addClickId(53323);
$j("#leftnav li a.lnv_browse").ja_addClickId(53322);
$j("a.nb_user_link:eq(0)").ja_addClickId(54183);
$j("a.pImgLink").not(".noTrack").ja_addClickId(53320);
$j("a.pUsernameLink").ja_addClickId(53320);
$j("#profileProgress #progressInterest").ja_addClickId(53321);
$j("#profileProgress #progressAvatar").ja_addClickId(53750);
$j("#jaques_anch").ja_addClickId(53319);
$j(".commentSlideLink").click(JASK.question.hideToolTip);
$j(".slidableAnswer").ja_slidablePost("Answer");
$j(".slidableComment").ja_slidablePost("Comment");
$j(".slidableQuestion").ja_slidablePost("Question");
$j("#jaques_anch").click(function(){setTimeout(function(){$j("#answer-form-txt").focus();
},10);
});
$j(".editTimer").each(function(){JASK.question.editTimer($j(this));
});
$j(".toggleComments").toggleComments();
};
JASK.question.bindAnswerSpellCheck=function bindAnswerSpellCheck(){$j("#answer-form-txt,#ans-edit-txt").ja_spellcheck({events:{shouldSpellCheck:function(){var C=$j("#answer-form-txt");
if($j("#ans-edit-txt").is(":visible")){C=$j("#ans-edit-txt");
}var A=(C.data("spellErrors")>0);
if(!A){var B=$j("#ans-sc-wrp");
B.addClass("hide");
B.find(".sc-desc").html("");
}return A;
}},url:JASK.cfg.scDomain+"/ja-spellcheck",renderError:function(E,C){var F=$j("#answer-form-txt");
if($j("#ans-edit-txt").is(":visible")){F=$j("#ans-edit-txt");
}var B=F.data("spellErrors");
var A=$j("#ans-sc-wrp");
if(B<=0){$j(".sc-answer-err").slideUp();
A.hide();
}else{if(B){$j(".sc-answer-err").slideDown();
$j("#answer_error").html("");
var D=B+" misspelling"+((B>1)?"s":"")+" found";
$j(".sc-count").html(D);
A.find(".sc-desc").html(C);
}}},hideSuggestion:function(){JASK.question.hideToolTip();
}});
};
$j(document).ready(function(){JASK.question.bindQuestionBehaviors();
JASK.question.scrollToComment();
});
$j(document).ready(function(){$j(".jaq_edit").click(JASK.question.editQuestion);
$j("#jaq_editCancel").click(JASK.question.cancelEditQuestion);
$j(".jaqa_edit").ja_editAnswer();
$j("#jaqa_editCancel").ja_cancelEditAnswer();
});
$j(document).ready(function(){if($j("#answer-form-txt").length&&$j.jStorage.get("answer")){var A=$j.jStorage.get("answer").length;
if(A>0){$j("#answer-form-txt").removeClass("b").val($j.jStorage.get("answer"));
}$j.jStorage.deleteKey("answer");
}$j("#answer-form-txt").autoResize({extraSpace:0}).keyup();
});
$j(document).ready(function(){var B=$j.jStorage.get("comment");
if(B&&B.id&&B.value){var A="#"+B.id;
$j(A).val(B.value);
$j(".toggleComments",$j(A).parents(".postContent")).click();
$j(A+"temp").focusin();
$j.jStorage.deleteKey("comment");
}});
$j(document).ready(function(){function A(){var B=$j("#answer-form-txt");
if($j("#ans-edit-txt").is(":visible")){B=$j("#ans-edit-txt");
}B.tooltip({events:{input:"focus, click dummyevent",tooltip:""},tip:"#ans-sc-wrp",position:"center right",offset:[0,20],onShow:function(){if(this.getTrigger().data("spellErrors")<=0){JASK.question.hideToolTip();
}else{B.ui_position({target:"#ans-sc-wrp",offset:[0,-10],at:"top"});
var C=$j("#ans-sc-wrp");
if(C.data("animateMode")!="1"){C.animate({left:"-=15"});
C.data("animateMode","1");
}else{C.css("left",(C.position().left-15)+"px");
}}}});
JASK.spellcheck.showSuggestions(B.attr("id"));
$j("#ans-sc-wrp").css("border-left","none");
}$j(".sc-toggle > .show-ss").live("click",function(){$j(this).removeClass("show-ss").addClass("hide-ss");
$j(this).text("Close");
A();
});
$j(".sc-toggle > .hide-ss").live("click",JASK.question.hideToolTip);
JASK.question.bindAnswerSpellCheck();
});
$j(document).ready(function(){JASK.question.embedYouTube();
var C=window.location.hash;
if(C){var A=C.substring(0,6);
if(A==="#edit/"){var B="#eid_"+C.substring(6);
$j(B).trigger("click");
}}if($j("#qnatwt").length){$j.getScript("http://platform.twitter.com/widgets.js");
}});
$j(document).ready(function(){JASK.question.initModeratedAnswers=function(){$j("#moderatedAnswerCount, #showModeratedAnswers").click(function(){$j("#showModeratedAnswers").hide();
$j("#hideModeratedAnswers").show();
$j("#moderatedAnswers").show();
});
$j("#hideModeratedAnswers").click(function(){$j("#hideModeratedAnswers").hide();
$j("#moderatedAnswers").hide();
$j("#showModeratedAnswers").show();
});
};
JASK.question.initModeratedAnswers();
});

$j(document).ready(function(){$j("#aq_form").askQuestion();
$j(document).bind("askDialogLoaded",function(){$j("#questionbox").autoResize({extraSpace:20,limit:200});
$j("#detail").autoResize({extraSpace:0,limit:120});
setTimeout(function(){if(window.location.hash==="#askq=1"){var A=(location.search.match(/qsrc=\d+/))?location.search.match(/qsrc=(\d+)/)[1]:121;
JASK.ask_dialog.initQuestion($j("#qtxt").val(),A,true);
window.location.hash="#";
}},500);
});
$j("#cnbWebText").click(function(A){if($j("#qtxt").val()){A.preventDefault();
window.location.href=$j.param.querystring(JASK.cfg.ldomain+"/web",$j.param.querystring(window.location.href,{"q":$j.trim($j("#qtxt").val())}));
}});
$j("#browseVideoDlg").dialog({width:720,height:580,autoOpen:false,modal:true,draggable:false,resizable:false,show:{effect:"fade",duration:400},hide:{effect:"fade",duration:400}});
$j(".vid-preview").click(function(A){$j("#browseVideoDlg").dialog("open");
});
$j(".browse_video_close").click(function(A){$j(".browse_video_video").html("");
$j("#browseVideoDlg").dialog("close");
$j(".browse_video_video").hide();
$j(".browse_video_cta").show();
});
$j("#browse_video_next").click(function(A){window.location=$j("#browse_video_next").attr("data-url");
});
$j(".browse_video_cta").click(function(){$j(".browse_video_video").css("display","block");
if(!$j("#browseVideoVideo").length){$j("<iframe id='browseVideoVideo' width='660' height='371' frameborder='0' src='http://player.vimeo.com/video/17800937?byline=0&portrait=0&color=55bbdd&autoplay=1'>").appendTo($j(".browse_video_video"));
}$j(this).css("display","none");
});
$j("#bqnv_all").ja_addClickId(546326);
$j("#bqnv_co").ja_addClickId(546327);
$j("#bqnv_intr").ja_addClickId(546328);
$j("#bqnv_ro").ja_addClickId(546329);
$j("#bunaimp").ja_impression($j("#bunaimp").val());
$j("#sunaimp").ja_impression($j("#sunaimp").val());
if($j("#sunaimp").length){$j("#bqnv_una_a").ja_addClickId(546456);
$j("#bqnv_una_b").ja_addClickId(546457);
}$j(".editCntDwn").each(function(){JASK.question.countDownTimer($j(this));
});
$j("#recentQuestion,#browsezoom").slideDown();
$j("#ans-sc-wrp .tt-close").click(function(){JASK.question.hideToolTip();
});
$j("#detail").live("blur",function(B){var A=$j(this);
if(A.val()==""){JASK.answer.resetTxtBox(A,A.data("label"));
}});
$j("#qtxt").bind("blur",function(A){if($j(this).val()==""){$j(this).data("unmodified",true);
$j(this).attr("style","color: #777;");
$j(this).val($j(this).data("label"));
}});
$j("#qtxt").bind("keypress",function(A){if($j(this).data("unmodified")==true){$j(this).data("unmodified",false);
}});
$j("#qtxt").bind("focus",function(A){if($j(this).data("unmodified")==true){$j(this).data("unmodified",false);
$j(this).val("");
$j(this).removeAttr("style");
}});
$j(".list_carousel").css("height","");
$j("#topQuestionsCarousel").carouFredSel({width:"auto",scroll:{duration:300},height:"auto",prev:"#carouselPrevButton",next:"#carouselnextButton",pagination:{container:"#carouselPager"},auto:false}).css("left",0);
});
$j(document).ready(function(){JASK.question.bindLoadMore("#getMoreLink");
});
$j(document).ready(function(){function A(C,B){B.find(".askq_sc_wrp").css("display","block");
JASK.spellcheck.showSuggestions(C.attr("id"));
B.find(".sc-ques-err").hide();
}$j(".q-sc-toggle > .show-ss").live("click",function(){var B=$j(this).attr("id");
if(B&&B==="ss-question"){A($j("#questionbox"),$j("#questionbox").closest(".sec_wrp"));
}else{if(B&&B==="ss-detail"){A($j("#detail"),$j("#detail").closest(".sec_wrp"));
}}});
$j(".q-sc-toggle > .hide-ss").live("click",function(){$j(this).removeClass("hide-ss").addClass("show-ss");
$j(this).text("Show Suggestions");
JASK.question.hideQuestionSpellcheckToolTip();
});
});
JASK.question.countDownTimer=function countDownTimer(C){var B=new Date(C.data("expires"));
var A=C.data("post-id");
C.countdown({until:B,onTick:function(D){$j(C).text(JASK.question.getCountdownMessage(D));
},tickInterval:1,onExpiry:function(){$j(C).hide();
$j("#eid_"+A).hide();
$j("#editPost"+A).hide();
}});
};
$j(".sc-toggle > .show-ss").live("click",function(){$j(this).removeClass("show-ss").addClass("hide-ss");
var A=$j(this).attr("id").split("-")[1];
$j(this).text("Close");
jaDisplaySpellcheckDetails($j("#quickanswertxt-"+A),A);
});
$j(".sc-toggle > .hide-ss").live("click",JASK.question.hideToolTip);

(function(A){A.fn.ja_loadMoreButton=function(){var D,E,G,C,F,B;
if(A(".pageSegment").length&&A(".pageSegment:last").attr("data-last-question")!="disabled"){if(this.length){D=($j.bbq.getState("pg"))?$j.bbq.getState("pg").split(","):[];
E=(D.length+1);
G=$j(this);
C=G.attr("data-url");
(function(){function H(J){var K=C.replace(/(page\=)(\d*)/,"$1"+(J));
$j.get($j.param.querystring(K,{"ajax":"true","lqid":D[J]}),{},function(L){$j(("#qBlock-"+J)).replaceWith(L);
var M=$j(L).filter(".pageSegment:last").attr("data-last-question");
if(M=="true"){G.hide();
}});
}function I(){if(D.length){if(A(".pageSegment:first").attr("data-qid")===D[0]){var K=[];
for(var J=0;
J<D.length;
J++){K.push('<div id="qBlock-'+J+'"></div>');
H(J);
}$j("#questionBlock .pageSegment:last").after(K.join(" "));
}else{$j.bbq.removeState("pg");
E=1;
}}}$j(window).bind("hashchange",function(J){var K=(J&&J.fragment)?J.fragment:"";
if(!K||K.split(",").length!==D.length){D=($j.bbq.getState("pg"))?$j.bbq.getState("pg").split(","):[];
$j(".pageSegment").not(":first").remove();
I();
}});
I();
})();
return this.each(function(){if(E>=F){G.hide();
}$j(this).click(function(I){I.preventDefault();
if(!$j(this).data("isBusy")){var H=A(".pageSegment:last").attr("data-qid");
var J=C.replace(/(page\=)(\d*)/,"$1"+(++E));
G.showLoadBusy();
$j.get($j.param.querystring(J,{"ajax":"true","lqid":H}),{},function(L){$j(L).insertAfter("#questionBlock .pageSegment:last");
D.push(H);
G.showLoadDone();
var K=($j.bbq.getState("pg"))?$j.bbq.getState("pg").split(","):[];
K.push(H);
$j.bbq.pushState({"pg":K.join()},0);
var M=$j(L).filter(".pageSegment:last").attr("data-last-question");
if(M=="true"){G.hide();
}});
}});
});
}}else{if(A(".q:last").attr("data-qid")){if(this.length){D=($j.bbq.getState("pg"))?$j.bbq.getState("pg").split(","):[];
E=(D.length+1);
G=$j(this);
C=G.attr("data-url");
F=G.attr("data-total");
(function(){function H(J){var K=C.replace(/(page\=)(\d*)/,"$1"+(J));
$j.get($j.param.querystring(K,{"ajax":"true","lqid":D[J]}),{},function(L){$j(("#qBlock-"+J)).replaceWith(L);
});
}function I(){if(D.length){if(A(".q:last").attr("data-qid")===D[0]){var K=[];
for(var J=0;
J<D.length;
J++){K.push('<div id="qBlock-'+J+'"></div>');
H(J);
}$j("#questionBlock .q:last").after(K.join(" "));
}else{$j.bbq.removeState("pg");
E=1;
}}}$j(window).bind("hashchange",function(J){var K=(J&&J.fragment)?J.fragment:"";
if(!K||K.split(",").length!==D.length){if(D[0]){$j("#questionBlock .q[data-qid="+D[0]+"]").nextAll().remove();
}D=($j.bbq.getState("pg"))?$j.bbq.getState("pg").split(","):[];
I();
}});
I();
})();
return this.each(function(){if(E>=F){G.hide();
}$j(this).click(function(I){I.preventDefault();
if(!$j(this).data("isBusy")){var H=A(".q:last").attr("data-qid");
var J=C.replace(/(page\=)(\d*)/,"$1"+(++E));
G.showLoadBusy();
$j.get($j.param.querystring(J,{"ajax":"true","lqid":H}),{},function(L){var M=$j(L).insertAfter("#questionBlock .q:last");
D.push(H);
G.showLoadDone();
var K=($j.bbq.getState("pg"))?$j.bbq.getState("pg").split(","):[];
K.push(H);
$j.bbq.pushState({"pg":K.join()},0);
if(E>=F){G.hide();
}});
}});
});
}}else{if(this.length){E=($j.bbq.getState("pg",true)>1)?$j.bbq.getState("pg",true):1;
G=$j(this);
C=G.attr("data-url");
F=G.attr("data-total");
(function(){function I(K){var L=C.replace(/(page\=)(\d*)/,"$1"+(K));
$j.get($j.param.querystring(L,{"ajax":"true"}),{},function(M){$j(("#qBlock-"+K)).html(M);
});
}if(E>1){var J=[];
for(var H=2;
H<=E;
H++){J.push('<div id="qBlock-'+H+'"></div>');
I(H);
}$j("#questionBlock .q:last").after(J.join(" "));
}})();
return this.each(function(){if(E>=F){G.hide();
}var H=0;
$j(this).click(function(I){I.preventDefault();
if(!$j(this).data("isBusy")){var J=C.replace(/(page\=)(\d*)/,"$1"+(++E));
G.showLoadBusy();
A(".unanswered").removeClass("unanswered");
$j.get($j.param.querystring(J,{"ajax":"true"}),{},function(K){var L=$j(K).insertAfter("#questionBlock .q:last");
G.showLoadDone();
$j.bbq.pushState({"pg":E},0);
if(E>=F){G.hide();
}if(A("#browseUnanswered").length>0){H++;
if(A(".unanswered").length===0&&H>=2){G.hide();
}else{if(A(".unanswered").length===0){G.click();
}else{H=0;
}}}});
}});
});
}}}};
})(jQuery);
(function(A){A.fn.showLoadBusy=function(){return this.each(function(){var C=$j(this);
if(C.length&&($j(this).css("display")!="none")){$j(this).data("isBusy",true);
var B=C.find(".lmore-action");
B.removeClass("dwnarrow");
B.addClass("lmore-spinner");
C.css("cursor","default");
}});
};
})(jQuery);
(function(A){A.fn.showLoadDone=function(){return this.each(function(){var C=$j(this);
if(C.length&&($j(this).css("display")!="none")){$j(this).removeData("isBusy");
var B=C.find(".lmore-action");
B.removeClass("lmore-spinner");
B.addClass("dwnarrow");
C.css("cursor","pointer");
}});
};
})(jQuery);

JASK.namespace("question");
JASK.question.bindLoadMore=function bindLoadMore(A){$j(A).ja_loadMoreButton();
var B=true;
};

$j(document).ready(function(){$j("#emailAddressTextResend").focus();
$j(".resetPwdBtn").click(function(){var C=JASK.cfg.protocol+"://"+JASK.cfg.secureDomain+"/ja-change-password?callback=?";
var B=$j.serializeObject($j("#confirmPassword"));
B["engine_id"]="confirmPassword";
var D=B["newPwd"];
var A=B["confirmPwd"];
$j("#errorBlock").css("display","none");
if(($j.trim(D).length==0)||(D==null)||(D=="")||(A==null)||(A=="")||($j.trim(A).length==0)||($j.trim(A).length==0)){JASK.showValidateMsg("error","#errorBlock","Passwords cannot be null");
return false;
}if(D.match(/[ ]/)||D.match(/[ ]/)){JASK.showValidateMsg("error","#errorBlock","Passwords cannot have spaces");
return false;
}if(D!=A){JASK.showValidateMsg("error","#errorBlock","Passwords do not match");
return false;
}if(D.length<6){JASK.showValidateMsg("error","#errorBlock","Password should have a minimum of 6 characters");
return false;
}$j.getJSON(C,B,function(E){if(E&&E.status["@code"]==100){$j("#changePwdForm").hide();
$j("#resetConfirmationForm").show();
}else{JASK.showValidateMsg("error","#errorBlock","Password has not been reset");
return false;
}});
});
$j(".continueBtn").click(function(){var A="http://"+JASK.cfg._ldomain+"/answers";
window.location=A;
});
$j("#failureConfirmation").submit(function(A){A.preventDefault();
});
$j(".resendBtn").click(function(){if($j("#emailAddressTextResend").val().match(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/)){$j.post($j("#failureConfirmation").attr("action"),{"email":$j("#emailAddressTextResend").val(),"engine_id":"reset"},function(A){if(A&&A.status["@code"]==100){window.location="http://"+JASK.cfg._ldomain;
}},"json");
}else{JASK.showValidateMsg("error","#errorText","Invalid email format");
return false;
}return true;
});
$j("#failureConfirmation").keyup(function(B){var A=(B.keyCode?B.keyCode:B.which);
if(A==13){B.preventDefault();
$j(".resendBtn").click();
}});
});

$j(document).bind("login",function(){window.location.reload();
});
$j(document).bind("logout",function(){window.location.reload();
});
$j(function(){var A=$j("#qtxt");
A.bind("updateCharCount",JASK.question.charLimit);
A.focus(function(){A.trigger("updateCharCount");
A.keyup(JASK.question.charLimit);
});
A.autoResize({extraSpace:0}).keyup();
});
$j(document).ready(function(){$j(".quickanswerbox").live("keypress",function(A){if($j(this).data("events")==undefined||$j(this).data("events").keypress==undefined){$j(this).autoResize();
JASK.answer.bindQuickAnswerSpellCheck(this.id);
}});
$j(".labeledBox").each(function(B,C){var A=$j(C);
if(A.data("unmodified")==true){JASK.answer.resetTxtBox(A,A.data("label"));
}});
$j(".labeledBox").live("keypress",function(A){if($j(this).data("unmodified")==true){$j(this).data("unmodified",false);
}});
$j(".quickanswerbox .labeledBox").live("blur",function(B){var A=$j(this);
if(A.val()==""){JASK.answer.resetTxtBox(A,A.data("label"));
}});
$j(".labeledBox").live("focus",function(){var A=$j(this);
if(A.data("unmodified")==true){JASK.answer.readyTxtBox(A);
}$j(".quickanswerfrm").each(function(){var B=$j(this).find(".quickanswerbox");
if(!B.is(A)&&(B.val()==""||B.data("unmodified")==true)){$j(this).find(".quickansweraction").hide();
}else{$j(this).find(".quickansweraction").show();
}});
});
$j(".quickanswerbtn").quickSubmitAnswer();
$j(".quickanswerclear").live("click",function(B){B.preventDefault();
$j(this).closest("form").find(".quickansweraction").slideUp();
var C=$j(this).attr("id").split("-")[1];
var A=$j("#quickanswertxt-"+C);
$j("#quickanswererr-"+C).html("");
JASK.question.hideToolTip();
JASK.answer.resetTxtBox(A,A.data("label"));
});
});

JASK.namespace("signin");
JASK.signin.changeState=(function(){function A(){$j("#lnvConnMod").load(JASK.cfg.ldomain+"/ja-following-update?rnd="+new Date().getTime()+"&lnvConnMod=1&maxconn=24").show();
}return{signedIn:function(){JASK.nanoMe.signedIn();
A();
},signedOut:function(){JASK.nanoMe.signedOut();
},getConnections:function(){A();
}};
})();

eval(function(E,A,F,B,D,C){D=function(G){return(G<A?"":D(parseInt(G/A)))+((G=G%A)>35?String.fromCharCode(G+29):G.toString(36));
};
if(!"".replace(/^/,String)){while(F--){C[D(F)]=B[F]||D(F);
}B=[function(G){return C[G];
}];
D=function(){return"\\w+";
};
F=1;
}while(F--){if(B[F]){E=E.replace(new RegExp("\\b"+D(F)+"\\b","g"),B[F]);
}}return E;
}("(E($){7($.1M.1G)H;$.1M.1G=E(r,u){7(1a.Q==0){12(I,'4S 3Z 5Y 1r \"'+1a.3z+'\".');H 1a}7(1a.Q>1){H 1a.1P(E(){$(1a).1G(r,u)})}8 w=1a,$18=1a[0];w.41=E(o,b,c){o=3A($18,o);7(o.12){D.12=o.12;12(D,'5Z \"12\" 60 4T 4U 61 36 62 63 42-1e.')}8 e=['9','1c','T','X','Z','13'];1r(8 a=0,l=e.Q;a<l;a++){o[e[a]]=3A($18,o[e[a]])}7(F o.1c=='11'){7(o.1c<=50)o.1c={'9':o.1c};N o.1c={'1f':o.1c}}N{7(F o.1c=='1l')o.1c={'1x':o.1c}}7(F o.9=='11')o.9={'M':o.9};N 7(o.9=='15')o.9={'M':o.9,'O':o.9,'1n':o.9};7(F o.9!='1e')o.9={};7(b)2v=$.26(I,{},$.1M.1G.43,o);6=$.26(I,{},$.1M.1G.43,o);7(F 6.9.16!='1e')6.9.16={};7(6.9.2w==0&&F c=='11'){6.9.2w=c}z.27=(6.27=='44'||6.27=='1o')?'Z':'X';8 f=[['O','3B','28','1n','4V','2x','1o','2y','1s',0,1,2,3],['1n','4V','2x','O','3B','28','2y','1o','3C',3,2,1,0]];8 g=f[0].Q,4W=(6.27=='2z'||6.27=='1o')?0:1;6.d={};1r(8 d=0;d<g;d++){6.d[f[0][d]]=f[4W][d]}8 h=w.U();7(6[6.d['O']]=='T'){8 i=3D(h,6,'28');6[6.d['O']]=i}7(6[6.d['1n']]=='T'){8 i=3D(h,6,'2x');6[6.d['1n']]=i}7(!6.9[6.d['O']]){6.9[6.d['O']]=(45(h,6,'28'))?'15':h[6.d['28']](I)}7(!6.9[6.d['1n']]){6.9[6.d['1n']]=(45(h,6,'2x'))?'15':h[6.d['2x']](I)}7(!6[6.d['1n']]){6[6.d['1n']]=6.9[6.d['1n']]}7(F 6.9.M=='1e'){6.9.16.2J=6.9.M.2J;6.9.16.29=6.9.M.29;6.9.M=K}7(F 6.9.M=='1l'){6.9.16.3a=6.9.M;6.9.M=K}7(!6.9.M){7(6.9[6.d['O']]=='15'){6.9.16.15=I}7(!6.9.16.15){7(F 6[6.d['O']]=='11'){6.9.M=1H.3b(6[6.d['O']]/6.9[6.d['O']])}N{8 j=46($1E.3E(),6,'3B');6.9.M=1H.3b(j/6.9[6.d['O']]);6[6.d['O']]=6.9.M*6.9[6.d['O']];7(!6.9.16.3a)6.1y=K}7(6.9.M=='64'||6.9.M<1){12(I,'1V a 47 11 3c M 9: 65 36 \"15\".');6.9.16.15=I}}}7(!6[6.d['O']]){7(!6.9.16.15&&6.9[6.d['O']]!='15'){6[6.d['O']]=6.9.M*6.9[6.d['O']];6.1y=K}N{6[6.d['O']]='15'}}7(6.9.16.15){6.3F=(6[6.d['O']]=='15')?46($1E.3E(),6,'3B'):6[6.d['O']];7(6.1y===K){6[6.d['O']]='15'}6.9.M=2K(h,6,0);7(6.9.M>J.P){6.9.M=J.P}}7(F 6.1b=='1z'){6.1b=0}7(F 6.1y=='1z'){6.1y=(6[6.d['O']]=='15')?K:'48'}6.9.M=3G(6.9.M,6,6.9.16.3a);6.9.16.2a=6.9.M;6.1i=K;6.1b=4X(6.1b);7(6.1y=='2y')6.1y='1o';7(6.1y=='4a')6.1y='2z';1u(6.1y){R'48':R'1o':R'2z':7(6[6.d['O']]!='15'){8 p=3H(2L(h,6),6);6.1i=I;6.1b[6.d[1]]=p[1];6.1b[6.d[3]]=p[0]}14;2A:6.1y=K;6.1i=(6.1b[0]==0&&6.1b[1]==0&&6.1b[2]==0&&6.1b[3]==0)?K:I;14}7(F 6.1Q=='1j'&&6.1Q)6.1Q='66'+w.67('68');7(F 6.9.2M!='11')6.9.2M=6.9.M;7(F 6.1c.1f!='11')6.1c.1f=4Y;7(F 6.1c.9!='11'){7(6.1c.9!='4b'&&6.1c.9!='M'){6.1c.9=(6.9.16.15)?'15':6.9.M}}6.T=3d($18,6.T,'T');6.X=3d($18,6.X);6.Z=3d($18,6.Z);6.13=3d($18,6.13,'13');6.T=$.26(I,{},6.1c,6.T);6.X=$.26(I,{},6.1c,6.X);6.Z=$.26(I,{},6.1c,6.Z);6.13=$.26(I,{},6.1c,6.13);7(F 6.13.3I!='1j')6.13.3I=K;7(F 6.13.4c!='E')6.13.4c=$.1M.1G.4Z;7(F 6.T.1B!='1j')6.T.1B=I;7(F 6.T.4d!='11')6.T.4d=0;7(F 6.T.2N!='11')6.T.2N=(6.T.1f<10)?69:6.T.1f*5;6.T.1N=(6.T.1N)?6.T.1N.6a():'';7(6.1W){6.1W=4e(6.1W)}7(D.12){12(D,'2O O: '+6.O);12(D,'2O 1n: '+6.1n);7(6[6.d['O']]=='15')12(D,'6b '+6.d['O']+': '+6.3F);12(D,'51 6c: '+6.9.O);12(D,'51 6d: '+6.9.1n);12(D,'3J 3c 9 M: '+6.9.M);7(6.T.1B)12(D,'3J 3c 9 4f 6e: '+6.T.9);7(6.X.1d)12(D,'3J 3c 9 4f 52: '+6.X.9);7(6.Z.1d)12(D,'3J 3c 9 4f 53: '+6.Z.9)}};w.54=E(){w.1p('4g',I);7(w.V('2h')=='3K'||w.V('2h')=='6f'){12(D,'6g 6h-6i \"2h\" 4T 4U \"6j\" 55 \"56\".')}8 a={'4h':w.V('4h'),'2h':w.V('2h'),'2y':w.V('2y'),'2z':w.V('2z'),'4a':w.V('4a'),'1o':w.V('1o'),'O':w.V('O'),'1n':w.V('1n'),'4i':w.V('4i'),'1s':w.V('1s'),'3C':w.V('3C'),'4j':w.V('4j')};$1E.V(a).V({'6k':'2P','2h':(a.2h=='3K')?'3K':'56'});w.1p('57',a).V({'4h':'3L','2h':'3K','2y':0,'1o':0,'4i':0,'1s':0,'3C':0,'4j':0});7(6.1i){w.U().1P(E(){8 m=2b($(1a).V(6.d['1s']));7(2i(m))m=0;$(1a).1p('1I',m)})}};w.59=E(){w.4k();w.W(G('4l',D),E(e,a){e.19();z.1X=I;7(6.T.1B){6.T.1B=K;w.S(G('2Q',D),a)}H I});w.W(G('5a',D),E(e){e.19();7(z.1J){3e(L)}H I});w.W(G('2Q',D),E(e,a,b){e.19();1t=2R(1t);7(a&&z.1J){L.1X=I;8 c=2j()-L.2B;L.1f-=c;7(L.1g)L.1g.1f-=c;7(L.1F)L.1F.1f-=c;3e(L,K)}7(!z.2k&&!z.1J){7(b)1t.3f+=2j()-1t.2B}z.2k=I;7(6.T.5b){8 d=6.T.2N-1t.3f,3g=3M-1H.2S(d*3M/6.T.2N);6.T.5b.1v($18,3g,d)}H I});w.W(G('1B',D),E(e,b,c,d){e.19();1t=2R(1t);8 v=[b,c,d],t=['1l','11','1j'],a=2T(v,t);8 b=a[0],c=a[1],d=a[2];7(b!='X'&&b!='Z')b=z.27;7(F c!='11')c=0;7(F d!='1j')d=K;7(d){z.1X=K;6.T.1B=I}7(!6.T.1B){e.1R();H 12(D,'2O 5c: 1V 2C.')}z.2k=K;1t.2B=2j();8 f=6.T.2N+c;3h=f-1t.3f;3g=3M-1H.2S(3h*3M/f);1t.T=6l(E(){7(6.T.5d){6.T.5d.1v($18,3g,3h)}7(z.1J){w.S(G('1B',D),b)}N{w.S(G(b,D),6.T)}},3h);7(6.T.5e){6.T.5e.1v($18,3g,3h)}H I});w.W(G('2D',D),E(e){e.19();7(L.1X){L.1X=K;z.2k=K;z.1J=I;L.2B=2j();1Y(L)}N{w.S(G('1B',D))}H I});w.W(G('X',D)+' '+G('Z',D),E(e,b,f,g){e.19();7(z.1X||w.5f(':2P')){e.1R();H 12(D,'2O 5c 55 2P: 1V 2C.')}8 v=[b,f,g],t=['1e','11/1l','E'],a=2T(v,t);8 b=a[0],f=a[1],g=a[2];8 h=e.4m.4n(D.2U.3i.Q);7(F b!='1e'||b==2c)b=6[h];7(F g=='E')b.1S=g;7(F f!='11'){8 i=[f,b.9,6[h].9];1r(8 a=0,l=i.Q;a<l;a++){7(F i[a]=='11'||i[a]=='4b'||i[a]=='M'){f=i[a];14}}7(f=='4b'){e.1R();H w.1A(h+'6m',[b,g])}7(f=='M'){7(!6.9.16.15)f=6.9.M}}7(L.1X){w.S(G('2D',D));w.S(G('2V',D),[h,[b,f,g]]);e.1R();H 12(D,'2O 6n 2C.')}7(6.9.2M>=J.P){e.1R();H 12(D,'1V 5g 9 ('+J.P+', '+6.9.2M+' 5h): 1V 2C.')}7(b.1f>0){7(z.1J){7(b.2V)w.S(G('2V',D),[h,[b,f,g]]);e.1R();H 12(D,'2O 6o 2C.')}}7(b.4o&&!b.4o.1v($18)){e.1R();H 12(D,'6p \"4o\" 6q K.')}1t.3f=0;w.S('5i'+h,[b,f]);7(6.1W){8 s=6.1W,c=[b,f];1r(8 j=0,l=s.Q;j<l;j++){8 d=h;7(!s[j][1])c[0]=s[j][0].1A('5j',h);7(!s[j][2])d=(d=='X')?'Z':'X';c[1]=f+s[j][3];s[j][0].S('5i'+d,c)}}H I});w.W(G('6r',D,K),E(e,f,g){e.19();8 h=w.U();7(!6.1T){7(J.Y==0){7(6.2W){w.S(G('Z',D),J.P-1)}H e.1R()}}7(6.1i)1C(h,6);7(F g!='11'){7(6.9.16.15){g=4p(h,6,J.P-1)}N{g=6.9.M}}7(!6.1T){7(J.P-g<J.Y){g=J.P-J.Y}}7(6.9.16.15){8 i=2K(h,6,J.P-g);7(6.9.M+g<=i&&g<J.P){g++;i=2K(h,6,J.P-g)}6.9.16.2a=6.9.M;6.9.M=3G(i,6,6.9.16.3a)}7(6.1i)1C(h,6,I);7(g==0){e.1R();H 12(D,'0 9 36 1c: 1V 2C.')}12(D,'5k '+g+' 9 52.');J.Y+=g;2l(J.Y>=J.P)J.Y-=J.P;7(!6.1T){7(J.Y==0&&f.3N)f.3N.1v($18);7(!6.2W)2E(6,J.Y)}w.U().1k(J.P-g).6s(w);7(J.P<6.9.M+g){w.U().1k(0,(6.9.M+g)-J.P).3O(I).3j(w)}8 h=w.U(),2d=5l(h,6,g),1K=5m(h,6),2e=h.1Z(g-1),20=2d.2F(),2f=1K.2F();7(6.1i)1C(h,6);7(6.1y)8 p=3H(1K,6);7(f.1w=='5n'&&6.9.M<g){8 j=h.1k(6.9.16.2a,g).3k(),3P=6.9[6.d['O']];6.9[6.d['O']]='15'}N{8 j=K}8 k=2X(h.1k(0,g),6,'O'),21=3Q(2m(1K,6,I),6,!6.1i);7(j)6.9[6.d['O']]=3P;7(6.1i){1C(h,6,I);1C(20,6,6.1b[6.d[1]]);1C(2e,6,6.1b[6.d[3]])}7(6.1y){6.1b[6.d[1]]=p[1];6.1b[6.d[3]]=p[0]}8 l={},4q={},2Y={},2Z={},1m=f.1f;7(f.1w=='3L')1m=0;N 7(1m=='T')1m=6.1c.1f/6.1c.9*g;N 7(1m<=0)1m=0;N 7(1m<10)1m=k/1m;L=1U(1m,f.1x);7(6[6.d['O']]=='15'||6[6.d['1n']]=='15'){L.17.1h([$1E,21])}7(6.1i){8 m=6.1b[6.d[3]];2Y[6.d['1s']]=2e.1p('1I');4q[6.d['1s']]=2f.1p('1I')+6.1b[6.d[1]];2Z[6.d['1s']]=20.1p('1I');7(2f.4r(2e).Q){L.17.1h([2e,2Y])}7(2f.4r(20).Q){L.17.1h([20,2Z])}L.17.1h([2f,4q])}N{8 m=0}l[6.d['1o']]=m;8 n=[2d,1K,21,1m];7(f.22)f.22.3l($18,n);1O.22=3m(1O.22,$18,n);1u(f.1w){R'2n':R'23':R'2o':R'24':L.1g=1U(L.1f,L.1x);L.1F=1U(L.1f,L.1x);L.1f=0;14}1u(f.1w){R'23':R'2o':R'24':8 o=w.3O().3j($1E);14}1u(f.1w){R'24':o.U().1k(0,g).1D();R'23':R'2o':o.U().1k(6.9.M).1D();14}1u(f.1w){R'2n':L.1g.17.1h([w,{'25':0}]);14;R'23':o.V({'25':0});L.1g.17.1h([w,{'O':'+=0'},E(){o.1D()}]);L.1F.17.1h([o,{'25':1}]);14;R'2o':L=4s(L,w,o,6,I);14;R'24':L=4t(L,w,o,6,I,g);14}8 q=E(){8 b=6.9.M+g-J.P;7(b>0){w.U().1k(J.P).1D();2d=w.U().1k(J.P-(g-b)).5o().6t(w.U().1k(0,b).5o())}7(j)j.3n();7(6.1i){8 c=w.U().1Z(6.9.M+g-1);c.V(6.d['1s'],c.1p('1I'))}L.17=[];7(L.1g)L.1g=1U(L.4u,L.1x);8 d=E(){1u(f.1w){R'2n':R'23':w.V('5p','');14}L.1F=1U(0,2c);z.1J=K;8 a=[2d,1K,21];7(f.1S)f.1S.3l($18,a);1O.1S=3m(1O.1S,$18,a);7(1L.Q){w.S(G(1L[0][0],D),1L[0][1]);1L.5q()}7(!z.2k)w.S(G('1B',D))};1u(f.1w){R'2n':L.1g.17.1h([w,{'25':1},d]);1Y(L.1g);14;R'24':L.1g.17.1h([w,{'O':'+=0'},d]);1Y(L.1g);14;2A:d();14}};L.17.1h([w,l,q]);z.1J=I;w.V(6.d['1o'],-k);1t=2R(1t);1Y(L);4v(6.1Q,w.1A(G('3o',D)));w.S(G('2G',D),[K,21]);H I});w.W(G('6u',D,K),E(e,f,g){e.19();8 h=w.U();7(!6.1T){7(J.Y==6.9.M){7(6.2W){w.S(G('X',D),J.P-1)}H e.1R()}}7(6.1i)1C(h,6);7(F g!='11'){g=6.9.M}8 i=(J.Y==0)?J.P:J.Y;7(!6.1T){7(6.9.16.15){8 j=2K(h,6,g),4w=4p(h,6,i-1)}N{8 j=6.9.M,4w=6.9.M}7(g+j>i){g=i-4w}}7(6.9.16.15){8 j=4x(h,6,g,i);2l(6.9.M-g>=j&&g<J.P){g++;j=4x(h,6,g,i)}6.9.16.2a=6.9.M;6.9.M=3G(j,6,6.9.16.3a)}7(6.1i)1C(h,6,I);7(g==0){e.1R();H 12(D,'0 9 36 1c: 1V 2C.')}12(D,'5k '+g+' 9 53.');J.Y-=g;2l(J.Y<0)J.Y+=J.P;7(!6.1T){7(J.Y==6.9.M&&f.3N)f.3N.1v($18);7(!6.2W)2E(6,J.Y)}7(J.P<6.9.M+g){w.U().1k(0,(6.9.M+g)-J.P).3O(I).3j(w)}8 h=w.U(),2d=4y(h,6),1K=4z(h,6,g),2e=h.1Z(g-1),20=2d.2F(),2f=1K.2F();7(6.1i)1C(h,6);7(6.1y)8 p=3H(1K,6);7(f.1w=='5n'&&6.9.16.2a<g){8 k=h.1k(6.9.16.2a,g).3k(),3P=6.9[6.d['O']];6.9[6.d['O']]='15'}N{8 k=K}8 l=2X(h.1k(0,g),6,'O'),21=3Q(2m(1K,6,I),6,!6.1i);7(k)6.9[6.d['O']]=3P;7(6.1i){1C(h,6,I);1C(20,6,6.1b[6.d[1]]);1C(2f,6,6.1b[6.d[1]])}7(6.1y){6.1b[6.d[1]]=p[1];6.1b[6.d[3]]=p[0]}8 m={},2Z={},2Y={},1m=f.1f;7(f.1w=='3L')1m=0;N 7(1m=='T')1m=6.1c.1f/6.1c.9*g;N 7(1m<=0)1m=0;N 7(1m<10)1m=l/1m;L=1U(1m,f.1x);7(6[6.d['O']]=='15'||6[6.d['1n']]=='15'){L.17.1h([$1E,21])}7(6.1i){2Z[6.d['1s']]=20.1p('1I');2Y[6.d['1s']]=2e.1p('1I')+6.1b[6.d[3]];2f.V(6.d['1s'],2f.1p('1I')+6.1b[6.d[1]]);7(2e.4r(20).Q){L.17.1h([20,2Z])}L.17.1h([2e,2Y])}m[6.d['1o']]=-l;8 n=[2d,1K,21,1m];7(f.22)f.22.3l($18,n);1O.22=3m(1O.22,$18,n);1u(f.1w){R'2n':R'23':R'2o':R'24':L.1g=1U(L.1f,L.1x);L.1F=1U(L.1f,L.1x);L.1f=0;14}1u(f.1w){R'23':R'2o':R'24':8 o=w.3O().3j($1E);14}1u(f.1w){R'24':o.U().1k(6.9.16.2a).1D();14;R'23':R'2o':o.U().1k(0,g).1D();o.U().1k(6.9.M).1D();14}1u(f.1w){R'2n':L.1g.17.1h([w,{'25':0}]);14;R'23':o.V({'25':0});L.1g.17.1h([w,{'O':'+=0'},E(){o.1D()}]);L.1F.17.1h([o,{'25':1}]);14;R'2o':L=4s(L,w,o,6,K);14;R'24':L=4t(L,w,o,6,K,g);14}8 q=E(){8 b=6.9.M+g-J.P,5r=(6.1i)?6.1b[6.d[3]]:0;w.V(6.d['1o'],5r);7(b>0){w.U().1k(J.P).1D()}8 c=w.U().1k(0,g).3j(w).2F();7(b>0){1K=2L(h,6)}7(k)k.3n();7(6.1i){7(J.P<6.9.M+g){8 d=w.U().1Z(6.9.M-1);d.V(6.d['1s'],d.1p('1I')+6.1b[6.d[3]])}c.V(6.d['1s'],c.1p('1I'))}L.17=[];7(L.1g)L.1g=1U(L.4u,L.1x);8 e=E(){1u(f.1w){R'2n':R'23':w.V('5p','');14}L.1F=1U(0,2c);z.1J=K;8 a=[2d,1K,21];7(f.1S)f.1S.3l($18,a);1O.1S=3m(1O.1S,$18,a);7(1L.Q){w.S(G(1L[0][0],D),1L[0][1]);1L.5q()}7(!z.2k)w.S(G('1B',D))};1u(f.1w){R'2n':L.1g.17.1h([w,{'25':1},e]);1Y(L.1g);14;R'24':L.1g.17.1h([w,{'O':'+=0'},e]);1Y(L.1g);14;2A:e();14}};L.17.1h([w,m,q]);z.1J=I;1t=2R(1t);1Y(L);4v(6.1Q,w.1A(G('3o',D)));w.S(G('2G',D),[K,21]);H I});w.W(G('2H',D),E(e,b,c,d,f,g,h){e.19();8 v=[b,c,d,f,g,h],t=['1l/11/1e','11','1j','1e','1l','E'],a=2T(v,t);8 f=a[3],g=a[4],h=a[5];b=31(a[0],a[1],a[2],J,w);7(b==0)H;7(F f!='1e')f=K;7(z.1J){7(F f!='1e'||f.1f>0)H K}7(g!='X'&&g!='Z'){7(6.1T){7(b<=J.P/2)g='Z';N g='X'}N{7(J.Y==0||J.Y>b)g='Z';N g='X'}}7(g=='X')b=J.P-b;w.S(G(g,D),[f,b,h]);H I});w.W(G('6v',D),E(e,a,b){e.19();8 c=w.1A(G('3p',D));H w.1A(G('4A',D),[c-1,a,'X',b])});w.W(G('6w',D),E(e,a,b){e.19();8 c=w.1A(G('3p',D));H w.1A(G('4A',D),[c+1,a,'Z',b])});w.W(G('4A',D),E(e,a,b,c,d){e.19();7(F a!='11')a=w.1A(G('3p',D));8 f=6.13.9||6.9.M,29=1H.3b(J.P/f);7(a<0)a=29;7(a>29)a=0;H w.1A(G('2H',D),[a*f,0,I,b,c,d])});w.W(G('5s',D),E(e,s){e.19();7(s)s=31(s,0,I,J,w);N s=0;s+=J.Y;7(s!=0){2l(s>J.P)s-=J.P;w.6x(w.U().1k(s))}H I});w.W(G('1W',D),E(e,s){e.19();7(s)s=4e(s);N 7(6.1W)s=6.1W;N H 12(D,'4S 6y 36 1W.');8 n=w.1A(G('3o',D)),x=I;1r(8 j=0,l=s.Q;j<l;j++){7(!s[j][0].1A(G('2H',D),[n,s[j][3],I])){x=K}}H x});w.W(G('2V',D),E(e,a,b){e.19();7(F a=='E'){a.1v($18,1L)}N 7(32(a)){1L=a}N 7(F a!='1z'){1L.1h([a,b])}H 1L});w.W(G('6z',D),E(e,b,c,d,f){e.19();8 v=[b,c,d,f],t=['1l/1e','1l/11/1e','1j','11'],a=2T(v,t);8 b=a[0],c=a[1],d=a[2],f=a[3];7(F b=='1e'&&F b.3q=='1z')b=$(b);7(F b=='1l')b=$(b);7(F b!='1e'||F b.3q=='1z'||b.Q==0)H 12(D,'1V a 47 1e.');7(F c=='1z')c='3R';7(6.1i){b.1P(E(){8 m=2b($(1a).V(6.d['1s']));7(2i(m))m=0;$(1a).1p('1I',m)})}8 g=c,3r='3r';7(c=='3R'){7(d){7(J.Y==0){c=J.P-1;3r='5t'}N{c=J.Y;J.Y+=b.Q}7(c<0)c=0}N{c=J.P-1;3r='5t'}}N{c=31(c,f,d,J,w)}7(g!='3R'&&!d){7(c<J.Y)J.Y+=b.Q}7(J.Y>=J.P)J.Y-=J.P;8 h=w.U().1Z(c);7(h.Q){h[3r](b)}N{w.5u(b)}J.P=w.U().Q;8 i=3s(w,6);3t(6,J.P,D);2E(6,J.Y);w.S(G('4B',D));w.S(G('2G',D),[I,i]);H I});w.W(G('6A',D),E(e,b,c,d){e.19();8 v=[b,c,d],t=['1l/11/1e','1j','11'],a=2T(v,t);8 b=a[0],c=a[1],d=a[2];7(F b=='1z'||b=='3R'){w.U().2F().1D()}N{b=31(b,d,c,J,w);8 f=w.U().1Z(b);7(f.Q){7(b<J.Y)J.Y-=f.Q;f.1D()}}J.P=w.U().Q;8 g=3s(w,6);3t(6,J.P,D);2E(6,J.Y);w.S(G('2G',D),[I,g]);H I});w.W(G('22',D)+' '+G('1S',D),E(e,a){e.19();8 b=e.4m.4n(D.2U.3i.Q);7(32(a))1O[b]=a;7(F a=='E')1O[b].1h(a);H 1O[b]});w.W(G('5v',D,K),E(e,a){e.19();H w.1A(G('3o',D),a)});w.W(G('3o',D),E(e,a){e.19();7(J.Y==0)8 b=0;N 8 b=J.P-J.Y;7(F a=='E')a.1v($18,b);H b});w.W(G('3p',D),E(e,a){e.19();8 b=6.13.9||6.9.M;8 c=1H.2S(J.P/b-1);7(J.Y==0)8 d=0;N 7(J.Y<J.P%b)8 d=0;N 7(J.Y==b&&!6.1T)8 d=c;N 8 d=1H.6B((J.P-J.Y)/b);7(d<0)d=0;7(d>c)d=c;7(F a=='E')a.1v($18,d);H d});w.W(G('6C',D),E(e,a){e.19();$i=2L(w.U(),6);7(F a=='E')a.1v($18,$i);H $i});w.W(G('2k',D)+' '+G('1X',D)+' '+G('1J',D),E(e,a){e.19();8 b=e.4m.4n(D.2U.3i.Q);7(F a=='E')a.1v($18,z[b]);H z[b]});w.W(G('5j',D,K),E(e,a,b,c){e.19();H w.1A(G('42',D),[a,b,c])});w.W(G('42',D),E(e,a,b,c){e.19();8 d=K;7(F a=='E'){a.1v($18,6)}N 7(F a=='1e'){2v=$.26(I,{},2v,a);7(b!==K)d=I;N 6=$.26(I,{},6,a)}N 7(F a!='1z'){7(F b=='E'){8 f=3S('6.'+a);7(F f=='1z')f='';b.1v($18,f)}N 7(F b!='1z'){7(F c!=='1j')c=I;3S('2v.'+a+' = b');7(c!==K)d=I;N 3S('6.'+a+' = b')}N{H 3S('6.'+a)}}7(d){1C(w.U(),6);w.41(2v);w.4C();8 g=3s(w,6);w.S(G('2G',D),[I,g])}H 6});w.W(G('4B',D),E(e,a,b){e.19();7(F a=='1z'||a.Q==0)a=$('6D');N 7(F a=='1l')a=$(a);7(F a!='1e')H 12(D,'1V a 47 1e.');7(F b!='1l'||b.Q==0)b='a.5w';a.6E(b).1P(E(){8 h=1a.5x||'';7(h.Q>0&&w.U().5y($(h))!=-1){$(1a).2p('4D').4D(E(e){e.2g();w.S(G('2H',D),h)})}});H I});w.W(G('2G',D),E(e,b,c){e.19();7(!6.13.1q)H;7(F b=='1j'&&b){6.13.1q.U().1D();8 d=6.13.9||6.9.M;1r(8 a=0,l=1H.2S(J.P/d);a<l;a++){8 i=w.U().1Z(31(a*d,0,I,J,w));6.13.1q.5u(6.13.4c(a+1,i))}6.13.1q.1P(E(){$(1a).U().2p(6.13.3u).1P(E(a){$(1a).W(6.13.3u,E(e){e.2g();w.S(G('2H',D),[a*d,0,I,6.13])})})})}6.13.1q.1P(E(){$(1a).U().33('5z').1Z(w.1A(G('3p',D))).3v('5z')});H I});w.W(G('5A',D,K),E(e,a){e.19();w.S(G('5B',D),a);H I});w.W(G('5B',D),E(e,a){e.19();1t=2R(1t);w.1p('4g',K);w.S(G('5a',D));7(a){w.S(G('5s',D))}7(6.1i){1C(w.U(),6)}w.V(w.1p('57'));w.4k();w.4E();$1E.6F(w);H I})};w.4k=E(){w.2p(G('',D,K))};w.4C=E(){w.4E();3t(6,J.P,D);2E(6,J.Y);7(6.T.1N){8 c=3w(6.T.1N);$1E.W(G('3T',D,K),E(){w.S(G('2Q',D),[c[0],c[1]])}).W(G('3U',D,K),E(){w.S(G('2D',D))})}7(6.X.1d){6.X.1d.W(G(6.X.3u,D,K),E(e){e.2g();w.S(G('X',D))});7(6.X.1N){8 c=3w(6.X.1N);6.X.1d.W(G('3T',D,K),E(){w.S(G('2Q',D),[c[0],c[1]])}).W(G('3U',D,K),E(){w.S(G('2D',D))})}}7(6.Z.1d){6.Z.1d.W(G(6.Z.3u,D,K),E(e){e.2g();w.S(G('Z',D))});7(6.Z.1N){8 c=3w(6.Z.1N);6.Z.1d.W(G('3T',D,K),E(){w.S(G('2Q',D),[c[0],c[1]])}).W(G('3U',D,K),E(){w.S(G('2D',D))})}}7($.1M.2q){7(6.X.2q){7(!z.4F){z.4F=I;$1E.2q(E(e,a){7(a>0){e.2g();8 b=4G(6.X.2q);w.S(G('X',D),b)}})}}7(6.Z.2q){7(!z.4H){z.4H=I;$1E.2q(E(e,a){7(a<0){e.2g();8 b=4G(6.Z.2q);w.S(G('Z',D),b)}})}}}7($.1M.3x){8 d=(6.X.4I)?E(){w.S(G('X',D))}:2c,3y=(6.Z.4I)?E(){w.S(G('Z',D))}:2c;7(3y||3y){7(!z.3x){z.3x=I;8 f={'6G':30,'6H':30,'6I':I};1u(6.27){R'44':R'5C':f.6J=3y;f.6K=d;14;2A:f.6L=3y;f.6M=d}$1E.3x(f)}}}7(6.13.1q){7(6.13.1N){8 c=3w(6.13.1N);6.13.1q.W(G('3T',D,K),E(){w.S(G('2Q',D),[c[0],c[1]])}).W(G('3U',D,K),E(){w.S(G('2D',D))})}}7(6.X.2r||6.Z.2r){$(34).W(G('5D',D,K),E(e){8 k=e.5E;7(k==6.Z.2r){e.2g();w.S(G('Z',D))}7(k==6.X.2r){e.2g();w.S(G('X',D))}})}7(6.13.3I){$(34).W(G('5D',D,K),E(e){8 k=e.5E;7(k>=49&&k<58){k=(k-49)*6.9.M;7(k<=J.P){e.2g();w.S(G('2H',D),[k,0,I,6.13])}}})}7(6.T.1B){w.S(G('1B',D),6.T.4d)}};w.4E=E(){$(34).2p(G('',D,K));$1E.2p(G('',D,K));7(6.X.1d)6.X.1d.2p(G('',D,K));7(6.Z.1d)6.Z.1d.2p(G('',D,K));7(6.13.1q)6.13.1q.2p(G('',D,K));3t(6,'3k',D);2E(6,'33');7(6.13.1q){6.13.1q.U().1D()}};7(w.1p('4g')){8 y=w.1A('5v');w.S('5A',I)}N{8 y=K}8 z={'27':'Z','2k':I,'1J':K,'1X':K,'4H':K,'4F':K,'3x':K},J={'P':w.U().Q,'Y':0},1t={'6N':2c,'T':2c,'2V':2c,'2B':2j(),'3f':0},L={'1X':K,'1f':0,'2B':0,'1x':'','17':[]},1O={'22':[],'1S':[]},1L=[],D=$.26(I,{},$.1M.1G.5F,u),6={},2v=r,$1E=w.6O('<'+D.4J.3Z+' 6P=\"'+D.4J.5G+'\" />').3E();D.3z=w.3z;w.41(2v,I,y);w.54();w.59();w.4C();7(6.1Q){6.9.2w=5H(6.1Q);8 A=6.1Q+'=';8 B=34.1Q.2I(';');1r(8 a=0,l=B.Q;a<l;a++){8 c=B[a];2l(c.5I(0)==' '){c=c.3V(1,c.Q)}7(c.2s(A)==0){6.9.2w=c.3V(A.Q,c.Q);14}}}7(6.9.2w!=0){8 s=6.9.2w;7(s===I){s=3W.6Q.5x;7(!s.Q)s=0}N 7(s==='5J'){s=1H.3b(1H.5J()*J.P)}w.S(G('2H',D),[s,0,I,{1w:'3L'}])}8 C=3s(w,6,K),5K=2L(w.U(),6);7(6.5L){6.5L.1v($18,5K,C)}w.S(G('2G',D),[I,C]);w.S(G('4B',D));H w};$.1M.1G.43={'1W':K,'2W':I,'1T':I,'27':'1o','9':{'2w':0},'1c':{'1x':'6R','1f':4Y,'1N':K,'2q':K,'4I':K,'3u':'4D','2V':K}};$.1M.1G.5F={'12':K,'2U':{'3i':'','5M':'6S'},'4J':{'3Z':'6T','5G':'6U'}};$.1M.1G.4Z=E(a,b){H'<a 6V=\"#\"><5N>'+a+'</5N></a>'};E 1U(d,e){H{17:[],1f:d,4u:d,1x:e,2B:2j()}}E 1Y(s){7(F s.1g=='1e'){1Y(s.1g)}1r(8 a=0,l=s.17.Q;a<l;a++){8 b=s.17[a];7(!b)6W;7(b[3])b[0].4l();b[0].5O(b[1],{5P:b[2],1f:s.1f,1x:s.1x})}7(F s.1F=='1e'){1Y(s.1F)}}E 3e(s,c){7(F c!='1j')c=I;7(F s.1g=='1e'){3e(s.1g,c)}1r(8 a=0,l=s.17.Q;a<l;a++){8 b=s.17[a];b[0].4l(I);7(c){b[0].V(b[1]);7(F b[2]=='E')b[2]()}}7(F s.1F=='1e'){3e(s.1F,c)}}E 2R(t){7(t.T)6X(t.T);H t}E 3m(b,t,c){7(b.Q){1r(8 a=0,l=b.Q;a<l;a++){b[a].3l(t,c)}}H[]}E 6Y(a,c,x,d,f){8 o={'1f':d,'1x':a.1x};7(F f=='E')o.5P=f;c.5O({25:x},o)}E 4s(a,b,c,o,d){8 e=2m(4y(b.U(),o),o,I)[0],4K=2m(c.U(),o,I)[0],3X=(d)?-4K:e,2t={},35={};2t[o.d['O']]=4K;2t[o.d['1o']]=3X;35[o.d['1o']]=0;a.1g.17.1h([b,{'25':1}]);a.1F.17.1h([c,35,E(){$(1a).1D()}]);c.V(2t);H a}E 4t(a,b,c,o,d,n){8 e=2m(4z(b.U(),o,n),o,I)[0],4L=2m(c.U(),o,I)[0],3X=(d)?-4L:e,2t={},35={};2t[o.d['O']]=4L;2t[o.d['1o']]=0;35[o.d['1o']]=3X;a.1F.17.1h([c,35,E(){$(1a).1D()}]);c.V(2t);H a}E 3t(o,t,c){7(t=='3n'||t=='3k'){8 f=t}N 7(o.9.2M>=t){12(c,'1V 5g 9: 6Z 70 ('+t+' 9, '+o.9.2M+' 5h).');8 f='3k'}N{8 f='3n'}8 s=(f=='3n')?'33':'3v';7(o.X.1d)o.X.1d[f]()[s]('2P');7(o.Z.1d)o.Z.1d[f]()[s]('2P');7(o.13.1q)o.13.1q[f]()[s]('2P')}E 2E(o,f){7(o.1T||o.2W)H;8 a=(f=='33'||f=='3v')?f:K;7(o.Z.1d){8 b=a||(f==o.9.M)?'3v':'33';o.Z.1d[b]('5Q')}7(o.X.1d){8 b=a||(f==0)?'3v':'33';o.X.1d[b]('5Q')}}E 3A(a,b){7(F b=='E')b=b.1v(a);7(F b=='1z')b={};H b}E 3d(a,b,c){7(F c!='1l')c='';b=3A(a,b);7(F b=='1l'){8 d=4M(b);7(d==-1)b=$(b);N b=d}7(c=='13'){7(F b=='1j')b={'3I':b};7(F b.3q!='1z')b={'1q':b};7(F b.1q=='E')b.1q=b.1q.1v(a);7(F b.1q=='1l')b.1q=$(b.1q);7(F b.9!='11')b.9=K}N 7(c=='T'){7(F b=='1j')b={'1B':b};7(F b=='11')b={'2N':b}}N{7(F b.3q!='1z')b={'1d':b};7(F b=='11')b={'2r':b};7(F b.1d=='E')b.1d=b.1d.1v(a);7(F b.1d=='1l')b.1d=$(b.1d);7(F b.2r=='1l')b.2r=4M(b.2r)}H b}E 31(a,b,c,d,e){7(F a=='1l'){7(2i(a))a=$(a);N a=2b(a)}7(F a=='1e'){7(F a.3q=='1z')a=$(a);a=e.U().5y(a);7(a==-1)a=0;7(F c!='1j')c=K}N{7(F c!='1j')c=I}7(2i(a))a=0;N a=2b(a);7(2i(b))b=0;N b=2b(b);7(c){a+=d.Y}a+=b;7(d.P>0){2l(a>=d.P){a-=d.P}2l(a<0){a+=d.P}}H a}E 4p(i,o,s){8 t=0,x=0;1r(8 a=s;a>=0;a--){t+=i.1Z(a)[o.d['28']](I);7(t>o.3F)H x;7(a==0)a=i.Q;x++}}E 2K(i,o,s){8 t=0,x=0;1r(8 a=s,l=i.Q-1;a<=l;a++){t+=i.1Z(a)[o.d['28']](I);7(t>o.3F)H x;7(a==l)a=-1;x++}}E 4x(i,o,s,l){8 v=2K(i,o,s);7(!o.1T){7(s+v>l)v=l-s}H v}E 2L(i,o){H i.1k(0,o.9.M)}E 5l(i,o,n){H i.1k(n,o.9.16.2a+n)}E 5m(i,o){H i.1k(0,o.9.M)}E 4y(i,o){H i.1k(0,o.9.16.2a)}E 4z(i,o,n){H i.1k(n,o.9.M+n)}E 1C(i,o,m){8 x=(F m=='1j')?m:K;7(F m!='11')m=0;i.1P(E(){8 t=2b($(1a).V(o.d['1s']));7(2i(t))t=0;$(1a).1p('5R',t);$(1a).V(o.d['1s'],((x)?$(1a).1p('5R'):m+$(1a).1p('1I')))})}E 3s(a,o,p){8 b=a.3E(),$i=a.U(),$v=2L($i,o),3Y=3Q(2m($v,o,I),o,p);b.V(3Y);7(o.1i){8 c=$v.2F();c.V(o.d['1s'],c.1p('1I')+o.1b[o.d[1]]);a.V(o.d['2y'],o.1b[o.d[0]]);a.V(o.d['1o'],o.1b[o.d[3]])}a.V(o.d['O'],3Y[o.d['O']]+(2X($i,o,'O')*2));a.V(o.d['1n'],4N($i,o,'1n'));H 3Y}E 2m(i,o,a){5S=2X(i,o,'O',a);5T=4N(i,o,'1n',a);H[5S,5T]}E 4N(i,o,a,b){7(F b!='1j')b=K;7(F o[o.d[a]]=='11'&&b)H o[o.d[a]];7(F o.9[o.d[a]]=='11')H o.9[o.d[a]];8 c=(a.4O().2s('O')>-1)?'28':'2x';H 3D(i,o,c)}E 3D(i,o,a){8 s=0;i.1P(E(){8 m=$(1a)[o.d[a]](I);7(s<m)s=m});H s}E 46(b,o,c){8 d=b[o.d[c]](),4P=(o.d[c].4O().2s('O')>-1)?['71','72']:['73','74'];1r(a=0,l=4P.Q;a<l;a++){8 m=2b(b.V(4P[a]));7(2i(m))m=0;d-=m}H d}E 2X(i,o,a,b){7(F b!='1j')b=K;7(F o[o.d[a]]=='11'&&b)H o[o.d[a]];7(F o.9[o.d[a]]=='11')H o.9[o.d[a]]*i.Q;8 d=(a.4O().2s('O')>-1)?'28':'2x',s=0;i.1P(E(){8 j=$(1a);7(j.5f(':M')){s+=j[o.d[d]](I)}});H s}E 45(i,o,a){8 s=K,v=K;i.1P(E(){c=$(1a)[o.d[a]](I);7(s===K)s=c;N 7(s!=c)v=I;7(s==0)v=I});H v}E G(n,c,a,b){7(F a!='1j')a=I;7(F b!='1j')b=I;7(a)n=c.2U.3i+n;7(b)n=n+'.'+c.2U.5M;H n}E 3Q(a,o,p){7(F p!='1j')p=I;8 b=(o.1i&&p)?o.1b:[0,0,0,0];8 c={};c[o.d['O']]=a[0]+b[1]+b[3];c[o.d['1n']]=a[1]+b[0]+b[2];H c}E 2T(c,d){8 e=[];1r(8 a=0,5U=c.Q;a<5U;a++){1r(8 b=0,5V=d.Q;b<5V;b++){7(d[b].2s(F c[a])>-1&&!e[b]){e[b]=c[a];14}}}H e}E 4X(p){7(F p=='1z')H[0,0,0,0];7(F p=='11')H[p,p,p,p];N 7(F p=='1l')p=p.2I('75').5W('').2I('76').5W('').2I(' ');7(!32(p)){H[0,0,0,0]}1r(8 i=0;i<4;i++){p[i]=2b(p[i])}1u(p.Q){R 0:H[0,0,0,0];R 1:H[p[0],p[0],p[0],p[0]];R 2:H[p[0],p[1],p[0],p[1]];R 3:H[p[0],p[1],p[2],p[1]];2A:H[p[0],p[1],p[2],p[3]]}}E 3H(a,o){8 x=(F o[o.d['O']]=='11')?1H.2S(o[o.d['O']]-2X(a,o,'O')):0;1u(o.1y){R'1o':H[0,x];R'2z':H[x,0];R'48':2A:H[1H.2S(x/2),1H.3b(x/2)]}}E 3G(x,o,a){8 v=x;7(F a=='1l'){8 p=a.2I('+'),m=a.2I('-');7(m.Q>p.Q){8 b=I,4Q=m[0],2u=m[1]}N{8 b=K,4Q=p[0],2u=p[1]}1u(4Q){R'77':v=(x%2==1)?x-1:x;14;R'78':v=(x%2==0)?x-1:x;14;2A:v=x;14}2u=2b(2u);7(!2i(2u)){7(b)2u=-2u;v+=2u}}8 i=o.9.16;7(i.2J||i.29){7(F i.2J=='11'&&v<i.2J)v=i.2J;7(F i.29=='11'&&v>i.29)v=i.29}7(v<1)v=1;H v}E 4e(s){7(!32(s))s=[[s]];7(!32(s[0]))s=[s];1r(8 j=0,l=s.Q;j<l;j++){7(F s[j][0]=='1l')s[j][0]=$(s[j][0]);7(F s[j][1]!='1j')s[j][1]=I;7(F s[j][2]!='1j')s[j][2]=I;7(F s[j][3]!='11')s[j][3]=0}H s}E 4M(k){7(k=='2z')H 39;7(k=='1o')H 37;7(k=='44')H 38;7(k=='5C')H 40;H-1}E 4v(n,v){7(n)34.1Q=n+'='+v+'; 79=/'}E 5H(n){n+='=';8 b=34.1Q.2I(';');1r(8 a=0,l=b.Q;a<l;a++){8 c=b[a];2l(c.5I(0)==' '){c=c.3V(1,c.Q)}7(c.2s(n)==0){H c.3V(n.Q,c.Q)}}H 0}E 3w(p){8 i=(p.2s('7a')>-1)?I:K,r=(p.2s('2D')>-1)?I:K;H[i,r]}E 4G(a){H(F a=='11')?a:2c}E 32(a){H F(a)=='1e'&&(a 7b 7c)}E 2j(){H 7d 7e().2j()}E 12(d,m){7(F d=='1e'){8 s=' ('+d.3z+')';d=d.12}N{8 s=''}7(!d)H K;7(F m=='1l')m='1G'+s+': '+m;N m=['1G'+s+':',m];7(3W.4R&&3W.4R.5X)3W.4R.5X(m);H K}$.1M.5w=E(o){H 1a.1G(o)}})(7f);",62,450,"||||||opts|if|var|items||||||||||||||||||||||||||||||conf|function|typeof|cf_e|return|true|itms|false|scrl|visible|else|width|total|length|case|trigger|auto|children|css|bind|prev|first|next||number|debug|pagination|break|variable|visibleConf|anims|tt0|stopPropagation|this|padding|scroll|button|object|duration|pre|push|usePadding|boolean|slice|string|a_dur|height|left|data|container|for|marginRight|tmrs|switch|call|fx|easing|align|undefined|triggerHandler|play|sz_resetMargin|remove|wrp|post|carouFredSel|Math|cfs_origCssMargin|isScrolling|c_new|queu|fn|pauseOnHover|clbk|each|cookie|stopImmediatePropagation|onAfter|circular|sc_setScroll|Not|synchronise|isStopped|sc_startScroll|eq|l_old|w_siz|onBefore|crossfade|uncover|opacity|extend|direction|outerWidth|max|old|parseInt|null|c_old|l_cur|l_new|preventDefault|position|isNaN|getTime|isPaused|while|ms_getSizes|fade|cover|unbind|mousewheel|key|indexOf|css_o|adj|opts_orig|start|outerHeight|top|right|default|startTime|scrolling|resume|nv_enableNavi|last|updatePageStatus|slideTo|split|min|gn_getVisibleItemsNext|gi_getCurrentItems|minimum|pauseDuration|Carousel|hidden|pause|sc_clearTimers|ceil|cf_sortParams|events|queue|infinite|ms_getTotalSize|a_cur|a_old||gn_getItemIndex|is_array|removeClass|document|ani_o|to||||adjust|floor|of|go_getNaviObject|sc_stopScroll|timePassed|perc|dur2|prefix|appendTo|hide|apply|sc_callCallbacks|show|currentPosition|currentPage|jquery|before|sz_setSizes|nv_showNavi|event|addClass|bt_pauseOnHoverConfig|touchwipe|wN|selector|go_getObject|innerWidth|marginBottom|ms_getTrueLargestSize|parent|maxDimention|cf_getItemsAdjust|cf_getAlignPadding|keys|Number|absolute|none|100|onEnd|clone|orgW|cf_mapWrapperSizes|end|eval|mouseenter|mouseleave|substring|window|cur_l|sz|element||_cfs_init|configuration|defaults|up|ms_hasVariableSizes|ms_getTrueInnerSize|valid|center||bottom|page|anchorBuilder|delay|cf_getSynchArr|scrolled|cfs_isCarousel|float|marginTop|marginLeft|_cfs_unbind_events|stop|type|substr|conditions|gn_getVisibleItemsPrev|a_new|not|fx_cover|fx_uncover|orgDuration|cf_setCookie|xI|gn_getVisibleItemsNextTestCircular|gi_getOldItemsNext|gi_getNewItemsNext|slideToPage|linkAnchors|_cfs_bind_buttons|click|_cfs_unbind_buttons|mousewheelPrev|bt_mousesheelNumber|mousewheelNext|wipe|wrapper|new_w|old_w|cf_getKeyCode|ms_getLargestSize|toLowerCase|arr|sta|console|No|should|be|innerHeight|dx|cf_getPadding|500|pageAnchorBuilder||Item|backward|forward|_cfs_build|or|relative|cfs_origCss||_cfs_bind_events|finish|onPausePause|stopped|onPauseEnd|onPauseStart|is|enough|needed|_cfs_slide_|_cfs_configuration|Scrolling|gi_getOldItemsPrev|gi_getNewItemsPrev|directscroll|get|filter|shift|new_m|jumpToStart|after|append|_cfs_currentPosition|caroufredsel|hash|index|selected|_cfs_destroy|destroy|down|keyup|keyCode|configs|classname|cf_readCookie|charAt|random|itm|onCreate|namespace|span|animate|complete|disabled|cfs_tempCssMargin|s1|s2|l1|l2|join|log|found|The|option|moved|the|second|Infinity|Set|caroufredsel_cookie_|attr|id|2500|toString|Available|widths|heights|automatically|fixed|Carousels|CSS|attribute|static|overflow|setTimeout|Page|resumed|currently|Callback|returned|_cfs_slide_prev|prependTo|concat|_cfs_slide_next|prevPage|nextPage|prepend|carousel|insertItem|removeItem|round|currentVisible|body|find|replaceWith|min_move_x|min_move_y|preventDefaultEvents|wipeUp|wipeDown|wipeLeft|wipeRight|timer|wrap|class|location|swing|cfs|div|caroufredsel_wrapper|href|continue|clearTimeout|fx_fade|hiding|navigation|paddingLeft|paddingRight|paddingTop|paddingBottom|px|em|even|odd|path|immediate|instanceof|Array|new|Date|jQuery".split("|"),0,{}));


