var DISQUS;var disqus_config;var DsqLocal;var disqus_callback;var disqus_callback_params;var disqus_category_id;var disqus_container_id;var disqus_custom_strings;var disqus_def_email;var disqus_def_name;var disqus_default_text;var disqus_dev;var disqus_developer;var disqus_domain;var disqus_facebook_forum;var disqus_facebook_key;var disqus_frame_theme;var disqus_href;var disqus_identifier;var disqus_iframe_css;var disqus_message;var disqus_shortname;var disqus_thread_slug;var disqus_skip_auth;var disqus_sort;var disqus_title;var disqus_url;var disqus_per_page;DISQUS=(function(){var j={};var f;var a;var b;var d=false;f=document.getElementsByTagName("head")[0]||document.getElementById("disqus_thread");b={running:false,timer:null,queue:[]};function g(k){var l=window.onload;if(typeof window.onload!="function"){window.onload=k}else{window.onload=function(){if(l){l()}k()}}}function h(n){var o=(n.getAttribute)?n.getAttribute("src"):n.src;var k=[/https?:\/\/(www\.)?disqus\.com\/forums\/([\w_\-]+)/i,/https?:\/\/(www\.)?([\w_\-]+)\.disqus\.com/i,/https?:\/\/(www\.)?dev\.disqus\.org\/forums\/([\w_\-]+)/i];if(o){for(var m=0;m<k.length;m++){var l=o.match(k[m]);if(l&&l.length&&l.length==3){return l[2]}}}return null}function i(){var k;var n;var l;if(!DISQUS.isReady){if(!a){a=window.setInterval(i,500)}return}if(a){clearInterval(a)}k=document.getElementById(disqus_container_id);n=document.getElementsByTagName("iframe");l=document.getElementById("dsq-content");if(l){for(var m=0;m<n.length;m++){n[m].style.width=l.offsetWidth}}}function c(){if(b.queue.length===0){b.running=false;clearInterval(b.timer);return}var k=b.queue.shift();if(k[0]()){k[1]()}else{b.queue.push(k)}}function e(k){var l=document.getElementById("dsq-content-progress");if(!l){return}if(typeof k=="undefined"){k=parseInt(l.style.width,10)+10}l.style.width=k+"px"}j.browser={ie:/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent),ie6:(!window.XMLHttpRequest)?true:false,ie7:(document.all&&!window.opera&&window.XMLHttpRequest)?true:false,webkit:navigator.userAgent.indexOf("AppleWebKit/")>-1,opera:(window.opera)?true:false,gecko:navigator.userAgent.indexOf("Gecko/")>-1};j.cache={buttonsToRestore:[],popupProfileCache:{},popupStatusCache:{},toggledReplies:{},realtime:{interval:null,ongoing_request:null,prev_script:null,last_checked:null,newPosts:[]}};j.states={edit:{},realtime:false,useLoginWindow:false,loginDisabled:false};j.blocks={};j.curPageId="dsq-comments";j.frames={};j.config={template:null,callbacks:{preData:[],preInit:[],onInit:[],afterRender:[],onReady:[],onPaginate:[],onNewComment:[]}};j.modules={};j.isReady=false;j.jsonData=null;j.callback=function(p){var m,o,k;var n=function(q){if(window.console&&console.log){console.log(q)}};if(arguments.length>1){k=Array.prototype.slice.call(arguments,1)}for(m=0;m<p.length;m++){o=p[m];if(typeof o!="function"){continue}try{o.apply({},k||[])}catch(l){if(l.toString().search("Dsq")>-1){n("WARNING: This page uses deprecated Disqus APIs. See blog.disqus.com for more info")}else{n(l)}}}};j.getResourceURL=function(l,o,k){if(typeof o!="undefined"){if(l.indexOf("?")===-1){l+="?"}else{l+="&"}for(var m in o){if(o.hasOwnProperty(m)){l+=m+"="+encodeURIComponent(o[m]);l+="&"}}}var n=l.slice(l.length-1);if(k){if(n!="&"&&n!="?"){l+="?"}l+=(new Date()).getTime()}return l};j.require=function(m,n,l){var k=document.createElement("script");k.src=j.getResourceURL(m,n,l);k.async=true;k.charset="UTF-8";f.appendChild(k);return j};j.requireStylesheet=function(l,n,k){var m=document.createElement("link");m.rel="stylesheet";m.type="text/css";m.href=j.getResourceURL(l,n,k);f.appendChild(m);return j};j.startLoading=function(){var k;var m;var p;var o;var q;var l;if(j.browser.ie&&j.config.frame_theme!=="cnn2"){g(i)}p=document.createElement("style");f.appendChild(p);j.cache.inlineStylesheet=p.sheet;if(!j.cache.inlineStylesheet){j.cache.inlineStylesheet=document.styleSheets[document.styleSheets.length-1]}if(j.browser.ie6||j.browser.ie7){l={b:(j.browser.ie6?"ie6":"ie7")}}j.requireStylesheet("http://"+j.config.domain+"/forums/"+j.config.shortname+"/styles.css",l);j.callback(j.config.callbacks.preData);if(j.jsonData===null){j.require(j.config.json_url,j.config.page,true)}m=document.createElement("div");m.id="dsq-content";m.style.display="none";q={wrapper:"height: 15px;width: 300px;border: solid 1px #999;background-color: #fff;margin: 10px 0;",bar:"height: 15px;width: 15px;background-color: #d4e4ff;",problem:"font-size: 8pt;display: none;"};o=document.createElement("div");o.id="dsq-content-stub";o.innerHTML='Loading comments...<div style="'+q.wrapper+'"><div style="'+q.bar+'">&nbsp;</div></div><div style="'+q.problem+'" id="dsq-loading-problem"><a href="#">Problems loading Disqus?</a></div>';k=document.getElementById(DISQUS.config.container_id);k.appendChild(m);k.appendChild(o);j.container=document.getElementById("dsq-content");window.setTimeout(function(){if(o.style.display!="none"){document.getElementById("dsq-loading-problem").style.display="block"}},10000);try{if(j.browser.ie6){document.execCommand("BackgroundImageCache",false,true)}}catch(n){}j.addJob(function(){return j.jsonData!==null},function(){var v=j.jsonData.settings.media_url;var r=v+"/javascript/embed/dtpl/";var w=v+"/build/system/";var t=v+"/build/lang/";var s=j.jsonData.forum.template.css;var u=j.jsonData.forum.template.url;j.callback(DISQUS.config.callbacks.preInit);if(j.config.template){s=j.config.template.css;u=j.config.template.js}if((window.location.search.indexOf("fbc_channel=1")>-1)||(window.location.search.indexOf("?fb_xd_fragment")>-1)){if(j.jsonData.settings.debug){j.require(u).require(r+"utils.js",{},true).require(r+"api.js",{},true).require(r+"dtpl.js",{},true)}else{j.require(j.jsonData.forum.template.url).require(w+"dsq.js",false)}j.addJob(function(){return j.modules.utils&&j.modules.api&&j.modules.template&&j.modules.dtpl},function(){DISQUS.registerActions();var x=new DISQUS.api.FacebookLoginBox()});return}if(j.jsonData.settings.debug){j.require(u).require(r+"dtpl.js",{},true).require(r+"utils.js",{},true).require(r+"sandbox.js",{},true).require(r+"newframes.js",{},true).require(r+"parentmessenger.js",{},true).require(r+"jsonrpc.js",{},true).require(r+"fragmentpacket.js",{},true).require(r+"postmessagepacket.js",{},true).require(r+"tooltip.js",{},true).require(r+"api.js",{},true).require(r+"ui.js",{},true)}else{j.require(u).require(w+"disqus.js",false)}if(!window.disqus_no_style){j.requireStylesheet(v+"/styles/embed/thread.css",{},j.jsonData.settings.debug);if(s){j.requireStylesheet(s,{},j.jsonData.settings.debug)}}j.addJob(function(){var y=["utils","sandbox","template","dtpl","NewFrames","ParentMessenger","JsonRpc","api","FragmentPacket","PostMessagePacket","tooltip","ui"];for(var x=0;x<y.length;x++){if(!j.modules[y[x]]){return false}}return true},function(){if(j.jsonData.forum.language!="en"){j.require(t+j.jsonData.forum.language+".js")}else{j.modules.lang=true}j.addJob(function(){return j.modules.lang===true},function(){if(j.config.custom_strings){DISQUS.lang.extend(DISQUS.strings.translations,j.config.custom_strings)}if(j.config.def_text===""){j.config.def_text=DISQUS.strings.get("Type your comment here.")}m.className="clearfix";var x=m.parentNode;x.removeChild(m);m.innerHTML=DISQUS.renderBlock("thread");x.appendChild(m);j.callback(j.config.callbacks.onInit);e();DISQUS.registerActions();DISQUS.dtpl.actions.fire("thread.initialize");e(300);j.callback(j.config.callbacks.afterRender);DISQUS.nodes.container=DISQUS.nodes.get("#dsq-content");m.style.display="block";o.style.display="none";j.callback(j.config.callbacks.onReady)})})})};j.reload=function(k){DISQUS.jsonData.request.expired=true;j.require(j.config.json_url,j.config.page,true);j.addJob(function(){return !DISQUS.jsonData.request.expired},function(){d=true;if(typeof k=="function"){k()}})};j.redraw=function(l){var k;if(d||l){DISQUS.sandbox.invalidateGlobals();k=DISQUS.nodes.get("#dsq-content");k.innerHTML=DISQUS.renderBlock("thread");DISQUS.frames=[];DISQUS.dtpl.actions.fire("thread.initialize");d=false}};j.addJob=function(l,k){b.queue.push([l,k]);c();if(!b.running){b.running=true;b.timer=setInterval(c,100)}};j.getShortname=function(){var k=document.getElementsByTagName("script");for(var m=k.length-1;m>=0;m--){var l=h(k[m]);if(l!==null){return l}}return null};j.getRequestParams=function(o){var m,k;var n={};o=o||window.location.search.substring(1);m=o.split("&");for(var l=0;l<m.length;l++){k=m[l].split("=");n[k[0]]=(k[1]||true)}return n};j.getFileDirectory=function(k,l){var n,m;if(l===undefined){l="uploads"}if(k>=32117){n=k/10000;m=k%10000;return DISQUS.jsonData.settings.media_url+"/"+l+"/users/"+n+"/"+m}else{return DISQUS.jsonData.settings.media_url+"/"+l+"/users/"+k}};j.renderBlock=function(k,m){var l=j.blocks[k];if(typeof l=="undefined"){throw"Block "+k+" was not found!"}return DISQUS.sandbox.wrap(k,l,m)};return j}());DISQUS.lang=(function(){var a={};a.contains=function(d,c){for(var b=0;b<d.length;b++){if(d[b]==c){return true}}return false};a.forEach=function(f,g){var d=f.length;var e=Array.prototype.forEach;if(d=="number"){if(e){e.call(f,g)}else{for(var c=0;c<d;c++){g(f[c],c,f)}}}else{for(var b in f){if(f.hasOwnProperty(b)){g(f[b],b,f)}}}};a.extend=function(){var d=arguments[0]||{},c=1;var b=Array.prototype.slice.call(arguments,1);a.forEach(b,function(e,f){a.forEach(e,function(h,g){d[g]=h})});return d};a.partial=function(){var c=arguments[0];var b=Array.prototype.slice.call(arguments,1);return function(){var e=Array.prototype.slice.call(arguments);var f=[];for(var d=0;d<b.length;d++){f.push(b[d]===undefined?e.shift():b[d])}while(e.length>0){f.push(e.shift())}return c.apply(this,f)}};a.trim=function(d){d=d.replace(/^\s\s*/,"");var b=/\s/,c=d.length;while(b.test(d.charAt(--c))){}return d.slice(0,c+1)};return a}());(function(){var c;var a;var d=(function(){var f,l=document.getElementsByTagName("META");function m(j,i){return j.hasAttribute?j.hasAttribute(i):j.getAttribute(i)!==null}function k(i){var j=function(n,o){return m(i,n)&&i.getAttribute(n)==o};return j("name","generator")&&j("content","blogger")}function e(i){return !m(i,"src")&&m(i,"name")&&parseInt(i.getAttribute("name"),10)&&i.innerHTML===""}for(var h=0;h<l.length;h++){if(k(l[h])){f=document.getElementsByTagName("A");for(var g=0;g<f.length;g++){if(e(f[g])){return f[g].getAttribute("name")}}}}return null}());DsqLocal=DsqLocal||{};disqus_href=window.location.href;c=disqus_href.indexOf("#");if(c!=-1){disqus_href=disqus_href.substring(0,c)}DISQUS.lang.extend(DISQUS.config,{container_id:disqus_container_id||"disqus_thread",page:{url:(typeof disqus_url=="undefined"||disqus_url==="")?disqus_href:disqus_url,title:disqus_title||"",sort:disqus_sort||"",per_page:disqus_per_page||null,category_id:disqus_category_id||"",developer:(disqus_developer&&disqus_developer!=="0")?1:0,identifier:disqus_identifier||"",trackback_url:DsqLocal.trackback_url||null,trackbacks:DsqLocal.trackbacks||null}});if(d){DISQUS.config.page.blogger_id=d}if(typeof disqus_message=="undefined"){DISQUS.config.message=""}else{a=false;if(DISQUS.browser.ie){for(var b=0;b<disqus_message.length;b++){if(disqus_message.charCodeAt(b)>256){a=true;break}}}if(a){DISQUS.config.message=""}else{if(disqus_message.length>400){DISQUS.config.message=disqus_message.substring(0,disqus_message.indexOf(" ",350))}}}if(typeof disqus_require_moderation_s!="undefined"){DISQUS.config.page.require_mod_s=disqus_require_moderation_s}if(typeof disqus_remote_auth_s2!="undefined"){DISQUS.config.page.remote_auth_s2=disqus_remote_auth_s2}if(typeof disqus_per_page!="undefined"){DISQUS.config.page.per_page=disqus_per_page}if(typeof disqus_author_s2!="undefined"){DISQUS.config.page.author_s2=disqus_author_s2}if(typeof disqus_thread_slug!="undefined"){DISQUS.config.page.slug=disqus_thread_slug}DISQUS.config.callback_params=disqus_callback_params||null;if(typeof disqus_callback=="function"){DISQUS.config.callbacks.afterRender.push(function(){disqus_callback(DISQUS.config.callback_params)})}if(typeof disqus_custom_strings=="object"){DISQUS.config.custom_strings=disqus_custom_strings}DISQUS.config.domain=disqus_domain||(disqus_dev?"dev.disqus.org":"disqus.com");DISQUS.config.shortname=disqus_shortname||DISQUS.getShortname();DISQUS.config.iframe_css=disqus_iframe_css||"";DISQUS.config.facebook_forum=disqus_facebook_forum||null;DISQUS.config.facebook_key=disqus_facebook_key||null;DISQUS.config.frame_theme=disqus_frame_theme||null;DISQUS.config.def_name=disqus_def_name||"";DISQUS.config.def_email=disqus_def_email||"";DISQUS.config.def_text=disqus_default_text||"";DISQUS.config.skip_auth=disqus_skip_auth||false;DISQUS.config.json_url="http://"+DISQUS.config.shortname+"."+DISQUS.config.domain+"/thread.js";if(typeof disqus_config=="function"){disqus_config.call(DISQUS.config)}DISQUS.startLoading()})();