function feedreadingBlogrollRebuildJS(e,t){jQuery.ajax({type:"POST",url:e,timeout:3e3,data:{action:"feedreading_blogroll_generate_javascript_lookup",_ajax_nonce:t},success:function(e){jQuery("#feedreading_ajax_response").fadeOut(300);jQuery("#feedreading_ajax_response").html(e);jQuery("#feedreading_ajax_response").fadeIn(300)},error:function(e){jQuery("#feedreading_ajax_response").html("Error: "+e.responseText)}});return true}function feedreading_initialize(){var e=new google.feeds.FeedControl,t=jQuery("#feedreading_blogroll_changelog_body");fetchBlogEntry();jQuery.validator.addMethod("naturalnumber",function(e,t){return this.optional(t)||/^\d+$/.test(e)},"Not a natural number!");jQuery("#feedreading_options_form").validate({rules:{maxBookmarks:{required:false,naturalnumber:true,maxlength:3}}});jQuery("#feedreading_blogroll_option_tabs").tabs({fx:{opacity:"toggle"}});jQuery("ul#categoryOrderList").sortable({cursor:"pointer",update:linkcategoriesSorted});jQuery("#categoryOrderArray").val(jQuery("ul#categoryOrderList").sortable("toArray"));jQuery("#categoryOrderList .categoryCheckbox").bind("click",function(){jQuery(this).parent().toggleClass("inblogroll")});e.addFeed("http://www.weinschenker.name/forum/rss/topic/changelog","Release Notes");e.addFeed("http://www.weinschenker.name/forum/rss/forum/feed-reading-blogroll-developer-notes/topics","Developer Notes");e.addFeed("http://www.weinschenker.name/kategorien/feedreadingblogroll/feed/","Developer Blog");e.setNumEntries(2);e.setLinkTarget(google.feeds.LINK_TARGET_BLANK);e.draw(t.get(0),{drawMode:google.feeds.FeedControl.DRAW_MODE_TABBED});jQuery(".popup_info .infotext").css("display","none");jQuery(".popup_info .infotext_trigger").bind("change click keypress",togglePopupInfo);jQuery("#showLastUpdated").bind("change click keypress",toggleShowAuthor);toggleShowAuthor()}function toggleShowAuthor(){if(jQuery("#showLastUpdated").is(":checked")){jQuery("#showAuthor").removeAttr("disabled")}else{jQuery("#showAuthor").attr("disabled",true);jQuery("#showAuthor").removeAttr("checked")}}function togglePopupInfo(){jQuery(this).parent().children(".infotext").toggle("fast")}function linkcategoriesSorted(e,t){var n=jQuery("ul#categoryOrderList").sortable("toArray");jQuery("#categoryOrderArray").val(n)}function fetchBlogEntry(){var e=new google.feeds.Feed("http://www.weinschenker.name/kategorien/feedreadingblogroll/feed"),t=jQuery("#devblogentryanchor"),n=null,r="",i="",s=new Date;e.load(function(e){if(!e.error){try{n=e.feed.entries[0];i=n.title;if(n!=null){s=new Date(n.publishedDate);t.html(i);t.attr({href:n.link,title:s,rel:"external",rev:"bookmark",target:"_blank"})}}catch(r){window.status="No news from developer available."}}})}jQuery(document).ready(function(){google.load("feeds","1",{callback:feedreading_initialize})})