function Crypto(){}Crypto.strToBe32s=function(a){return jQuery.encoding.strToBe32s(a)};Crypto.be32sToStr=function(a){return jQuery.encoding.be32sToStr(a)};Crypto.be32sToHex=function(a){return jQuery.encoding.be32sToHex(a)};Crypto.hexSha1Str=function(a){return jQuery.encoding.digests.hexSha1Str(a)};Crypto.sha1Str=function(a){return jQuery.encoding.digests.sha1Str(a)};Crypto.sha1=function(x,a){return jQuery.encoding.digests.sha1(x,a)};function setStylesheet(s,a,b){jQuery.twStylesheet(s,{id:a,doc:b})}function removeStyleSheet(a){jQuery.twStylesheet.remove({id:a})}function saveFile(a,b){return jQuery.twFile.save(a,b)}function loadFile(a){return jQuery.twFile.load(a)}function copyFile(a,b){return jQuery.twFile.copy(a,b)}function loadRemoteFile(a,b,c){return httpReq("GET",a,b,c)}function doHttp(a,b,c,d,e,f,g,h,i,j){return httpReq(a,b,g,h,i,c,d,e,f,j)}function httpReq(c,d,e,f,g,h,j,k,l,m){var n={type:c,url:d,processData:false,data:h,cache:m?false:true,beforeSend:function(a){for(var i in g)a.setRequestHeader(i,g[i]);a.setRequestHeader("X-Requested-With","TiddlyWiki "+formatVersion())}};if(e){n.complete=function(a,b){if(jQuery.httpSuccess(a))e(true,f,a.responseText,d,a);else e(false,f,null,d,a)}}if(j)n.contentType=j;if(k)n.username=k;if(l)n.password=l;if(window.Components&&window.netscape&&window.netscape.security&&document.location.protocol.indexOf("http")==-1)window.netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");jQuery.ajax(n)}Tiddler.prototype.toRssItem=function(a){return tiddlerToRssItem(this,a)};Tiddler.prototype.saveToRss=function(a){return"<item>\n"+tiddlerToRssItem(this,a)+"\n</item>"};Tiddler.prototype.generateFingerprint=function(){return"0x"+Crypto.hexSha1Str(this.text)};
