var foswiki;if(typeof(foswiki)==="undefined"){foswiki={}}if(foswiki.preferences===undefined){foswiki.preferences={}}(function(b){b.log=function(c){};b.fn.debug=function(){};foswiki.getUniqueID=function(){var d=new Date().getTime().toString(32),c;for(c=0;c<5;c++){d+=Math.floor(Math.random()*65535).toString(32)}return d};foswiki.getPreference=function(f,e){if(foswiki.preferences[f]!==undefined){return foswiki.preferences[f]}var d=b('meta[name="foswiki.'+f+'"]').attr("content");if(d!==undefined){d=unescape(d);foswiki.preferences[f]=d;return d}if(e){var g=foswiki.getPreference("SCRIPTSUFFIX");var c=foswiki.getPreference("SCRIPTURL")+"/view"+(g?g:"")+"/"+foswiki.getPreference("SYSTEMWEB")+"/JQueryAjaxHelper";b.ajax({url:c,data:{skin:"text",section:"expand",expression:f},async:false,dataType:"text",success:function(i,h,j){foswiki.preferences[f]=i}});return foswiki.preferences[f]}foswiki.preferences[f]=null;return null};foswiki.getMetaTag=function(c){return b("meta[name="+c+"]").attr("content")};foswiki.getElementsByClassName=function(d,e,f){var c=f||"";return b(d).find(c+"."+e).get()};var a={WEB:"web",TOPIC:"topic",SCRIPTURL:"scriptUrl",SCRIPTURLPATH:"scriptUrlPath",SCRIPTSUFFIX:"scriptSuffix",PUBURL:"pubUrl",PUBURLPATH:"pubUrlPath",SYSTEMWEB:"systemWebName",USERSWEB:"usersWebName",WIKINAME:"wikiName",USERNAME:"loginName",WIKIUSERNAME:"wikiUserName",SERVERTIME:"serverTime"};b.each(a,function(c,d){foswiki[a[d]]=foswiki.getPreference(d)});b(function(){b("body").removeClass("foswikiNoJs").addClass("foswikiJs")})}(jQuery));