1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
|
DISQUS.define("dtpl",function(){var b=function(){};b.prototype={container:function(){return this._container},textareaContainer:function(){return this._textareaContainer},show:function(){var a=this.container();if(a)a.style.display="block";this.rpc.show&&this.rpc.show()},hide:function(){var a=this.container();if(a)a.style.display="none"}};var d=function(a,b){var e=this;e.id=a;e.rpcReady=!1;e.focusCalled=!1;e._container=null;var c;c=a?e.render(b):DISQUS.jsonData.forum.template.api=="1.0"?DISQUS.nodes.get("#dsq-textarea-wrapper"):
DISQUS.nodes.get(".dsq-textarea-wrapper",DISQUS.nodes.get("#dsq-reply"))[0];e.rpc=DISQUS.comm.Reply.create(c,a,function(){DISQUS.dtpl.actions.fire("comments.reply.new.onLoadingEnd",a);e.rpcReady=!0;e.focusCalled&&setTimeout(function(){e.focus()},0)});var d=DISQUS.nodes.get(".dsq-attach-media-container",e.container())[0];if(d&&DISQUS.dtpl.actions.registered("comments.reply.media.upload.onSuccess")&&DISQUS.jsonData.context.switches.upload_media)e.uploadrpc=DISQUS.comm.Upload.create(d,a);e._textareaContainer=
c;DISQUS.dtpl.actions.fire("comments.reply.new.onLoadingStart",a)};d.instances={};d.create=function(a,b){var e=new d(a,b);return d.instances[a]=e};d.get=function(a){return d.instances[a]};DISQUS.extend(d.prototype,b.prototype,{focus:function(){this.rpcReady?this.rpc.focus():this.focusCalled=!0},render:function(a){var b=this.id;if(typeof a==="string"){var e=document.createElement("div");e.innerHTML=a;a=e}e=DISQUS.nodes.get(DISQUS.dtpl.APPEND_REPLY_ID(this.id));this._container=a;DISQUS.jsonData.forum.template.api==
"1.0"?(e.appendChild(a),a=DISQUS.nodes.get("#dsq-textarea-wrapper"+(b?"-"+b:""))):(DISQUS.nodes.insertAfter(e,a),a=DISQUS.nodes.get(".dsq-textarea-wrapper",a)[0]);return a}});var c=function(a,b){var e=this;if(typeof b==="string"){var c=document.createElement("div");c.innerHTML=b;b=c}if(DISQUS.jsonData.forum.template.api=="1.0")c=document.createElement("div"),c.appendChild(b),b=c,b.id="dsq-edit-"+a,b.className="dsq-edit dsq-textarea";c=DISQUS.nodes.get(DISQUS.dtpl.APPEND_EDIT_ID(a));DISQUS.jsonData.forum.template.api==
"1.0"?(c.appendChild(b),c=DISQUS.nodes.get("#dsq-edit-iframe-"+a)):(DISQUS.nodes.insertAfter(c,b),c=DISQUS.nodes.get(".dsq-textarea-wrapper",b)[0]);e.rpc=DISQUS.comm.Edit.create(c,a,function(){e.rpc.focus()});e._container=b;e._textareaContainer=c};c.instances={};c.create=function(a,b){var e=new c(a,b);return c.instances[a]=e};c.get=function(a){return c.instances[a]};DISQUS.extend(c.prototype,d.prototype,{focus:function(){}});DISQUS.once("thread.onReady",function(){DISQUS.dtpl.actions.fire("messagesx.render",
DISQUS.jsonData.messagesx);DISQUS.dtpl.actions.fire("messagesx.init",DISQUS.jsonData.request);DISQUS.dtpl.actions.fire("sherlock.render")});DISQUS.once("loader.onActionsReady",function(){DISQUS.dtpl.actions.fire("mentions.render",DISQUS.jsonData.posts);DISQUS.bind("loader.onDataReady",function(){DISQUS.dtpl.actions.fire("mentions.render",DISQUS.jsonData.posts)})});DISQUS.bind("data.onPostUpdate",function(a){var b={};typeof a.data.message==="string"&&(b[a.id]=DISQUS.jsonData.posts[a.id],DISQUS.dtpl.actions.fire("mentions.render",
b))});return{getAction:function(a,b){function c(){var a=Array.prototype.slice.call(arguments);a.unshift(DISQUS.dtpl.actions.fire);return DISQUS.partial.apply({},a)}function d(b){return a.getAttribute("data-dsq-"+b)}var h=a.getAttribute("data-dsq-action"),i=DISQUS.jsonData.posts[a.getAttribute("data-dsq-comment")]||null,q=DISQUS.jsonData.request;if(b.type!="click"){if(b.type=="change"&&h=="thread:sort")return c("thread.sort",a.value)}else switch(h){case "media:expand":return c("thread.expandMediaEmbed",
d("media"));case "reactions:showRetweets":return c("reactions.showRetweets",d("reaction"));case "reactions:hide":return c("reactions.hide",d("reaction"));case "reactions:more":return c("reactions.loadMore");case "thread:subscribe":return c("thread.subscribe");case "thread:unsubscribe":return c("thread.unsubscribe");case "thread:paginate":return c("thread.paginate",d("page"));case "session:login":return c("auth.login");case "session:help":return c("help.login");case "user:showProfile":return c("profile.show",
i&&i.id,d("username"));case "comments:edit":return c("comments.edit",i.id);case "comments:edit:send":return c("comments.edit.send",i.id);case "comments:edit:cancel":return c("comments.edit.cancel",i.id);case "comments:reply":return c("comments.reply",i.id);case "comments:reply:send":if(q.is_authenticated)return c("comments.send",i&&i.id,a);return c("comments.validate",i&&i.id,a);case "comments:reply:toggleSharing":return h=a.getAttribute("type"),c("share.toggle",a,h,i&&i.id);case "comments:text:collapse":return c("comments.text.collapse",
i.id);case "comments:text:expand":return c("comments.text.expand",i.id);case "comments:like":return c("comments.like",a,i.id);case "comments:showParent":return c("comments.showParent",i.parent_post_id);case "comments:showLikes":return c("comments.showUserVotes",i.id);case "comments:permalink":return c("comments.permalink",i.id);case "comments:moderate":return c("comments.moderate.options",i.id);case "comments:report":return c("comments.report",i.id);case "comments:collapse":return c("comments.collapse",
i.id);case "comments:expand":return c("comments.expand",i.id)}},append:function(a,b){a.innerHTML=b},replaceHtml:function(a,b){a.innerHTML=b},getGuestFields:function(a){function b(c){return DISQUS.nodes.get("#"+c+(a?"-"+a:""))}return{name:b("dsq-field-name"),email:b("dsq-field-email"),website:b("dsq-field-website"),username:b("dsq-field-username"),password:b("dsq-field-password"),subscribe:b("dsq-subscribe-on-post")}},ReplyBox:d,EditBox:c}});
DISQUS.define("dtpl.actions",function(){function b(a,b,r){var c;typeof b==="string"?(c=b,b=r):c=">= "+s[0];o[a]||(o[a]={});o[a][c]=b}function d(a,b,r){if(DISQUS.settings.get("disqus.debug"))return a.apply({},b);try{return a.apply({},b)}catch(c){return window.console&&window.console.log&&(r&&window.console.log("Exception in "+r),window.console.log(c),typeof printStackTrace!=="undefined"&&window.console.log(printStackTrace({e:c}).join("\n"))),!1}}function c(a,b){if(l[a])if(typeof b==="undefined")return delete l[a],
!0;else DISQUS.lang.forEach(l[a],function(r,c){if(b.guid&&b.guid==r.guid)return delete l[a][c],!0});return!1}function a(a,b){b=b||u;if(!o[a])return!1;var r=null;DISQUS.each(o[a],function(a,n){var c=n.match(/(=|>=)\s*([0-9\.]+)/),d=c[1],c=c[2];d=="="&&b==c?r=a:d==">="&&b>=c&&(r=a)});return r}function f(n,b){return!!a(n,b)}function e(a,b,c){return!!l[a]||(b?!1:f(a,c))}function g(){var n=arguments[0],b=[],c=!0,m;if(DISQUS.jsonData!=null)if(DISQUS.status=="ready"&&DISQUS.jsonData.ready!==!1)m=DISQUS.jsonData.forum.template.api;
else return;typeof n==="object"&&(m=n[1],n=n[0]);if(!e(n,!1,m))throw"Action "+n+" not found";for(var g=1;g<arguments.length;g++)b.push(arguments[g]);l[n]&&DISQUS.lang.forEach(l[n],function(a){c=c&&!!d(a,b,n)});f(n,m)&&c&&d(a(n,m),b,n);return!1}function h(a){var b=function(b){return"#"+a+(b?"-"+b:"")};b.toString=function(){return b()};return b}function i(a){var a=DISQUS.nodes.get("li",a),b;for(b=0;b<a.length;++b)if(DISQUS.nodes.hasClass(a[b],"dsq-mentions-highlighted"))return a[b];return null}function q(a,
b){if(!a)return!1;if(a.hasAttribute)return a.hasAttribute(b);else if(a.attributes)return!!a.attributes[b];return!1}function p(a,b,c){if(b=b?c=="up"?b.previousSibling:b.nextSibling:a.firstChild){do if(q(b,"data-dsq-username"))return b;while(b=c=="up"?b.previousSibling:b.nextSibling)}}var o={},l={},j=null,t=[],s=["1.0","1.1"],u=s[s.length-1];b("__.comments.reply.media.upload",function(a){g("comments.reply.media.upload.onLoadingStart",a)});b("__.comments.reply.media.upload.onResponse",function(a,b){if(a&&
a.constructor===Array)for(var c=a.length-1;c>=0;--c)g("comments.reply.media.upload.onLoadingEnd",b),g("comments.reply.media.upload.onSuccess",a[c],b);else a&&a.success&&a.media?(b=b||"",c=DISQUS.comm.Upload.recover(b),a.forum_id=DISQUS.jsonData.forum.id,a.thread_id=DISQUS.jsonData.thread.id,a.id=b,c.media("set",a),g("comments.reply.media.upload.onLoadingEnd",b),g("comments.reply.media.upload.onSuccess",a.media,b)):a.silence||(a.message&&g("message.error",a.message,a.title||"Error"),g("comments.reply.media.upload.onLoadingEnd",
b))});b("comments.reply.media.remove",function(a,b){var c={id:b,media:DISQUS.json.stringify(a.media)};DISQUS.request.get(DISQUS.jsonData.urls.upload_remove+"?ts="+ +new Date,c)});b("__.comments.reply.media.remove.onResponse",function(a){delete a.success;a.id=a.id||"";a.forum_id=DISQUS.jsonData.forum.id;a.thread_id=DISQUS.jsonData.thread.id;DISQUS.comm.Upload.recover(a.id).media("remove",a,a.id);g("comments.reply.media.remove.onSuccess",a)});b("__.comments.reply.media.upload.clear",function(a){var b=
DISQUS.comm.Upload.recover(a);b&&(b.media("clear",{forum_id:DISQUS.jsonData.forum.id,thread_id:DISQUS.jsonData.thread.id,id:a||""}),g("comments.reply.media.upload.clear",a))});b("message.error",function(a,b){DISQUS.popup.popModal(a,b||DISQUS.strings.get("Error"))});b("message.error.onField",function(a,b){if(DISQUS.jsonData.forum.revert_new_login_flow)g("message.error",DISQUS.strings.get(a),DISQUS.strings.get("Oops..."));else if(b){var c=DISQUS.nodes.get("#"+b+"-label");if(c)DISQUS.nodes.addClass(c,
"dsq-error"),c.innerHTML=DISQUS.strings.get(a)}else alert(DISQUS.strings.get(a))});b("comments.reply.onCookieFailure","= 1.0",function(a){var b=document.createElement("div");b.innerHTML=DISQUS.renderBlock("cookieFailure");DISQUS.nodes.insertBefore(DISQUS.nodes.get("#dsq-form-area"+(a?"-"+a:"")),b)});b("comments.reply.onCookieFailure",">= 1.1",function(){});b("message.unapprovedComment",function(a,b){DISQUS.popup.popModal(DISQUS.renderBlock("unapprovedCommentMessage",{mustVerify:a}),DISQUS.strings.get("Comment awaiting approval"),
b,!0,"dsq-popup-unapproved")});b("share.toggle",function(a,b,c){DISQUS.nodes.hasClass(a,"dsq-share-toggled")?DISQUS.nodes.removeClass(a,"dsq-share-toggled"):DISQUS.nodes.addClass(a,"dsq-share-toggled");c=c||null;DISQUS.cache.postSharing[c]=DISQUS.cache.postSharing[c]||{twitter:null,facebook:null};a=DISQUS.cache.postSharing[c];a[b]=!a[b]});b("private.setLoadingButton",function(a,b){var c=b?"-"+b:"",d;if(a){d=document.createElement("button");d.id=a.id+"-loading";d.className=a.className+" dsq-post-loading";
d.innerHTML=DISQUS.strings.get("Just a moment...");a.style.display="none";a.parentNode.appendChild(d);if(c=DISQUS.nodes.get("#dsq-cancel-button"+c))c.style.display="none";DISQUS.cache.buttonsToRestore.push(a)}else DISQUS.lang.forEach(DISQUS.cache.buttonsToRestore,function(a){a.style.display="inline";DISQUS.nodes.remove(DISQUS.nodes.get("#"+a.id+"-loading"))})});b("comments.validate",function(a){DISQUS.comm.Reply.recover(a).validate(function(b){b?DISQUS.comm.ensureLoggedIn(function(){g("comments.send",
a)},"postas",{onGuest:function(){g("comments.send",a,null,{fields:DISQUS.dtpl.getGuestFields(null)})}}):(g("message.error",DISQUS.strings.get("Please enter a comment to post.")),g("private.setLoadingButton"))})});b("auth.login",function(){DISQUS.comm.ensureLoggedIn(function(){DISQUS.redraw()})});b("auth.disqus",function(){DISQUS.comm.ensureLoggedIn(function(){DISQUS.redraw()},"disqus")});b("auth.twitter",function(){DISQUS.comm.ensureLoggedIn(function(){DISQUS.redraw()},"twitter")});b("auth.yahoo",
function(){DISQUS.comm.ensureLoggedIn(function(){DISQUS.redraw()},"yahoo")});b("auth.openid",function(){DISQUS.comm.ensureLoggedIn(function(){DISQUS.redraw()},"openid")});b("auth.google",function(){DISQUS.comm.ensureLoggedIn(function(){DISQUS.redraw()},"google")});b("auth.facebook",function(){DISQUS.comm.ensureLoggedIn(function(){DISQUS.redraw()},"facebook")});b("auth.sso",function(){var a=window.open(DISQUS.config.sso.url,"ssoWindow","location=0,status=0,width="+(DISQUS.config.sso.width||800)+",height="+
(DISQUS.config.sso.height||400)),b=setInterval(function(){DISQUS.window.isClosed(a)&&(clearInterval(b),window.location.reload())},500)});b("comments.text.expand",function(a){var b=DISQUS.nodes.get("#dsq-comment-message-"+a),c=DISQUS.nodes.get("#dsq-comment-text-"+a),d=DISQUS.nodes.get(".dsq-comment-truncate-expand",b)[0],b=DISQUS.nodes.get(".dsq-comment-truncate-collapse",b)[0];d.style.display="none";b.style.display="inline";c.innerHTML=DISQUS.jsonData.posts[a].message;return!1});b("comments.text.collapse",
function(a){var b=DISQUS.nodes.get("#dsq-comment-message-"+a),a=DISQUS.nodes.get("#dsq-comment-text-"+a),c=DISQUS.nodes.get(".dsq-comment-truncate-expand",b)[0],b=DISQUS.nodes.get(".dsq-comment-truncate-collapse",b)[0],d=DISQUS.jsonData.forum.comment_max_words;if(!a||d===0)return!1;if(DISQUS.nodes.truncateComment(a,d,"...")&&c&&b)c.style.display="inline",b.style.display="none";return!1});b("comments.insert",function(a,b,c){var d={};DISQUS.redraw();var e=DISQUS.nodes.get("#dsq-comments"),f=document.createElement("div");
d.comment=DISQUS.jsonData.posts[b];d.comment.id=b;d.comment.author=DISQUS.jsonData.users[d.comment.user_key];if(c&&c.length)d.comment.media=c,DISQUS.jsonData.mediaembed=DISQUS.jsonData.mediaembed.concat(c);if(d.comment.parent_post_id){d.comment.parent=DISQUS.jsonData.posts[d.comment.parent_post_id];d.comment.parent.author=DISQUS.jsonData.users[d.comment.parent.user_key];c=DISQUS.nodes.get("#dsq-comment-"+d.comment.parent_post_id);DISQUS.nodes.addClass(c,"dsq-comment-is-parent");c=d.comment.parent;
do c.num_replies+=1,c=DISQUS.jsonData.posts[c.parent_post_id];while(c!==void 0)}d.comment.stripped=function(a){var b=d.comment.message.replace(/<.*?>/g,"");if(b.length>a)return b.substring(0,a);return null};DISQUS.dtpl.replaceHtml(f,DISQUS.renderBlock("comment",d));a===-1?e.appendChild(f):a?DISQUS.nodes.get("dsq-comment-"+a)&&(e=DISQUS.nodes.get(DISQUS.dtpl.APPEND_COMMENT_ID(a)),DISQUS.nodes.insertAfter(e,f)):e.insertBefore(f,e.firstChild);e=DISQUS.nodes.get("#dsq-avatar-"+b);e=DISQUS.nodes.get("img.dsq-deferred-avatar",
e);DISQUS.lang.forEach(e,function(a){a.setAttribute("src",a.getAttribute("data-src"));DISQUS.nodes.removeClass(a,"dsq-deferred-avatar")});g("comments.text.collapse",b);DISQUS.ui.applyTooltips(f);DISQUS.dtpl.actions.fire("__.comments.insert.onSuccess",a,b)});b("comments.insert.onSuccess",function(){});b("__.comments.insert.onSuccess",function(a,b){DISQUS.dtpl.actions.fire("comments.insert.onSuccess",a,b)});b("comments.insert.onSuccess",function(){});b("comments.blacklist",function(a,b){var c={forum:DISQUS.jsonData.forum.url},
d={"dsq-blacklist-username":"user","dsq-blacklist-email":"email","dsq-blacklist-ip":"ip","dsq-blacklist-retroactive":"retroactive"},e=0;if(b)if(DISQUS.lang.forEach(d,function(a,b){var n=DISQUS.nodes.get("#"+b);if(n&&n.checked)c[a]=n.value,e++}),e<1)alert(DISQUS.strings.get("Please select something to add to the blacklist."));else{if(c.user)c.user="username:"+c.user;DISQUS.api("blacklists/add",{data:c,type:"POST",success:function(){DISQUS.popup.close(null,!0)},failure:function(){DISQUS.popup.close(null,
!0)}})}else d=DISQUS.jsonData.posts[a],DISQUS.popup.close(null,!0),DISQUS.popup.popModal(DISQUS.renderBlock("blacklistPopup",{comment:d,user:DISQUS.jsonData.users[d.user_key]}),DISQUS.strings.get("Add to Blacklist"))});b("comments.outline",function(a){var b=DISQUS.nodes.get("#dsq-comment-"+a);b&&(DISQUS.nodes.addClass(b,"dsq-comment-outline"),setTimeout(function(){DISQUS.nodes.removeClass(b,"dsq-comment-outline")},3E3))});b("comments.permalink",function(a){DISQUS.popup.popModal(DISQUS.renderBlock("permalinkPopup",
{postId:a}),DISQUS.strings.get("Link to this comment"),a)});b("comments.send",function(a,b,c){if(!DISQUS.cache.postboxBusy[a||null]){DISQUS.cache.postboxBusy[a||null]=!0;var d=DISQUS.comm.Reply.recover(a),c=c||{},e=function(b){try{return+(DISQUS.cache.postSharing[a||null][b]||0)}catch(c){return 0}},f=function(b){DISQUS.dtpl.actions.fire("comments.send.onSuccess",b,a)},i=function(d){d=d.data;d.sendArguments={postId:a,element:b,options:c};DISQUS.dtpl.actions.fire("comments.send.onFailure",d)};b&&g("private.setLoadingButton",
b,a);DISQUS.jsonData.request.is_authenticated?d.post({tw:e("twitter"),fb:e("facebook"),tr:e("tumblr"),wp:e("wordpress"),mt:e("movabletype"),tp:e("typepad"),yh:e("yahoo")},c.captcha||null,f,i):(e=c.fields||DISQUS.dtpl.getGuestFields(a),DISQUS.dtpl.validators.guestFields(e)&&d.postAsGuest(e.name.value,e.email.value,e.website?e.website.value:"",e.subscribe&&e.subscribe.checked,c.captcha||null,f,i));c.force&&DISQUS.cookies.create("skipped_auth",!0)}});b("comments.send.onSuccess",function(a,b){var c=DISQUS.jsonData.users,
d=a.message.post_meta.user_key;DISQUS.cache.postboxBusy[b||null]=!1;a.succeeded&&g("__.comments.reply.media.upload.clear",a.message.post_meta.parent_post_id);DISQUS.updatePost(a.message.id,a.message.post_meta);if(!c[d])c[d]=a.message.user_meta;c=typeof disqus_insert_wrt_sort=="undefined"?DISQUS.jsonData.forum.reply_position?-1:null:DISQUS.jsonData.request.sort==2?null:-1;a.message.post_meta.approved&&g("comments.insert",a.message.post_meta.parent_post_id||c,a.message.id,a.message.media_embed);b&&
g("comments.reply.cancel",b);DISQUS.popup.close(null,!0);a.message.post_meta.approved?(g("thread.incrementCommentsCount"),g("comments.outline",a.message.id)):(g("message.unapprovedComment",DISQUS.jsonData.request.missing_perm=="verify",a.message.id),DISQUS.redraw());a.message.fb_callback&&a.message.fb_callback[0]&&DISQUS.FB.init(function(){DISQUS.FB.streamPublish("",a.message.fb_callback[1])});g("private.setLoadingButton");DISQUS.trigger("comment.onCreate",{id:a.message.id,text:a.message.post_meta.message})});
b("comments.showUserVotes",function(a){DISQUS.request.get(DISQUS.jsonData.urls.show_user_votes,{post_id:a},!0)});b("comments.highlight",function(a){DISQUS.api("posts/highlight",{data:{post:a},type:"POST",success:function(a){DISQUS.dtpl.actions.fire("comments.highlight.onSuccess",a[0])}})});b("comments.highlight.onSuccess",function(){});b("comments.unhighlight",function(a){DISQUS.api("posts/unhighlight",{data:{post:a},type:"POST",success:function(a){DISQUS.dtpl.actions.fire("comments.unhighlight.onSuccess",
a[0])}})});b("comments.unhighlight.onSuccess",function(){});b("comments.showParent",function(a){var b=DISQUS.jsonData.posts[a],c=DISQUS.renderBlock("commentMessage",{comment:b,cls:""});c+='<br/><br/><a href="#comment-'+a+'">'+DISQUS.strings.get("Jump to comment")+"</a>";DISQUS.popup.popModal(c,b.author.display_name+" "+DISQUS.strings.get("said")+"…",a)});b("captcha.init",function(a){window.Recaptcha||DISQUS.require("http://www.google.com/recaptcha/api/js/recaptcha_ajax.js");DISQUS.addJob(function(){return!!window.Recaptcha},
a)});b("captcha.open",function(a){function b(){var c=DISQUS.lang.partial(DISQUS.dtpl.actions.fire,"captcha.submit",a),z=DISQUS.nodes.get("button",DISQUS.nodes.get("#dsq-captcha"))[0];DISQUS.events.add(z,"click",c);z=DISQUS.nodes.get("#recaptcha_response_field");DISQUS.events.add(z,"keypress",function(a){(a.keyCode||a.which)==13&&c()});DISQUS.nodes.get("#dsq-captcha-loading").style.display="none";DISQUS.nodes.get("#dsq-captcha-container").style.display="block";Recaptcha.focus_response_field()}DISQUS.popup.popModal(DISQUS.renderBlock("recaptcha"),
DISQUS.strings.get("One More Step ..."),null,null,null,{onReady:function(){Recaptcha.create(DISQUS.jsonData.settings.recaptcha_public_key,"dsq-captcha-form",{theme:"clean",callback:b})},onClose:function(){Recaptcha.destroy();g("private.setLoadingButton")}})});b("captcha.submit",function(a){var b=a.options,c=DISQUS.nodes.get;b.captcha={recaptcha_challenge_field:c("#recaptcha_challenge_field").value,recaptcha_response_field:c("#recaptcha_response_field").value};g("comments.send",a.postId,a.element,
b);DISQUS.popup.close(null,!0)});b("comments.send.onFailure",function(a){a.sendArguments&&(DISQUS.cache.postboxBusy[a.sendArguments.postId||null]=!1);a.code=="captcha-required"?DISQUS.dtpl.actions.fire("captcha.init",DISQUS.lang.partial(DISQUS.dtpl.actions.fire,"captcha.open",a.sendArguments)):(g("message.error",a.message),g("private.setLoadingButton"))});b("comments.edit",function(a){DISQUS.states.edit[a]?g("comments.edit.cancel",a):g("comments.edit.new",a);DISQUS.states.edit[a]=!DISQUS.states.edit[a]});
b("comments.edit.new",function(a){DISQUS.comm.Edit.recover(a)||g("comments.edit.render",a);g(["comments.edit.show","1.1"],a)});b("comments.edit.render",function(a){var b=DISQUS.renderBlock("editArea",{comment:DISQUS.jsonData.posts[a]});DISQUS.dtpl.EditBox.create(a,b)});b("comments.edit.show",">= 1.1",function(a){DISQUS.popup.close(null,!0);DISQUS.nodes.get("#dsq-comment-message-"+a).style.display="none";var b=DISQUS.nodes.get("#dsq-media-embed-"+a);if(b)b.style.display="none";b=DISQUS.nodes.get("#dsq-comment-"+
a);b=DISQUS.nodes.get(".dsq-editedtxt",b);b.length&&DISQUS.nodes.remove(b[0]);DISQUS.dtpl.EditBox.get(a).show()});b("comments.edit.show","= 1.0",function(a){return g("comments.edit",a)});b("comments.edit.cancel",function(a){var b=DISQUS.nodes.get("#dsq-comment-message-"+a),c=DISQUS.nodes.get("#dsq-media-embed-"+a);b.style.display="block";if(c)c.style.display="block";DISQUS.dtpl.EditBox.get(a).hide()});b("comments.edit.send",function(a){DISQUS.comm.Edit.recover(a).save(function(b){DISQUS.updatePost(a,
b.message);g("comments.edit.onSuccess",b,a)},function(b){g("comments.edit.onFailure",b,a)})});b("comments.edit.onSuccess",function(a,b){var c=DISQUS.nodes.get("#dsq-comment-message-"+b);DISQUS.dtpl.replaceHtml(c,DISQUS.renderBlock("commentMessage",{comment:DISQUS.jsonData.posts[b],cls:"dsq-comment-message"}));for(var d=c.childNodes,e=d.length-1;e>=0;--e)if(RegExp("^dsq-comment-message-"+b).test(d[e].id)){c.innerHTML=d[e].innerHTML;break}g("comments.edit.cancel",b)});b("comments.edit.onFailure",function(){g("message.error",
DISQUS.strings.get("Your comment must be approved by a moderator before appearing here."),DISQUS.strings.get("Comment awaiting approval"));DISQUS.reload(function(){DISQUS.redraw()})});b("comments.spam",function(a){DISQUS.popup.close(null,!0);DISQUS.api("posts/spam",{data:{post:a},type:"POST",success:function(a){DISQUS.dtpl.actions.fire("comments.spam.onSuccess",a[0].id)}})});b("comments.spam.onSuccess","= 1.0",function(a){DISQUS.nodes.get("#comment-"+a).innerHTML=DISQUS.strings.get("Comment marked as spam.");
DISQUS.nodes.get("#comment-"+a).className="dsq-remove-message";DISQUS.nodes.get("#dsq-comment-"+a).style.display="none"});b("comments.spam.onSuccess",">= 1.1",function(){});b("comments.reply.onResize",function(){});b("comments.dislike",function(a){var b=DISQUS.jsonData,c=b.posts[a].down_voted?0:-1;b.request.is_authenticated||b.forum.allow_anon_votes?(g("comments.dislike.onLoadingStart",a),DISQUS.request.get(b.urls.embed_vote,{post_id:a,vote:c},!0)):g("auth.disqus",DISQUS.strings.get("To vote please login"))});
b("comments.dislike.onLoadingStart",function(){});b("comments.dislike.onLoadingEnd",function(){});b("comments.dislike.onSuccess",function(){});b("__.comments.dislike.onSuccess",function(a,b,c){var d=DISQUS.jsonData.posts[a].dislikes,e=c==-1;DISQUS.updatePost(a,{user_voted:c!==0,down_voted:e,dislikes:e?d+1:d-1,points:b});g("comments.dislike.onLoadingEnd",a);g("comments.dislike.onSuccess",a,b)});b("comments.like.loading","= 1.0",function(a){a=DISQUS.nodes.get("#dsq-like-"+a);DISQUS.nodes.get("button",
a)[0].style.display="none";var b=document.createElement("img");b.src=DISQUS.jsonData.settings.media_url+"/images/loading-small.gif";a.appendChild(b)});b("comments.like.onLoadingStart","= 1.0",function(a){g("comments.like.loading",a)});b("comments.like.onLoadingStart",">= 1.1",function(){});b("comments.like.onLoadingEnd",function(){});b("comments.like",function(a,b){var c=+!DISQUS.jsonData.posts[b].up_voted,d=DISQUS.jsonData,e=DISQUS.dtpl.actions.fire;d.request.is_authenticated||d.forum.allow_anon_votes?
(e("comments.like.onLoadingStart",b),DISQUS.api("posts/vote",{data:{post:b,vote:c},type:"POST",success:function(a){a=a.post;e("__.comments.like.onSuccess",a.id,a.points,c);e("comments.like.updateCache",a.id,a.points,c)}})):e("auth.disqus",DISQUS.strings.get("To like please login"))});b("comments.like.updateCache",function(a,b,c){DISQUS.updatePost(a,{up_voted:!!c})});b("comments.like.onSuccess",">= 1.1",function(){});b("comments.like.onSuccess","= 1.0",function(a,b){var c=DISQUS.nodes.get("#dsq-like-pts-"+
a),d;d=DISQUS.jsonData.posts[a].user_voted?" and "+(b-1||1)+" more":b+DISQUS.strings.pluralize(b," person"," people");if(c)c.innerHTML=d;DISQUS.nodes.get("#dsq-like-"+a).innerHTML=DISQUS.strings.get("You liked this.")+" "});b("__.comments.like.onSuccess",function(a,b,c){g("comments.like.onLoadingEnd",a);g("comments.like.onSuccess",a,b,c)});b("comments.report",function(a,b){function c(){DISQUS.popup.popModal(DISQUS.strings.get("Thank you. This comment has been flagged for moderator attention."),
DISQUS.strings.get("Successfully flagged"));DISQUS.nodes.remove(DISQUS.nodes.get("#dsq-post-report-"+a))}b?DISQUS.api("posts/report",{data:{post:a},type:"POST",success:c}):DISQUS.popup.popModal(DISQUS.renderBlock("reportConfirmation",{id:a}),DISQUS.strings.get("Report this comment to a moderator?"),a)});b("comments.reply",function(a,b){DISQUS.cache.toggledReplies[a]?(DISQUS.dtpl.actions.fire("comments.reply.cancel",a,b),DISQUS.cache.toggledReplies[a]=!1):(DISQUS.dtpl.actions.fire("comments.reply.new",
a,b),DISQUS.cache.toggledReplies[a]=!0)});b("comments.reply.new",function(a){DISQUS.comm.Reply.recover(a)||g("comments.reply.render",a);g("comments.reply.show",a)});b("comments.reply.new.onLoadingStart",function(){});b("comments.reply.new.onLoadingEnd",function(){});b("comments.reply.render",function(a){var b=DISQUS.renderBlock("postbox",{comment:DISQUS.jsonData.posts[a]});DISQUS.dtpl.ReplyBox.create(a,b)});b("comments.reply.show",function(a){var b=DISQUS.dtpl.ReplyBox.get(a);b.show();var c=b.container();
DISQUS.nodes.addClass(c,"dsq-append-post");(a=DISQUS.nodes.get("#dsq-comment-footer-reply-"+a))&&DISQUS.nodes.addClass(a,"dsq-comment-footer-reply-active");b.focus()});b("comments.reply.cancel",function(a){var b=DISQUS.dtpl.ReplyBox.get(a);b.hide();b=b.container();DISQUS.nodes.removeClass(b,"dsq-append-post");(a=DISQUS.nodes.get("#dsq-comment-footer-reply-"+a))&&DISQUS.nodes.removeClass(a,"dsq-comment-footer-reply-active")});b("comments.moderate.options",function(a){var b=DISQUS.jsonData.posts[a];
b.author=DISQUS.jsonData.users[b.user_key];DISQUS.jsonData.request.is_moderator&&DISQUS.popup.popModal(DISQUS.renderBlock("moderateOptionsPopup",{comment:b}),DISQUS.strings.get("Moderate Options"),a)});b("comments.delete",function(a){DISQUS.popup.close(null,!0);DISQUS.api("posts/remove",{data:{post:a},type:"POST",success:function(a){DISQUS.each(a,function(a){g("comments.delete.onSuccess",a.id)})},failure:function(){var b=DISQUS.strings.get("Oops, something went wrong"),c=DISQUS.strings.get("We couldn't delete this post. Please try again later.");
DISQUS.popup.popModal(c,b,a)}})});b("comments.delete.onSuccess","= 1.0",function(a){if(DISQUS.nodes.get("#comment-"+a)&&DISQUS.nodes.get("#dsq-comment-"+a))DISQUS.nodes.get("#comment-"+a).innerHTML=DISQUS.strings.get("Comment removed.")+' <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'comments.restore\', '+a+');">'+DISQUS.strings.get("Undo")+"</a>",DISQUS.nodes.get("#comment-"+a).className="dsq-remove-message",DISQUS.nodes.get("#dsq-comment-"+a).style.display="none"});b("comments.delete.onSuccess",
">= 1.1",function(){});b("comments.restore",function(a){DISQUS.api("posts/restore",{data:{post:a},type:"POST",success:function(a){DISQUS.each(a,function(a){g("comments.restore.onSuccess",a.id)})}})});b("comments.restore.onSuccess","= 1.0",function(a){if(DISQUS.nodes.get("#comment-"+a)&&DISQUS.nodes.get("#dsq-comment-"+a))DISQUS.nodes.get("#comment-"+a).innerHTML="",DISQUS.nodes.get("#comment-"+a).className="",DISQUS.nodes.get("#dsq-comment-"+a).style.display="block"});b("comments.restore.onSuccess",
">= 1.1",function(){});b("cookies.onFailure",function(a){DISQUS.states.noThirdPartyCookies=!0;if(DISQUS.browser.ie)DISQUS.states.useLoginWindow=!0;else if(DISQUS.browser.gecko||DISQUS.browser.opera){var b=DISQUS.jsonData.request.is_authenticated,c=DISQUS.jsonData.request.is_remote;if(DISQUS.browser.gecko&&(!b||c))DISQUS.states.loginDisabled=!0,g("comments.reply.onCookieFailure",a)}else if(DISQUS.browser.webkit&&DISQUS.jsonData.request.is_sso&&(a=DISQUS.nodes.get("#dsq-sso-iframe"),!a)){a=document.createElement("div");
a.id="dsq-sso-iframe";a.style.display="none";DISQUS.nodes.get("body")[0].appendChild(a);var d=DISQUS.comm.SSO.create(function(){var a={forum_url:DISQUS.jsonData.forum.url},b=DISQUS.config.page;b.remote_auth_s2?a.remote_auth_s2=b.remote_auth_s2:b.remote_auth_s3&&DISQUS.extend(a,{remote_auth_s3:b.remote_auth_s3,api_key:b.api_key});d.authenticate(a)})}});b("user.newUser.onSuccess",function(){function a(){if(DISQUS.getBlock("editProfileSuggestion")){var b=document.createElement("div");b.innerHTML=DISQUS.renderBlock("editProfileSuggestion");
var d=DISQUS.nodes.get("#dsq-comments"),e=DISQUS.nodes.get(".dsq-comment",d);d.insertBefore(b,e);(new DISQUS.tooltip.ManualTooltip(DISQUS.nodes.get(".dsq-avatar")[0],{contentId:"dsq-edit-profile-suggestion",trigger:null})).show()}c("comments.insert",a);return!0}b("comments.insert",a)});b("user.remoteAccountSettings",function(){var a=DISQUS.nodes.createIframe(DISQUS.jsonData.urls.remote_settings,{},{id:"dsq-popup-account-settings"}),b=document.createElement("div");b.appendChild(a);DISQUS.popup.popModal(b.innerHTML,
DISQUS.strings.get("Account Settings"))});b("profile.show",function(a,b,c){c===void 0&&(c=a==null?DISQUS.jsonData.request.is_moderator:DISQUS.jsonData.posts[a].author_is_moderator);DISQUS.comm.Default.recover().log("profile:view",1);return DISQUS.popup.popProfile(a,b,c)});b("profile.dashboard",function(){window.location.href="http://disqus.com/dashboard"});b("profile.edit",function(){(new DISQUS.ui.ProfileEditModal).open({lang:DISQUS.jsonData.forum.language})});b("profile.displayDeferredAvatars",
function(){function a(b){var n=DISQUS.nodes.getPosition(b),d=n[1];return n[1]+b.offsetHeight<=g-c?-1:d>=g+i+c?1:0}function b(c){c=e[c];if(a(c)===0)return c.setAttribute("src",c.getAttribute("data-src")),DISQUS.nodes.removeClass(c,"dsq-deferred-avatar"),c.removeAttribute("data-src"),!0;return!1}for(var c=200,d=DISQUS.nodes.get("img.dsq-deferred-avatar"),e=[],f=0;f<d.length;f++)d[f].offsetParent&&e.push(d[f]);if(e.length){var g,i;DISQUS.browser.ie?function(){var a=document.documentElement;g=a.scrollTop;
i=a.clientHeight}():(g=window.pageYOffset,i=window.innerHeight);d=function(){for(var b=e.length,c=0,d,f;c<b;)if(f=parseInt((c+b)/2,10),d=a(e[f]),d===-1)c=f+1;else if(d===1)b=f;else return f;return-1}();if(d!==-1){for(f=d;f>=0&&b(f);f--);for(f=d+1;f<e.length&&b(f);f++);}}});b("mentions.render",function(a){var b=/@[\w\-]+:\w+/g,c,d={disqus:"mentions.render.disqus",twitter:"mentions.render.twitter"};DISQUS.each(a,function(a){a&&a.message&&(c=a.message.match(b))&&DISQUS.each(c,function(b){var c=b.slice(1).split(":"),
n=c[0].toLowerCase(),c=c[1].toLowerCase();d.hasOwnProperty(c)||(c="disqus");g(d[c],a,b,n)})})});b("mentions.render.disqus",function(a,b,c){var d=DISQUS.jsonData.users[c],c='<span class="dsq-mention dsq-tt dsq-mention-disqus"original-title="Expand '+(d?d.display_name:c)+'\'s profile" data-dsq-username="'+c+'" data-dsq-remote="disqus"><a class="" href="'+DISQUS.settings.get("disqus.urls.main")+"/"+c+'" target="_blank" onclick="DISQUS.dtpl.actions.fire(\'profile.show\', undefined, \''+c+"');return false;\">"+
(d?d.display_name:c)+"</a></span>";a.message=a.message.replace(b,c)});b("mentions.render.twitter",function(a,b,c){a.message=a.message.replace(b,'<span class="dsq-mention dsq-tt dsq-mention-twitter"original-title="Expand @'+c+'\'s profile" data-dsq-username="'+c+'" data-dsq-remote="twitter"><a class="twitter-account" href="http://twitter.com/'+c+'" onclick="window.open(\''+("http://twitter.com/intent/user?screen_name="+c)+"', 'Twitter Mention', 'height=420, width=550');return false;\">@"+c+"</a></span>")});
b("messagesx.init",function(){var a=DISQUS.jsonData,b=DISQUS.comm.Default.recover();DISQUS.cache.messagesx={count:a.messagesx.count,unread:a.messagesx.unread};a.context.switches.realtime&&a.request.is_authenticated&&b.realtimePoll(a.thread.id)});b("messagesx.toggleBar",function(){var a=DISQUS.nodes.get("#dsq-messagesx-toolbar-icon"),b=DISQUS.nodes.get("#dsq-messagesx-toolbar-dropdown"),c=DISQUS.cache.messagesx;DISQUS.nodes.addClass(DISQUS.nodes.get("#dsq-alert"),"dsq-alert-hidden");DISQUS.nodes.hasClass(a,
"dsq-dropdown-tab-active")?(DISQUS.nodes.removeClass(b,"dsq-dropdown-visible"),DISQUS.nodes.removeClass(a,"dsq-dropdown-tab-active")):(c&&c.unread.length>0&&DISQUS.dtpl.actions.fire("messagesx.markRead"),DISQUS.nodes.addClass(a,"dsq-dropdown-tab-active"),DISQUS.nodes.addClass(b,"dsq-dropdown-visible"));return!1});b("messagesx.newEvent",function(a){a.type=="message"&&g("messagesx.newMessage",a.message)});b("messagesx.newMessage",function(a){var b=DISQUS.nodes.get("#dsq-messagesx-count"),c=DISQUS.nodes.get("#dsq-messagesx-toolbar-icon");
if(b)DISQUS.cache.messagesx.unread.push(a),b.innerHTML=++DISQUS.cache.messagesx.count,a.theme=="achievement"&&DISQUS.nodes.removeClass(DISQUS.nodes.get("#dsq-alert"),"dsq-alert-hidden"),DISQUS.cache.messagesx.count>0?DISQUS.nodes.addClass(c,"dsq-unread"):DISQUS.nodes.removeClass(c,"dsq-unread"),g("messagesx.renderMessage",a)});b("messagesx.renderMessage",function(a){DISQUS.nodes.hide(DISQUS.nodes.get("#dsq-inbox-no-messages"));var b=document.createElement("li");b.id="dsq-messagesx-message-"+a.id;
DISQUS.nodes.addClass(b,"dsq-messagesx");DISQUS.nodes.addClass(b,"dsq-messagesx-"+a.theme);b.innerHTML=DISQUS.renderBlock("messagesxPopup",{message:a});DISQUS.nodes.get("#dsq-messagesx-inbox").appendChild(b)});b("messagesx.render",function(a){if(DISQUS.nodes.get("#dsq-messagesx-count")){var b=!1;DISQUS.each(a.unread,function(a){a.theme=="achievement"&&(b=!0);g("messagesx.renderMessage",a)});b&&DISQUS.nodes.removeClass(DISQUS.nodes.get("#dsq-alert"),"dsq-alert-hidden")}});b("messagesx.markRead",function(){var a=
"",b=DISQUS.nodes.get("#dsq-messagesx-count"),c=DISQUS.nodes.get("#dsq-messagesx-toolbar-icon");DISQUS.each(DISQUS.cache.messagesx.unread,function(b){a=a+","+b.id});DISQUS.api("messagesx/markRead",{data:{messages:a},type:"POST",success:function(){}});DISQUS.cache.messagesx.count=0;DISQUS.cache.messagesx.unread=[];b.innerHTML=DISQUS.cache.messagesx.count;DISQUS.nodes.removeClass(c,"dsq-unread");return!1});b("sherlock.render",function(){DISQUS.jsonData.context.switches.embed_sherlock&&DISQUS.api("threads/listRelated",
{data:{thread:DISQUS.jsonData.thread.id},type:"GET",success:function(a){var b=document.createElement("div");b.innerHTML="<h2>Related Threads</h2>";var c=document.createElement("ul");c.className="dsq-related-threads";for(var d,e,f,g=0;f=a[g];g++)d=document.createElement("li"),e=document.createElement("a"),e.href=f.thread.link,e.appendChild(document.createTextNode(f.thread.title+" ("+f.score+")")),d.appendChild(e),c.appendChild(d);b.appendChild(c);DISQUS.nodes.insertAfter(DISQUS.nodes.get("#dsq-global-toolbar"),
b)}})});b("thread.initialize",function(){DISQUS.jsonData.forum.template.api=="1.1"?DISQUS.extend(DISQUS.dtpl,{APPEND_REPLY_ID:h("dsq-append-reply"),APPEND_EDIT_ID:h("dsq-append-edit"),APPEND_COMMENT_ID:h("dsq-append-post")}):DISQUS.extend(DISQUS.dtpl,{APPEND_REPLY_ID:h("dsq-append-post"),APPEND_EDIT_ID:h("dsq-comment-body"),APPEND_COMMENT_ID:h("dsq-append-post")});DISQUS.jsonData.context.forum_facebook_key&&DISQUS.FB.init();g("toolbar.initialize");DISQUS.dtpl.actions.fire("profile.displayDeferredAvatars");
DISQUS.events.debounce(window,"scroll",function(){DISQUS.dtpl.actions.fire("profile.displayDeferredAvatars")},250);if(DISQUS.jsonData.context.show_reply){DISQUS.comm.Reply.reset();DISQUS.dtpl.ReplyBox.create();DISQUS.jsonData.realtime_enabled&&e("realtime.initialize")&&g("realtime.initialize");var a=document.createElement("div");a.innerHTML=DISQUS.renderBlock("pageInfo");var b=DISQUS.nodes.get("#disqus_thread");b.appendChild(a);DISQUS.ui.truncateComments(b);DISQUS.cache.toggledReplies={}}});b("thread.ready",
function(){setTimeout(function(){g("profile.displayDeferredAvatars");DISQUS.ui.applyTooltips()},0);DISQUS.defer(function(){var a=DISQUS.comm.Reply.recover();return DISQUS.comm.Default.recover().isReady&&(typeof a=="undefined"||a.isReady)},function(){DISQUS.trigger("thread.onReady")})});b("thread.incrementCommentsCount",function(){var a=DISQUS.nodes.get("#dsq-num-posts"),b=DISQUS.nodes.get("#dsq-total-posts");if(a){var c=a.innerHTML.split("-");a.innerHTML=c.length==1?parseInt(c[0],10)+1:c[0]+"-"+(parseInt(c[1],
10)+1)}if(b)b.innerHTML=parseInt(b.innerHTML,10)+1});b("thread.paginate",function(a,b,c){a={slug:DISQUS.jsonData.thread.slug,p:a};if(typeof c=="undefined")c=DISQUS.config.page.per_page;if(DISQUS.config.page.sort)a.sort=DISQUS.config.page.sort;if(typeof c!="undefined")a.per_page=c;DISQUS.dtpl.actions.fire("thread.paginate.onLoadingStart");if(b)b.style.display="none";DISQUS.request.get(DISQUS.jsonData.urls.embed_thread,a,!0)});b("thread.paginate.onLoadingStart","= 1.0",function(){DISQUS.jsonData.thread.pagination_type==
"num"?(DISQUS.window.anchor("disqus_thread"),DISQUS.nodes.get("#dsq-comments").innerHTML='<img src="'+DISQUS.jsonData.settings.media_url+'/images/loading.gif"/>'):DISQUS.nodes.get("#dsq-pagination").innerHTML='<img src="'+DISQUS.jsonData.settings.media_url+'/images/loading-small.gif"/>'});b("thread.paginate.onLoadingStart",">= 1.1",function(){});b("thread.paginate.onLoadingEnd",function(){});b("thread.update",function(){function a(b){if(c)c.innerHTML=b}var b=DISQUS.nodes.get("#dsq-comments"),c=DISQUS.nodes.get("#dsq-num-posts"),
d=DISQUS.nodes.get("#dsq-pagination"),e,f=DISQUS.jsonData.thread.num_posts;DISQUS.trigger("loader.onDataReady");if(DISQUS.jsonData.thread.pagination_type=="num")DISQUS.dtpl.replaceHtml(b,DISQUS.renderBlock("comments")),DISQUS.ui.applyTooltips(b),DISQUS.jsonData.thread.total_posts>f?(e=DISQUS.jsonData.thread.offset_posts,a(e+1+"-"+(e+f))):a(f);else if(DISQUS.jsonData.thread.pagination_type=="append")DISQUS.jsonData.request.page==1?(b.innerHTML=DISQUS.renderBlock("comments"),a(f)):(e=document.createElement("div"),
e.innerHTML=DISQUS.renderBlock(function(a){var b="";DISQUS.each(a.comments,function(a){b+=DISQUS.renderBlock("comment",{comment:a})});return b}),b.appendChild(e),DISQUS.ui.applyTooltips(e),e=c?parseInt(c.innerHTML,10):0,a(e+f));d.innerHTML=DISQUS.renderBlock("pagination");DISQUS.trigger("thread.onPaginate");DISQUS.ui.truncateComments(b);DISQUS.dtpl.actions.fire("profile.displayDeferredAvatars");DISQUS.dtpl.actions.fire("thread.paginate.onLoadingEnd")});b("thread.sort.onLoadingStart","= 1.0",function(){DISQUS.nodes.get("#dsq-comments").innerHTML=
'<img src="'+DISQUS.jsonData.settings.media_url+'/images/loading.gif"/>'});b("thread.sort.onLoadingStart",">= 1.1",function(){});b("thread.sort.onLoadingEnd",function(){});b("thread.sort",function(a){/hot|best|newest|oldest|highlighted/.test(a)&&(a={slug:DISQUS.jsonData.thread.slug,sort:a,p:1},DISQUS.dtpl.actions.fire("thread.sort.onLoadingStart"),DISQUS.request.get(DISQUS.jsonData.urls.embed_thread,a,!0))});b("thread.subscribe",function(a){var b=DISQUS.jsonData.urls.embed_subscribe,c=DISQUS.jsonData.request;
c.is_authenticated&&c.email||a?(a&&DISQUS.popup.close(null,!0),DISQUS.request.get(b,{status:1,slug:DISQUS.jsonData.thread.slug,email:a||""},!0)):a||(DISQUS.popup.popModal(DISQUS.renderBlock("subscribeForm"),DISQUS.strings.get("Get notified of new comments by email")),DISQUS.nodes.get("input",DISQUS.nodes.get("#dsq-popup-message"))[0].focus())});b("__.thread.subscribe.onChange",function(a){a=!!parseInt(a,10);(DISQUS.jsonData.context.subscribed=a)?g("thread.subscribe.onSuccess"):g("thread.unsubscribe.onSuccess")});
b("thread.subscribe.onSuccess","= 1.0",function(){var a=DISQUS.strings.get("Subscribed"),b=DISQUS.strings.get("You have subscribed to this comment thread. New comments will be sent directly to your email inbox, where you may read and respond by email.");DISQUS.nodes.get("#dsq-subscribe").innerHTML='<a href="#" onclick="return DISQUS.dtpl.actions.fire(\'thread.unsubscribe\');">'+DISQUS.strings.get("Unsubscribe")+"</a>";DISQUS.popup.popModal(b,a)});b("thread.subscribe.onSuccess",">= 1.1",function(){});
b("thread.unsubscribe",function(){var a=DISQUS.jsonData.urls.embed_subscribe;DISQUS.jsonData.request.is_authenticated&&DISQUS.request.get(a,{status:0,slug:DISQUS.jsonData.thread.slug},!0)});b("thread.unsubscribe.onSuccess","= 1.0",function(){var a=DISQUS.strings.get("Unsubscribed"),b=DISQUS.strings.get("You have unsubscribed from this comment thread. New comments will no longer be sent to your email inbox.");DISQUS.nodes.get("#dsq-subscribe").innerHTML='<a href="#" onclick="return DISQUS.dtpl.actions.fire(\'thread.subscribe\');">'+
DISQUS.strings.get("Subscribe by email")+"</a>";DISQUS.popup.popModal(b,a)});b("thread.unsubscribe.onSuccess",">= 1.1",function(){});b("thread.vote",function(a){function b(c,d){var e=DISQUS.nodes;e.hasClass(c,"dsq-toggled")?(a=0,e.removeClass(c,"dsq-toggled")):e.addClass(c,"dsq-toggled");e.removeClass(d,"dsq-toggled")}var c=DISQUS.jsonData;if(c.request.is_authenticated||c.forum.allow_anon_votes){var d=DISQUS.nodes.get("#dsq-like-thread-button"),e=DISQUS.nodes.get("#dsq-dislike-thread-button");a>0?
b(d,e):b(e,d);DISQUS.api("threads/vote",{data:{thread:c.thread.id,vote:a},type:"POST",success:function(b){DISQUS.dtpl.actions.fire("thread.vote.onSuccess",a,b.thread.likes)}})}else DISQUS.dtpl.actions.fire("auth.disqus",DISQUS.strings.get("To like please login"))});b("thread.vote.onSuccess",function(a,b){a>0?g("thread.share.new"):g("thread.share.cancel");DISQUS.jsonData.thread.user_vote=a;DISQUS.jsonData.thread.likes=b;if(DISQUS.jsonData.request.is_authenticated){var c=DISQUS.jsonData.request.username;
if(a==1){var d={};d[c]={username:c,avatar:DISQUS.jsonData.urls.request_user_avatar,url:DISQUS.jsonData.urls.request_user_profile,name:DISQUS.jsonData.request.display_username};DISQUS.jsonData.thread.voters=DISQUS.lang.extend(d,DISQUS.jsonData.thread.voters)}else delete DISQUS.jsonData.thread.voters[c]}DISQUS.db.available()&&(c=DISQUS.db.get("thread_votes")||{},c[DISQUS.jsonData.thread.id]={value:a,timestamp:DISQUS.jsonData.request.timestamp},DISQUS.db.set("thread_votes",c));c=DISQUS.nodes.get("#dsq-content");
if(c=DISQUS.nodes.get("ul.dsq-like-faces",c)[0])c.innerHTML=DISQUS.renderBlock("likeActivity"),DISQUS.ui.applyTooltips(c)});b("thread.help",function(){DISQUS.jsonData.request.is_moderator&&DISQUS.popup.popModal(DISQUS.renderBlock("moderatorHelpPopup"),DISQUS.strings.get("Help"))});b("thread.settings",function(){DISQUS.jsonData.request.is_moderator&&DISQUS.popup.popModal(DISQUS.renderBlock("threadSettingsPopup"),DISQUS.strings.get("Moderator Settings"))});b("thread.moderatorActions",function(){DISQUS.jsonData.request.is_moderator&&
DISQUS.popup.popModal(DISQUS.renderBlock("moderatorActionsPopup"),DISQUS.strings.get("Moderate Options"))});b("thread.close",function(){var a=DISQUS.jsonData;DISQUS.api("threads/close",{data:{forum:a.forum.url,thread:a.thread.id},type:"POST",success:function(){DISQUS.ui.Modal.closeAll();DISQUS.reload(function(){DISQUS.redraw()})}})});b("thread.open",function(){var a=DISQUS.jsonData;DISQUS.api("threads/open",{data:{forum:a.forum.url,thread:a.thread.id},type:"POST",success:function(){DISQUS.ui.Modal.closeAll();
DISQUS.reload(function(){DISQUS.redraw()})}})});b("thread.updateModerationSettings",function(a){var b=DISQUS.jsonData,b={forum:b.forum.url,thread:b.thread.id};DISQUS.extend(b,a);DISQUS.api("threads/updateModerationSettings",{data:b,type:"POST",success:function(a){DISQUS.dtpl.actions.fire("thread.updateModerationSettings.onSuccess",a)}})});b("thread.updateModerationSettings.onSuccess",function(){});b("thread.updateDaysAlive",function(){var a=DISQUS.nodes.get("#dsq-thread-settings-status"),b=DISQUS.nodes.get("#dsq-thread-days-alive").value;
DISQUS.dtpl.actions.fire("thread.updateModerationSettings",{lifespan:b});a.innerHTML=DISQUS.strings.get("Saved!");setTimeout(function(){a.innerHTML=""},1E3)});b("thread.updateModerateAll",function(){var a=DISQUS.nodes.get("#dsq-thread-settings-status"),b=+!!DISQUS.nodes.get("#dsq-thread-moderate-all").checked;DISQUS.dtpl.actions.fire("thread.updateModerationSettings",{moderate:b});a.innerHTML=DISQUS.strings.get("Saved!");setTimeout(function(){a.innerHTML=""},1E3)});b("thread.expandMediaEmbed",function(a){var b;
DISQUS.lang.forEach(DISQUS.jsonData.mediaembed,function(c){c.id==a&&(b=c)});DISQUS.popup.popModal(DISQUS.renderBlock("mediaEmbedPopup",{media:b}),DISQUS.strings.get("Attached File"),null,!0,"dsq-media-embed")});b("thread.share.send",function(){function a(b){if(typeof b==="object")b=b.url;DISQUS.popup.popModal('<div id="dsq-tweetbox-container" style="width:520px;height:160px"></div>',"Share on Twitter",null,null,null,{onClose:function(){DISQUS.dtpl.actions.fire("thread.share.nextJob")},onReady:function(){var a=
DISQUS.nodes.get("#dsq-tweetbox-container"),c=new DISQUS.TweetFrame(a,{onReady:function(){c.setContent(e+": "+b)},onSuccess:function(){DISQUS.popup.close(null,!0);DISQUS.dtpl.actions.fire("thread.share.nextJob")}});c.init()}})}if(j){var b=DISQUS.nodes.get("#dsq-share-thread-twitter"),c=DISQUS.nodes.get("#dsq-share-thread-facebook"),b={facebook:c&&c.checked,twitter:b&&b.checked};if(b.twitter||b.facebook){c=DISQUS.nodes.get("#dsq-share-step-1");DISQUS.nodes.hide(c,!0);c=DISQUS.nodes.get("#dsq-share-step-2");
DISQUS.nodes.show(c,!0);j.reposition();t=[];var d={},e=DISQUS.settings.get("thread.title")||document.title;if(DISQUS.jsonData.request.is_authenticated)c=DISQUS.jsonData.request.sharing,d={tw:+(b.twitter&&c.twitter.enabled),fb:+(b.facebook&&c.facebook.enabled&&!DISQUS.jsonData.request.is_remote)};(d.tw||d.fb)&&t.push(function(){DISQUS.request.get(DISQUS.jsonData.urls.embed_thread_share,DISQUS.lang.extend({},d,{title:e,thread:DISQUS.jsonData.thread.id}),!0)});b.facebook&&!d.fb&&t.push(function(){var a=
window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(window.location),"_blank","width=600,height=400");DISQUS.addJob(function(){return!a||a.closed},function(){DISQUS.dtpl.actions.fire("thread.share.nextJob")})});b.twitter&&!d.tw&&t.push(function(){DISQUS.api("shortener/create",{data:{url:window.location.href,forum:DISQUS.jsonData.forum.url,thread:DISQUS.jsonData.thread.id},type:"POST",success:a,failure:function(){a(window.location.href)}})});DISQUS.dtpl.actions.fire("thread.share.nextJob")}}});
b("thread.share",function(){g("thread.share.send")});b("thread.share.new",function(){if(j){var a=DISQUS.nodes.get("div.dsq-share-step",j.container);DISQUS.lang.forEach(a,function(a){DISQUS.nodes.hide(a,!0)});DISQUS.nodes.show(a[0],!0);j.show()}});b("thread.share.cancel",function(){j&&j.hide()});b("thread.share.nextJob",function(a){j&&(a?DISQUS.FB.init(function(){DISQUS.FB.streamShare("",a,function(){DISQUS.dtpl.actions.fire("thread.share.nextJob")})}):t.length?t.shift()():DISQUS.dtpl.actions.fire("thread.share.onSuccess"))});
b("thread.share.onSuccess",function(){if(j){var a=DISQUS.nodes.get("#dsq-share-step-2");DISQUS.nodes.hide(a,!0);a=DISQUS.nodes.get("#dsq-share-step-3");DISQUS.nodes.show(a,!0);j.reposition()}});b("thread.share.onFailure",function(){if(j){var a=DISQUS.nodes.get("#dsq-share-step-3");DISQUS.nodes.hide(a,!0);a=DISQUS.nodes.get("#dsq-share-step-2");DISQUS.nodes.show(a,!0);j.reposition()}});b("realtime.initialize",function(){var a=DISQUS.nodes.get("#dsq-realtime-toggle");if(!DISQUS.states.realtime&&a)DISQUS.states.realtime=
!0,DISQUS.cache.realtime.last_checked=DISQUS.jsonData.request.timestamp,a.onclick=function(){DISQUS.cache.realtime.interval?g("realtime.disable"):g("realtime.enable");return!1},DISQUS.jsonData.forum.streaming_realtime||g("realtime.updateCount"),DISQUS.jsonData.thread.realtime_rate===0||DISQUS.jsonData.realtime_paused?g("realtime.disable"):g("realtime.enable")});b("realtime.enable",function(){var a=DISQUS.nodes.get("#dsq-realtime-toggle"),b=DISQUS.nodes.get("#dsq-realtime-status"),c=setInterval(function(){var a=
DISQUS.cache.realtime,b=DISQUS.jsonData.urls.realtime;b+="?timestamp="+a.last_checked+"&thread_id="+DISQUS.jsonData.thread.id+"&f="+DISQUS.jsonData.forum.url+"&";if(!a.ongoing_request&&DISQUS.jsonData.realtime_enabled)a.prev_script&&a.prev_script.parentNode&&DISQUS.nodes.remove(a.prev_script),a.ongoing_request=!0,a.prev_script=DISQUS.request.get(b,void 0,!0)},DISQUS.jsonData.context.realtime_speed);DISQUS.cache.realtime.interval=c;b.innerHTML=DISQUS.strings.get("enabled");a.innerHTML="("+DISQUS.strings.get("Pause")+
")"});b("realtime.disable",function(){var a=DISQUS.nodes.get("#dsq-realtime-toggle"),b=DISQUS.nodes.get("#dsq-realtime-status"),c=DISQUS.cache.realtime.interval;if(c)clearInterval(c),DISQUS.cache.realtime.interval=null;b.innerHTML=DISQUS.strings.get("paused");a.innerHTML="("+DISQUS.strings.get("Resume")+")"});b("realtime.updateCount",function(){var a=DISQUS.nodes.get("#dsq-content"),a=DISQUS.nodes.get("div.dsq-realtime-alert",a),b=DISQUS.cache.realtime.newPosts.length;if(function(){var a=0,b;for(b in DISQUS.jsonData.posts)if(DISQUS.jsonData.posts.hasOwnProperty(b)&&
++a>5)return!1;return!0}())for(;a.length>1;)a.pop();DISQUS.lang.forEach(a,function(a){a.style.display=b?"block":"none";var c=DISQUS.strings.get("new comment was just posted."),d=DISQUS.strings.get("new comments were just posted.");a.innerHTML=b>1?b+" "+d+" ":b+" "+c+" ";c=document.createElement("A");c.href="#";DISQUS.events.add(c,"click",function(a){a.preventDefault();return g("realtime.show")});c.innerHTML=DISQUS.strings.get("Show");a.appendChild(c)})});b("realtime.insertNewPosts",function(){var a=
null,b=DISQUS.nodes.get("#dsq-sort-select");if(!b&&DISQUS.jsonData.request.sort==4||b&&b.value=="oldest")a=-1;DISQUS.lang.forEach(DISQUS.cache.realtime.newPosts,function(b){g("comments.insert",a,b);g("thread.incrementCommentsCount");g("comments.outline",b)});DISQUS.jsonData.forum.streaming_realtime||(a?(b=DISQUS.nodes.get(".dsq-comment",DISQUS.nodes.get("#disqus_thread")),DISQUS.nodes.scrollTo(b[b.length-1])):DISQUS.nodes.scrollTo("#disqus_thread"));DISQUS.cache.realtime.newPosts=[]});b("realtime.show",
function(){g("realtime.insertNewPosts");g("realtime.updateCount")});b("realtime.update",function(a,b,c){var d=DISQUS.cache.realtime;d.ongoing_request=null;d.last_checked=a;c&&DISQUS.lang.forEach(c,function(a,b){DISQUS.jsonData.users[b]||(DISQUS.jsonData.users[b]=a)});b&&(DISQUS.lang.forEach(b,function(a,b){DISQUS.jsonData.posts[b]||(DISQUS.updatePost(b,a),d.newPosts.push(b))}),DISQUS.jsonData.forum.streaming_realtime?g("realtime.insertNewPosts"):g("realtime.updateCount"))});b("community.show",function(){(new DISQUS.ui.ForumCommunityModal).open({url:DISQUS.jsonData.urls.community,
lang:DISQUS.jsonData.forum.language})});b("reactions.hide",function(a){DISQUS.api("reactions/remove",{data:{reaction:a,forum:DISQUS.jsonData.forum.url},type:"POST",success:function(a){DISQUS.dtpl.actions.fire("reactions.hide.onSuccess",a[0].id)}})});b("reactions.hide.onSuccess",function(a){DISQUS.nodes.hide(DISQUS.nodes.get("#dsq-reaction-"+a))});b("reactions.hide.onSuccess",function(a){DISQUS.nodes.get("#dsq-reaction-"+a).style.display="none"});b("reactions.loadMore",function(){DISQUS.request.get(DISQUS.jsonData.urls.embed_more_reactions,
{t:DISQUS.jsonData.thread.id,s:DISQUS.jsonData.reactions_start,l:DISQUS.jsonData.reactions_limit},!0)});b("reactions.insert",function(a){var b=DISQUS.nodes.get("#dsq-reactions"),c=DISQUS.nodes.get("#dsq-show-more-reactions");DISQUS.lang.forEach(a,function(a){var a={reaction:a},c=document.createElement("div"),d=a.reaction.get_service_name;a.reaction.service_icon=d=="trackback"||d=="pingback"?"rss":d.replace(" ","");c.innerHTML=DISQUS.renderBlock("reaction",a);b.appendChild(DISQUS.nodes.children(c)[0])});
DISQUS.ui.applyTooltips(b);if(!DISQUS.jsonData.has_more_reactions)c.style.display="none"});b("reactions.reportMissing",function(){var a=DISQUS.jsonData.urls.embed_queueurl;DISQUS.jsonData.request.is_moderator&&DISQUS.jsonData.forum.reactions_enabled&&(DISQUS.jsonData.thread.queued?DISQUS.popup.popModal(DISQUS.strings.get("The system will automatically search for new reactions. If any are found, they will displayed on this comment thread."),DISQUS.strings.get("Thank you")):DISQUS.request.get(a,{},
!0))});b("reactions.showRetweets",function(a){var b;DISQUS.lang.forEach(DISQUS.jsonData.reactions,function(c){c.id==a&&(b=c)});DISQUS.popup.popModal(DISQUS.renderBlock("retweetsPopup",{reaction:b}),DISQUS.strings.get("Retweets"))});b("toolbar.initialize",function(){if(DISQUS.nodes.get("#dsq-global-toolbar")){var a=DISQUS.nodes.get("#dsq-like-thread-button");j=new DISQUS.tooltip.ManualTooltip(a,{trigger:null,contentId:"dsq-like-tooltip"});var b=[DISQUS.nodes.get("#dsq-share-thread-twitter"),DISQUS.nodes.get("#dsq-share-thread-facebook")],
c=function(){var a=!1;DISQUS.lang.forEach(b,function(b){b&&(a=a||b.checked)});var c=DISQUS.nodes.get(".dsq-primary-action",j.content)[0];a?(c.removeAttribute("disabled"),DISQUS.nodes.removeClass(c,"dsq-tooltip-disabled-button")):(c.setAttribute("disabled","disabled"),DISQUS.nodes.addClass(c,"dsq-tooltip-disabled-button"))};DISQUS.lang.forEach(b,function(a){a&&DISQUS.events.add(a,"click",c)});var d=DISQUS.nodes.get("#dsq-dropdown-menu");if(DISQUS.browser.ie6&&d){var a=DISQUS.nodes.get("#dsq-logo-dropdown"),
e=DISQUS.nodes.get("a.dsq-dropdown-arrow",a)[0];DISQUS.events.add(e,"click",function(){DISQUS.nodes.toggleClass(e,"dsq-visible");DISQUS.nodes.toggleClass(d,"dsq-visible")});DISQUS.events.add(d,"click",function(a){if(DISQUS.nodes.closest(a.target||a.srcElement,".dsq-login-button"))DISQUS.nodes.toggleClass(e,"dsq-visible"),DISQUS.nodes.toggleClass(d,"dsq-visible")})}}});b("help.login",function(){DISQUS.popup.popModal(DISQUS.renderBlock("helpLogin"),DISQUS.strings.get("Help: Enabling cookies"))});b("comments.reply.mentions.selectUser",
function(a,b){var c=DISQUS.jsonData.users[b],d=DISQUS.comm.Reply.recover(a);c.identifier=b;d.selectUser(c);DISQUS.dtpl.actions.fire("comments.reply.mentions.clear",a)});b("comments.reply.mentions.selectActive",function(a){var b=DISQUS.dtpl.ReplyBox.get(a).textareaContainer();if(b=DISQUS.nodes.get(".dsq-mentions",b.parentNode)[0])b=i(b).getAttribute("data-dsq-username"),DISQUS.dtpl.actions.fire("comments.reply.mentions.selectUser",a,b)});b("comments.reply.mentions.suggest",function(a,b){function c(a){a=
DISQUS.nodes.get("li",a);DISQUS.each(a,function(a){DISQUS.events.add(a,"click",function(a){if((a=a.target||a.srcElement)&&!DISQUS.nodes.hasClass(a,"dsq-mentions"))if(a=q(a,"data-dsq-username")?a:DISQUS.nodes.closest(a,"li"))(a=a.getAttribute("data-dsq-username"))&&DISQUS.dtpl.actions.fire("comments.reply.mentions.selectUser",b,a)});DISQUS.events.add(a,"mouseover",function(a){var a=a.target||a.srcElement,b;if(a&&!DISQUS.nodes.hasClass(a,"dsq-mentions")&&(a=q(a,"data-dsq-username")?a:DISQUS.nodes.closest(a,
"li"))&&q(a,"data-dsq-username"))b=DISQUS.nodes.get("li",a.parentNode),DISQUS.each(b,function(a){DISQUS.nodes.removeClass(a,"dsq-mentions-highlighted")}),DISQUS.nodes.addClass(a,"dsq-mentions-highlighted")})})}function d(a){var b=a.remote_domain_name.toLowerCase()||"disqus";return'<li data-dsq-username="'+a.identifier+'" class="dsq-mentions-'+b+'"> <img class="dsq-mentions-avatar" src="'+a.avatar+'" /> <p class="dsq-mentions-name"><span>'+a.display_name+"</span></p></li>"}function e(a,b){var d=
DISQUS.dtpl.ReplyBox.get(b).textareaContainer(),f=DISQUS.nodes.get(".dsq-mentions",d.parentNode)[0];if(!f)f=document.createElement("ul"),f.className="dsq-mentions",DISQUS.nodes.insertAfter(d,f);a?(f.innerHTML=a,c(f),DISQUS.nodes.show(f),(d=p(f,null,"down"))&&DISQUS.nodes.addClass(d,"dsq-mentions-highlighted")):DISQUS.nodes.hide(f)}if(!a||!a.sections)DISQUS.dtpl.actions.fire("comments.reply.mentions.clear",b);else{var f=!1,g="",i,h,l,j;for(l=0;l<a.sections.length;++l)if(i=a.sections[l],(h=a[i])&&h.length){g+=
'<li class="dsq-mention-section"><h5>'+i+"</h5></li>";for(j=0;j<h.length;++j)f||(f=!0),g+=d(a[i][j]),DISQUS.jsonData.users[h[j].identifier]||(DISQUS.jsonData.users[h[j].identifier]=h[j])}f?e(g,b):DISQUS.dtpl.actions.fire("comments.reply.mentions.clear",b)}});b("comments.reply.mentions.move",function(a,b){var c=DISQUS.dtpl.ReplyBox.get(b).textareaContainer(),d=DISQUS.nodes.get(".dsq-mentions",c.parentNode)[0],c=i(d);if(d=p(d,c,a))DISQUS.nodes.removeClass(c,"dsq-mentions-highlighted"),DISQUS.nodes.addClass(d,
"dsq-mentions-highlighted")});b("comments.reply.mentions.clear",function(a){a=DISQUS.dtpl.ReplyBox.get(a).textareaContainer();(a=DISQUS.nodes.get(".dsq-mentions",a.parentNode)[0])&&DISQUS.nodes.hide(a)});return{def:b,callAction:d,register:function(a,b){l[a]=l[a]||[];b.guid=DISQUS.getGuid();l[a].push(b);return b},remove:c,getDefault:a,hasDefault:f,registered:e,fire:g}});
DISQUS.define("dtpl.validators",function(){return{email:function(b){if(!/^[a-z0-9\-\_\+]+(\.[a-z0-9\-\_\+]+)*\@(([a-z0-9\-\_\+]+(\.[a-z0-9\-\_\+]+)*)+\.[a-z]{2,}|([0-9]+\.){3}[0-9]+)$/i.test(b.value))return DISQUS.dtpl.actions.fire("message.error.onField",DISQUS.strings.get("Please enter a valid email to comment."),b.id),!1;return!0},name:function(b){var d=DISQUS.strings.get("Name");if(b.value==d||b.value.length<=1)return DISQUS.dtpl.actions.fire("message.error.onField",DISQUS.strings.get("Please enter a name to comment."),
b.id),!1;return!0},website:function(b){var d=DISQUS.strings.get("Website")+" ("+DISQUS.strings.get("Optional")+")";if(!b||!b.value)return!0;else if(b.value==d)return b.value="",!0;if(b.value.indexOf(".")==-1)return DISQUS.dtpl.actions.fire("message.error.onField",DISQUS.strings.get("Please check your website URL (this field is optional)."),b.id),!1;return!0},guestFields:function(b){b=b&&typeof b==="object"?b:DISQUS.dtpl.getGuestFields(b);if(DISQUS.jsonData.request.is_authenticated)return!0;if(!DISQUS.dtpl.validators.email(b.email))return!1;
if(!DISQUS.dtpl.validators.name(b.name))return!1;if(!DISQUS.dtpl.validators.website(b.website))return!1;return!0}}});
DISQUS.define("cookies",function(){return{create:function(b,d){document.cookie=b+"="+d+"; path=/"},read:function(b){b+="=";for(var d,c=document.cookie.split(";"),a=0;a<c.length;a++){for(d=c[a];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(b)===0)return d.substring(b.length,d.length)}return null},erase:function(b){var d=new Date;d.setTime(d.getTime()+-864E5);document.cookie=b+"=;expires="+d.toGMTString()+"; path=/"}}});
DISQUS.define("events",function(){function b(){if(d.ready)return!0;if(document&&document.getElementsByTagName&&document.getElementById&&document.body){if(d.timer)clearInterval(d.timer),d.timer=null;for(var b=0;b<d.queue.length;b++)d.queue[b]();d.queue=[];return d.ready=!0}return!1}var d={ready:!1,timer:null,queue:[]};return{execOnReady:function(c){b()?c():d.timer?d.queue.push(c):(DISQUS.events.add(window,"load",b),d.queue.push(c),d.timer=setInterval(b,13))}}});
DISQUS.define("request",function(){return{get:function(b,d,c,a){var f=document.createElement("script");f.src=DISQUS.getResourceURL(b,d,c);f.charset="UTF-8";(a||DISQUS.nodes.body()).appendChild(f);return f},post:function(b,d,c){var a,f,e,g;a=document.createElement("div");e="dsq-temp-iframe"+(new Date).getTime();f=document.createElement("form");f.method="POST";f.action=b;if(!c)f.target=e;try{g=document.createElement('<iframe name="'+e+'">')}catch(h){g=document.createElement("iframe"),g.name=e}g.style.display=
"none";g.id=e;a.appendChild(g);DISQUS.lang.forEach(d,function(a,b){var c=document.createElement("input");c.name=b;c.type="hidden";c.value=a;f.appendChild(c)});DISQUS.nodes.body().appendChild(a);DISQUS.nodes.body().appendChild(f);f.submit()}}});
DISQUS.define("popup",function(){return{popModal:function(b,d,c,a,f,e){DISQUS.ui.Modal.closeAll();c=new DISQUS.ui.Modal;b={title:d,body:b,extra:f};DISQUS.lang.extend(b,e||{});c.open(b)},popProfile:function(b,d,c){var a=DISQUS.jsonData.posts[b];if(a){if(a.has_been_anonymized){DISQUS.popup.popModal(DISQUS.strings.get("This message was anonymized by its previous owner"),DISQUS.strings.get("Anonymized"),b);return}else if(a.killed){DISQUS.popup.popModal(DISQUS.strings.get("This comment was removed by a moderator"),
DISQUS.strings.get("Comment Removed"),b);return}d=DISQUS.jsonData.posts[b].user_key}b={username:d,anonymous:!!d.match(/^[0-9a-f]{32}/i),isModerator:c,forum:DISQUS.getShortname(),lang:DISQUS.jsonData.forum.language};(new DISQUS.ui.ProfileModal).open(b);return!1},close:function(){DISQUS.ui.Modal.closeAll()},adjustPosition:function(){var b=DISQUS.ui.Modal.last();b&&b.reposition()}}});
DISQUS.define("window",function(){return{anchor:function(b){window.location.hash=b},isClosed:function(b){if(!b)return!0;try{return b.closed||b.closed===void 0}catch(d){return!0}}}});DISQUS.define("hacks.ie",function(){return{fixIframes:function(b){var d=DISQUS.nodes.get("#"+DISQUS.config.container_id).getElementsByTagName("iframe");if(b=b?DISQUS.nodes.get("#"+b):DISQUS.nodes.container)for(var c=0;c<d.length;c++)d[c].style.width=b.offsetWidth}}});
DISQUS.define("db",function(){function b(){var b=localStorage.getItem("disqus_embed");return b?DISQUS.json.parse(b):{}}function d(){try{return!!window.localStorage}catch(b){return!1}}return{available:d,set:function(c,a){if(!d())return!1;var f=b();f[c]=a;try{localStorage.setItem("disqus_embed",DISQUS.json.stringify(f))}catch(e){}return!0},get:function(c){if(!d())return null;return b()[c]}}});
DISQUS.define("nodes",function(){function b(a){return RegExp("(^|\\s)"+a+"(\\s|$)")}function d(a,b){var c=DISQUS.qwery(a,b);return a.slice(0,1)=="#"&&a.indexOf(" ")===-1?c[0]:c}function c(a){for(var b=[];a;a=a.nextSibling)a.nodeType===1&&b.push(a);return b}function a(a,c){return a.nodeType!==1?!1:c.slice(0,1)=="#"?a.id==c.slice(1):c.indexOf(".")!=-1?b(c.slice(1)).test(a.className):a.tagName.toLowerCase().indexOf(c)!=-1}function f(a,b,c){var d;if(a===document)return"";window.getComputedStyle?d=document.defaultView.getComputedStyle(a,
null).getPropertyValue(b):a.currentStyle&&(d=a.currentStyle[b]?a.currentStyle[b]:a.currentStyle[c]);return d=="transparent"||d===""||d=="rgba(0, 0, 0, 0)"?f(a.parentNode,b,c):d||""}function e(){var a;a=d("body")[0];if(j)return j;j={backgroundColor:null,fontColor:null,fontFamily:null,anchorColor:null,direction:null};a=d("#"+DISQUS.config.container_id)||a;j.fontColor=f(a,"color");j.backgroundColor=f(a,"background-color","backgroundColor");j.fontFamily=f(a,"font-family","fontFamily").replace(/['"]/g,
"");j.direction=f(a,"direction");if(a=d("a")[0])j.anchorColor=f(a,"color");return j}function g(){var a=e(),a={to_redirect:window.location,ff:a.fontFamily,fc:a.fontColor,ac:a.anchorColor};DISQUS.jsonData&&DISQUS.lang.extend(a,{f:DISQUS.jsonData.forum.url,t:DISQUS.jsonData.thread.slug,cbp:DISQUS.config.callback_params,default_text:DISQUS.config.def_text});return a}function h(a,c){return b(c).test(a.className)}function i(a,b){var c=(b||"").split(u);if(a.className){for(var d=" "+a.className+" ",e=a.className,
f=0,g=c.length;f<g;f++)d.indexOf(" "+c[f]+" ")<0&&(e+=" "+c[f]);a.className=DISQUS.lang.trim(e)}else a.className=b}function q(a,b){var c=(b||"").split(u);if(b){for(var d=(" "+a.className+" ").replace(s," "),e=0,f=c.length;e<f;e++)d=d.replace(" "+c[e]+" "," ");a.className=DISQUS.lang.trim(d)}else a.className=""}function p(a){var b,c;if(a){b=a.childNodes;for(var d=b.length-1;d>=0;)c=b[d],c.hasChildNodes()&&p(c),typeof c.outerHTML!="undefined"?c.outerHTML="":a.removeChild(c),d-=1}}var o=DISQUS.qwery("#dsq-content")[0],
l=DISQUS.qwery("head")[0]||DISQUS.qwery("#disqus_thread")[0],j,t=null,s=/[\n\t]/g,u=/\s+/;return{container:o,head:l,query:DISQUS.qwery,get:d,siblings:c,children:function(a){return c(a.firstChild)},is:a,body:function(){if(t)return t;var a=DISQUS.qwery("body");a&&a.length&&(t=a[0]);return t},closest:function(b,c){for(var d=b.parentNode;d;){if(a(d,c))return d;d=d.parentNode}return null},createIframe:function(a,b,c){var d,e,f;f=g();b&&DISQUS.lang.forEach(b,function(a,b){f[b]=a});e={marginwidth:0,marginheight:0,
hspace:0,vspace:0,frameborder:0,allowtransparency:"true",src:DISQUS.getResourceURL(a,f,!0)};c&&DISQUS.lang.forEach(c,function(a,b){e[b]=a});d=document.createElement("iframe");DISQUS.lang.forEach(e,function(a,b){d.setAttribute(b,a)});return d},getPosition:function(a){var b=0,c=0;if(a.offsetParent){do b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;while(a)}return[b,c]},getStyle:f,getBasicStyles:e,hasClass:h,addClass:i,removeClass:q,toggleClass:function(a,b){h(a,b)?q(a,b):i(a,b)},remove:function(a){if(a)p(a),
typeof a.outerHTML!="undefined"?a.outerHTML="":a.parentNode&&a.parentNode.removeChild(a)},removeChildren:p,insertBefore:function(a,b){a.parentNode.insertBefore(b,a)},insertAfter:function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},firstChild:function(a){var a=a.childNodes,b;for(b=0;b<a.length;b++)if(a[b].nodeType===1)return a[b];return null},toHTML:function(a){var b;b=document.createElement("div");b.appendChild(a);return b.innerHTML},hide:function(a,b){b?a.style.cssText="display:none !important":
a.style.display="none"},show:function(a,b){b?a.style.cssText="display:block !important":a.style.display="block"},scrollTo:function(a){typeof a==="string"&&(a=d(a));a&&(a=DISQUS.nodes.getPosition(a),window.scrollTo(0,a[1]))},truncateComment:function(a,b,c){for(var d=a.childNodes[0],e=0;d!==null;){if(d.nodeType==3&&(e+=d.nodeValue.replace(/^\s+|\s+$/g,"").split(" ").length,e>b))break;if(d.childNodes.length>0)d=d.childNodes[0];else if(d.nextSibling!==null)d=d.nextSibling;else if(d.parentNode===a)break;
else{for(d=d.parentNode;d.parentNode.nextSibling===null&&d!==a;)d=d.parentNode;d=d==a?null:d.nextSibling}}if(e<=b)return!1;var f=d.nodeValue.replace(/^\s+|\s+$/g,"").split(" "),f=f.slice(0,f.length-(e-b));if(d.nodeType===3)d.nodeValue=f.join(" ")+c;for(;d!==a;){for(;d.nextSibling!==null;)d.nextSibling.parentNode.removeChild(d.nextSibling);d=d.parentNode}return!0},slide:function(a,b,c,d){var d=250,e=(new Date).getTime(),f=Math.max(b,c),g=c<b,i=g?Math.max:Math.min;a.style.height=b+"px";a.style.overflow=
"hidden";a.style.display="block";var h=setInterval(function(){var b=(new Date).getTime()-e,l=b/d;g&&(l=1-l);l=parseInt(f*l,10);l=i(l,c);a.style.height=l+"px";if(b>=d){if(l<=0)a.style.display="none",a.style.height="";clearInterval(h)}},13)},getIframeDefaults:g}});
DISQUS.define("sandbox",function(){function b(){var a={DISQUS:null,browser:DISQUS.browser,config:DISQUS.config,urls:{},lang:{forEach:DISQUS.lang.forEach,interpolate:DISQUS.strings.interpolate,contains:function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return!0;return!1},pluralize:DISQUS.strings.pluralize,capitalize:DISQUS.strings.capitalize,extend:DISQUS.lang.extend},states:DISQUS.states,trans:DISQUS.strings.get,settings:{}},b={debug:"disqus.debug",minify_js:"disqus.minified",read_only:"disqus.readonly",
disqus_url:"disqus.urls.main",media_url:"disqus.urls.media",ssl_media_url:"disqus.urls.sslMedia",realtime_url:"disqus.urls.realtime",uploads_url:"disqus.urls.uploads",recaptcha_public_key:"disqus.recaptcha.key",facebook_app_id:"disqus.facebook.appId",facebook_api_key:"disqus.facebook.apiKey"};if(DISQUS.jsonData&&DISQUS.jsonData.context.switches.realtime_setting_change)b.realtimeHost="realtime.host",b.realtimePort="realtime.port";for(var c in b)b.hasOwnProperty(c)&&(a.settings[c]=DISQUS.settings.get(b[c]));
if(!DISQUS.jsonData)return a;var d=DISQUS.jsonData,b=d.settings.media_url;DISQUS.lang.extend(a,{context:d.context,messagesx:d.messagesx,comments:[],highlighted:[],unapproved:[],comment:null,forum:d.forum,integration:d.integration,loginOptions:[{name:"disqus",button_url:b+"/images/themes/narcissus/login-disqus.gif",enabled:!d.forum.disqus_auth_disabled,action:"auth.disqus"},{name:"facebook",button_url:b+"/images/themes/narcissus/login-facebook.gif",enabled:d.context.use_fb_connect,action:"auth.facebook"},
{name:"twitter",button_url:b+"/images/themes/narcissus/login-twitter.gif",enabled:d.context.use_twitter_signin,action:"auth.twitter"},{name:"google",button_url:b+"/images/themes/narcissus/login-twitter.gif",enabled:d.context.use_google_signin,action:"auth.google"},{name:"openid",button_url:b+"/images/themes/narcissus/login-openid.gif",enabled:d.context.use_openid,action:"auth.openid"},{name:"yahoo",button_url:b+"/images/themes/narcissus/login-yahoo.png",enabled:d.context.use_yahoo,action:"auth.yahoo"}],
ranks:d.ranks,request:d.request,reactions:d.reactions,session:d.session,sorting:[{value:"hot",label:DISQUS.strings.get("Popular now"),selected:d.request.sort==4},{value:"best",label:DISQUS.strings.get("Best rating"),selected:d.request.sort==3},{value:"newest",label:DISQUS.strings.get("Newest first"),selected:d.request.sort==2},{value:"oldest",label:DISQUS.strings.get("Oldest first"),selected:d.request.sort==1}],thread:d.thread,urls:d.urls});DISQUS.config.sso&&a.loginOptions.push({name:DISQUS.config.sso.name,
button_url:DISQUS.config.sso.button,action:"auth.sso",enabled:!0,userDefined:!0});DISQUS.lang.extend(a.settings,d.settings);if(DISQUS.db.available()&&(c=DISQUS.db.get("thread_votes"))&&c[d.thread.id])b=c[d.thread.id],b.timestamp>=d.request.timestamp?(c=b.value-a.thread.user_vote,a.thread.likes+=c<0?0:c,a.thread.user_vote=b.value):(delete c[d.thread.id],DISQUS.db.set("thread_votes",c));a.context.realtime_enabled=d.realtime_enabled;a.context.has_more_reactions=d.has_more_reactions;DISQUS.config.trackback_url&&
DISQUS.config.trackbacks?(a.context.trackback_url=DISQUS.config.trackback_url,a.context.trackbacks=DISQUS.config.trackbacks):(a.context.trackback_url=d.settings.disqus_url+"/forums/"+d.forum.url+"/"+d.thread.slug+"/trackback/",a.context.trackbacks=d.trackbacks);a.context.sharing=[];DISQUS.lang.forEach(a.request.sharing,function(b,c){if(!(a.request.is_remote&&a.request.remote_domain!=c))b.key=c,b.checked=b.auto===!0||a.request.remote_domain==c,a.context.sharing.push(b)});a.request.display_sharing_options=
d.request.is_authenticated;if(d.request.is_remote&&!d.request.sharing.hasOwnProperty(d.request.remote_domain))a.request.display_sharing_options=!1;if(a.reactions&&a.reactions.length>0){for(f=0;f<a.reactions.length;f++)b=a.reactions[f].get_service_name,a.reactions[f].service_icon=b=="trackback"||b=="pingback"?"rss":b.replace(" ","");if(a.reactions.retweets&&a.reactions.retweets.length===0)a.reactions.retweets=null}else a.reactions=null;DISQUS.lang.forEach(d.mediaembed,function(a){a.thumbnailURL=d.settings.media_url+
"/images/mediaembed-thumbnail.png";switch(a.type){case 1:case 5:if(a.metadata.thumbnail)a.thumbnailURL=d.settings.media_url.replace(/\/$/,"")+"/uploads/"+a.metadata.thumbnail.replace(/^\//,"");break;case 2:case 4:if(a.metadata.thumbnail)a.thumbnailURL=a.metadata.thumbnail}if(!d.posts[a.post].media)d.posts[a.post].media=[];d.posts[a.post].media.push(a)});var q={avatar:DISQUS.jsonData.forum.default_avatar_url,display_name:"Guest"};DISQUS.each(d.ordered_highlighted,function(b){var c=d.highlighted[b];
c.author=d.users[c.user_key]||q;c.id=b;c.stripped=function(a){var b=c.message.replace(/<.*?>/g,"");if(b.length>a)return b.substring(0,a);return null};a.highlighted.push(c)});if(d&&d.context.switches.show_unapproved){var p=d.request;DISQUS.each(p.ordered_unapproved_posts,function(b){var c=p.unapproved_posts[b];c.author=d.users[c.user_key]||q;c.id=b;a.unapproved.push(c)})}var o=0;DISQUS.lang.forEach(d.ordered_posts,function(b){var c=d.posts[b];c.isFirst=!1;c.isLast=!1;c.id=b;c.author=d.users[c.user_key]||
q;c.even=o%2===0;if(c.parent_post_id&&d.posts[c.parent_post_id])c.parent=d.posts[c.parent_post_id],c.parent.author=d.users[c.parent.user_key]||q;c.stripped=function(a){var b=c.message.replace(/<.*?>/g,"");if(b.length>a)return b.substring(0,a);return null};if(o===0)c.isFirst=!0;else if(b=a.comments[o-1],b.depth<c.depth)c.isFirst=!0;else if(b.depth>c.depth)b.isLast=!0;a.comments.push(c);o++});if(o>0)a.comments[o-1].isLast=!0;a.thread.page_numbers=[];for(f=a.request.page-2;f<a.request.page+2;f++)f>0&&
f<=a.thread.num_pages&&a.thread.page_numbers.push(f);a.thread.page_numbers[0]==2&&a.thread.page_numbers.unshift(1);a.thread.page_numbers[a.thread.page_numbers.length-1]==a.thread.num_pages-1&&a.thread.page_numbers.push(a.thread.num_pages);return a}function d(){var b={};DISQUS.lang.forEach(a,function(a){typeof a!="undefined"&&DISQUS.lang.extend(b,a)});return b}var c,a={},f;return{wrap:function(f,g,h){typeof c=="undefined"&&(c=b());h&&(a[f]=h);h=d();g=g(c,h);a[f]&&(a[f]=void 0);return g},invalidateGlobals:function(){c=
void 0}}});
DISQUS.define("tooltip",function(){var b=function(c,a){a=DISQUS.lang.extend({},b.defaults,a===void 0?{}:a);this.element=c;this.options=a;this.returnTo=this.content=null;this.enabled=!0;this.init()};b.prototype={init:function(){var b=this,a=this.element,d=this.options;if(d.trigger==="click"){var e,g,h,i;h=function(){b.enter();DISQUS.events.remove(a,"click",e);setTimeout(function(){g=DISQUS.events.add(document,"click",i)},0)};e=DISQUS.events.add(a,"click",h);i=function(d){d=d||window.event;DISQUS.nodes.closest(d.target||
d.srcElement,".dsq-tooltip-outer")||(b.hide(),DISQUS.events.remove(document,"click",g),e=DISQUS.events.add(a,"click",h))}}else d.trigger&&(DISQUS.events.add(a,"mouseout",function(){b.leave()}),DISQUS.events.add(a,"mouseover",function(){b.enter()}))},show:function(){var b=this.getTitle();if(this.enabled&&(b||this.options.contentId)){var a=this.outer(),d=DISQUS.nodes.get(".dsq-tooltip-inner",a)[0],e;this.options.contentId?(e="big",this.content=DISQUS.nodes.get("#"+this.options.contentId),this.returnTo=
this.content.parentNode,d.appendChild(this.content),this.content.setAttribute("style","display:block !important")):(e="small",DISQUS.nodes.addClass(a,"dsq-tooltip-small"),this.options.html?d.innerHTML=b:typeof d.innerText!=="string"?d.textContent=b:d.textText=b);a.className="";DISQUS.nodes.addClass(a,"dsq-tooltip-outer");DISQUS.nodes.addClass(a,"dsq-tooltip-"+e);a.style.visibility="hidden";a.style.top="0";a.style.left="0";a.style.display="block";document.getElementsByTagName("body")[0].appendChild(a);
this.reposition()}},reposition:function(){var b=this.outer(),a=DISQUS.nodes.getPosition(this.element),a={left:a[0],top:a[1],width:this.element.offsetWidth,height:this.element.offsetHeight};b.style.top=a.top-b.offsetHeight+"px";b.style.left=a.left+"px";b.style.backgroundPosition=a.width/2+"px bottom";if(!this.options.fade)b.style.visibility="visible",b.style.opacity=this.options.opacity},hide:function(){if(!this.options.fade)this.content&&(this.content.setAttribute("style","display:none !important"),
this.returnTo.appendChild(this.content)),this.outer().style.visibility="hidden"},getTitle:function(){var b,a=this.element,d=this.options;a.title&&(a.setAttribute("original-title",a.title),a.removeAttribute("title"));typeof d.title=="string"?b=a.getAttribute(d.title=="title"?"original-title":d.title):typeof d.title=="function"&&(b=d.title.call(a));return(b=b&&b.replace(/(^\s*|\s*$)/,""))||d.fallback},outer:function(){if(!this._outer){var b=this._outer=document.createElement("div");b.className="dsq-tooltip-outer";
b.style.position="absolute";b.style.zIndex="9999";b.innerHTML='<div class="dsq-tooltip dsq-cleanslate"> <div class="dsq-tooltip-notch"></div> <div class="dsq-tooltip-inner"></div></div>'}return this._outer},validate:function(){this.$element[0].parentNode||this.hide()},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},leave:function(){if(this.hoverState!=="out")this.hoverState="out",this.options.delayOut===0?this.hide():setTimeout(function(){this.hoverState==
"out"&&this.hide()},this.options.delayOut)},enter:function(){if(this.hoverState!=="in")this.hoverState="in",this.options.delayIn===0?this.show():setTimeout(function(){this.hoverState=="in"&&this.show()},this.options.delayIn)}};b.defaults={delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,opacity:0.95,title:"title",trigger:"hover",contentId:null,noclip:!1};var d=function(c,a){b.call(this,c,a)};d.prototype=DISQUS.lang.extend({},b.prototype);d.prototype.show=function(){var c=this,
a;b.prototype.show.call(this);a=DISQUS.events.add(document,"click",function(b){b=b||window.event;DISQUS.nodes.closest(b.target||b.srcElement,".dsq-tooltip-outer")||(c.hide(),DISQUS.events.remove(document,"click",a))})};return{Tooltip:b,ManualTooltip:d}});
DISQUS.define("comm",function(){var b,d,c={Default:null,Facebook:null,SSO:null,Reply:{},Auth:{},Edit:{},Twitter:{},Upload:{}};return{Default:{create:function(a){if(c.Default!==null)return c.Default;var b,d={remote:DISQUS.settings.get("disqus.debug")?DISQUS.jsonData.urls.channels.def:DISQUS.settings.get("disqus.urls.media")+"/build/system/def.html#",onReady:function(){b.isReady=!0;a&&a()}};b=DISQUS.net.rpc(d,{local:{realtimeNotify:function(a){DISQUS.dtpl.actions.fire("messagesx.newEvent",a)}},remote:{api:{},
echo:{},enable:{},flushLog:{},addMeta:{},log:{},setApiKey:{},realtimePoll:{}}});return c.Default=b},recover:function(){return c.Default}},Reply:{create:function(){var a=Array.prototype.slice.call(arguments),f=a.length,e=a[f-1],g=arguments[0],h=Object.prototype.toString.call(e)=="[object Function]"?e:null,i=f>0&&a[1]!=h?a[1]:0,i=i||null,a={},f=!1;if((!DISQUS.browser.ie||!DISQUS.browser.quirks)&&!DISQUS.browser.ie6&&!DISQUS.browser.ie7&&DISQUS.dtpl.actions.registered("comments.reply.onResize",!0))a.scrolling=
"no",f=!0;if(typeof b=="undefined")b=DISQUS.jsonData,d=DISQUS.nodes.getBasicStyles();e={f:b.forum.url,t:b.thread.slug,ff:d.fontFamily,d:d.direction,p:DISQUS.config.def_text,upload_media:DISQUS.jsonData.context.switches.upload_media,mentions:DISQUS.jsonData.context.switches.mentions&&DISQUS.jsonData.forum.mentions_enabled};DISQUS.config.absorbStyles&&DISQUS.extend(e,{fc:d.fontColor,bg:d.backgroundColor});e=b.urls.channels.reply+"#"+DISQUS.serializeArgs(e);if(DISQUS.browser.ie&&window.postMessage==
null){var q=!1;if(typeof window.ActiveXObject!="undefined")try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(p){var o=p.GetVariable("$version");o&&(o=o.split(" ")[1].split(","),parseInt(o[0],10)==10&&(q=!0))}}catch(l){}if(!q&&!DISQUS.nodes.get("#dsq-old-flash-notice"))p=DISQUS.nodes.get("#disqus_thread"),o=document.createElement("div"),o.id="dsq-old-flash-notice",o.className="dsq-notice",o.innerHTML=DISQUS.renderBlock("oldFlashMessage"),p.insertBefore(o,p.firstChild)}var j=DISQUS.net.rpc({remote:e,
container:g,props:a,onReady:function(){var a=DISQUS.nodes.get(".dsq-iframe-loading",g);a.length&&g.removeChild(a[0]);a=b.posts[i]||{};j.setState(a.id||null,a.depth===void 0?null:a.depth,DISQUS.jsonData.forum.id,DISQUS.jsonData.thread.id);j.setData({users:DISQUS.jsonData.users,browser:DISQUS.browser,media_url:DISQUS.jsonData.media_url});j.isReady=!0;h&&h();if(DISQUS.browser.ie&&DISQUS.browser.quirks&&this.container)a=DISQUS.nodes.get("iframe",g)[0],a.style.width=parseInt(a.parentNode.offsetWidth,10)+
"px"},appendElement:!0},{local:{cookieFailure:function(){DISQUS.dtpl.actions.fire("cookies.onFailure")},resizeFrame:function(a,b){DISQUS.dtpl.actions.fire("comments.reply.onResize",b,a)},onFocus:function(){DISQUS.dtpl.actions.fire("comments.reply.onFocus",i)},onBlur:function(){DISQUS.dtpl.actions.fire("comments.reply.onBlur",i)},onUploadAdd:function(a){DISQUS.dtpl.actions.fire("__.comments.reply.media.upload.onResponse",a,i)},onUploadRemove:function(a){DISQUS.dtpl.actions.fire("__.comments.reply.media.remove.onResponse",
a,i)},onSuggest:function(a,b){DISQUS.dtpl.actions.fire("comments.reply.mentions.suggest",a,b||void 0)},onSuggestMove:function(a,b){DISQUS.dtpl.actions.fire("comments.reply.mentions.move",a,b||void 0)},onSuggestSelect:function(a){DISQUS.dtpl.actions.fire("comments.reply.mentions.selectActive",a||void 0)},onSuggestClear:function(a){DISQUS.dtpl.actions.fire("comments.reply.mentions.clear",a||void 0)}},remote:{show:{},post:{},postAsGuest:{},validate:{},setState:{},focus:{},setupResize:{},setData:{},selectUser:{}}});
f&&j.setupResize();return c.Reply[i]=j},recover:function(a){return c.Reply[a||null]},reset:function(){c.Reply={}}},Auth:{create:function(a,f,e){if(typeof b=="undefined")b=DISQUS.jsonData,d=DISQUS.nodes.getBasicStyles();var g={f:b.forum.url,t:b.thread.slug,to_redirect:window.location,cbp:DISQUS.config.callback_params,ff:d.fontFamily,fc:d.fontColor,ac:d.anchorColor};if(DISQUS.config.frame_theme)g.theme=DISQUS.config.frame_theme;var g=DISQUS.getResourceURL(b.urls.channels.auth,g,!0),h=DISQUS.net.rpc({remote:g,
onReady:function(){h.isReady=!0;e&&e()},container:a},{local:{onAuth:function(a){DISQUS.states.loginDisabled?DISQUS.popup.close(null,!0):DISQUS.reload(function(){f(a)})}},remote:{focus:{}}});return c.Auth.def=h},recover:function(){return c.Auth.def}},Edit:{create:function(a,f,e){if(typeof b=="undefined")b=DISQUS.jsonData,d=DISQUS.nodes.getBasicStyles();var g=DISQUS.getResourceURL(b.urls.channels.edit,{f:b.forum.url,t:b.thread.slug,p:f,ff:d.fontFamily},!0),h=DISQUS.net.rpc({remote:g,container:a,onReady:function(){h.isReady=
!0;e&&e()}},{local:{},remote:{save:{},focus:{}}});c.Edit[f]=h;if(a=DISQUS.nodes.get("#dsq-edit-textarea-"+f))if(a.style.display="none",f=DISQUS.nodes.get("#dsq-edit-iframe-"+f))f.style.display="block",a.parentNode.appendChild(f);return h},recover:function(a){return c.Edit[a]}},Twitter:{create:function(a,b,d){var g=DISQUS.net.rpc({remote:DISQUS.jsonData.urls.channels.tweetbox,container:a,onReady:function(){g.isReady=!0;b&&b()}},{local:{onTweet:function(){d&&d()}},remote:{setContent:{}}});return c.Twitter=
g},recover:function(){return c.Twitter}},Facebook:{create:function(a,b){var d=DISQUS.jsonData.urls.channels.facebook;d+="#"+DISQUS.serializeArgs({f:DISQUS.jsonData.forum.url});var g=DISQUS.net.rpc({remote:d,container:a,props:{scrolling:"no"},onReady:function(){g.isReady=!0;if(b.onReady)b.onReady()}},{local:{onSuccess:function(){if(b.onSuccess)b.onSuccess()},onBusy:function(){if(b.onBusy)b.onBusy()},onFailure:function(){if(b.onFailure)b.onFailure()}},remote:{authenticatePublisherSession:{},authenticatePublicSessionData:{},
init:{},streamPublish:{}}});return c.Facebook=g},recover:function(){return c.Facebook}},SSO:{create:function(a,b){var d=DISQUS.net.rpc({remote:DISQUS.jsonData.urls.channels.sso,onReady:function(){d.isReady=!0;a!==void 0&&a()}},{local:{onSuccess:function(){b!==void 0&&b()}},remote:{authenticate:{}}});return c.SSO=d},recover:function(){return c.SSO}},Upload:{create:function(a,d){if(a){DISQUS.jsonData.request.display_sharing_options&&DISQUS.nodes.addClass(a,"dsq-attach-media-border");var d=d||null,e=
DISQUS.jsonData.urls.channels.upload;e+="#"+DISQUS.serializeArgs({f:b.forum.url,t:b.thread.slug});var g=new DISQUS.net.rpc({remote:e,container:a,props:{scrolling:"no",allowTransparency:"true"},onReady:function(){g.setupUpload(d||"",DISQUS.jsonData.forum.id,DISQUS.jsonData.thread.id);g.isReady=!0}},{local:{onUploadStart:function(){DISQUS.dtpl.actions.fire("__.comments.reply.media.upload",d)},onUpload:function(a){DISQUS.dtpl.actions.fire("__.comments.reply.media.upload.onResponse",a,d)}},remote:{setupUpload:{},
media:{}}});return c.Upload[d]=g}},recover:function(a){return c.Upload[a||null]}},reset:function(){function a(a){a&&a.destroy()}DISQUS.each(c,function(b){b!==null&&(b.origin&&b.destroy?a(b):DISQUS.each(b,a))});b=d=void 0},ensureLoggedIn:function(a,b,c){c=c||{};if(DISQUS.jsonData.request.is_authenticated)a();else{switch(b){case "disqus":b=new DISQUS.ui.DisqusLoginBox;break;case "twitter":b=new DISQUS.ui.TwitterLoginBox;break;case "yahoo":b=new DISQUS.ui.YahooLoginBox;break;case "openid":b=new DISQUS.ui.OpenIDLoginBox;
break;case "google":b=new DISQUS.ui.GoogleLoginBox;break;case "facebook":b=DISQUS.FB.publisherKeySupported()?new DISQUS.ui.PublisherFacebookLoginBox:new DISQUS.ui.DefaultFacebookLoginBox;break;case "sso":b=new DISQUS.ui.SSOLoginBox;break;case "postas":b=new DISQUS.ui.LoginBox(c,{title:"Before we post this, who are you?",guestTab:!0});break;default:b=new DISQUS.ui.LoginBox(c)}b.onClose=function(){if(DISQUS.jsonData.request.is_authenticated)a();else if(typeof c.onFailure=="function")c.onFailure()};
b.open()}}}});
DISQUS.define("ui",function(){var b={},d=0,c=function(){this.guid=++d;b[this.guid]=this};DISQUS.extend(c,{closeAll:function(){DISQUS.lang.forEach(b,function(a){a.close()})},last:function(){return b[d]}});c.prototype={init:function(){var a=this,b=a.container;b.className="dsq-popup dsq-popup-message "+(a.extra||"");DISQUS.browser.ie6||DISQUS.browser.ie7?DISQUS.events.execOnReady(function(){a._onContentReady()}):a._onContentReady();(b=DISQUS.nodes.get(".dsq-popup-close",b))&&b.length&&DISQUS.events.add(b[0],
"mouseup",function(){a.close()});a.mouseUpListener=function(b){DISQUS.nodes.closest(b.target||b.srcElement,"#"+a.container.id)||a.close()};a.keyUpListener=function(b){b.keyCode==27&&a.close()};DISQUS.bean.add(document,"mouseup",a.mouseUpListener);DISQUS.bean.add(document,"keyup",a.keyUpListener)},_onContentReady:function(){var a=this.container;DISQUS.nodes.body().appendChild(a);a.style.display="block";this.reposition();if(this.onReady)this.onReady()},open:function(a){c.closeAll();DISQUS.extend(this,
a||{});var b=this.title||"",d=this.body||"",e=this.container=document.createElement("div");e.id="dsq-popup-message";e.innerHTML=DISQUS.renderBlock("popup",{strict:a.strict,popupHeader:b,popupBody:d,popupClass:"",footer:typeof a.footer!=="undefined"?a.footer:!0});this.init();return e},close:function(){var a=this.container;if(a){if(this.mouseUpListener)DISQUS.bean.remove(document,"mouseup",this.mouseUpListener),this.mouseUpListener=null;if(this.keyUpListener)DISQUS.bean.remove(document,"keyup",this.keyUpListener),
this.keyUpListener=null;var c=DISQUS.nodes.get("#dsq-overlay");c&&DISQUS.nodes.remove(c);try{DISQUS.nodes.remove(a)}catch(d){for(var c=a.getElementsByTagName("IFRAME"),e=0;e<c.length;e++)c[e].parentNode.removeChild(c[e]);a.parentNode.removeChild(a)}this.container=null;if(this.onClose)this.onClose();b[this.guid]=null;delete b[this.guid]}},reposition:function(){var a=this.container;if(!a)return!1;var b=DISQUS.window.getSize(),c=(b[0]-a.offsetWidth)/2,b=(b[1]-a.offsetHeight)/2;DISQUS.browser.ie6&&(b=
DISQUS.window.getScrollPosition()[1]);a.style.left=c+"px";a.style.top=b+"px";return!0}};var a=function(){c.call(this)};DISQUS.extend(a.prototype,c.prototype,{open:function(a){DISQUS.extend(this,a||{});this.body='<div class="dsq-border" style="width:'+a.width+"px; height:"+a.height+'px"><a href="#" class="dsq-modal-close-btn" onclick="DISQUS.popup.close(null, true); return false">Close</a><div class="dsq-popup-raw-container"></div></div>';var b=this.container=document.createElement("div");b.id="dsq-popup-message";
b.innerHTML=this.body;this.extra="dsq-popup-raw";this.init();var c=DISQUS.nodes.createIframe(a.url,{},{width:"100%",height:"100%",scrolling:"no",frameBorder:"0",frameSpacing:"0",style:"visibility:hidden"}),b=DISQUS.nodes.get(".dsq-popup-raw-container",this.container)[0];b.appendChild(c);c.onreadystatechange=c.onload=function(){c.style.visibility="visible"};return b}});var f=function(){c.call(this)};DISQUS.extend(f.prototype,a.prototype,{open:function(b){b=b||{};typeof b==="string"&&(b={username:b});
var c=DISQUS.config&&DISQUS.config.domain?"http://"+DISQUS.config.domain:DISQUS.settings.get("disqus.urls.main");c+=(b.anonymous?"/embed/guest/":"/embed/")+b.username;var c=DISQUS.getResourceURL(c,{is_moderator:b.isModerator,forum:b.forum,lang:b.lang}),d=570,e=525,f=DISQUS.jsonData&&DISQUS.jsonData.context.active_gargoyle_switches;f&&DISQUS.contains(f,"new_embed_profile")&&(d=710,e=399);a.prototype.open.call(this,{url:c,width:d,height:e,onClose:b.onClose})}});var e=function(){this.tabs={};this.enabledTab=
null};DISQUS.extend(e.prototype,c.prototype,{open:function(a){var b=this,a=a||{};DISQUS.extend(a,{strict:!0,title:DISQUS.strings.get("Edit your profile"),extra:"dsq-profile-edit-modal",onClose:b.onClose,onReady:function(){b.onContentReady(a.selectedTab)}});b.lang=a.lang||"en";DISQUS.request.get(DISQUS.settings.get("disqus.urls.unmerged")||DISQUS.jsonData.urls.unmerged_profiles,{},!0);var d=function(e){DISQUS.dtpl.actions.remove("profile.getUnmerged.onSuccess",d);b.has_unmerged_users=e;c.prototype.open.call(b,
DISQUS.extend(a,{body:DISQUS.renderBlock("profileEdit",{has_unmerged_users:e})}))};DISQUS.dtpl.actions.register("profile.getUnmerged.onSuccess",d)},onContentReady:function(a){var b=this.tabs,c=this.lang,d=DISQUS.ui,e=DISQUS.settings.get("disqus.urls.main"),f=DISQUS.config.page?encodeURIComponent(DISQUS.config.page.url):"";if(this.has_unmerged_users)b.merge=new d.LoginBoxTab(this,"dsq-tab-profile-merge",new d.iFrameContent("dsq-profile-merge",e+"/embed/profile/merge?thread_url="+f+"&lang="+c));b.edit=
new d.LoginBoxTab(this,"dsq-tab-profile-edit",new d.iFrameContent("dsq-profile-edit",e+"/embed/profile/info?thread_url="+f+"&lang="+c));b.avatar=new d.LoginBoxTab(this,"dsq-tab-profile-avatar",new d.iFrameContent("dsq-profile-avatar",e+"/embed/profile/avatar?thread_url="+f+"&lang="+c));b.services=new d.LoginBoxTab(this,"dsq-tab-profile-services",new d.iFrameContent("dsq-profile-services",e+"/embed/profile/connections?thread_url="+f+"&lang="+c));b.notifications=new d.LoginBoxTab(this,"dsq-tab-profile-notifications",
new d.iFrameContent("dsq-profile-notifications",e+"/embed/account/notifications?thread_url="+f+"&lang="+c));b.account=new d.LoginBoxTab(this,"dsq-tab-profile-account",new d.iFrameContent("dsq-profile-account",e+"/embed/account?thread_url="+f+"&lang="+c));b.apps=new d.LoginBoxTab(this,"dsq-tab-profile-apps",new d.iFrameContent("dsq-profile-apps",e+"/embed/account/apps/?lang="+c));a&&b[a]?b[a].enable():(b.merge||b.edit).enable()}});var g=function(){c.call(this)};DISQUS.extend(g.prototype,a.prototype,
{open:function(b){b=b||{url:DISQUS.jsonData.urls.community};typeof b==="string"&&(b={url:b});var c=DISQUS.getResourceURL(b.url,{lang:b.lang});a.prototype.open.call(this,{url:c,width:700,height:525,onClose:b.onClose})}});var h=function(a){this.name="disqus_"+DISQUS.getGuid();DISQUS.extend(this,a||{})};h.prototype={open:function(){var a=this;a.window=window.open(a.url,a.name,"location=0,status=0,width="+(a.width||800)+",height="+(a.height||400));a.window&&DISQUS.defer(function(){return DISQUS.window.isClosed(a.window)},
function(){a.reload()})},reload:function(){var a=this;DISQUS.reload(function(){a.onClose()})},close:function(){this.window&&window.close()}};var i=function(a,b){this.opts=b||{};this.container=DISQUS.nodes.get("#"+a)};i.prototype={show:function(){DISQUS.nodes.show(this.container,!0);var a=DISQUS.nodes.get("input",this.container);a.length&&!this.opts.noAutoFocus&&a[0].focus()},hide:function(){DISQUS.nodes.hide(this.container,!0)}};var q=function(a,b,c){var d=a?"-"+a:"";i.call(this,"dsq-login-guest"+
d,c);DISQUS.events.add(DISQUS.nodes.get("#dsq-field-email"+d),"keyup",function(a){var b=(a.target||a.srcElement).value,a="";if(b){for(var b=b.split("@")[0].split("."),c=0;c<b.length;c++)a+=b[c].charAt(0).toUpperCase()+b[c].slice(1)+" ";a=DISQUS.lang.trim(a)}else a=void 0;if(a)DISQUS.nodes.get("#dsq-field-name"+d).value=a});var e=DISQUS.nodes.get("a",DISQUS.nodes.get(".dsq-login-add-url")[0])[0];e&&DISQUS.events.add(e,"click",function(a){DISQUS.nodes.hide(e.parentNode.parentNode,!0);DISQUS.nodes.show(DISQUS.nodes.get("#dsq-optional-field-website"),
!0);a.preventDefault()});c=DISQUS.nodes.get("#dsq-submit-guest"+d);DISQUS.events.add(c,"click",function(){DISQUS.dtpl.validators.guestFields(a)&&b(this)})};DISQUS.extend(q.prototype,i.prototype);var p=function(a,b,c){var d=this;a?parseInt(a,10)&&(a="dsq-login-disqus-"+a):a="dsq-login-disqus";i.call(d,a,c);d.iframeReady=!1;d.focusOnReady=!1;var e=DISQUS.comm.Auth.create(d.container,b,function(){d.iframeReady=!0;d.focusOnReady&&e.focus()})};DISQUS.extend(p.prototype,i.prototype,{show:function(){i.prototype.show.call(this);
this.iframeReady?this.opts.noAutoFocus||DISQUS.comm.Auth.recover().focus():this.focusOnReady=!0}});var o=function(a,b){var c=this,d=DISQUS.nodes.get,e=DISQUS.nodes.hide,f=DISQUS.nodes.show;i.call(this,b||"dsq-login-facebook-content");var g=DISQUS.nodes.get("#dsq-login-facebook-frame");c.rpc=DISQUS.comm.Facebook.create(g,{onReady:function(){c.rpc.init()},onBusy:function(){e(d(".dsq-connect-msg",c.container)[0],!0);f(d(".dsq-remote-authentication",c.container)[0],!0)},onFailure:function(){f(d(".dsq-connect-msg",
c.container)[0],!0);e(d(".dsq-remote-authentication",c.container)[0],!0)},onSuccess:function(){DISQUS.reload(function(){a.close()})}})};DISQUS.extend(o.prototype,i.prototype);var l=function(a,b){i.call(this,"dsq-login-"+b);var c=this,d=DISQUS.nodes.get(".dsq-external-launcher",this.container)[0];DISQUS.events.add(d,"click",function(){DISQUS.nodes.hide(DISQUS.nodes.get(".dsq-connect-msg",c.container)[0],!0);DISQUS.nodes.show(DISQUS.nodes.get(".dsq-remote-authentication",c.container)[0],!0);DISQUS.comm.ensureLoggedIn(function(){a.close()},
b,{onFailure:function(){DISQUS.nodes.hide(DISQUS.nodes.get(".dsq-remote-authentication",c.container)[0],!0);DISQUS.nodes.show(DISQUS.nodes.get(".dsq-connect-msg",c.container)[0],!0)}})})};DISQUS.extend(l.prototype,i.prototype);var j=function(a){l.call(this,a,"yahoo")};DISQUS.extend(j.prototype,l.prototype);var t=function(a){l.call(this,a,"twitter")};DISQUS.extend(t.prototype,l.prototype);var s=function(a){l.call(this,a,"facebook")};DISQUS.extend(s.prototype,l.prototype);var u=function(a){l.call(this,
a,"google")};DISQUS.extend(u.prototype,l.prototype);var n=function(a){i.call(this,"dsq-login-openid");var b=DISQUS.nodes.get("#dsq-openid-submit-button");DISQUS.events.add(b,"click",function(){var b,c,d=DISQUS.jsonData.urls.openid_connect,e=DISQUS.nodes.get("#dsq-openid-url").value;/^\s*$/.test(e)||(d=DISQUS.getResourceURL(d,{url:e,username:DISQUS.nodes.get("#dsq-openid-username").value}),b=window.open(d,"openidWindow","location=0,status=0,width=800,height=500"),c=setInterval(function(){DISQUS.window.isClosed(b)&&
(clearInterval(c),DISQUS.reload(function(){a.close()}))},500))})};DISQUS.extend(n.prototype,i.prototype);var z=function(a){l.call(this,a,"sso")};DISQUS.extend(z.prototype,l.prototype);var r=function(a,b){i.call(this,a);this.url=DISQUS.serialize(b,{},!0);this.iframe=null};DISQUS.extend(r.prototype,i.prototype,{show:function(){var a=this;if(!this.iframe)this.iframe=DISQUS.nodes.createIframe(this.url,{},{style:"display:none !important;",frameBorder:"0",frameSpacing:"0",height:"100%",width:"100%"}),DISQUS.events.add(this.iframe,
"load",function(){DISQUS.nodes.hide(a.spinner,!0);DISQUS.nodes.show(a.iframe,!0)}),this.spinner=document.createElement("img"),this.spinner.src=DISQUS.settings.get("disqus.urls.media")+"/images/dsq-loader.gif",this.container.appendChild(this.spinner),this.container.appendChild(this.iframe);i.prototype.show.call(this)}});var m=function(a,b,c){var d=this;d.parent=a;d.tabNode=DISQUS.nodes.get("#"+b);d.content=c;a=DISQUS.nodes.get("a",d.tabNode)[0];DISQUS.events.add(a,"click",function(a){d.enable();a.preventDefault();
return!1})};m.prototype={enable:function(){this.parent.enabledTab&&this.parent.enabledTab.disable();DISQUS.nodes.addClass(this.tabNode,"dsq-active");this.content.show();this.parent.enabledTab=this},disable:function(){DISQUS.nodes.removeClass(this.tabNode,"dsq-active");this.content.hide()}};var H=function(a,b){this.events=a;this.tabs={};this.tabsArray=[];this.enabledTab=null;b=b||{};this.title=DISQUS.strings.get(b.title||"Login or Register");this.guestTab=b.guestTab||!1};DISQUS.extend(H.prototype,
c.prototype,{open:function(a){var b=this,a=a||{};DISQUS.extend(a,{strict:!0,title:b.title,body:DISQUS.renderBlock("loginPopup",{guestTab:b.guestTab}),extra:"dsq-login-box",onClose:b.onClose,onReady:function(){b.onContentReady(a.selectedTab)}});c.prototype.open.call(b,a)},onContentReady:function(){var a=this,b=DISQUS.ui;DISQUS.jsonData.forum.allow_anon_post&&a.guestTab&&a.add("guest",new b.LoginBoxTab(this,"dsq-login-tab-guest",new b.GuestLoginContent(null,function(){a.events.onGuest();a.close()})));
var c;if(DISQUS.config.sso&&(a.add("sso",new b.LoginBoxTab(this,"dsq-login-tab-sso",new b.SSOLoginContent(this))),DISQUS.config.sso.icon))c=DISQUS.nodes.get("span",DISQUS.nodes.get("#dsq-login-tab-sso"))[0],c.style.cssText="background: url("+DISQUS.config.sso.icon+") !important;";DISQUS.jsonData.forum.disqus_auth_disabled||a.add("disqus",new b.LoginBoxTab(this,"dsq-login-tab-disqus",DISQUS.states.useLoginWindow?new b.ExternalLoginContent(this,"disqus"):new b.DisqusLoginContent(null,function(b){b.newUser&&
DISQUS.dtpl.actions.fire("user.newUser.onSuccess");a.close()})));c=null;(c=DISQUS.FB.publisherKeySupported()?new b.PublisherFacebookLoginContent(this):new b.DefaultFacebookLoginContent(this,"dsq-login-facebook"))&&a.add("facebook",new b.LoginBoxTab(this,"dsq-login-tab-facebook",c));a.add("google",new b.LoginBoxTab(this,"dsq-login-tab-google",new b.GoogleLoginContent(this)));a.add("twitter",new b.LoginBoxTab(this,"dsq-login-tab-twitter",new b.TwitterLoginContent(this)));a.add("yahoo",new b.LoginBoxTab(this,
"dsq-login-tab-yahoo",new b.YahooLoginContent(this)));a.add("openid",new b.LoginBoxTab(this,"dsq-login-tab-openid",new b.OpenIdLoginContent(this)));this.tabsArray[0].enable()},add:function(a,b){this.tabs[a]=b;this.tabsArray.push(b)}});var B=function(){};DISQUS.extend(B.prototype,c.prototype,{open:function(a){var b=this,a=a||{};if(DISQUS.states.useLoginWindow){a=DISQUS.nodes.getIframeDefaults();a.is_popup=!0;var d=window.open(DISQUS.getResourceURL(DISQUS.jsonData.urls.channels.auth,a,!0),"_blank",
"height=420,width=400");window.focus&&d.focus();var e=setInterval(function(){DISQUS.window.isClosed(d)&&(clearInterval(e),DISQUS.reload(function(){b.onClose()}))},500)}else DISQUS.extend(a,{strict:!1,title:DISQUS.strings.get("Login or Register"),body:'<div id="dsq-login-iframe-wrapper" style="height:320px;"></div>',extra:"dsq-popup-login",onClose:b.onClose,onReady:function(){b.content=new p("dsq-login-iframe-wrapper",function(a){a.newUser&&DISQUS.dtpl.actions.fire("user.newUser.onSuccess");b.close()});
b.content.show()}}),c.prototype.open.call(b,a)}});var F=function(){h.call(this,{url:DISQUS.jsonData.urls.twitter_connect,width:800,height:698})};DISQUS.extend(F.prototype,h.prototype);var G=function(){h.call(this,{url:DISQUS.jsonData.urls.googleConnect,width:800,height:400})};DISQUS.extend(G.prototype,h.prototype);var I=function(){h.call(this,{url:DISQUS.jsonData.urls.yahoo_connect,width:800,height:400})};DISQUS.extend(I.prototype,h.prototype);var A=function(){var a=DISQUS.config.sso;h.call(this,
{url:a.url,width:a.width||800,height:a.height||400})};DISQUS.extend(A.prototype,h.prototype,{reload:function(){window.location.reload()}});var k=function(){};DISQUS.extend(k.prototype,c.prototype,{open:function(){var a=this,b={title:DISQUS.strings.get("Sign in with OpenID"),body:DISQUS.renderBlock("openidForm"),onClose:a.onClose,onReady:function(){a.content=new n(a)}};c.prototype.open.call(a,b)}});var J=function(){};DISQUS.extend(J.prototype,c.prototype,{open:function(){var a=this;c.prototype.open.call(this,
{title:DISQUS.strings.get("Sign in using Facebook"),body:DISQUS.renderBlock("facebookLoginForm",{title:!1}),onClose:a.onClose,onReady:function(){a.content=new o(a)}})}});var w=function(){};w.prototype.open=function(){var a=this;DISQUS.FB.init(function(){DISQUS.FB.login(function(){DISQUS.FB.authenticateViaPublisherKey(function(){DISQUS.reload(function(){if(a.onClose)a.onClose()})})},function(){if(a.onClose)a.onClose()})})};return{Modal:c,IframeModal:a,ProfileModal:f,ProfileEditModal:e,ForumCommunityModal:g,
NewWindowModal:h,ContentBase:i,GuestLoginContent:q,DisqusLoginContent:p,DefaultFacebookLoginContent:o,ExternalLoginContent:l,YahooLoginContent:j,TwitterLoginContent:t,PublisherFacebookLoginContent:s,GoogleLoginContent:u,OpenIdLoginContent:n,SSOLoginContent:z,iFrameContent:r,LoginBoxTab:m,LoginBox:H,DisqusLoginBox:B,TwitterLoginBox:F,GoogleLoginBox:G,YahooLoginBox:I,SSOLoginBox:A,OpenIDLoginBox:k,DefaultFacebookLoginBox:J,PublisherFacebookLoginBox:w,applyTooltips:function(a){typeof a==="undefined"&&
(a=DISQUS.nodes.get("#disqus_thread"));a=DISQUS.nodes.get(".dsq-tt",a);DISQUS.lang.forEach(a,function(a){new DISQUS.tooltip.Tooltip(a,{gravity:"s",trigger:"hover",opacity:0.96,html:!0,contentId:a.getAttribute("data-dsq-content-id")})})},truncateComments:function(a){var a=DISQUS.nodes.get(".dsq-comment-message",a),b=DISQUS.jsonData.forum.comment_max_words;DISQUS.lang.forEach(a,function(a){(a=a.id.match(/\d+$/))&&a.length&&b>0&&DISQUS.dtpl.actions.fire("comments.text.collapse",a[0])})}}});
(function(){DISQUS.ui.PublisherFacebookLoginBox.prototype.show=DISQUS.ui.PublisherFacebookLoginBox.prototype.open;DISQUS.ui.FacebookLoginBox=DISQUS.ui.PublisherFacebookLoginBox;DISQUS.api=DISQUS.api||{};DISQUS.api.FacebookLoginBox=DISQUS.ui.FacebookLoginBox})();DISQUS.define("sso",function(){return{auth:function(b){var d=DISQUS.comm.SSO.create(function(){d.authenticate(b)},function(){if(b.onSuccess)b.onSuccess()})}}});
DISQUS.ReplyFrame=function(b,d){this.frame=null;this.container=b;this.id=d;this._type=b.id&&b.id.match(/edit/)?"edit":"reply"};DISQUS.ReplyFrame.prototype={setState:function(){},init:function(){this.frame=this._type=="edit"?DISQUS.comm.Edit.create(this.container.id,this.id):DISQUS.comm.Reply.create(this.container.id,this.id)}};DISQUS.TweetFrame=function(b,d){var c=DISQUS.comm.Twitter.create(b,d.onReady,d.onSuccess);this.init=function(){};this.setContent=function(a){c.setContent(a)}};
DISQUS.define("FB",function(){function b(){if(!DISQUS.nodes.get("#fb-root")){var a=document.createElement("div");a.id="fb-root";DISQUS.nodes.get("#disqus_thread").appendChild(a)}}function d(b){return function(){a[b].apply(a,arguments)}}var c=[],a=null,f=function(){this.authResponse=null};f.prototype={init:function(a,b){FB.init({apiKey:a,channelUrl:b,status:!0,cookie:!0,oauth:!0})},login:function(a,b){var c=this;FB.login(function(d){d.authResponse?(c.authResponse=d.authResponse,a()):(c.session=null,
b())})},authenticateViaPublisherKey:function(a){FB.login(function(b){var c=DISQUS.comm.Facebook.create(null,{onReady:function(){c.authenticatePublisherSession(b.authResponse)},onSuccess:a})})},streamPublish:function(a,b,c){FB.ui({method:"stream.publish",message:a,attachment:b},function(a,b){typeof c==="function"&&c(a,b)})},streamShare:function(a,b,c){FB.ui({method:"stream.share",u:b.href},function(a){typeof c==="function"&&c(a.post_id)})}};var e=function(a){this.rpc=a};e.prototype={init:function(){this.rpc.init()},
streamPublish:function(a,b,c){this.rpc.streamPublish(a,b,c)},streamShare:function(a,b,c){this.rpc.streamPublish(a,b,c)},authenticateViaPublisherKey:function(){}};return{init:function(){DISQUS.FB.init=function(b){typeof b==="function"&&c.push(b);if(a)for(;c.length;)c.shift()()};DISQUS.FB.init();if(DISQUS.FB.publisherKeySupported())b(),window.FB||DISQUS.require("http://connect.facebook.net/en_US/all.js"),DISQUS.addJob(function(){return window.FB&&FB.init},function(){a=new f;a.init(DISQUS.config.facebook_key||
DISQUS.jsonData.context.forum_facebook_key,window.facebookXdReceiverPath||null);DISQUS.FB.init()});else var d=DISQUS.comm.Facebook.create(null,{onReady:function(){a=new e(d);a.init();DISQUS.FB.init()}})},publisherKeySupported:function(){return(DISQUS.config.facebook_key||DISQUS.jsonData.context.forum_facebook_key)&&!(window.FB&&FB.dynData)},authenticateViaPublisherKey:d("authenticateViaPublisherKey"),login:d("login"),streamShare:d("streamShare"),streamPublish:d("streamPublish")}});
(function(b,d,c,a,f,e){function g(a,b){var c=typeof a[b];return c=="function"||!!(c=="object"&&a[b])||c=="unknown"}function h(){h=B;E=!0;for(var a=0;a<K.length;a++)K[a]();K.length=0}function i(a,b){E?a.call(b):K.push(function(){a.call(b)})}function q(){var a=parent;if(A!=="")for(var b=0,c=A.split(".");b<c.length;b++)a=a[c[b]];return a.easyXDM}function p(a){var b=a.match(F),a=b[2],c=b[3],b=b[4]||"";if(a=="http:"&&b==":80"||a=="https:"&&b==":443")b="";return a+"//"+c+b}function o(a){a=a.replace(I,"$1/");
if(!a.match(/^(http||https):\/\//)){var b=a.substring(0,1)==="/"?"":c.pathname;b.substring(b.length-1)!=="/"&&(b=b.substring(0,b.lastIndexOf("/")+1));a=c.protocol+"//"+c.host+b+a}for(;G.test(a);)a=a.replace(G,"");return a}function l(a,b){var c="",d=a.indexOf("#");d!==-1&&(c=a.substring(d).replace("#","&"),a=a.substring(0,d));var d=[],f;for(f in b)b.hasOwnProperty(f)&&d.push(f+"="+e(b[f]));return a+(O?"#":a.indexOf("?")==-1?"?":"&")+d.join("&")+c}function j(a){return typeof a==="undefined"}function t(){var a=
{},b={a:[1,2,3]};if(typeof JSON!="undefined"&&typeof JSON.stringify==="function"&&JSON.stringify(b).replace(/\s/g,"")==='{"a":[1,2,3]}')return JSON;if(Object.toJSON&&Object.toJSON(b).replace(/\s/g,"")==='{"a":[1,2,3]}')a.stringify=Object.toJSON;if(typeof String.prototype.evalJSON==="function"&&(b='{"a":[1,2,3]}'.evalJSON(),b.a&&b.a.length===3&&b.a[2]===3))a.parse=function(a){return a.evalJSON()};if(a.stringify&&a.parse)return t=function(){return a},a;return null}function s(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&
(e in a?(d=b[e],typeof d==="object"?s(a[e],d,c):c||(a[e]=b[e])):a[e]=b[e]);return a}function u(a){if(j(M)){var c=d.createElement("iframe");c.name=w+"TEST";s(c.style,{position:"absolute",left:"-2000px",top:"0px"});d.body.appendChild(c);M=c.contentWindow!==b.frames[c.name];d.body.removeChild(c)}M&&!~navigator.userAgent.indexOf("Firefox")?c=d.createElement('<iframe name="'+a.props.name+'"/>'):(c=d.createElement("IFRAME"),c.name=a.props.name);c.id=c.name=a.props.name;delete a.props.name;a.onLoad&&y(c,
"load",a.onLoad);if(typeof a.container=="string")a.container=d.getElementById(a.container);if(!a.container)c.style.position="absolute",c.style.top="-2000px",c.style.left="0px",a.container=d.body;var e=a.props.src;delete a.props.src;s(c,a.props);c.border=c.frameBorder=0;a.container.appendChild(c);c.src=e;a.props.src=e;return c}function n(a){var e=a.protocol,f;a.isHost=a.isHost||j(x.xdm_p);O=a.hash||!1;if(!a.props)a.props={};if(a.isHost){if(a.remote=o(a.remote),a.channel=a.channel||"default"+H++,a.secret=
Math.random().toString(16).substring(2),j(e))if(m.parent==m&&p(c.href)==p(a.remote))e="4";else if(g(b,"postMessage")||g(d,"postMessage"))e="1";else{if(e=g(b,"ActiveXObject"))try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),e=!0}catch(V){e=!1}e?e="6":navigator.product==="Gecko"&&"frameElement"in b&&navigator.userAgent.indexOf("WebKit")==-1?e="5":a.remoteHelper?(a.remoteHelper=o(a.remoteHelper),e="2"):e="0"}}else{a.channel=x.xdm_c;a.secret=x.xdm_s;a.remote=x.xdm_e;var e=x.xdm_p,i;if(i=a.acl){a:{i=
a.acl;var h=a.remote;typeof i=="string"&&(i=[i]);for(var v,P=i.length;P--;)if(v=i[P],v=RegExp(v.substr(0,1)=="^"?v:"^"+v.replace(/(\*)/g,".$1").replace(/\?/g,".")+"$"),v.test(h)){i=!0;break a}i=!1}i=!i}if(i)throw Error("Access denied for "+a.remote);}switch(e){case "0":s(a,{interval:100,delay:2E3,useResize:!0,useParent:!1,usePolling:!1},!0);if(a.isHost){if(!a.local){f=c.protocol+"//"+c.host;e=d.body.getElementsByTagName("img");for(h=e.length;h--;)if(i=e[h],i.src.substring(0,f.length)===f){a.local=
i.src;break}if(!a.local)a.local=b}f={xdm_c:a.channel,xdm_p:0};a.local===b?(a.usePolling=!0,a.useParent=!0,a.local=c.protocol+"//"+c.host+c.pathname+c.search,f.xdm_e=a.local,f.xdm_pa=1):f.xdm_e=o(a.local);if(a.container)a.useResize=!1,f.xdm_po=1;a.remote=l(a.remote,f)}else s(a,{channel:x.xdm_c,remote:x.xdm_e,useParent:!j(x.xdm_pa),usePolling:!j(x.xdm_po),useResize:a.useParent?!1:a.useResize});f=[new k.stack.HashTransport(a),new k.stack.ReliableBehavior({}),new k.stack.QueueBehavior({encode:!0,maxLength:4E3-
a.remote.length}),new k.stack.VerifyBehavior({initiate:a.isHost})];break;case "1":f=[new k.stack.PostMessageTransport(a)];break;case "2":f=[new k.stack.NameTransport(a),new k.stack.QueueBehavior,new k.stack.VerifyBehavior({initiate:a.isHost})];break;case "3":f=[new k.stack.NixTransport(a)];break;case "4":f=[new k.stack.SameOriginTransport(a)];break;case "5":f=[new k.stack.FrameElementTransport(a)];break;case "6":if(!a.swf)a.swf="../../tools/easyxdm.swf";f=[new k.stack.FlashTransport(a)]}f.push(new k.stack.QueueBehavior({lazy:a.lazy,
remove:!0}));return f}function z(a){for(var b,c={incoming:function(a,b){this.up.incoming(a,b)},outgoing:function(a,b){this.down.outgoing(a,b)},callback:function(a){this.up.callback(a)},init:function(){this.down.init()},destroy:function(){this.down.destroy()}},d=0,e=a.length;d<e;d++){b=a[d];s(b,c,!0);if(d!==0)b.down=a[d-1];if(d!==e-1)b.up=a[d+1]}return b}function r(a){a.up.down=a.down;a.down.up=a.up;a.up=a.down=null}var m=this,H=Math.floor(Math.random()*1E4),B=Function.prototype,F=/^((http.?:)\/\/([^:\/\s]+)(:\d+)*)/,
G=/[\-\w]+\/\.\.\//,I=/([^:])\/\//g,A="",k={},J=b.easyXDM,w="easyXDM_",M,O=!1,y,D;if(g(b,"addEventListener"))y=function(a,b,c){a.addEventListener(b,c,!1)},D=function(a,b,c){a.removeEventListener(b,c,!1)};else if(g(b,"attachEvent"))y=function(a,b,c){a.attachEvent("on"+b,c)},D=function(a,b,c){a.detachEvent("on"+b,c)};else throw Error("Browser not supported");var E=!1,K=[],L;"readyState"in d?(L=d.readyState,E=L=="complete"||~navigator.userAgent.indexOf("AppleWebKit/")&&(L=="loaded"||L=="interactive")):
E=!!d.body;E||(g(b,"addEventListener")?y(d,"DOMContentLoaded",h):(y(d,"readystatechange",function(){d.readyState=="complete"&&h()}),d.documentElement.doScroll&&b===top&&function R(){if(!E){try{d.documentElement.doScroll("left")}catch(b){a(R,1);return}h()}}()),y(b,"load",h));var x=function(a){for(var a=a.substring(1).split("&"),b={},c,d=a.length;d--;)c=a[d].split("="),b[c[0]]=f(c[1]);return b}(/xdm_e=/.test(c.search)?c.search:c.hash);s(k,{version:"2.4.12.1",query:x,stack:{},apply:s,getJSONObject:t,
whenReady:i,noConflict:function(a){b.easyXDM=J;(A=a)&&(w="easyXDM_"+A.replace(".","_")+"_");return k}});k.DomHelper={on:y,un:D,requiresJSON:function(a){typeof b.JSON=="object"&&b.JSON||d.write('<script type="text/javascript" src="'+a+'"><\/script>')}};(function(){var a={};k.Fn={set:function(b,c){a[b]=c},get:function(b,c){var d=a[b];c&&delete a[b];return d}}})();k.Socket=function(a){var b=z(n(a).concat([{incoming:function(b,c){a.onMessage(b,c)},callback:function(b){if(a.onReady)a.onReady(b)}}])),c=
p(a.remote);this.origin=p(a.remote);this.destroy=function(){b.destroy()};this.postMessage=function(a){b.outgoing(a,c)};b.init()};k.Rpc=function(a,b){if(b.local)for(var c in b.local)if(b.local.hasOwnProperty(c)){var d=b.local[c];typeof d==="function"&&(b.local[c]={method:d})}var e=z(n(a).concat([new k.stack.RpcBehavior(this,b),{callback:function(b){if(a.onReady)a.onReady(b)}}]));this.origin=p(a.remote);this.destroy=function(){e.destroy()};e.init()};k.stack.SameOriginTransport=function(b){var d,e,f,
g;return d={outgoing:function(a,b,c){f(a);c&&c()},destroy:function(){e&&(e.parentNode.removeChild(e),e=null)},onDOMReady:function(){g=p(b.remote);b.isHost?(s(b.props,{src:l(b.remote,{xdm_e:c.protocol+"//"+c.host+c.pathname,xdm_c:b.channel,xdm_p:4}),name:w+b.channel+"_provider"}),e=u(b),k.Fn.set(b.channel,function(b){f=b;a(function(){d.up.callback(!0)},0);return function(a){d.up.incoming(a,g)}})):(f=q().Fn.get(b.channel,!0)(function(a){d.up.incoming(a,g)}),a(function(){d.up.callback(!0)},0))},init:function(){i(d.onDOMReady,
d)}}};k.stack.FlashTransport=function(b){function c(b){a(function(){f.up.incoming(b,h)},0)}function e(a){var c=b.swf,f="easyXDM_swf_"+Math.floor(Math.random()*1E4);k.Fn.set("flash_loaded",function(){k.stack.FlashTransport.__swf=j=C.firstChild;a()});C=d.createElement("div");s(C.style,{height:"1px",width:"1px",postition:"absolute",left:0,top:0});d.body.appendChild(C);var g="proto="+m.location.protocol+"&domain="+m.location.href.match(F)[3]+"&ns="+A;C.innerHTML="<object height='1' width='1' type='application/x-shockwave-flash' id='"+
f+"' data='"+c+"'><param name='allowScriptAccess' value='always'></param><param name='wmode' value='transparent'><param name='movie' value='"+c+"'></param><param name='flashvars' value='"+g+"'></param><embed type='application/x-shockwave-flash' FlashVars='"+g+"' allowScriptAccess='always' wmode='transparent' src='"+c+"' height='1' width='1'></embed></object>"}var f,g,h,j,C;return f={outgoing:function(a,c,d){j.postMessage(b.channel,a);d&&d()},destroy:function(){try{j.destroyChannel(b.channel)}catch(a){}j=
null;g&&(g.parentNode.removeChild(g),g=null)},onDOMReady:function(){h=b.remote;j=k.stack.FlashTransport.__swf;k.Fn.set("flash_"+b.channel+"_init",function(){a(function(){f.up.callback(!0)})});k.Fn.set("flash_"+b.channel+"_onMessage",c);var d=function(){j.createChannel(b.channel,b.secret,p(b.remote),b.isHost);b.isHost&&(s(b.props,{src:l(b.remote,{xdm_e:p(m.location.href),xdm_c:b.channel,xdm_p:6,xdm_s:b.secret}),name:w+b.channel+"_provider"}),g=u(b))};j?d():e(d)},init:function(){i(f.onDOMReady,f)}}};
k.stack.PostMessageTransport=function(d){function e(a){var b;if(a.origin)b=p(a.origin);else if(a.uri)b=p(a.uri);else if(a.domain)b=c.protocol+"//"+a.domain;else throw"Unable to retrieve the origin of the event";b==j&&a.data.substring(0,d.channel.length+1)==d.channel+" "&&f.up.incoming(a.data.substring(d.channel.length+1),b)}var f,g,h,j;return f={outgoing:function(a,b,c){h.postMessage(d.channel+" "+a,b||j);c&&c()},destroy:function(){D(b,"message",e);g&&(h=null,g.parentNode.removeChild(g),g=null)},
onDOMReady:function(){j=p(d.remote);d.isHost?(y(b,"message",function C(c){c.data==d.channel+"-ready"&&(h="postMessage"in g.contentWindow?g.contentWindow:g.contentWindow.document,D(b,"message",C),y(b,"message",e),a(function(){f.up.callback(!0)},0))}),s(d.props,{src:l(d.remote,{xdm_e:p(c.href),xdm_c:d.channel,xdm_p:1}),name:w+d.channel+"_provider"}),g=u(d)):(y(b,"message",e),h="postMessage"in b.parent?b.parent:b.parent.document,h.postMessage(d.channel+"-ready",j),a(function(){f.up.callback(!0)},0))},
init:function(){i(f.onDOMReady,f)}}};k.stack.FrameElementTransport=function(e){var f,g,h,j;return f={outgoing:function(a,b,c){h.call(this,a);c&&c()},destroy:function(){g&&(g.parentNode.removeChild(g),g=null)},onDOMReady:function(){j=p(e.remote);if(e.isHost)s(e.props,{src:l(e.remote,{xdm_e:p(c.href),xdm_c:e.channel,xdm_p:5}),name:w+e.channel+"_provider"}),g=u(e),g.fn=function(b){delete g.fn;h=b;a(function(){f.up.callback(!0)},0);return function(a){f.up.incoming(a,j)}};else{if(d.referrer&&p(d.referrer)!=
x.xdm_e)b.top.location=x.xdm_e;h=b.frameElement.fn(function(a){f.up.incoming(a,j)});f.up.callback(!0)}},init:function(){i(f.onDOMReady,f)}}};k.stack.NixTransport=function(e){var f,h,j,k,v;return f={outgoing:function(a,b,c){j(a);c&&c()},destroy:function(){v=null;h&&(h.parentNode.removeChild(h),h=null)},onDOMReady:function(){k=p(e.remote);if(e.isHost){try{g(b,"getNixProxy")||b.execScript("Class NixProxy\n Private m_parent, m_child, m_Auth\n\n Public Sub SetParent(obj, auth)\n If isEmpty(m_Auth) Then m_Auth = auth\n SET m_parent = obj\n End Sub\n Public Sub SetChild(obj)\n SET m_child = obj\n m_parent.ready()\n End Sub\n\n Public Sub SendToParent(data, auth)\n If m_Auth = auth Then m_parent.send(CStr(data))\n End Sub\n Public Sub SendToChild(data, auth)\n If m_Auth = auth Then m_child.send(CStr(data))\n End Sub\nEnd Class\nFunction getNixProxy()\n Set GetNixProxy = New NixProxy\nEnd Function\n",
"vbscript"),v=getNixProxy(),v.SetParent({send:function(a){f.up.incoming(a,k)},ready:function(){a(function(){f.up.callback(!0)},0)}},e.secret),j=function(a){v.SendToChild(a,e.secret)}}catch(i){throw Error("Could not set up VBScript NixProxy:"+i.message);}s(e.props,{src:l(e.remote,{xdm_e:p(c.href),xdm_c:e.channel,xdm_s:e.secret,xdm_p:3}),name:w+e.channel+"_provider"});h=u(e);h.contentWindow.opener=v}else{if(d.referrer&&p(d.referrer)!=x.xdm_e)b.top.location=x.xdm_e;try{v=b.opener}catch(n){throw Error("Cannot access window.opener");
}v.SetChild({send:function(a){m.setTimeout(function(){f.up.incoming(a,k)},0)}});j=function(a){v.SendToParent(a,e.secret)};a(function(){f.up.callback(!0)},0)}},init:function(){i(f.onDOMReady,f)}}};k.stack.NameTransport=function(b){function c(a){j.contentWindow.sendMessage(a,b.remoteHelper+(h?"#_3":"#_2")+b.channel)}function d(){h?(++Q===2||!h)&&g.up.callback(!0):(c("ready"),g.up.callback(!0))}function e(a){g.up.incoming(a,n)}function f(){N&&a(function(){N(!0)},0)}var g,h,j,m,Q,N,n,t;return g={outgoing:function(a,
b,d){N=d;c(a)},destroy:function(){j.parentNode.removeChild(j);j=null;h&&(m.parentNode.removeChild(m),m=null)},onDOMReady:function(){h=b.isHost;Q=0;n=p(b.remote);b.local=o(b.local);h?(k.Fn.set(b.channel,function(a){h&&a==="ready"&&(k.Fn.set(b.channel,e),d())}),t=l(b.remote,{xdm_e:b.local,xdm_c:b.channel,xdm_p:2}),s(b.props,{src:t+"#"+b.channel,name:w+b.channel+"_provider"}),m=u(b)):(b.remoteHelper=b.remote,k.Fn.set(b.channel,e));j=u({props:{src:b.local+"#_4"+b.channel},onLoad:function S(){var c=j||
this;D(c,"load",S);k.Fn.set(b.channel+"_load",f);(function U(){typeof c.contentWindow.sendMessage=="function"?d():a(U,50)})()}})},init:function(){i(g.onDOMReady,g)}}};k.stack.HashTransport=function(c){function d(){if(m){var a=m.location.href,b="",c=a.indexOf("#");c!=-1&&(b=a.substring(c));b&&b!=j&&(j=b,e.up.incoming(j.substring(j.indexOf("_")+1),t))}}var e,f,g,h,j,l,m,k,n,t;return e={outgoing:function(a){if(k)a=c.remote+"#"+l++ +"_"+a,(f||!n?k.contentWindow:k).location=a},destroy:function(){b.clearInterval(g);
(f||!n)&&k.parentNode.removeChild(k);k=null},onDOMReady:function(){f=c.isHost;h=c.interval;j="#"+c.channel;l=0;n=c.useParent;t=p(c.remote);if(f){c.props={src:c.remote,name:w+c.channel+"_provider"};if(n)c.onLoad=function(){m=b;g=setInterval(d,h);e.up.callback(!0)};else{var i=0,o=c.delay/50;(function T(){if(++i>o)throw Error("Unable to reference listenerwindow");try{m=k.contentWindow.frames[w+c.channel+"_consumer"]}catch(b){}m?(g=setInterval(d,h),e.up.callback(!0)):a(T,50)})()}k=u(c)}else m=b,g=setInterval(d,
h),n?(k=parent,e.up.callback(!0)):(s(c,{props:{src:c.remote+"#"+c.channel+new Date,name:w+c.channel+"_consumer"},onLoad:function(){e.up.callback(!0)}}),k=u(c))},init:function(){i(e.onDOMReady,e)}}};k.stack.ReliableBehavior=function(){var a,b,c=0,d=0,e="";return a={incoming:function(f,g){var h=f.indexOf("_"),i=f.substring(0,h).split(","),f=f.substring(h+1);i[0]==c&&(e="",b&&b(!0));f.length>0&&(a.down.outgoing(i[1]+","+c+"_"+e,g),d!=i[1]&&(d=i[1],a.up.incoming(f,g)))},outgoing:function(f,g,h){e=f;b=
h;a.down.outgoing(d+","+ ++c+"_"+f,g)}}};k.stack.QueueBehavior=function(b){function c(){if(b.remove&&g.length===0)r(d);else if(!h&&!(g.length===0||l)){h=!0;var e=g.shift();d.down.outgoing(e.data,e.origin,function(b){h=!1;e.callback&&a(function(){e.callback(b)},0);c()})}}var d,g=[],h=!0,i="",l,k=0,m=!1,n=!1;return d={init:function(){j(b)&&(b={});if(b.maxLength)k=b.maxLength,n=!0;b.lazy?m=!0:d.down.init()},callback:function(a){h=!1;var b=d.up;c();b.callback(a)},incoming:function(a,c){if(n){var e=a.indexOf("_"),
g=parseInt(a.substring(0,e),10);i+=a.substring(e+1);g===0&&(b.encode&&(i=f(i)),d.up.incoming(i,c),i="")}else d.up.incoming(a,c)},outgoing:function(a,f,h){b.encode&&(a=e(a));var i=[],j;if(n){for(;a.length!==0;)j=a.substring(0,k),a=a.substring(j.length),i.push(j);for(;j=i.shift();)g.push({data:i.length+"_"+j,origin:f,callback:i.length===0?h:null})}else g.push({data:a,origin:f,callback:h});m?d.down.init():c()},destroy:function(){l=!0;d.down.destroy()}}};k.stack.VerifyBehavior=function(a){function b(){d=
Math.random().toString(16).substring(2);c.down.outgoing(d)}var c,d,e;return c={incoming:function(f,g){var h=f.indexOf("_");h===-1?f===d?c.up.callback(!0):e||(e=f,a.initiate||b(),c.down.outgoing(f)):f.substring(0,h)===e&&c.up.incoming(f.substring(h+1),g)},outgoing:function(a,b,e){c.down.outgoing(d+"_"+a,b,e)},callback:function(){a.initiate&&b()}}};k.stack.RpcBehavior=function(a,b){function c(a){a.jsonrpc="2.0";f.down.outgoing(g.stringify(a))}function d(a,b){var e=Array.prototype.slice;return function(){var d=
arguments.length,f,g={method:b};d>0&&typeof arguments[d-1]==="function"?(d>1&&typeof arguments[d-2]==="function"?(f={success:arguments[d-2],error:arguments[d-1]},g.params=e.call(arguments,0,d-2)):(f={success:arguments[d-1]},g.params=e.call(arguments,0,d-1)),i[""+ ++h]=f,g.id=h):g.params=e.call(arguments,0);if(a.namedParams&&g.params.length===1)g.params=g.params[0];c(g)}}function e(a,b,d,f){if(d){var g,h;b?(g=function(a){g=B;c({id:b,result:a})},h=function(a,d){h=B;var e={id:b,error:{code:-32099,message:a}};
if(d)e.error.data=d;c(e)}):g=h=B;Object.prototype.toString.call(f)==="[object Array]"||(f=[f]);try{var i=d.method.apply(d.scope,f.concat([g,h]));j(i)||g(i)}catch(l){h(l.message)}}else b&&c({id:b,error:{code:-32601,message:"Procedure not found."}})}var f,g=b.serializer||t(),h=0,i={};return f={incoming:function(a){a=g.parse(a);if(a.method)b.handle?b.handle(a,c):e(a.method,a.id,b.local[a.method],a.params);else{var d=i[a.id];a.error?d.error&&d.error(a.error):d.success&&d.success(a.result);delete i[a.id]}},
init:function(){if(b.remote)for(var c in b.remote)b.remote.hasOwnProperty(c)&&(a[c]=d(b.remote[c],c));f.down.init()},destroy:function(){for(var c in b.remote)b.remote.hasOwnProperty(c)&&a.hasOwnProperty(c)&&delete a[c];f.down.destroy()}}};m.easyXDM=k})(window,document,location,window.setTimeout,decodeURIComponent,encodeURIComponent);
DISQUS.net={easyXDM:easyXDM.noConflict("DISQUS.net"),rpc:function(b,d){if(!b.swf)b.swf=DISQUS.settings.get("disqus.debug")?DISQUS.settings.get("disqus.urls.main")+"/xdm.swf":DISQUS.settings.get("disqus.urls.media")+"/xdm.swf";if(typeof b.hash=="undefined")b.hash=!DISQUS.settings.get("disqus.debug");DISQUS.extend(d,{serializer:{parse:DISQUS.json.parse,stringify:DISQUS.json.stringify}});var c=new DISQUS.net.easyXDM.Rpc(b,d);c.isReady=!1;return c}};
(function(){function b(a){return a<10?"0"+a:a}function d(a){g.lastIndex=0;return g.test(a)?'"'+a.replace(g,function(a){var b=q[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,b){var e,g,o,n,q=h,r,m=b[a];m&&typeof m==="object"&&typeof m.toJSON==="function"&&!f&&(m=m.toJSON(a));typeof p==="function"&&(m=p.call(b,a,m));switch(typeof m){case "string":return d(m);case "number":return isFinite(m)?String(m):"null";case "boolean":case "null":return String(m);
case "object":if(!m)return"null";h+=i;r=[];if(Object.prototype.toString.apply(m)==="[object Array]"){n=m.length;for(e=0;e<n;e+=1)r[e]=c(e,m)||"null";o=r.length===0?"[]":h?"[\n"+h+r.join(",\n"+h)+"\n"+q+"]":"["+r.join(",")+"]";h=q;return o}if(p&&typeof p==="object"){n=p.length;for(e=0;e<n;e+=1)g=p[e],typeof g==="string"&&(o=c(g,m))&&r.push(d(g)+(h?": ":":")+o)}else for(g in m)Object.hasOwnProperty.call(m,g)&&(o=c(g,m))&&r.push(d(g)+(h?": ":":")+o);o=r.length===0?"{}":h?"{\n"+h+r.join(",\n"+h)+"\n"+
q+"}":"{"+r.join(",")+"}";h=q;return o}}var a={},f=!1;if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
g=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,h,i,q={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},p;a.stringify=function(a,b,d){var e;i=h="";if(typeof d==="number")for(e=0;e<d;e+=1)i+=" ";else typeof d==="string"&&(i=d);if((p=b)&&typeof b!=="function"&&(typeof b!=="object"||typeof b.length!=="number"))throw Error("JSON.stringify");return c("",{"":a})};a.parse=function(a,b){function c(a,
d){var e,f,g=a[d];if(g&&typeof g==="object")for(e in g)Object.hasOwnProperty.call(g,e)&&(f=c(g,e),f!==void 0?g[e]=f:delete g[e]);return b.call(a,d,g)}var d,a=String(a);e.lastIndex=0;e.test(a)&&(a=a.replace(e,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+a+")"),
typeof b==="function"?c({"":d},""):d;throw new SyntaxError("JSON.parse");};DISQUS.json={};var o={a:[1,2,3]};if(Object.toJSON&&Object.toJSON(o).replace(/\s/g,"")==='{"a":[1,2,3]}')DISQUS.json.stringify=Object.toJSON;if(typeof String.prototype.evalJSON==="function"&&(o='{"a":[1,2,3]}'.evalJSON(),o.a&&o.a.length===3&&o.a[2]===3))DISQUS.json.parse=function(a){return a.evalJSON()};(function(){var a=[1,2,3];typeof a.toJSON==="function"&&(a=a.toJSON(),f=!(a&&a.length===3&&a[2]===3))})();if(!DISQUS.json.stringify||
!DISQUS.json.parse)DISQUS.json={stringify:a.stringify,parse:a.parse}})();
DISQUS.sdk.add("getThread","1.0",function(b){var d=DISQUS.jsonData,c=[];DISQUS.each(d.ordered_posts,function(a){var a=d.posts[a],b=d.users[a.user_key];c.push({id:a.id,date:a.real_date,prettyDate:a.date,contents:a.message,likesCount:a.likes,isApproved:a.approved,isDeleted:a.killed,isEdited:a.edited,author:{username:b.username,displayName:b.display_name,points:b.points||0,isRegistered:b.registered,isModerator:a.author_is_moderator,isVerified:b.verified}})});b({id:d.thread.id,slug:d.thread.slug,isClosed:d.thread.closed,
isDeleted:d.thread.killed,posts:c,forum:{id:d.forum.id,name:d.forum.name,shortname:d.forum.url,language:d.forum.language,apiKey:d.forum.apiKey}})});DISQUS.sdk.add("getSession","1.0",function(b){var d=DISQUS.jsonData;b({user:{username:d.request.username,profileUrl:d.request.profile_url,displayName:d.request.display_username,points:d.request.points,isAuthenticated:d.request.is_authenticated,isModerator:d.request.is_moderator,isVerified:d.request.is_verified}})});
DISQUS.addBlocks("defaults")(function(b){b.blocks.comment=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" "),a.compile()};b.blocks.postSharingOptions=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f){a.put(" ");if(request.is_authenticated){a.put('<div class="dsq-sharing-options dsq-tt"');request.display_sharing_options||a.put('style="display:none;"');a.put('title="');a.put(trans("Toggle to share your comment"));a.put('">');if(request.sharing.twitter.enabled||
request.sharing.facebook.enabled)a.put('<span class="dsq-sharing-options-label">'),a.put(trans("Share on")),a.put("</span>"),request.sharing.twitter.enabled&&(a.put('<button type="button" class="dsq-share-toggle" id="dsq-share-twitter" onclick="DISQUS.dtpl.actions.fire(\'share.toggle\', this, \'twitter\''),comment&&(a.put(","),a.put(comment.id)),a.put(');"><span class="dsq-share-icon"></span><span class="dsq-share-status"></span></button>')),request.sharing.facebook.enabled&&(a.put('<button type="button" class="dsq-share-toggle" id="dsq-share-facebook"onclick="DISQUS.dtpl.actions.fire(\'share.toggle\', this, \'facebook\''),
comment&&(a.put(","),a.put(comment.id)),a.put(');"><span class="dsq-share-icon"></span><span class="dsq-share-status"></span></button>')),a.put('<input style="display: none" type="checkbox" id="dsq-sharing-twitter'),comment&&(a.put("-"),a.put(comment.id)),a.put('" /> <input style="display: none" type="checkbox" id="dsq-sharing-facebook'),comment&&(a.put("-"),a.put(comment.id)),a.put('" />');a.put("</div>")}return a.compile()}};b.blocks.messagesxNotice=function(d,c){var a=new b.Builder,f=DISQUS.extend({},
d,c);with(f)return a.put(' <div class="dsq-messagesx-icon"> </div> <p> '),a.put(message.formatted.text),a.put(" </p>"),a.compile()};b.blocks.googleForm=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div id="dsq-login-google-content" class="dsq-auth-form"> <div class="dsq-connect-msg"> <h3>'),a.put(trans("Sign in with your Google account")),a.put("</h3> <p>"),a.put(trans("Click the button below to continue.")),a.put('</p> <p><span class="dsq-google-connect dsq-external-launcher"></span></p> </div> <div class="dsq-remote-authentication" style="display:none !important"> <img src="'),
a.put(settings.media_url),a.put('/images/dsq-loader.gif"> <p>'),a.put(trans("Connecting to Google")),a.put("</p> </div> <p><small>"),a.put(trans("You might need to disable your popup blocker to sign in.")),a.put("</small></p> </div>"),a.compile()};b.blocks.facebookLoginForm=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f){a.put(' <div id="dsq-login-facebook-content" class="dsq-auth-form"> <div class="dsq-connect-msg"> ');if(typeof title==="undefined"||title)a.put(" <h3>"),
a.put(trans("Sign in with your Facebook account")),a.put("</h3> ");a.put(" <p>");a.put(trans("Click the button below to continue."));a.put('</p> <p id="dsq-login-facebook-frame"> <\!-- frame goes here --\> </p> </div> <div class="dsq-remote-authentication" style="display:none !important"> <img src="');a.put(settings.media_url);a.put('/images/dsq-loader.gif" /> <p>');a.put(trans("Connecting to Facebook"));a.put("</p> </div> <p><small>");a.put(trans("You might need to disable your popup blocker to sign in."));
a.put("</small></p> </div>");return a.compile()}};b.blocks.reportConfirmation=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div style="text-align: center"> <button type="button" class="dsq-button" onclick="DISQUS.dtpl.actions.fire(\'comments.report\', '),a.put(id),a.put(', true);"> '),a.put(trans("Yes, flag as inappropriate")),a.put(' </button> <a href="#" onclick="DISQUS.popup.close(null, true);" style="margin: 0 0 0 10px">'),a.put(trans("Cancel")),a.put("</a> <br/><br/> </div> "),
a.put(trans("This will flag comments for moderators to take action.")),a.compile()};b.blocks.globalToolbarDropdown=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" "),a.put(' <div id="dsq-toolbar-dropdown"> <a href="#" onclick="return false" class="dsq-toolbar-logo dsq-toolbar-item dsq-clearfix"><span class="dsq-toolbar-icon">Disqus</span></a> <div id="dsq-toolbar-dropdown-wrap" style="display: none"> <ul class="dsq-clearfix"> '),request.is_authenticated?
(a.put(" "),!request.is_remote&&!forum.disqus_auth_disabled?(a.put(' <li class="dsq-dashboard-link"><a href="#" onclick="DISQUS.dtpl.actions.fire(\'profile.dashboard\'); return false"><span class="dsq-toolbar-icon"></span><span class="dsq-toolbar-label">'),a.put(trans("Dashboard")),a.put('</span></a></li> <li class="dsq-editprofile-link"><a href="#" onclick="DISQUS.dtpl.actions.fire(\'profile.edit\'); return false"><span class="dsq-toolbar-icon"></span><span class="dsq-toolbar-label">'),
a.put(trans("Edit Profile")),a.put("</span></a></li> ")):request.is_remote&&request.has_email&&(a.put(' <li class="dsq-editprofile-link"><a href="#" onclick="return DISQUS.dtpl.actions.fire(\'user.remoteAccountSettings\');"><span class="dsq-toolbar-icon"></span><span class="dsq-toolbar-label">'),a.put(trans("Settings")),a.put("</span></a></li> ")),a.put(" "),request.is_sso&&config.sso&&config.sso.logout?(a.put(' <li class="dsq-logout-link"><a href="'),
a.put(config.sso.logout)):(a.put(' <li class="dsq-logout-link"><a href="'),a.put(urls.logout),a.put("?ctkn="),a.put(context.csrf_token)),a.put('"><span class="dsq-toolbar-icon"></span><span class="dsq-toolbar-label">'),a.put(trans("Logout")),a.put("</span></a></li> "),a.put(" ")):(a.put(' <li class="dsq-login-link"><a href="#" onclick="DISQUS.dtpl.actions.fire(\'auth.login\'); return false"><span class="dsq-toolbar-icon"></span><span class="dsq-toolbar-label">'),
a.put(trans("Login")),a.put("</span></a></li> ")),a.put(' <li class="dsq-about-link"><a href="http://disqus.com" target="_blank"><span class="dsq-toolbar-icon"></span><span class="dsq-toolbar-label">'),a.put(trans("About Disqus")),a.put("</span></a></li> </ul> </div> </div>"),a.compile()};b.blocks.messagesxReply=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="dsq-messagesx-icon"> <img src="'),a.put(settings.media_url),
a.put('/img/disqus-bar/icons/reply.png" /> </div> <p> '),a.put(message.formatted.text),a.put(" </p>"),a.compile()};b.blocks.moderatorActionsPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" "),a.put('<div class="dsq-moderate-options"> <table> <tr> <th>'),a.put(trans("Actions")),a.put("</th> <td> <ul> <li>"),thread.closed?(a.put('<a href="#" onclick="return DISQUS.dtpl.actions.fire(\'thread.open\');">'),a.put(trans("Open thread"))):
(a.put('<a href="#" onclick="return DISQUS.dtlp.actions.fire(\'thread.close\');">'),a.put(trans("Close thread"))),a.put("</a>"),a.put("</li> </ul> </td> </tr> </table> </div> <p>"),a.put(trans("Go to the full")),a.put('<a href="'),a.put(urls.moderate_threads),a.put('" target="_blank">'),a.put(trans("moderate panel")),a.put("</a>"),a.put(trans("for more options")),a.put(".</p>"),a.put(" "),a.compile()};b.blocks.comments=function(d,c){var a=new b.Builder,f=DISQUS.extend({},
d,c);with(f)return a.put(' <div id="dsq-edit-profile-suggestion" style="display:none"> <p>'),a.put(trans("Thanks for posting.")),a.put(" "),a.put(trans("Would you like to")),a.put(' <a href="#" onclick="DISQUS.dtpl.actions.fire(\'profile.edit\'); return false">edit your profile</a>?</p> </div> '),b.each(comments,function(c,d){var f={comment:c,index:d};a.put(" ");(function(){var c={};b.extend(c,f);b.extend(c,{});a.put(b.renderBlock("comment",c))})();a.put(" ")}),a.compile()};
b.blocks.oldFlashMessage=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put("You are using an older browser. In order to comment, please upgrade to either Flash 10 or Internet Explorer 8."),a.compile()};b.blocks.publisherFacebookLoginForm=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div id="dsq-login-facebook-content" class="dsq-auth-form"> <div class="dsq-connect-msg"> <h3>'),a.put(trans("Sign in with your Facebook account")),
a.put("</h3> <p>"),a.put(trans("Click the button below to continue.")),a.put('</p> <p><span class="dsq-facebook-connect dsq-external-launcher"></span></p> </div> <div class="dsq-remote-authentication" style="display:none !important"> <img src="'),a.put(settings.media_url),a.put('/images/dsq-loader.gif" /> <p>'),a.put(trans("Connecting to Facebook")),a.put("</p> </div> <p><small>"),a.put(trans("You might need to disable your popup blocker to sign in.")),
a.put("</small></p> </div>"),a.compile()};b.blocks.permalinkPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put('<div class="dsq-field"> <label>'),a.put(trans("You are anchored to")),a.put('</label> <input type="text" readonly="true" class="dsq-anchored-to" value="'),a.put(document.location.protocol),a.put("//"),a.put(document.location.host),a.put(document.location.pathname),a.put(document.location.search),a.put("#comment-"),a.put(postId),a.put('"/></div>'),
a.compile()};b.blocks.openidForm=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="dsq-auth-form"> <p class="dsq-field"> <label for="dsq-openid-url">'),a.put(trans("OpenID URL")),a.put('</label> <input type="text" id="dsq-openid-url" value="http://"/> </p> <p class="dsq-field"> <label for="dsq-openid-url">'),a.put(trans("Your name")),a.put('</label> <input type="text" id="dsq-openid-username"/> </p> <p><button class="dsq-button" id="dsq-openid-submit-button">'),
a.put(trans("Sign in")),a.put("</button></p> </div>"),a.compile()};b.blocks.loginPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="dsq-tabbed-modal" id="dsq-tabbed-login-modal"> <ul class="dsq-modal-tabs"> '),guestTab&&(a.put(' <li id="dsq-login-tab-guest"><a href="#dsq-login-guest" '),forum.allow_anon_post||a.put(' style="display: none !important"'),a.put("><span></span>"),a.put(trans("Guest")),a.put("</a></li> ")),a.put(" "),
config.sso&&(a.put('<li id="dsq-login-tab-sso"><a href="#dsq-login-sso"><span></span>'),a.put(config.sso.name),a.put("</a></li>")),a.put(" "),forum.disqus_auth_disabled||a.put(' <li id="dsq-login-tab-disqus"><a href="#dsq-login-disqus"><span></span>Disqus</a></li> '),a.put(' <li id="dsq-login-tab-google"><a href="#dsq-login-google"><span></span>Google</a></li> <li id="dsq-login-tab-twitter"><a href="#dsq-login-twitter"><span></span>Twitter</a></li> <li id="dsq-login-tab-facebook"><a href="#dsq-login-facebook"><span></span>Facebook</a></li> <li id="dsq-login-tab-yahoo"><a href="#dsq-login-yahoo"><span></span>Yahoo</a></li> <li id="dsq-login-tab-openid"><a href="#dsq-login-openid"><span></span>OpenID</a></li> </ul> <div class="dsq-tab-container"> <div id="dsq-login-guest" class="dsq-tab-content dsq-auth-form" style="display: none !important"> <p class="dsq-field"> <label for="dsq-field-email" id="dsq-field-email-label">'),
a.put(trans("Your email")),a.put('</label> <input type="text" value="'),config.def_email?a.put(config.def_email):session.email&&a.put(session.email),a.put('" id="dsq-field-email"/> </span> <p class="dsq-field"> <label for="dsq-field-name" id="dsq-field-name-label">'),a.put(trans("Your name")),a.put('</label> <input type="text" value="'),config.def_name?a.put(config.def_name):session.name?a.put(session.name):a.put(trans("Guest")),a.put('" id="dsq-field-name" /> </p> <p> <span class="dsq-login-add-url">'),
a.put(trans("Optional")),a.put(': <a href="#">'),a.put(trans("Link to your website")),a.put('</a></span> </p> <p class="dsq-field" style="display:none !important" id="dsq-optional-field-website"> <label for="dsq-field-website" id="dsq-field-website-label">'),a.put(trans("Your website")),a.put('</label> <input type="text" value="'),session.url&&a.put(session.url),a.put('" id="dsq-field-website" /> </p> <p class="dsq-login-subscribe"> <span> <input id="dsq-subscribe-on-post'),
comment&&(a.put("-"),a.put(comment.id)),a.put('" type="checkbox" '),request.subscribe_on_post&&a.put('checked="true"'),a.put('/> </span> <label for="dsq-subscribe-on-post'),comment&&(a.put("-"),a.put(comment.id)),a.put('">'),a.put(trans("Subscribe to all comments by email")),a.put('</label> </p> <p> <button type="button" id="dsq-submit-guest" class="dsq-button">'),a.put(trans("Post comment")),a.put("</button> </p> </div> "),
a.put(" "),typeof states.useLoginWindow!=="undefined"&&!states.useLoginWindow?a.put(' <div id="dsq-login-disqus" class="dsq-tab-content dsq-auth-form" style="display: none !important"> <\!-- disqus iframe gets inserted here dynamically --\> </div> '):(a.put(' <div id="dsq-login-disqus" class="dsq-tab-content dsq-auth-form" style="display: none !important"> <div class="dsq-connect-msg"> <h3>'),a.put(trans("Sign in with your Disqus account")),
a.put("</h3> <p>"),a.put(trans("Click the button below to continue.")),a.put('</p> <p><span class="dsq-disqus-connect dsq-external-launcher"></span></p> </div> <div class="dsq-remote-authentication" style="display:none !important"> <img src="'),a.put(settings.media_url),a.put('/images/dsq-loader.gif" /> <p>'),a.put(trans("Connecting to Disqus")),a.put("</p> </div> <p><small>"),a.put(trans("You might need to disable your popup blocker to sign in.")),
a.put("</small></p> </div> ")),a.put(' <div id="dsq-login-facebook" class="dsq-tab-content" style="display:none !important"> '),a.put(" "),context.forum_facebook_key&&(!window.FB||!window.FB.dynData)?(a.put(" "),function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("publisherFacebookLoginForm",d))}()):(a.put(" "),a.put(" "),function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("facebookLoginForm",
d))}()),a.put(" "),a.put(' </div> <div id="dsq-login-twitter" class="dsq-tab-content dsq-auth-form" style="display:none !important"> <div class="dsq-connect-msg"> <h3>'),a.put(trans("Sign in with your Twitter account")),a.put("</h3> <p>"),a.put(trans("Click the button below to continue.")),a.put('</p> <p><span class="dsq-twitter-connect dsq-external-launcher"></span></p> </div> <div class="dsq-remote-authentication" style="display:none !important"> <img src="'),
a.put(settings.media_url),a.put('/images/dsq-loader.gif" /> <p>'),a.put(trans("Connecting to Twitter")),a.put("</p> </div> <p><small>"),a.put(trans("You might need to disable your popup blocker to sign in.")),a.put('</small></p> </div> <div id="dsq-login-openid" class="dsq-tab-content" style="display:none !important"> '),function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("openidForm",d))}(),a.put(' </div> <div id="dsq-login-google" class="dsq-tab-content" style="display:none !important"> '),
function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("googleForm",d))}(),a.put(' </div> <div id="dsq-login-yahoo" class="dsq-tab-content dsq-auth-form" style="display: none !important"> <div class="dsq-connect-msg"> <h3>'),a.put(trans("Sign in with your Yahoo account")),a.put("</h3> <p>"),a.put(trans("Click the button below to continue.")),a.put('</p> <p><span class="dsq-yahoo-connect dsq-external-launcher"></span></p> </div> <div class="dsq-remote-authentication" style="display:none !important"> <img src="'),
a.put(settings.media_url),a.put('/images/dsq-loader.gif" /> <p>'),a.put(trans("Connecting to Yahoo")),a.put("</p> </div> <p><small>"),a.put(trans("You might need to disable your popup blocker to sign in.")),a.put("</small></p> </div> "),config.sso&&(a.put(' <div id="dsq-login-sso" class="dsq-tab-content dsq-auth-form" style="display:none !important"> <div class="dsq-connect-msg"> <h3>'),a.put(b.interpolate(trans("Sign in with your %(account)s account"),
{account:config.sso.name})),a.put("</h3> <p>"),a.put(trans("Click the button below to continue.")),a.put('</p> <p><span class="dsq-sso-connect dsq-external-launcher"><img src="'),a.put(config.sso.button),a.put('"/></span></p> </div> <div class="dsq-remote-authentication" style="display:none !important"> <img src="'),a.put(settings.media_url),a.put('/images/dsq-loader.gif" /> <p>'),a.put(b.interpolate(trans("Connecting to %(account)s"),
{account:config.sso.name})),a.put("</p> </div> <p><small>"),a.put(trans("You might need to disable your popup blocker to sign in.")),a.put("</small></p> </div> ")),a.put(" </div> </div>"),a.compile()};b.blocks.profileEdit=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="dsq-tabbed-modal" id="dsq-profile-edit-modal"> <ul class="dsq-modal-tabs"> '),has_unmerged_users&&(a.put(' <li id="dsq-tab-profile-merge"> <a href="#dsq-profile-merge"> <span></span>'),
a.put(trans("Merging")),a.put(" </a> </li> ")),a.put(' <li id="dsq-tab-profile-edit"> <a href="#dsq-profile-edit"> <span></span>'),a.put(trans("Profile")),a.put(' </a> </li> <li id="dsq-tab-profile-avatar"> <a href="#dsq-profile-avatar"> <span></span>'),a.put(trans("Avatar")),a.put(' </a> </li> <li id="dsq-tab-profile-services"> <a href="#dsq-profile-services"> <span></span>'),a.put(trans("Services")),
a.put(' </a> </li> <li id="dsq-tab-profile-notifications"> <a href="#dsq-profile-notifications"> <span></span>'),a.put(trans("Notifications")),a.put(' </a> </li> <li id="dsq-tab-profile-account"> <a href="#dsq-profile-account"> <span></span>'),a.put(trans("Account")),a.put(' </a> </li> <li id="dsq-tab-profile-apps"> <a href="#dsq-profile-apps"> <span></span>'),a.put(trans("Applications")),a.put(' </a> </li> </ul> <div class="dsq-tab-container" style="height:90% !important;"> '),
has_unmerged_users&&a.put(' <div id="dsq-profile-merge" class="dsq-tab-content"></div> '),a.put(' <div id="dsq-profile-edit" class="dsq-tab-content dsq-auth-form"></div> <div id="dsq-profile-avatar" class="dsq-tab-content dsq-auth-form"></div> <div id="dsq-profile-services" class="dsq-tab-content dsq-auth-form"></div> <div id="dsq-profile-notifications" class="dsq-tab-content dsq-auth-form"></div> <div id="dsq-profile-account" class="dsq-tab-content dsq-auth-form"></div> <div id="dsq-profile-apps" class="dsq-tab-content dsq-auth-form"></div> </div> </div>'),
a.compile()};b.blocks.commentMessage=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="'),a.put(cls),a.put('" id="dsq-comment-message-'),a.put(comment.id),a.put('"> '),comment.killed?(a.put(" <em>"),a.put(trans("Comment removed.")),a.put("</em> ")):comment.approved?(a.put(" "),a.put(comment.message),a.put(" "),comment.last_modified_by=="moderator"?(a.put(' <p class="dsq-editedtxt">('),a.put(trans("Edited by a moderator")),a.put(")</p> ")):
comment.last_modified_by=="author"&&comment.has_replies&&(a.put(' <p class="dsq-editedtxt">('),a.put(trans("Edited by author")),a.put(" "),a.put(comment.last_modified_date),a.put(")</p> ")),a.put(" ")):(a.put(" <em>"),a.put(trans("This comment was flagged for review.")),a.put("</em> ")),a.put(" </div>"),a.compile()};b.blocks.popup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="dsq-popup-container '),strict&&a.put("dsq-cleanslate "),
a.put('"> <table> <tbody> <tr> <td class="dsq-popup-tl"></td> <td class="dsq-popup-b"></td> <td class="dsq-popup-tr"></td> </tr> <tr> <td class="dsq-popup-b"></td> <td class="dsq-popup-body"> <div class="dsq-popup-wrapper"> <div class="dsq-popup-title"> <button type="button" class="dsq-popup-close dsq-button-small" style="float:right; color: #fff">'),a.put(trans("Close")),a.put("</button> <h3>"),
a.put(popupHeader),a.put('</h3> </div> <div class="dsq-popup-content"> '),a.put(popupBody),a.put(" </div> "),footer&&(a.put(' <div class="powered-by"> <a href="'),a.put(settings.disqus_url),a.put('"> <img src="'),a.put(settings.media_url),a.put('/images/embed/disqus-logo-noborder.png" alt="Disqus Comments" style="margin-bottom:-5px;"/> </a> </div> ')),
a.put(' </div> </td> <td class="dsq-popup-b"></td> </tr> <tr> <td class="dsq-popup-bl"></td> <td class="dsq-popup-b"></td> <td class="dsq-popup-br"></td> </tr> </tbody> </table> </div>'),a.compile()};b.blocks.globalToolbar=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div id="dsq-global-toolbar" class="dsq-clearfix"> <ul class="dsq-global-toolbar-right dsq-clearfix"> '),
request.is_authenticated&&(a.put(' <li class="dsq-messages"> <div id="dsq-messagesx-toolbar-icon" class="'),messagesx.count>0&&a.put(" dsq-unread "),a.put(' dsq-dropdown-tab dsq-toolbar-item dsq-clearfix" onclick="DISQUS.dtpl.actions.fire(\'messagesx.toggleBar\'); return false;"> <a href="#" class="dsq-message-count dsq-toolbar-label" id="dsq-messagesx-count">'),a.put(messagesx.count),a.put('</a> </div> <div id="dsq-messagesx-toolbar-dropdown" class="dsq-dropdown"> <h4>Notifications</h4> <ul class="dsq-inbox" id="dsq-messagesx-inbox"> <li id="dsq-inbox-no-messages">You have no messages</li> </ul> </div> <div id="dsq-alert" class="dsq-alert dsq-alert-hidden"> <div class="dsq-alert-notch"></div> <p>You\'ve received a new rank!</p> </div> </li> ')),
a.put(" "),context.switches.community_icon&&(a.put(' <li class="dsq-community-box"> <a href="#" class="dsq-toolbar-item dsq-tt" onclick="DISQUS.dtpl.actions.fire(\'community.show\'); return false" title="'),a.put(trans("Expand Community Box")),a.put('"><span class="dsq-toolbar-icon"></span></a> </li> ')),a.put(" "),request.is_moderator&&(a.put(' <li class="dsq-admin-settings"> <a href="#" class="dsq-toolbar-item dsq-tt" onclick="DISQUS.dtpl.actions.fire(\'thread.settings\'); return false;" title="'),
a.put(trans("Settings")),a.put('"><span class="dsq-toolbar-icon"></span></a> </li> ')),a.put(' <li class="dsq-global-toolbar-dropdown-container"> '),function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("globalToolbarDropdown",d))}(),a.put(" </li> </ul> "),forum.thread_votes_disabled||(a.put(' <ul class="dsq-global-toolbar-left dsq-clearfix"> <li class="dsq-like-thread"> <a href="#" id="dsq-like-thread-button" class="dsq-toolbar-item dsq-clearfix '),
thread.user_vote==1&&a.put("dsq-toggled"),a.put(' dsq-tt" onclick="DISQUS.dtpl.actions.fire(\'thread.vote\', 1); return false;" title="'),a.put(trans("I like this page")),a.put('"> <span class="dsq-toolbar-icon"></span> <span class="dsq-toolbar-label">'),a.put(trans("Like")),a.put('</span> </a> </li> <li class="dsq-dislike-thread"> <a href="#" id="dsq-dislike-thread-button" class="dsq-toolbar-item dsq-clearfix '),
thread.user_vote==-1&&a.put("dsq-toggled"),a.put(' dsq-tt" onclick="DISQUS.dtpl.actions.fire(\'thread.vote\', -1); return false" title="'),a.put(trans("I don't like this page")),a.put('"> <span class="dsq-toolbar-icon">'),a.put(trans("Dislike")),a.put('</span> </a> </li> <li class="dsq-like-panel"> <ul class="dsq-like-faces dsq-clearfix"> '),function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("likeActivity",
d))}(),a.put(" </ul> </li> </ul> ")),a.put(' </div> <div id="dsq-like-tooltip"> <div id="dsq-share-step-1" class="dsq-share-step"> <h3>'),a.put(trans("Glad you liked it. Would you like to share?")),a.put('</h3> <p class="dsq-tooltip-checkbox"><input type="checkbox" id="dsq-share-thread-facebook" value="Facebook" /><label for="dsq-share-thread-facebook"><span class="dsq-facebook">Facebook</span></label></p> <p class="dsq-tooltip-checkbox"><input type="checkbox" id="dsq-share-thread-twitter" value="Twitter" /><label for="dsq-share-thread-twitter"><span class="dsq-twitter">Twitter</span></label></p> <ul id="dsq-tooltip-actions"> '),
forum.template.api=="1.0"?a.put(' <li><a href="#" onclick="DISQUS.dtpl.actions.fire(\'thread.share\'); return false" class="dsq-primary-action">'):a.put(' <li><a href="#" onclick="DISQUS.dtpl.actions.fire(\'thread.share.send\'); return false" class="dsq-primary-action">'),a.put(trans("Share")),a.put("</a></li> "),a.put(' <li><a href="#" onclick="DISQUS.dtpl.actions.fire(\'thread.share.cancel\'); return false" class="dsq-secondary-action">'),a.put(trans("No thanks")),
a.put('</a></li> </ul> </div> <div id="dsq-share-step-2" class="dsq-share-step" style="display:none !important"> <p>'),a.put(trans("Sharing this page")),a.put(' …</p> </div> <div id="dsq-share-step-3" class="dsq-share-step" style="display:none !important"> <p>'),a.put(trans("Thanks!")),a.put(' <a href="#" class="dsq-tooltip-decline" onclick="DISQUS.dtpl.actions.fire(\'thread.share.cancel\'); return false">Close</a></p> </div> </div> '),context.switches.show_unapproved&&
unapproved.length&&(a.put(' <div id="dsq-unapproved"> <h4> '),unapproved.length>1?(a.put(" "),a.put(b.interpolate(trans("You have %(unapproved)s unapproved comments"),{unapproved:unapproved.length}))):(a.put(" "),a.put(trans("You have 1 unapproved comment"))),a.put(" "),a.put(" </h4> <ul> "),b.each(unapproved,function(b){a.put(' <li><img src="');a.put(b.author.avatar);a.put('"/> ');a.put(b.raw_message.replace(/\n/,""));a.put("</li> ")}),
a.put(" </ul> <p> "),unapproved.length>1?(a.put(" "),a.put(trans("A moderator needs to approve these comments before they will be published."))):(a.put(" "),a.put(trans("A moderator needs to approve this comment before it will be published."))),a.put(" "),a.put(" </p> </div> ")),a.compile()};b.blocks.recaptcha=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div id="dsq-captcha"> <div id="dsq-captcha-loading"> '),
a.put(' <img src="'),a.put(settings.media_url),a.put('/images/loading.gif"/> </div> <div id="dsq-captcha-container" style="display:none"> <p>'),a.put(trans("Please type in the following words to finish posting.")),a.put("</p> "),a.put(' <div id="dsq-captcha-form"></div> <button type="button" class="dsq-button">'),a.put(trans("Continue")),a.put("</button> </div> </div>"),a.compile()};b.blocks.messagesxPopup=function(d,c){var a=new b.Builder,
f=DISQUS.extend({},d,c);with(f)return a.put(" "),message.theme=="notice"?(a.put(" "),function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("messagesxNotice",d))}(),a.put(" ")):message.theme=="reply"?(a.put(" "),function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("messagesxReply",d))}(),a.put(" ")):message.theme=="achievement"&&(a.put(" "),function(){var d={};b.extend(d,c);b.extend(d,{});a.put(b.renderBlock("messagesxAchievement",d))}(),
a.put(" ")),a.compile()};b.blocks.likeActivity=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" "),b.each(thread.voters,function(b){a.put(' <li class="dsq-tt" title="');a.put(b.name);a.put('"><a href="');a.put(b.url);a.put("\" onclick=\"return DISQUS.dtpl.actions.fire('profile.show', null, '");a.put(b.username);a.put("', ");a.put(b.is_moderator);a.put('); return false"><img src="');a.put(b.avatar);a.put('"/></a></li> ')}),a.put(' <li class="dsq-like-activity"> '),
thread.voters_count>0?(a.put(" "),thread.likes-thread.voters_count>0?(a.put(" "),a.put(b.interpolate(trans("and %(count)s %(other)s liked this."),{count:thread.likes-thread.voters_count,other:lang.pluralize(thread.likes-thread.voters_count,"other","others")}))):(a.put(" "),a.put("liked this.")),a.put(" "),a.put(" ")):thread.likes>0&&(a.put(" "),a.put(b.interpolate(trans("%(count)s %(person)s liked this."),{count:thread.likes,person:lang.pluralize(thread.likes,"person",
"people")})),a.put(" ")),a.put(" </li>"),a.compile()};b.blocks.threadSettingsPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <span id="dsq-thread-settings-status" class="dsq-options-status"></span> <p>'),a.put(trans("These settings only apply to this thread. To change settings site-wide, visit the main")),a.put(' <a href="'),a.put(urls.settings),a.put('" target="_blank">'),a.put(trans("settings page")),a.put('</a>.</p> <div class="dsq-moderate-options"> <table class="dsq-moderator-settings"> <tr> <td> <h4>'),
a.put(trans("Close/Open thread for comments")),a.put("</h4> <ul> <li> "),thread.closed?(a.put(' <a href="#" class="dsq-toggle-thread" onclick="return DISQUS.dtpl.actions.fire(\'thread.open\');">'),a.put(trans("Open thread"))):(a.put(' <a href="#" class="dsq-toggle-thread" onclick="return DISQUS.dtpl.actions.fire(\'thread.close\');">'),a.put(trans("Close thread"))),a.put("</a> "),a.put(" </li> </ul> </td> </tr> <tr> <td> <h4>"),
a.put(trans("Automatic Closing")),a.put("</h4> <p>"),a.put(trans("Do not allow comments after")),a.put(' <input size="3" id="dsq-thread-days-alive" value="'),a.put(thread.days_alive),a.put('" type="text" /> '),a.put(trans("days")),a.put(". "),a.put(trans("Using 0 days will disable this feature.")),a.put('</p> <p class="dsq-form-actions"> <button type="button" onclick="DISQUS.dtpl.actions.fire(\'thread.updateDaysAlive\');" class="dsq-button-small"> <span>'),
a.put(trans("Save")),a.put("</span> </button> </p> </td> </tr> <tr> <td "),forum.reactions_enabled||a.put('class="last"'),a.put("> <h4>"),a.put(trans("Moderate all comments")),a.put('</h4> <ul class="dsq-moderator-radios"> <li><label><input type="radio" id="dsq-thread-moderate-all" name="moderate_all_comments" value="1" '),thread.moderate_all&&a.put('checked="true" '),a.put("/> "),a.put(trans("<strong>Yes</strong>, moderators must approve all comments before they are published.")),
a.put(' </label></li> <li><label><input type="radio" name="moderate_all_comments" value="0" '),thread.moderate_none&&a.put('checked="true"'),a.put("/> "),a.put(trans("<strong>No</strong>, comments don't need to be approved before they are published.")),a.put('</label></li> <li><label><input type="radio" name="moderate_all_comments" value="2" '),!thread.moderate_all&&!thread.moderate_none&&a.put('checked="true"'),a.put("/> "),a.put(trans("Use the my <strong>default</strong> forum setting:")),
a.put(" "),forum.moderate_all?a.put(trans("moderate all comments")):a.put(trans("don't require moderation")),a.put('</label></li> </ul> <p class="dsq-form-actions"> <button type="button" onclick="DISQUS.dtpl.actions.fire(\'thread.updateModerateAll\');" class="dsq-button-small"> <span>'),a.put(trans("Save")),a.put("</span> </button> </p> </td> </tr> "),forum.reactions_enabled&&(a.put(' <tr> <td class="last"> <h4>'),
a.put(trans("Manually scan reactions")),a.put("</h4> <p>"),a.put(trans("Are you expecting Reactions for this thread, but do not see them? Click here to tell the system to search again.")),a.put('</p> <p class="dsq-form-actions"> <button type="button" onclick="DISQUS.dtpl.actions.fire(\'reactions.reportMissing\');" class="dsq-button-small"> <span>'),a.put(trans("Scan")),a.put("</span> </button> </p> </td> </tr> ")),a.put(" </table> </div>"),
a.compile()};b.blocks.moderatorOptions=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" "),request.is_moderator&&(a.put(' <div id="dsq-thread-settings" class="dsq-thread-settings">'),a.put(trans("Moderator options")),a.put(': <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'thread.settings\');">'),a.put(trans("Settings")),a.put('</a> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'thread.moderatorActions\');">'),a.put(trans("Moderate")),a.put('</a> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'thread.help\');">'),
a.put(trans("Help")),a.put("</a> </div> ")),a.compile()};b.blocks.subscribeForm=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div style="width:350px"> <div class="dsq-field"> <label for="dsq-subscribe-email">'),a.put(trans("Your email")),a.put('</label> <input type="text" id="dsq-subscribe-email"/> </div> <button type="button" class="dsq-button" onclick="DISQUS.dtpl.actions.fire(\'thread.subscribe\', DISQUS.nodes.get(\'#dsq-subscribe-email\').value);"> '),
a.put(trans("Subscribe")),a.put(" </button> </div>"),a.compile()};b.blocks.moderateOptionsPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="dsq-moderate-options"> <table> '),comment.email&&(a.put(" <tr> <th>"),a.put(trans("Email")),a.put("</th> <td>"),a.put(comment.email),a.put("</td> </tr> ")),a.put(" "),comment.ip&&(a.put(" <tr> <th>"),a.put(trans("IP address")),a.put("</th> <td>"),
a.put(comment.ip),a.put("</td> </tr> ")),a.put(" <tr> <th>"),a.put(trans("Actions")),a.put("</th> <td> <ul> "),request.moderator_can_edit&&(a.put(' <li> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'comments.edit.new\', '),a.put(comment.id),a.put(');">'),a.put(trans("Edit Comment")),a.put("</a> </li> ")),a.put(' <li> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'comments.delete\', '),
a.put(comment.id),a.put(');">'),a.put(trans("Delete Comment")),a.put('</a> </li> <li> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'comments.spam\', '),a.put(comment.id),a.put(');">'),a.put(trans("Mark Spam")),a.put('</a> </li> <li> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'comments.blacklist\', '),a.put(comment.id),a.put(');">'),a.put(trans("Add to Blacklist")),a.put("</a> </li> </ul> </td> </tr> </table> </div> <p>"),
a.put(trans("Go to the full")),a.put(' <a href="'),a.put(urls.moderate),a.put('" target="_blank">'),a.put(trans("moderate panel")),a.put("</a> "),a.put(trans("for more options.")),a.put("</p>"),a.compile()};b.blocks.pageInfo=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" "),request.is_global_moderator&&(a.put(' <div class="dsq-global-moderator-extras" style="display: block; margin-top: 10px; line-height: 20px; font-size: 14px; list-style-type: none; margin-left: 0;"> <strong>Shortname:</strong> '),
a.put(forum.url),a.put("<br/> <strong>Thread ID:</strong> "),a.put(thread.id),a.put("<br/> <strong>Thread slug:</strong> "),a.put(thread.slug),a.put("<br/> <strong>Switches (Legacy):</strong> "),context.active_switches?b.each(context.active_switches,function(b){a.put(" ");a.put(b);a.put(", ")}):a.put("<em>none</em>"),a.put("<br/> <strong>Switches (Gargoyle):</strong> "),context.active_gargoyle_switches?b.each(context.active_gargoyle_switches,function(b){a.put(" ");a.put(b);a.put(", ")}):
a.put("<em>none</em>"),a.put("<br/> "),thread.topics&&(a.put(" <strong>Thread topics:</strong> "),thread.topics.length?b.each(thread.topics,function(b){a.put(" ");a.put(b);a.put(", ")}):a.put("<em>not classified</em>"),a.put("<br/> ")),a.put(" "),forum.packages&&(a.put(" <strong>Packages:</strong> "),forum.packages.length?b.each(forum.packages,function(b){a.put(" ");a.put(b);a.put(", ")}):a.put("<em>no packages</em>"),a.put("<br/> ")),a.put(" </div> ")),a.compile()};
b.blocks.editProfileSuggestion=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div id="dsq-edit-profile-suggestion" style="display:none"> <p>'),a.put(trans("Thanks for posting.")),a.put(" "),a.put(trans("Would you like to")),a.put(' <a href="#" onclick="DISQUS.dtpl.actions.fire(\'profile.edit\'); return false">edit your profile</a>? </div>'),a.compile()};b.blocks.editArea=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="dsq-textarea-wrapper"> <textarea class="dsq-edit-textarea" id="dsq-edit-textarea-'),
a.put(comment.id),a.put('"> '),a.put(comment.message),a.put(' </textarea> <div id="dsq-edit-iframe-'),a.put(comment.id),a.put('" style="display: none;"></div> </div> <div class="dsq-save-edit"> <button type="button" class="dsq-button" onclick="DISQUS.dtpl.actions.fire(\'comments.edit.send\', '),a.put(comment.id),a.put(', this);"> <span>'),a.put(trans("Save Edit")),a.put("</span> </button> </div>"),a.compile()};b.blocks.retweetsPopup=function(d,c){var a=new b.Builder,
f=DISQUS.extend({},d,c);with(f)return a.put(" <p><strong>"),a.put(reaction.author_name),a.put(":</strong> "),a.put(reaction.body),a.put('<br/><a href="'),a.put(reaction.url),a.put('">'),a.put(reaction.url),a.put('<br/></p> <ul class="dsq-retweets"> '),b.each(reaction.retweets,function(b){a.put(' <li><a href="');a.put(b.url);a.put('">by ');a.put(b.author_name);a.put("</a></li> ")}),a.put(" </ul> "),a.compile()};b.blocks.mediaEmbedPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},
d,c);with(f)return a.put(" "),media.type==1||media.type==5?(a.put(' <p><img src="'),a.put(media.location),a.put('" onload="DISQUS.popup.adjustPosition();"/></p> <p><a href="'),a.put(media.location),a.put('" target="_blank">'),a.put(trans("Original")),a.put("</a></p> ")):media.type==2?(a.put(' <div style="width:480px !important;height:385px !important;"> <object width="480" height="385"> <param name="movie" value="http://www.youtube.com/v/'),a.put(media.location),a.put('&hl=en_US&fs=1&"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/'),
a.put(media.location),a.put('&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed> </object> </div> ')):media.type==4&&(a.put(' <p><img src="'),a.put(media.metadata.medium),a.put('" onload="DISQUS.popup.adjustPosition();"/></p> <p><a href="'),a.put(media.metadata.url),a.put('" target="_blank">'),a.put(trans("Original")),a.put("</a></p> ")),a.compile()};b.blocks.postbox_login_options_dropdown=function(d,c){var a=
new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <ul class="dsq-login-buttons"> '),b.each(loginOptions,function(b){a.put(" ");b.enabled&&(a.put(" "),b.userDefined?(a.put(' <li class="dsq-login-button"> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\''),a.put(b.action),a.put('\');"> <img src="'),a.put(b.button_url),a.put('"> </a> </li> ')):(a.put(' <li class="dsq-login-button dsq-login-button-'),
a.put(b.name),a.put('"> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\''),a.put(b.action),a.put("');\"></a> </li> ")),a.put(" "));a.put(" ")}),a.put(' <li style="clear:both"></li> </ul>'),a.compile()};b.blocks.unapprovedCommentMessage=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" "),mustVerify?(a.put(" "),a.put(trans("You must finish verifying your Disqus Profile email address in order for your comment to appear here.")),
a.put('<br/><br/> <a href="'),a.put(urls.verify_email),a.put('">'),a.put(trans("Click here to verify your email address")),a.put("</a> ")):(a.put(" "),a.put(trans("Your comment must be approved by a moderator before appearing here.")),a.put(" ")),a.compile()};b.blocks.userVotesPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" <ul> "),b.each(users,function(b){a.put(' <li class="dsq-liked-by-user"> <a href="');a.put(settings.disqus_url);a.put("/");
a.put(b.username);a.put('" target="_blank"> <img src="');a.put(b.avatar_url);a.put('" alt=""/> ');b.display_name?a.put(b.display_name):a.put(b.username);a.put(" </a> </li> ")}),a.put(" </ul> "),anon_likes>0&&(a.put(" <p>and "),a.put(anon_likes),a.put(" more "),a.put(lang.pluralize(anon_likes,"person","people")),a.put(".</p> ")),a.compile()};b.blocks.helpLogin=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put("<p>"),a.put(trans("In order to properly log you in, your browser needs to accept cookies from all domains.")),
a.put("</p><p>"),a.put(trans("Open up Settings > Privacy. Then, make sure <strong>Accept cookies from sites</strong> is checked. Also, make sure <strong>Accept third-party</strong> is checked as well.")),a.put("</p><p>"),a.put(trans("After closing your settings, you may try logging in again.")),a.put("</p><p>"),a.put(trans("Optional: If you would rather add an exception just for Disqus, click “Exceptions...” and add disqus.com as an allowed domain.")),a.put("</p>"),a.compile()};b.blocks.moderatorHelpPopup=
function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put('<ul class="dsq-thread-help"> '),forum.reactions_enabled&&(a.put(' <li> <a href="#" onclick="return DISQUS.dtpl.actions.fire(\'reactions.reportMissing\');">'),a.put(trans("Report missing reactions")),a.put("</a> <p>"),a.put(trans("Are you expecting Reactions for this thread, but do not see them? Select this option to tell the system to search again.")),a.put("</p> </li> ")),a.put(' <li> <a href="http://help.disqus.com/forums/" target="_blank">'),
a.put(trans("Knowledge Base")),a.put("</a> <p>"),a.put(trans("Our Knowledge Base has the answers to the most common questions.")),a.put("</p> </li></ul>"),a.compile()};b.blocks.messagesxAchievement=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(' <div class="dsq-messagesx-icon"> '),message.formatted.icon?(a.put(' <img src="'),a.put(message.formatted.icon),a.put('" alt="" /> ')):(a.put(' <img src="'),a.put(settings.media_url),a.put('/img/disqus-bar/icons/trophey.png" alt="" /> ')),
a.put(" </div> <p> "),a.put(message.formatted.text),a.put(" </p>"),a.compile()};b.blocks.loadingPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put('<div style="text-align: center; padding: 5px 0 10px 0;"> <img src="'),a.put(settings.media_url),a.put('/images/loading.gif" alt=""/></div>'),a.compile()};b.blocks.blacklistPopup=function(d,c){var a=new b.Builder,f=DISQUS.extend({},d,c);with(f)return a.put(" <p> "),a.put(trans("Adding this person to the blacklist will block him or her from commenting on this site. Check the following types that you would like to add to the blacklist")),
a.put(": </p> "),user.registered&&(a.put(' <div class="dsq-blacklist-option"> <input id="dsq-blacklist-username" type="checkbox" checked="true" value="'),a.put(user.username),a.put('"/> <label for="dsq-blacklist-username"><strong>'),a.put(trans("Username")),a.put("</strong>: "),a.put(user.username),a.put("</label> </div> ")),a.put(" "),comment.email&&(a.put(' <div class="dsq-blacklist-option"> <input id="dsq-blacklist-email" type="checkbox" checked="true" value="'),a.put(comment.email),
a.put('"/> <label for="dsq-blacklist-email"><strong>'),a.put(trans("Email address")),a.put("</strong>: "),a.put(comment.email),a.put("</label> </div> ")),a.put(' <div class="dsq-blacklist-option"> <input id="dsq-blacklist-ip" type="checkbox" onclick="DISQUS.nodes.get(\'#dsq-blacklist-ip-warning\').style.display=\'block\';" value="'),a.put(comment.ip),a.put('"/> <label for="dsq-blacklist-ip"><strong>'),a.put(trans("IP address")),a.put("</strong>: "),a.put(comment.ip),a.put('</label> <p id="dsq-blacklist-ip-warning" style="display:none"> '),
a.put(trans("Note: Blocking this person's IP address may also unintentionally prevent others, who share his/her IP address, from commenting on this site. This may include people who are sharing the same computer, living in the same house, or using the same Internet provider. Only block an IP address as a last resort.")),a.put(' </p> </div> <div class="dsq-blacklist-submit"> <span> <input id="dsq-blacklist-retroactive" type="checkbox" value="1"/> <label for="dsq-blacklist-retroactive">Also apply to existing comments</label> </span> <button class="dsq-button" type="button" onclick="DISQUS.dtpl.actions.fire(\'comments.blacklist\', '),
a.put(comment.id),a.put(', true);"> '),a.put(trans("Add to Blacklist")),a.put(" </button> </div>"),a.compile()}});
|