var foswiki={getMetaTag:function(a){if(foswiki.metaTags==null||foswiki.metaTags.length===0){var c=document.getElementsByTagName("META");c=c[0].parentNode.childNodes;foswiki.metaTags=[];for(var b=0;b<c.length;b++){if(c[b].tagName!=null&&c[b].tagName.toUpperCase()=="META"){foswiki.metaTags[c[b].name]=unescape(c[b].content)}}}return foswiki.metaTags[a]},getPreference:function(c,b){if(foswiki.preferences!==undefined){if(foswiki.preferences[c]!==undefined){return foswiki.preferences[c]}}var a=foswiki.getMetaTag(c);if(a!==undefined){if(foswiki.preferences===undefined){foswiki.preferences={}}foswiki.preferences[c]=unescape(a);return a}if(b){window.alert("Trying to get preference '"+c+"' from server, but this feature is not implemented yet.")}return null},getElementsByClassName:function(g,h,b){var k=b||"*";var c=g.getElementsByTagName(k);var f=h.replace(/\-/g,"\\-");var j=new RegExp("\\b"+f+"\\b");var a;var d=[];for(var e=0;e<c.length;e++){a=c[e];if(j.test(a.className)){d.push(a)}}return d}};(function(a){a(document).ready(function(b){b(".foswikiCheckAllOn").click(function(c){b(".foswikiGlobalCheckable").attr("checked","checked")});b(".foswikiCheckAllOff").click(function(c){b(".foswikiGlobalCheckable").removeAttr("checked")})})})(jQuery);