var mod_pagespeed_5oxPTxtK50 = "(function($){$(function(){function selectProviderFromListItem($li_a){var $li=$li_a.parents('li');if(!$li.length)return false;var $provider=$($li_a.attr('href'));if(!$provider.length)return false;var $oldText=$(\".selected-comment-provider textarea:visible\");$('.comment-provider, ul#all-comment-providers li').each(function(){$(this).removeClass('selected-comment-provider');});$provider.addClass('selected-comment-provider');$li.addClass('selected-comment-provider');var $text=$provider.find(\"textarea\");if($text.length&&$oldText.length)$text.val($oldText.val());var $box=$('.comment-provider p.subscribe-to-comments');if(!$box.length)return true;if($text.length&&!$provider.attr('id').match(/twitter/)&&!$provider.attr('id').match(/wordpress/))$provider.append($box);else if($provider.attr('id').match(/wordpress/))$provider.find('form').append($box);return true;}\nfunction getCommentId($li){return parseInt($li.attr('id').replace(/^.*comment-/,''));}\nfunction getPreferredProvider(){var cks=document.cookie.split(\";\");var value=\"\";$.each(cks,function(idx,ck){if(\"wdcp_preferred_provider\"!=$.trim(ck.substr(0,ck.indexOf(\"=\"))))return true;value=$.trim(ck.substr(ck.indexOf(\"=\")+1));return false;});return unescape(value);}\nfunction setPreferredProvider(provider){var d=new Date();d.setDate(d.getDate()+365);var value=escape(\"comment-provider-\"+provider)+\";expires=\"+d.toGMTString()+\";path=/\";document.cookie=\"wdcp_preferred_provider=\"+value;}\nfunction isPreferredProvider(provider){var used=getPreferredProvider();return(used==provider);}\n$(\"a.comment-reply-link\").unbind('click').after('<a class=\"comment-plus-reply-link\" href=\"#comments-plus-form\">Reply</a>');$(\"a.comment-reply-link\").remove();$('.no-instructions p.form-allowed-tags').remove();$(\"a.comment-plus-reply-link\").click(function(){var $li=$(this).parents('li');var parentId=getCommentId($li);if(!parentId)return false;var $providers=$(\"#comment-providers\");$(this).parents('li').first().append($providers);$(\"#comment-providers\").find('#comment_parent').val(parentId);if(!$providers.find(\".comments-plus-reply-cancel\").length)$providers.append('<a class=\"comments-plus-reply-cancel\" href=\"#\">Cancel reply</a>');$(\"#comment-providers\").find('textarea:visible').focus();return false;});$(\".comments-plus-reply-cancel\").live('click',function(){$(this).remove();var $providers=$(\"#comment-providers\");$(\"#comment-providers\").find('#comment_parent').val(0);$(\".commentlist\").after($providers);return false;});$(\"#all-comment-providers li a\").live('click',function(){selectProviderFromListItem($(this));return false;});$(\".comment-provider-login-button a\").live('click',function(){var $parent=$(this).parents(\".comment-provider-login-button\");if(!$parent.length)return false;var provider=$parent.attr('id').replace(/login-with-/,'');if(!provider)return false;$(document).trigger('wdcp_'+provider+'_login_attempt');return false;});$(document).bind('wdcp_logged_in',function(e,provider,autoconnect){var $parent=$(\"#login-with-\"+provider).parents('.comment-provider');$(\"#login-with-\"+provider).remove();if(!$parent.find(\".comment-provider-waiting-response\").length)$parent.append('<div class=\"comment-provider-waiting-response\"></div>');$.post(_wdcp_ajax_url,{\"action\":\"wdcp_get_form\",\"provider\":provider,\"page\":window.location.href},function(data){if(!data)return false;$parent.empty().html(data.html);var $login=$(\"#comment-provider-\"+provider+\" .connected-as\");if(!$login.length)return false;$(\"#comment-provider-\"+provider+\"-link span\").html($login.text());if(autoconnect&&isPreferredProvider(\"comment-provider-\"+provider))selectProviderFromListItem($(\"#comment-provider-\"+provider+\"-link\"));});});$(document).bind(\"wdcp_comment_sent\",function(e,provider){setPreferredProvider(provider);});selectProviderFromListItem($(\"#all-comment-providers li a:first\"));if($(\".connected-as\").length){$(\".connected-as\").each(function(){var $item=$(this).first().parents('div.comment-provider');if(!$item.length)return true;if(!isPreferredProvider($item.attr(\"id\")))return true;if($item.length)selectProviderFromListItem($('#'+$item.attr('id')+'-link'));return false;});}});})(jQuery);";
var mod_pagespeed_jY6LU2YKhL = "(function($){$(function(){$(document).bind('wdcp_twitter_login_attempt',function(){var url=$(\"#login-with-twitter a\").attr('href');var twLogin=window.open('https://api.twitter.com',\"twitter_login\",\"scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,height=400,width=600\");$.post(_wdcp_ajax_url,{\"action\":\"wdcp_twitter_auth_url\",\"url\":url},function(data){var href=data.url;twLogin.location=href;var tTimer=setInterval(function(){try{if(twLogin.location.hostname==window.location.hostname){clearInterval(tTimer);twLogin.close();$(document).trigger('wdcp_logged_in',['twitter']);}}catch(e){}},300);return false;});});$(\"#comment-provider-twitter a.comment-provider-logout\").live('click',function(){$.post(_wdcp_ajax_url,{\"action\":\"wdcp_twitter_logout\"},function(data){window.location.reload();});return false;});$(\"#send-twitter-comment\").live('click',function(){var comment=$(\"#twitter-comment\").val();var repost=$(\"#post-on-twitter\").is(\":checked\")?1:0;var commentParent=$('#comment_parent').val();$(this).parents(\".comment-provider\").empty().append('<div class=\"comment-provider-waiting-response\"></div>');$.post(_wdcp_ajax_url,{\"action\":\"wdcp_post_twitter_comment\",\"post_id\":_wdcp_post_id,\"post_on_twitter\":repost,\"comment_parent\":commentParent,\"comment\":comment},function(data){$(document).trigger('wdcp_comment_sent',['twitter']);window.location.reload();});return false;});});})(jQuery);";
var mod_pagespeed_6vxzou3$A9 = "(function($){$(function(){$(document).bind('wdcp_facebook_login_attempt',function(){FB.login(function(resp){if(resp.session)$(document).trigger('wdcp_logged_in',['facebook']);},{perms:'read_stream,publish_stream,email'});});if($(\"#login-with-facebook\").length){FB.getLoginStatus(function(resp){if(resp.session)$(document).trigger('wdcp_logged_in',['facebook',true]);});}\n$(\"#comment-provider-facebook a.comment-provider-logout\").live('click',function(){var href=$(this).attr('href');$.post(_wdcp_ajax_url,{\"action\":\"wdcp_facebook_logout\"},function(data){FB.logout(function(resp){window.location.reload();});});return false;});$(\"#send-facebook-comment\").live('click',function(){var comment=$(\"#facebook-comment\").val();var repost=$(\"#post-on-facebook\").is(\":checked\")?1:0;var commentParent=$('#comment_parent').val();var subscribe=($(\"#subscribe\").length&&$(\"#subscribe\").is(\":checked\"))?'subscribe':'';$(this).parents(\".comment-provider\").empty().append('<div class=\"comment-provider-waiting-response\"></div>');$.post(_wdcp_ajax_url,{\"action\":\"wdcp_post_facebook_comment\",\"post_id\":_wdcp_post_id,\"post_on_facebook\":repost,\"comment_parent\":commentParent,\"subscribe\":subscribe,\"comment\":comment},function(data){$(document).trigger('wdcp_comment_sent',['facebook']);window.location.reload();});return false;});});})(jQuery);";
var mod_pagespeed_PawaUuPffJ = "(function($){$(function(){$(document).bind('wdcp_google_login_attempt',function(){var url=$(\"#login-with-google a\").attr('href');var googleLogin=window.open('https://www.google.com/accounts',\"google_login\",\"scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,height=400,width=600\");$.post(_wdcp_ajax_url,{\"action\":\"wdcp_google_auth_url\",\"url\":url},function(data){var href=data.url;googleLogin.location=href;var gTimer=setInterval(function(){try{if(googleLogin.location.hostname==window.location.hostname){clearInterval(gTimer);googleLogin.close();$(document).trigger('wdcp_logged_in',['google']);}}catch(e){}},300);return false;});});$(\"#comment-provider-google a.comment-provider-logout\").live('click',function(){$.post(_wdcp_ajax_url,{\"action\":\"wdcp_google_logout\"},function(data){window.location.reload();});return false;});$(\"#send-google-comment\").live('click',function(){var comment=$(\"#google-comment\").val();var commentParent=$('#comment_parent').val();var subscribe=($(\"#subscribe\").length&&$(\"#subscribe\").is(\":checked\"))?'subscribe':'';$(this).parents(\".comment-provider\").empty().append('<div class=\"comment-provider-waiting-response\"></div>');$.post(_wdcp_ajax_url,{\"action\":\"wdcp_post_google_comment\",\"post_id\":_wdcp_post_id,\"comment_parent\":commentParent,\"subscribe\":subscribe,\"comment\":comment},function(data){$(document).trigger('wdcp_comment_sent',['google']);window.location.reload();});return false;});});})(jQuery);";

