X  Geneva dS"v`(LANDmac decafbadNewsRiver preferences Theme selection How would you like your news river presented? You can choose from a number of templated themes, each of which can introduce any number of visual and functional alterations. <% radio.prefs.popupMenuPref("Choose a theme", @aggregatorData.decafbadNewsRiver.theme, decafbadNewsRiverSuite.listThemeIDs(), decafbadNewsRiverSuite.listThemeNames()) %> Deferred item content loading One of the features offered by some themes is the ability to defer the loading of news item content until you're ready to read it. This is done via AJAX and the Aggregator API, and it's usually okay to leave this feature enabled since it should help your news pages load faster and display better. However, some browsers may have trouble with this feature. So, the following preference will allow you to disable it and fall back to static rendering of news item content on page load. Note that for this feature to work, the Aggregator API must be enabled. <% radio.prefs.checkboxPref("Enable deferred item content loading", @aggregatorData.decafbadNewsRiver.deferredItemContent) %> Per-item and per-feed delete buttons Another AJAX-powered feature of some themes is the addition of a "delete" button on news items and "delete all" on feeds. However, you may find these buttons inconvenient or that your browser has problems with this feature. This preference allows you to control the display of these buttons. Note that for this feature to work, the Aggregator API must be enabled. <% radio.prefs.checkboxPref("Show per-item and per-feed delete buttons", @aggregatorData.decafbadNewsRiver.showDeleteButtons) %> WdatatablGMM createdTue, 03 Jan 2006 20:49:35 GMTWdatatablGzz createdSat, 11 Feb 2006 05:46:50 GMTWdatatablG createdSat, 11 Feb 2006 06:14:44 GMTWdatatablG|| createdSat, 11 Feb 2006 05:46:52 GMTWdatatablG!}!} createdWed, 22 Feb 2006 15:46:21 GMTWdatatablG!! createdWed, 22 Feb 2006 15:46:46 GMTWdatatablG! ! createdWed, 22 Feb 2006 15:52:58 GMTWdatatablG"["[ createdThu, 23 Feb 2006 04:38:03 GMTWdatatablG!U!U createdWed, 22 Feb 2006 15:49:56 GMTWdatatablG!! createdWed, 22 Feb 2006 16:12:24 GMTWdatatablG!! createdWed, 22 Feb 2006 16:12:46 GMTWdatatablG"["[ createdThu, 23 Feb 2006 04:38:03 GMTWdatatablG!U!U createdWed, 22 Feb 2006 15:49:56 GMT 7x] prefsOutlineXVGeneva|=@83/t themedefault3O~GD=L news(http://127.0.0.1:5337/decafbadNewsRiver/VGenevaZ$74AGeneva LANDmac /* Main CSS */ body, td, p, div, li { font: 11px arial; } WdatatablG createdFri, 20 Jan 2006 18:05:43 GMTWdatatablG createdFri, 20 Jan 2006 18:05:48 GMTWdatatablG;; createdFri, 20 Jan 2006 18:12:27 GMTWdatatablG createdFri, 20 Jan 2006 18:06:01 GMTWdatatablG createdFri, 20 Jan 2006 18:05:55 GMTWdatatablG createdFri, 20 Jan 2006 18:10:16 GMTsFFFF000000060001001777AA00000000007C000000001001710000001-7FFF6FBE180000048004806C2F200-1DFEE05DFEE0566206C2F222FFFF0103E05000010000007600000002074E84064EC22273302CE0004E164ECA2074E15188404EC6C2F222DC9028E000C246C2FC00002000007540000000074E,body { font: 10px verdana; margin: 10px; } .footer { text-align: right; border-top: 1px solid #000; font-size: x-small; margin-top: 1em; padding-top: 1em; } h1 { /* position: fixed; */ left: 0px; top: 0px; z-index: 999; } body > h1 { /* position: fixed; */ background-color: #fff; border-bottom: 1px solid #000; padding: 5px 0px 5px 0px; left: 0px; top: 0px; } body > h2 { border-bottom: 1px dotted #333; padding: 3px 0px 3px 0px; } ul.feeds { /* margin-top: 45px; */ padding-left: 10px; z-index: 100; } ul.newsindex { margin: 0 0 15px 0; padding: 0; list-style: none; } ul.newsindex h1 { margin: 0 0 10px 0; padding: 2px; border: 1px solid #000; background: #ddd; font-size: 1.2em; } ul.newsindex li { font-weight: bold; font-size: 1.15em; line-height: 1.45em; } ul.newsindex li:before { content: "\00BB \0020"; } ul.newsindex li a { text-decoration: none; } ul.newsindex li a:hover { text-decoration: underline; } ul.newsindex li a abbr { text-decoration: none; border: none; } ul.feeds { list-style-type: none; } ul.feeds li.feed { clear: both; } li.feed h2 { display: block; padding: 5px; margin: 7px 14px 7px 5px; background: #ddd; border: 1px solid #888; } li.feed h2 a { text-decoration: none; } li.feed h2 a:hover { text-decoration: underline; } ul.entries { list-style-type: none; display: none; padding-bottom: 10px; } li.collapsed > ul.entries { display: none; } li.expanded > ul.entries { display: block; } li.entry { clear: both; } li.entry h3 { padding: 3px; margin: 5px 5px 5px 3px; background: #f0f0f0; border: 1px solid #ddd; white-space: nowrap; overflow: hidden; } li.entry h3 a { text-decoration: none; 000200000DD00000074EDCA,} li.entry h3 a:hover { text-decoration: underline; } .entrydate, .entrytime { font-size: 0.75em; padding-right: 0.25em; float: right; } .entryicons { font-size: 0.75em; float: right; padding-right: 1em; } .entryicons a { padding-right: 1em; } ul.entrycontent { list-style-type: none; display: none; border: 1px dotted #888; margin-left: 20px; margin-right: 20px; padding: 15px 25px 15px 25px; font: 14px georgia; line-height: 1.5em; } li.collapsed > ul.entrycontent { display: none; } li.expanded > ul.entrycontent { display: block; } ul.entrycontent li.content, ul.entrycontent li.content * { font: 14px georgia; } .handle, .handle_alt { display: block; width: 10px; height: 10px; cursor: pointer; } .handle { float: left; background: url(../img/outline_collapsed) no-repeat center; margin: 3px 0 3px 6px; padding: 3px 0 3px 6px; margin-left: -12px; } .handle_alt { float: right; background: url(../img/outline_collapsed_alt) no-repeat center; margin: 3px 3px 3px 3px; padding: 3px 3px 3px 3px; margin-right: -3px; } .collapsed > .handle { background: url(../img/outline_collapsed) no-repeat center; } .collapsed > .handle_alt { background: url(../img/outline_collapsed_alt) no-repeat center; } .expanded > .handle { background: url(../img/outline_expanded) no-repeat center; } .expanded > .handle_alt { background: url(../img/outline_expanded_alt) no-repeat center; } .empty > .handle { background: url(../img/space) no-repeat center; cursor: default; } .empty > .handle_alt { background: url(../img/space) no-repeat center; cursor: default; } .busy > .handle { background: url(../img/busy_anim) no-repeat center; } .busy > .handle_alt { background: url(../img/busy_anim) no-repeat center; } li.feed .handle { margin: 3px 0 3px 6px; padding: 3px 0 3px 6px; margin-top: 6px; margin-left: -12px; } li.entry .handle { margin: 0; padding: 3px; margin-left: -12px; } li.entry .handle_alt { margin: 0; padding: 3px; margin-left: -3px; margin-right: 3px; } .entry .link { float: right } .feed .link, .feed .control { float: right } .orangeButton { border: 1px solid; border-color: #FC9 #630 #330 #F96; padding: 0 3px; font: bold 10px verdana,sans-serif; color: #FFF; background: #F60; text-decoration: none; margin: 0; } .button { cursor: pointer; color: #00f; border: 1px solid; border-color: #CCC #666 #333 #999; padding: 0 3px; font: bold 10px verdana,sans-serif; background: #ddd; text-decoration: none; margin: 4px; } a.button:link { color: #00f; } a.button:visited { color: #00f; } a.button:hover { color: #00f; background: #f2f2f2; text-decoration: none; } .buttonDisabled { cursor: default; color: #00f; border: 1px solid; border-color: #CCC #666 #333 #999; padding: 0 3px; font: bold 10px verdana,sans-serif; background: #ddd; text-decoration: none; margin: 4px; } a.buttonDisabled:link { color: #444; } a.buttonDisabled:visited { color: #444; } a.buttonDisabled:hover { color: #444; text-decoration: none; } ul.readinglists { list-style-type: square; } ul.readinglists li.readinglist { padding-bottom: 0.75em; } ul.readinglists li.readinglist a { font-weight: bold; } a.feedlink img { padding-right: 0.5ex; } a.feedxmllink { padding-right: 0.5ex; }00040000000C0000000201151A100050000000B000000020151A00006000000650000000210A210FFFF0A00000 10 20920FFFF0900000 10 000700000019000000010201800008000001C40000000340,Geneva40,4030 1040, Helvetica40,40150 1040,Monaco40,4040 1000090000001700000002321B245321B245000A00000017000000026C2F2226C2F222000B00000005000000020000C0000001D00000001E05DFEE0585E5850721000F0000005200000000400 10 4,77A4,s4,s4,ke.4, 4,4,00130000007E00000000DA91F8CE1C1D1E1F7F1B044,-..'"FFFF0FFFF0FFFE000000060001001777AAh;_sUQ$i-  main newsOutlineUGIF89aBBB񯯯&&&ېkkkЬͭ򺺺wwwdddbbbLJooo```EEE444؄䮮???ggg›ȹ!!!---\\\III<< busy_anim,outline_collapsedFGIF89a !, boJnȗKI;outline_collapsed_altHGIF89a !, /܊jo=هH;outline_expandedDGIF89a ޭ!, ˝x,EzAT;outline_expanded_altDGIF89a ޭ!, ˝x,EzAT;snake_transparent5zsnake_transparent_smaller>+space/GIFfGIF89a!,D;VGeneva =_}8  "; GX ]author l.m.orchard authorEmaill.m.orchard@pobox.com description default themename default theme%$FFFF000000060001001777AA000000000071000000001001710000001-7F7F6FBE180000048004806D20200-10C8406D20222FFFF01031FE400001000000BD00000003090E40840651A2228CE03CE00050D651A152090E11CC4084051A683322285D03CE00082668331F0011CC1FE4408408336D20222E18038E000D136D20600002000009140000000090E,/* Behaviour v1.0 by Ben Nolan, June 2005. Based largely on the work of Simon Willison (see comments by Simon below). Description: Uses css selectors to apply javascript behaviours to enable unobtrusive javascript in html documents. Usage: var myrules = { 'b.someclass' : function(element){ element.onclick = function(){ alert(this.innerHTML); } }, '#someid u' : function(element){ element.onmouseover = function(){ this.innerHTML = "BLAH!"; } } ); Behaviour.register(myrules); // Call Behaviour.apply() to re-apply the rules (if you // update the dom, etc). License: My stuff is BSD licensed. Not sure about Simon's. More information: http://ripcord.co.nz/behaviour/ */ var Behaviour = { list : new Array, register : function(sheet){ Behaviour.list.push(sheet); }, start : function(){ Behaviour.addLoadEvent(function(){ Behaviour.apply(); }); }, apply : function(){ for (h=0;sheet=Behaviour.list[h];h++){ for (selector in sheet){ list = document.getElementsBySelector(selector); if (!list){ continue; } for (i=0;element=list[i];i++){ sheet[selector](element); } } } }, addLoadEvent : function(func){ var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } } Behaviour.start(); /* The following code is Copyright (C) Simon Willison 2004. document.getElementsBySelector(selector) - returns an array of element objects from the current document matching the CSS selector. Selectors can contain element names, class names and ids and can be nested. For example: elements = document.getElementsBySelect('div#main p a.external') Will return an array of all 'a' elements with 'external' in their class attribute that are contained inside 'p' elements that are contained inside the 'div' element which has id="main" New in version 0.4: Support for CSS2 and CSS3 attribute selectors: See http://www.w3.org/TR/css3-selectors/#attribute-selectors 0002000008C40000090E8BE, Version 0.4 - Simon Willison, March 25th 2003 -- Works in Phoenix 0.5, Mozilla 1.3, Opera 7, Internet Explorer 6, Internet Explorer 5 on Windows -- Opera 7 fails */ function getAllChildren(e) { // Returns all children of element. Workaround required for IE5/Windows. Ugh. return e.all ? e.all : e.getElementsByTagName('*'); } document.getElementsBySelector = function(selector) { // Attempt to fail gracefully in lesser browsers if (!document.getElementsByTagName) { return new Array(); } // Split selector in to tokens var tokens = selector.split(' '); var currentContext = new Array(document); for (var i = 0; i < tokens.length; i++) { token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');; if (token.indexOf('#') > -1) { // Token is an ID selector var bits = token.split('#'); var tagName = bits[0]; var id = bits[1]; var element = document.getElementById(id); if (tagName && element.nodeName.toLowerCase() != tagName) { // tag with that ID not found, return false return new Array(); } // Set currentContext to contain just this element currentContext = new Array(element); continue; // Skip to next token } if (token.indexOf('.') > -1) { // Token contains a class selector var bits = token.split('.'); var tagName = bits[0]; var className = bits[1]; if (!tagName) { tagName = '*'; } // Get elements matching tag, filter them for class selector var found = new Array; var foundCount = 0; for (var h = 0; h < currentContext.length; h++) { var elements; if (tagName == '*') { elements = getAllChildren(currentContext[h]); } else { elements = currentContext[h].getElementsByTagName(tagName); } for (var j = 0; j < elements.length; j++) { found[foundCount++] = elements[j]; } } currentContext = new Array; var currentContextIndex = 0; for (var k = 0; k < found.length; k++) { if (found[k].className && found[k].className.match(new RegExp('\\b'+className+'\\b'))) { 000200000E1E000011CCE18, currentContext[currentContextIndex++] = found[k]; } } continue; // Skip to next token } // Code to deal with attribute selectors if (token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)) { var tagName = RegExp.$1; var attrName = RegExp.$2; var attrOperator = RegExp.$3; var attrValue = RegExp.$4; if (!tagName) { tagName = '*'; } // Grab all of the tagName elements within current context var found = new Array; var foundCount = 0; for (var h = 0; h < currentContext.length; h++) { var elements; if (tagName == '*') { elements = getAllChildren(currentContext[h]); } else { elements = currentContext[h].getElementsByTagName(tagName); } for (var j = 0; j < elements.length; j++) { found[foundCount++] = elements[j]; } } currentContext = new Array; var currentContextIndex = 0; var checkFunction; // This function will be used to filter the elements switch (attrOperator) { case '=': // Equality checkFunction = function(e) { return (e.getAttribute(attrName) == attrValue); }; break; case '~': // Match one of space seperated words checkFunction = function(e) { return (e.getAttribute(attrName).match(new RegExp('\\b'+attrValue+'\\b'))); }; break; case '|': // Match start with value followed by optional hyphen checkFunction = function(e) { return (e.getAttribute(attrName).match(new RegExp('^'+attrValue+'-?'))); }; break; case '^': // Match starts with value checkFunction = function(e) { return (e.getAttribute(attrName).indexOf(attrValue) == 0); }; break; case '$': // Match ends with value - fails with "Warning" in Opera 7 checkFunction = function(e) { return (e.getAttribute(attrName).lastIndexOf(attrValue) == e.getAttribute(attrName).length - attrValue.length); }; break; case '*': // Match ends with value checkFunction = function(e) { return (e.getAttribute(attrName).indexOf(attrValue) > -1); }; break; default : // Just test for existence of attribute checkFunction = function(e) { return e.getAttribute(attrName); }; } currentContext = new Array; var currentContextIndex = 0; for (var k = 0; k < found.length; k++) { if (checkFunction(found[k])) { currentContext[currentContextIndex++] = found[k]; } } // alert('Attribute Selector: '+tagName+' '+attrName+' '+attrOperator+' '+attrValue); continue; // Skip to next token } if (!currentContext[0]){ return; } // If we get here, token is JUST an element (not a class or ID selector) tagName = token; var found = new Array; var foundCount = 0; for (var h = 0; h < currentContext.length; h++) { var elements = currentContext[h].getElementsByTagName(tagName); for (var j = 0; j < elements.length; j++) { found[foundCount++] = elements[j]; } } currentContext = found; } return currentContext; } /* That revolting regular expression explained /^(\w+)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/ \---/ \---/\-------------/ \-------/ | | | | | | | The value | | ~,|,^,$,* or = | Attribute Tag */ 00040000000B0000000201FE6000050000000B0000000201FE60000600000032000000010A210FFFF0A00000 20 000700000019000000010201800008000000970000000140,Geneva40,4030 100009000000150000000239C17D39C17D000A00000017000000026D202226D20222000B00000005000000020000C0000000F000000011FE401000F0000005200000000400 10 4,Tګ4,77A4,4,4,4,4,00130000007E00000000DA91F8CE1C1D1E1F7F1B044,-..'"FFFF0FFFF0FFFE000000060001001777AA22(t$%$TFFFF000000060001001777AA000000000074000000001001710000001-7F7F6FBE180000048004806231D200-10228106231D222FFFF01034D59000010000026200000009099B4084063EF22296803CC0003E263EF10B099B1204408403EF683322284703CE0008266833A0012041A5E408408336CD222281A03C8000CC548CD218A01A5E228440840CD2610C82227F603C800010BB6010C813D022842AA24084010C8614D82227FB03C800014CB3014D8D702AA232AD4084014D8618732227F303C800018661818738D032AD3AC640840187361B992227D403CC0001B8C61B9917203AC641E4408401B9961DFC2226F003C80001DEF481DFC12C041E44D59408401DFC6231D222B75038E00023106231D600002000009A10000000099B,// // Copyright (C) 2000, 2001, 2002 Virtual Cowboys info@virtualcowboys.nl // // Author: Ruben Daniels // Version: 0.91 // Date: 29-08-2001 // Site: www.vcdn.org/Public/XMLRPC/ // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // LMO: Tweaked this so as not to pollute the Object prototype //Object.prototype.toXMLRPC = function(){ function toXMLRPC(obj) { var wo = obj.valueOf(); if(! wo.toXMLRPC ){ retstr = ""; for(prop in obj){ if(typeof wo[prop] != "function"){ retstr += "" + prop + "" + XMLRPC.getXML(wo[prop]) + ""; } } retstr += ""; return retstr; } else{ return wo.toXMLRPC(); } } String.prototype.toXMLRPC = function(){ // return "";//.replace(/" + this + ""; } else if(this == parseFloat(this)){ return "" + this + ""; } else{ return false.toXMLRPC(); } } Boolean.prototype.toXMLRPC = function(){ if(this) return "1"; else return "0"; } Date.prototype.toXMLRPC = function(){ //Could build in possibilities to express dates //in weeks or other iso8601 possibillities //hmmmm ???? //19980717T14:08:55 return "" + doYear(this.getUTCYear()) + doZero(this.getMonth()) + doZero(this.getUTCDate()) + "T" + doZero(this.getHours()) + ":" + doZero(this.getMinutes()) + ":" + doZero(this.getSeconds()) + ""; 00020000086F0000099B869, function doZero(nr) { nr = String("0" + nr); return nr.substr(nr.length-2, 2); } function doYear(year) { if(year > 9999 || year < 0) XMLRPC.handleError(new Error("Unsupported year: " + year)); year = String("0000" + year) return year.substr(year.length-4, 4); } } Array.prototype.toXMLRPC = function(){ var retstr = ""; for(var i=0;i"; } return retstr + ""; } function VirtualService(servername, oRPC){ this.version = '0.91'; this.URL = servername; this.multicall = false; this.autoroute = true; this.onerror = null; this.rpc = oRPC; this.receive = {}; this.purge = function(receive){ return this.rpc.purge(this, receive); } this.revert = function(){ this.rpc.revert(this); } this.add = function(name, alias, receive){ this.rpc.validateMethodName();if(this.rpc.stop){this.rpc.stop = false;return false} if(receive) this.receive[name] = receive; this[(alias || name)] = new Function('var args = new Array(), i;for(i=0;i" + XMLRPC.getXML(wo[prop]) + ""; } } retstr += ""; return retstr; } else{ return wo.toXMLRPC(); 0002000008600000120485A, } }, routeServer : "http://www.vcdn.org/cgi-bin/rpcproxy.cgi", autoroute : true, multicall : false, services : {}, stack : {}, queue : new Array(), timers : new Array(), timeout : 30000, ontimeout : null, getService : function(serviceName){ //serviceNames cannot contain / or . if(/[\/\.]/.test(serviceName)){ return new VirtualService(serviceName, this); } else if(this.services[serviceName]){ return this.services[serviceName]; } else{ try{ var ct = eval(serviceName); this.services[serviceName] = new ct(this); } catch(e){ return false; } } }, purge : function(modConst, receive){ if(this.stack[modConst.URL].length){ var info = this.send(modConst.URL, "system.multicall", [this.stack[modConst.URL]], receive, false, modConst.autoroute); modConst.autoroute = info[0]; this.revert(modConst); if(info){ modConst.autoroute = info[0]; return info[1]; } else{ if(modConst.onerror) modConst.onerror(this.lastError); return false; } } }, revert : function(modConst){ this.stack[modConst.URL] = new Array(); }, call : function(){ //[optional info || receive, servername,] functionname, args...... var args = new Array(), i, a = arguments; var servername, methodname, receive, service, info, autoroute, multicall; if(typeof a[0] == "object"){ receive = a[0][0]; servername = a[0][1].URL; methodname = a[1]; multicall = (a[0][1].supportsMulticall && a[0][1].multicall); autoroute = a[0][1].autoroute; service = a[0][1]; } else if(typeof a[0] == "function"){ i = 3; receive = a[0]; servername = a[1]; methodname = a[2]; } else{ i = 2; servername = a[0]; methodname = a[1]; } for(i=i;i mask/s * -------------------- * undefined -> 0/1 [default] * number -> 2 * boolean -> 4 * string -> 8 * function -> 16 * object -> 32 * -------------------- * Examples: * Want [String] only: (eqv. (typeof(vDunno) == 'string') ) * Soya.Common.typematch(unknown, 8) * Anything else than 'undefined' acceptable: * Soya.Common.typematch(unknown) * Want [Number], [Boolean] or [Function]: * Soya.Common.typematch(unknown, 2 + 4 + 16) * Want [Number] only: * Soya.Common.typematch(unknown, 2) **/ typematch : function (vDunno, nCase){ var nMask; switch(typeof(vDunno)){ case 'number' : nMask = 2; break; case 'boolean' : nMask = 4; break; case 'string' : nMask = 8; break; case 'function': nMask = 16; break; case 'object' : nMask = 32; break; default : nMask = 1; break; } return Boolean(nMask & (nCase || 62)); }, getNode : function(data, tree){ var nc = 0;//nodeCount //node = 1 if(data != null){ for(i=0;i 1){ tree.shift(); data = this.getNode(data, tree); } return data; } nc++ } } } return false; }, toObject : function(data){ var ret, i; switch(data.tagName){ case "string": return (data.firstChild) ? new String(data.firstChild.nodeValue) : ""; break; case "int": case "i4": case "double": return (data.firstChild) ? new Number(data.firstChild.nodeValue) : 0; break; case "dateTime.iso8601": /* Have to read the spec to be able to completely 0002000008240000228481E, parse all the possibilities in iso8601 07-17-1998 14:08:55 19980717T14:08:55 */ var sn = (isIE) ? "-" : "/"; if(/^(\d{4})(\d{2})(\d{2})T(\d{2}):(\d{2}):(\d{2})/.test(data.firstChild.nodeValue)){;//data.text)){ return new Date(RegExp.$2 + sn + RegExp.$3 + sn + RegExp.$1 + " " + RegExp.$4 + ":" + RegExp.$5 + ":" + RegExp.$6); } else{ return new Date(); } break; case "array": data = this.getNode(data, [0]); if(data && data.tagName == "data"){ ret = new Array(); var i = 0; while(child = this.getNode(data, [i++])){ ret.push(this.toObject(child)); } return ret; } else{ this.handleError(new Error("Malformed XMLRPC Message1")); return false; } break; case "struct": ret = {}; var i = 0; while(child = this.getNode(data, [i++])){ if(child.tagName == "member"){ ret[this.getNode(child, [0]).firstChild.nodeValue] = this.toObject(this.getNode(child, [1])); } else{ this.handleError(new Error("Malformed XMLRPC Message2")); return false; } } return ret; break; case "boolean": return Boolean(isNaN(parseInt(data.firstChild.nodeValue)) ? (data.firstChild.nodeValue == "true") : parseInt(data.firstChild.nodeValue)) break; case "base64": return this.decodeBase64(data.firstChild.nodeValue); break; case "value": child = this.getNode(data, [0]); return (!child) ? ((data.firstChild) ? new String(data.firstChild.nodeValue) : "") : this.toObject(child); break; default: this.handleError(new Error("Malformed XMLRPC Message: " + data.tagName)); return false; break; } }, /*** Decode Base64 ****** * Original Idea & Code by thomas@saltstorm.net * from Soya.Encode.Base64 [http://soya.saltstorm.net] **/ decodeBase64 : function(sEncoded){ // Input must be dividable with 4. 00020000081100002AA280B, if(!sEncoded || (sEncoded.length % 4) > 0) return sEncoded; /* Use NN's built-in base64 decoder if available. This procedure is horribly slow running under NN4, so the NN built-in equivalent comes in very handy. :) */ else if(typeof(atob) != 'undefined') return atob(sEncoded); var nBits, i, sDecoded = ''; var base64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; sEncoded = sEncoded.replace(/\W|=/g, ''); for(i=0; i < sEncoded.length; i += 4){ nBits = (base64.indexOf(sEncoded.charAt(i)) & 0xff) << 18 | (base64.indexOf(sEncoded.charAt(i+1)) & 0xff) << 12 | (base64.indexOf(sEncoded.charAt(i+2)) & 0xff) << 6 | base64.indexOf(sEncoded.charAt(i+3)) & 0xff; sDecoded += String.fromCharCode( (nBits & 0xff0000) >> 16, (nBits & 0xff00) >> 8, nBits & 0xff); } // not sure if the following statement behaves as supposed under // all circumstances, but tests up til now says it does. return sDecoded.substring(0, sDecoded.length - ((sEncoded.charCodeAt(i - 2) == 61) ? 2 : (sEncoded.charCodeAt(i - 1) == 61 ? 1 : 0))); }, getObject : function(type, message){ if(type == "HTTP"){ if(isIE) obj = new ActiveXObject("microsoft.XMLHTTP"); else if(isNS) obj = new XMLHttpRequest(); } else if(type == "XMLDOM"){ if(isIE){ obj = new ActiveXObject("microsoft.XMLDOM"); obj.loadXML(message) }else if(isNS){ obj = new DOMParser(); obj = obj.parseFromString(message, "text/xml"); } } else{ this.handleError(new Error("Unknown Object")); } return obj; }, validateMethodName : function(name){ /*do Checking: The string may only contain identifier characters, upper and lower-case A-Z, the numeric characters, 0-9, underscore, dot, colon and slash. */ if(/^[A-Za-z0-9\._\/:]+$/.test(name)) return true else this.handleError(new Error("Incorrect method name")); }, getXML : function(obj){ 00020000081F000032AD819, if(typeof obj == "function"){ this.handleError(new Error("Cannot Parse functions")); }else if(obj == null || obj == undefined || (typeof obj == "number" && !isFinite(obj))) return false.toXMLRPC(); else return toXMLRPC(obj); // return obj.toXMLRPC(); }, handleError : function(e){ if(!this.onerror || !this.onerror(e)){ //alert("An error has occured: " + e.message); throw e; } this.stop = true; this.lastError = e; }, cancel : function(id){ //You can only cancel a request when it was executed async (I think) if(!this.queue[id]) return false; this.queue[id][0].abort(); return true; }, send : function(serverAddress, functionName, args, receive, multicall, autoroute){ var id, http; //default is sync this.validateMethodName(); if(this.stop){this.stop = false; return false;} //setting up multicall multicall = (multicall != null) ? multicall : this.multicall; if(multicall){ if(!this.stack[serverAddress]) this.stack[serverAddress] = new Array(); this.stack[serverAddress].push({methodName : functionName, params : args}); return true; } //creating http object var http = this.getObject("HTTP"); //setting some things for async/sync transfers if(!receive) { // LMO || isNS){; async = false; } else{ async = true; /* The timer functionality is implemented instead of the onreadystatechange event because somehow the calling of this event crashed IE5.x */ id = this.queue.push([http, receive, null, new Date()])-1; // this.queue[id][2] = new Function("var id='" + id + "';var dt = new Date(new Date().getTime() - XMLRPC.queue[id][3].getTime());diff = parseInt(dt.getSeconds()*1000 + dt.getMilliseconds());if(diff > XMLRPC.timeout){if(XMLRPC.ontimeout) XMLRPC.ontimeout(); clearInterval(XMLRPC.timers[id]);XMLRPC.cancel(id);return};if(XMLRPC.queue[id][0].readyState == 4){XMLRPC.queue[id][0].onreadystatechange = function(){};XMLRPC.receive(id);clearInterval(XMLRPC.timers[id])}"); 00020000072400003AC671E, this.queue[id][2] = function() { var dt = new Date(new Date().getTime() - XMLRPC.queue[id][3].getTime()); diff = parseInt(dt.getSeconds()*1000 + dt.getMilliseconds()); if(diff > XMLRPC.timeout) { if(XMLRPC.ontimeout) XMLRPC.ontimeout(); clearInterval(XMLRPC.timers[id]); XMLRPC.cancel(id); return }; if(XMLRPC.queue[id][0].readyState == 4) { XMLRPC.queue[id][0].onreadystatechange = function(){}; XMLRPC.receive(id); clearInterval(XMLRPC.timers[id]) }; } this.timers[id] = setInterval("XMLRPC.queue[" + id + "][2]()", 20); } //setting up the routing autoroute = (autoroute || this.autoroute); //'active' is only set when direct sending the message has failed var srv = (autoroute == "active") ? this.routeServer : serverAddress; try{ http.open('POST', srv, async); http.setRequestHeader("User-Agent", "vcXMLRPC v0.91 (" + navigator.userAgent + ")"); http.setRequestHeader("Host", srv.replace(/^https?:\/{2}([:\[\]\-\w\.]+)\/?.*/, '$1')); http.setRequestHeader("Content-type", "text/xml"); if(autoroute == "active"){ http.setRequestHeader("X-Proxy-Request", serverAddress); http.setRequestHeader("X-Compress-Response", "gzip"); } } catch(e){ if(autoroute == true){ //Access has been denied, Routing call. autoroute = "active"; if(id){ delete this.queue[id]; clearInterval(this.timers[id]); } return this.send(serverAddress, functionName, args, receive, multicall, autoroute); } //Routing did not work either..Throwing error 000200000B7B000041E4B75, this.handleError(new Error("Could not sent XMLRPC Message (Reason: Access Denied on client)")); if(this.stop){this.stop = false;return false} } //Construct the message var message = '' + functionName + ''; for(i=0;i'; } message += ''; var xmldom = this.getObject('XMLDOM', message); if(self.DEBUG) alert(message); try{ //send message http.send(xmldom); } catch(e){ //Most likely the message timed out(what happend to your internet connection?) this.handleError(new Error("XMLRPC Message not Sent(Reason: " + e.message + ")")); if(this.stop){this.stop = false;return false} } if(!async && receive) { return [autoroute, receive(this.processResult(http))]; } else if(receive) { logDebug("ASYNC and receive"); return [autoroute, id]; } else { logDebug("Async and process"); return [autoroute, this.processResult(http)]; } }, receive : function(id){ //Function for handling async transfers.. if(this.queue[id]){ var data = this.processResult(this.queue[id][0]); this.queue[id][1](data); delete this.queue[id]; } else{ this.handleError(new Error("Error while processing queue")); } }, processResult : function(http){ if(self.DEBUG) alert(http.responseText); if(http.status == 200){ //getIncoming message dom = http.responseXML; if(dom){ var rpcErr, main; //Check for XMLRPC Errors rpcErr = dom.getElementsByTagName("fault"); if(rpcErr.length > 0){ rpcErr = this.toObject(rpcErr[0].firstChild); this.handleError(new Error(rpcErr.faultCode, rpcErr.faultString)); return false } //handle method result main = dom.getElementsByTagName("param"); if(main.length == 0) this.handleError(new Error("Malformed XMLRPC Message")); data = this.toObject(this.getNode(main[0], [0])); //handle receiving if(this.onreceive) this.onreceive(data); return data; } else{ this.handleError(new Error("Malformed XMLRPC Message")); } } else{ this.handleError(new Error("HTTP Exception: (" + http.status + ") " + http.statusText + "\n\n" + http.responseText)); } } } //Smell something ver = navigator.appVersion; app = navigator.appName; isNS = Boolean(navigator.productSub) //moz_can_do_http = (parseInt(navigator.productSub) >= 20010308) isIE = (ver.indexOf("MSIE 5") != -1 || ver.indexOf("MSIE 6") != -1) ? 1 : 0; isIE55 = (ver.indexOf("MSIE 5.5") != -1) ? 1 : 0; isOTHER = (!isNS && !isIE) ? 1 : 0; if(isOTHER) alert("Sorry your browser doesn't support the features of vcXMLRPC"); 00040000000B0000000204D5B000050000000B0000000204D5B0000600000032000000010A210FFFF0A00000 20 000700000019000000010201800008000000970000000140,Geneva40,4030 100009000000150000000239C17D39C17D000A00000019000000026231D2226231D222000B00000005000000020000C0000000F000000014D5901000F0000005200000000400 10 4,3[4,4,4,4,4,4,00130000007E00000000DA91F8CE1C1D1E1F7F1B044,-..'"FFFF0FFFF0FFFE000000060001001777AA''MY(tT[TzFFFF000000060001001777AA000000000068000000001001710000001-7E7F6FBE180000048004806201200-106201222FFFF0103328000010000003A000000010328408406201222328038E0001F462016000020000032E00000000328,/* Main JS */ var query, _DEBUG; var behaviours = { }; function init() { // See also: http://dean.edwards.name/weblog/2005/09/busted/ if (arguments.callee.done) return; arguments.callee.done = true; // Grab the query params and figure out the debug mode. query = parseQueryString(location.search.substring(1)); _DEBUG = (query.debug == '1') ? true : _DEBUG; if (_DEBUG) createLoggingPane(true); log("Starting up."); // log("Applying Behaviours."); // Behaviour.register(behaviours); // Behaviour.apply(); } /* // See also: http://dean.edwards.name/weblog/2005/09/busted/ if (document.addEventListener) { document.addEventListener("DOMContentLoaded", init, null); } else { addLoadEvent(init); } */ addLoadEvent(init); /* window.onload = init; */ 00040000000B000000020132A100050000000A00000002032A00006000000650000000210A210FFFF0A00000 10 10A30FFFF0A00000 10 0007000000190000000102018000080000012D0000000240,Geneva40,4030 1040,Monaco40,4040 100009000000170000000232712C132712C1000A000000170000000262012226201222000B00000005000000020000C00000017000000013251ED9D26961000F0000005200000000400 10 4,77A4, 1:04,4,4,+4, 4,00130000007E00000000DA91F8CE1C1D1E1F7F1B044,-..'"FFFF0FFFF0FFFE000000060001001777AA)x(^zdFFFF000000060001001777AA00000000006C000000001001710000001-7F7F6FBE180000048004806DA55200-106DA55222FFFF0103187450000100000D070000003009114084066932228E903CE0006866693E8091111AE408406936C1C22289003CE000C0F6C1C43011AE1A1D40840C1C6117E22284503CE00011716117EE601A1D225B40840117E6176F22283403CE00017626176F350225B2A7A40840176F61C762227FA03CE0001C6961C76C502A7A32AE408401C766220C22280903CE00021FF6220CDB032AE3AAD40840220C6276E2227F003CE00027616276E4B03AAD42BB40840276E62A532227FE03CE0002A4662A5359042BB4ABE408402A5362D6C2227E003CE0002D5F62D6CB204ABE52BF408402D6C632CE2227DE03CE00032C1632CEAA052BF5ACA4084032CE637EF2227F203CE00037E2637EF8205ACA62C44084037EF63D9F2227DF03CE0003D9263D9F84062C46AD8408403D9F643C42227F603CE00043B7643C49B06AD872CE4084043C46498E22279403CE00049816498E1F8072CE7AC740840498E64C662227CE03CE0004C5964C66DF07AC782F4408404C66650352227F403CE00050286503512C082F48AEC408405035653A922279903CC000539C653A921408AEC92F94084053A9657442227B903CE0005737657441C0092F99AFC40840574465AF92227CD03CE0005AEC65AF912B09AFCA2F6408405AF965F7E2227D703CE0005F7165F7EC50A2F6AAEE408405F7E663B52227AA03CC00063A8663B518D0AAEEB2E24084063B5668542227E003CE000684766854690B2E2BAE540840685466D272227E903CE0006D1A66D278B0BAE5C2E6408406D27672D72227E403CE00072CA672D7980C2E6CAEB4084072D7676992227DA03CE000768C67699EF0CAEBD2F0408407699679B22227E803CE00079A5679B29B0D2F0DAEF4084079B267E922227E303CE0007E8567E92950DAEFE2D8408407E92683F42227DC03CE00083E7683F4420E2D8EAE74084083F4689702227E303CE000896368970FB0EAE7F2D340840897068D8D2227C403CE0008D8068D8DD50F2D3FAC4408408D8D6927A2227EE03CE000926D6927AF0FAC4102D540840927A697332227F203CE000972669733AA0102D510ADE40840973369BAB2227E903CE0009B9E69BABB2010ADE112CE408409BAB69F122227D203CE0009F0569F12A20112CE11AF9408409F126A2932227CF03CC000A2866A2931E6011AF91230440840A2936A74C2227D103CE000A73F6A74C14001230412AF340840A74C6AAC02227C403CE000AAB36AAC0EB012AF31330240840AAC06AEEA2227E303CE000AEDD6AEEAEB01330213AEA40840AEEA6B2ED2227C903CE000B2E06B2ED9D013AEA142D540840B2ED6B7652227E103CE000B7586B765350142D514AE840840B7656BF372227EA03CE000BF2A6BF37E3014AE8152D840840BF376C3A22227E503CC000C3956C3A2390152D815EBB40840C3A26C54F222BDE03CC000C5426C54F1B015EBB1653740840C54F6C87522267203CE000C8686C8753301653716C6640840C8756CB4022270803CE000CB336CB40E1016C66173D140840CB406CF8422275403CE000CF776CF84830173D117B3F40840CF846D43022274203CE000D4236D430E1017B3F1874540840D4306DA55222C06038E000DA486DA556000020000091700000000911,/*** MochiKit.MochiKit 1.2 : PACKED VERSION THIS FILE IS AUTOMATICALLY GENERATED. If creating patches, please diff against the source tree, not this file. See for documentation, downloads, license, etc. (c) 2005 Bob Ippolito. All rights Reserved. ***/ if(typeof (dojo)!="undefined"){ dojo.provide("MochiKit.Base"); } if(typeof (MochiKit)=="undefined"){ MochiKit={}; } if(typeof (MochiKit.Base)=="undefined"){ MochiKit.Base={}; } MochiKit.Base.VERSION="1.2"; MochiKit.Base.NAME="MochiKit.Base"; MochiKit.Base.update=function(_1,_2){ if(_1==null){ _1={}; } for(var i=1;i>b; },zrshift:function(a,b){ return a>>>b; },eq:function(a,b){ return a==b; },ne:function(a,b){ return a!=b; },gt:function(a,b){ return a>b; },ge:function(a,b){ return a>=b; },lt:function(a,b){ return al){ _37=l; } } _36=[]; for(i=0;i<_37;i++){ var _38=[]; for(var j=1;j0){ _51=m.concat(me.im_preargs,_51); } var _46=me.im_self; if(!_46){ _46=this; } return me.im_func.apply(_46,_51); }; _50.im_self=_49; _50.im_func=_47; _50.im_preargs=_48; return _50; },bindMethods:function(_52){ var _53=MochiKit.Base.bind; for(var k in _52){ var _54=_52[k]; if(typeof (_54)=="function"){ _52[k]=_53(_54,_52); } } },registerComparator:function(_55,_56,_57,_58){ MochiKit.Base.comparatorRegistry.register(_55,_56,_57,_58); },_primitives:{"bool":true,"string":true,"number":true},compare:function(a,b){ if(a==b){ return 0; } var _59=(typeof (a)=="undefined"||a==null); var _60=(typeof (b)=="undefined"||b==null); if(_59&&_60){ return 0; }else{ if(_59){ return -1; }else{ if(_60){ return 1; } } } var m=MochiKit.Base; var _61=m._primitives; if(!(typeof (a) in _61&&typeof (b) in _61)){ try{ return m.comparatorRegistry.match(a,b); } catch(e){ if(e!=m.NotFound){ throw e; } } } if(ab){ return 1; 0002000008250000225B81F, } } var _62=m.repr; throw new TypeError(_62(a)+" and "+_62(b)+" can not be compared"); },compareDateLike:function(a,b){ return MochiKit.Base.compare(a.getTime(),b.getTime()); },compareArrayLike:function(a,b){ var _63=MochiKit.Base.compare; var _64=a.length; var _65=0; if(_64>b.length){ _65=1; _64=b.length; }else{ if(_640))){ var kv=MochiKit.DOM.formContents(_108); _108=kv[0]; _109=kv[1]; }else{ if(arguments.length==1){ var o=_108; _108=[]; _109=[]; for(var k in o){ var v=o[k]; if(typeof (v)!="function"){ _108.push(k); _109.push(v); } } } } var rval=[]; var len=Math.min(_108.length,_109.length); var _113=MochiKit.Base.urlEncode; for(var i=0;i=stop){ throw self.StopIteration; } _142+=step; return rval; }}; },imap:function(fun,p,q){ var m=MochiKit.Base; var self=MochiKit.Iter; var _146=m.map(self.iter,m.extend(null,arguments,1)); var map=m.map; var next=self.next; return {repr:function(){ return "imap(...)"; },toString:m.forward("repr"),next:function(){ return fun.apply(this,map(next,_146)); }}; },applymap:function(fun,seq,self){ seq=MochiKit.Iter.iter(seq); var m=MochiKit.Base; return {repr:function(){ return "applymap(...)"; },toString:m.forward("repr"),next:function(){ return fun.apply(self,seq.next()); }}; },chain:function(p,q){ var self=MochiKit.Iter; var m=MochiKit.Base; if(arguments.length==1){ return self.iter(arguments[0]); } var _148=m.map(self.iter,arguments); return {repr:function(){ return "chain(...)"; },toString:m.forward("repr"),next:function(){ while(_148.length>1){ try{ return _148[0].next(); } catch(e){ if(e!=self.StopIteration){ throw e; } _148.shift(); } } if(_148.length==1){ var arg=_148.shift(); this.next=m.bind("next",arg); return this.next(); } throw self.StopIteration; }}; },takewhile:function(pred,seq){ var self=MochiKit.Iter; seq=self.iter(seq); return {repr:function(){ 00020000080000005ACA7FA, return "takewhile(...)"; },toString:MochiKit.Base.forward("repr"),next:function(){ var rval=seq.next(); if(!pred(rval)){ this.next=function(){ throw self.StopIteration; }; this.next(); } return rval; }}; },dropwhile:function(pred,seq){ seq=MochiKit.Iter.iter(seq); var m=MochiKit.Base; var bind=m.bind; return {"repr":function(){ return "dropwhile(...)"; },"toString":m.forward("repr"),"next":function(){ while(true){ var rval=seq.next(); if(!pred(rval)){ break; } } this.next=bind("next",seq); return rval; }}; },_tee:function(_150,sync,_152){ sync.pos[_150]=-1; var m=MochiKit.Base; var _153=m.listMin; return {repr:function(){ return "tee("+_150+", ...)"; },toString:m.forward("repr"),next:function(){ var rval; var i=sync.pos[_150]; if(i==sync.max){ rval=_152.next(); sync.deque.push(rval); sync.max+=1; sync.pos[_150]+=1; }else{ rval=sync.deque[i-sync.min]; sync.pos[_150]+=1; if(i==sync.min&&_153(sync.pos)!=sync.min){ sync.min+=1; sync.deque.shift(); } } return rval; }}; },tee:function(_154,n){ var rval=[]; var sync={"pos":[],"deque":[],"max":-1,"min":-1}; if(arguments.length==1){ n=2; } var self=MochiKit.Iter; _154=self.iter(_154); var _tee=self._tee; for(var i=0;i0&&_160>=stop)||(step<0&&_160<=stop)){ throw MochiKit.Iter.StopIteration; } var rval=_160; _160+=step; return rval; },repr:function(){ return "range("+[_160,stop,step].join(", ")+")"; },toString:MochiKit.Base.forward("repr")}; },sum:function(_161,_162){ var x=_162||0; var self=MochiKit.Iter; _161=self.iter(_161); try{ while(true){ x+=_161.next(); } } catch(e){ if(e!=self.StopIteration){ throw e; } } return x; },exhaust:function(_163){ var self=MochiKit.Iter; _163=self.iter(_163); try{ while(true){ _163.next(); } } catch(e){ if(e!=self.StopIteration){ throw e; } } },forEach:function(_164,func,self){ var m=MochiKit.Base; if(arguments.length>2){ func=m.bind(func,self); } if(m.isArrayLike(_164)){ try{ for(var i=0;i<_164.length;i++){ func(_164[i]); } } catch(e){ if(e!=MochiKit.Iter.StopIteration){ throw e; } } }else{ self=MochiKit.Iter; self.exhaust(self.imap(func,_164)); } },every:function(_166,func){ var self=MochiKit.Iter; try{ self.ifilterfalse(func,_166).next(); return false; } catch(e){ if(e!=self.StopIteration){ throw e; } return true; } },sorted:function(_167,cmp){ var rval=MochiKit.Iter.list(_167); if(arguments.length==1){ cmp=MochiKit.Base.compare; } rval.sort(cmp); return rval; },reversed:function(_168){ var rval=MochiKit.Iter.list(_168); rval.reverse(); return rval; },some:function(_169,func){ var self=MochiKit.Iter; try{ self.ifilter(func,_169).next(); return true; } catch(e){ if(e!=self.StopIteration){ throw e; } return false; } },iextend:function(lst,_170){ 0002000007FC00006AD87F6, if(MochiKit.Base.isArrayLike(_170)){ for(var i=0;i<_170.length;i++){ lst.push(_170[i]); } }else{ var self=MochiKit.Iter; _170=self.iter(_170); try{ while(true){ lst.push(_170.next()); } } catch(e){ if(e!=self.StopIteration){ throw e; } } } return lst; },groupby:function(_171,_172){ var m=MochiKit.Base; var self=MochiKit.Iter; if(arguments.length<2){ _172=m.operator.identity; } _171=self.iter(_171); var pk=undefined; var k=undefined; var v; function fetch(){ v=_171.next(); k=_172(v); } function eat(){ var ret=v; v=undefined; return ret; } var _175=true; return {repr:function(){ return "groupby(...)"; },next:function(){ while(k==pk){ fetch(); if(_175){ _175=false; break; } } pk=k; return [k,{next:function(){ if(v==undefined){ fetch(); } if(k!=pk){ throw self.StopIteration; } return eat(); }}]; }}; },groupby_as_array:function(_176,_177){ var m=MochiKit.Base; var self=MochiKit.Iter; if(arguments.length<2){ _177=m.operator.identity; } _176=self.iter(_176); var _178=[]; var _179=true; var _180; while(true){ try{ var _181=_176.next(); var key=_177(_181); } catch(e){ if(e==self.StopIteration){ break; } throw e; } if(_179||key!=_180){ var _182=[]; _178.push([key,_182]); } _182.push(_181); _179=false; _180=key; } return _178; },arrayLikeIter:function(_183){ var i=0; return {repr:function(){ return "arrayLikeIter(...)"; },toString:MochiKit.Base.forward("repr"),next:function(){ if(i>=_183.length){ throw MochiKit.Iter.StopIteration; } return _183[i++]; }}; },hasIterateNext:function(_184){ return (_184&&typeof (_184.iterateNext)=="function"); },iterateNextIter:function(_185){ return {repr:function(){ return "iterateNextIter(...)"; },toString:MochiKit.Base.forward("repr"),next:function(){ var rval=_185.iterateNext(); if(rval===null||rval===undefined){ throw MochiKit.Iter.StopIteration; } return rval; }}; }}); MochiKit.Iter.EXPORT_OK=["iteratorRegistry","arrayLikeIter","hasIterateNext","iterateNextIter",]; 0002000007FF000072CE7F9, MochiKit.Iter.EXPORT=["StopIteration","registerIteratorFactory","iter","count","cycle","repeat","next","izip","ifilter","ifilterfalse","islice","imap","applymap","chain","takewhile","dropwhile","tee","list","reduce","range","sum","exhaust","forEach","every","sorted","reversed","some","iextend","groupby","groupby_as_array"]; MochiKit.Iter.__new__=function(){ var m=MochiKit.Base; this.StopIteration=new m.NamedError("StopIteration"); this.iteratorRegistry=new m.AdapterRegistry(); this.registerIteratorFactory("arrayLike",m.isArrayLike,this.arrayLikeIter); this.registerIteratorFactory("iterateNext",this.hasIterateNext,this.iterateNextIter); this.EXPORT_TAGS={":common":this.EXPORT,":all":m.concat(this.EXPORT,this.EXPORT_OK)}; m.nameFunctions(this); }; MochiKit.Iter.__new__(); reduce=MochiKit.Iter.reduce; MochiKit.Base._exportSymbols(this,MochiKit.Iter); if(typeof (dojo)!="undefined"){ dojo.provide("MochiKit.Logging"); dojo.require("MochiKit.Base"); } if(typeof (JSAN)!="undefined"){ JSAN.use("MochiKit.Base",[]); } try{ if(typeof (MochiKit.Base)=="undefined"){ throw ""; } } catch(e){ throw "MochiKit.Logging depends on MochiKit.Base!"; } if(typeof (MochiKit.Logging)=="undefined"){ MochiKit.Logging={}; } MochiKit.Logging.NAME="MochiKit.Logging"; MochiKit.Logging.VERSION="1.2"; MochiKit.Logging.__repr__=function(){ return "["+this.NAME+" "+this.VERSION+"]"; }; MochiKit.Logging.toString=function(){ return this.__repr__(); }; MochiKit.Logging.EXPORT=["LogLevel","LogMessage","Logger","alertListener","logger","log","logError","logDebug","logFatal","logWarning"]; MochiKit.Logging.EXPORT_OK=["logLevelAtLeast","isLogMessage","compareLogMessage"]; MochiKit.Logging.LogMessage=function(num,_187,info){ this.num=num; this.level=_187; this.info=info; this.timestamp=new Date(); }; MochiKit.Logging.LogMessage.prototype={repr:function(){ var m=MochiKit.Base; return "LogMessage("+m.map(m.repr,[this.num,this.level,this.info]).join(", ")+")"; },toString:MochiKit.Base.forward("repr")}; 00020000083300007AC782D, MochiKit.Base.update(MochiKit.Logging,{logLevelAtLeast:function(_189){ var self=MochiKit.Logging; if(typeof (_189)=="string"){ _189=self.LogLevel[_189]; } return function(msg){ var _191=msg.level; if(typeof (_191)=="string"){ _191=self.LogLevel[_191]; } return _191>=_189; }; },isLogMessage:function(){ var _192=MochiKit.Logging.LogMessage; for(var i=0;i=0&&this._messages.length>this.maxSize){ this._messges.shift(); } },getMessages:function(_201){ var _202=0; if(!(typeof (_201)=="undefined"||_201==null)){ _202=Math.max(0,this._messages.length-_201); } return this._messages.slice(_202); },getMessageText:function(_203){ if(typeof (_203)=="undefined"||_203==null){ _203=30; } var _204=this.getMessages(_203); if(_204.length){ var lst=map(function(m){ return "\n ["+m.num+"] "+m.level+": "+m.info.join(" "); 0002000007FE000082F47F8, },_204); lst.unshift("LAST "+_204.length+" MESSAGES:"); return lst.join(""); } return ""; },debuggingBookmarklet:function(_205){ if(typeof (MochiKit.LoggingPane)=="undefined"){ alert(this.getMessageText()); }else{ MochiKit.LoggingPane.createLoggingPane(_205||false); } }}; MochiKit.Logging.__new__=function(){ this.LogLevel={ERROR:40,FATAL:50,WARNING:30,INFO:20,DEBUG:10}; var m=MochiKit.Base; m.registerComparator("LogMessage",this.isLogMessage,this.compareLogMessage); var _206=m.partial; var _207=this.Logger; var _208=_207.prototype.baseLog; m.update(this.Logger.prototype,{debug:_206(_208,"DEBUG"),log:_206(_208,"INFO"),error:_206(_208,"ERROR"),fatal:_206(_208,"FATAL"),warning:_206(_208,"WARNING")}); var self=this; var _209=function(name){ return function(){ self.logger[name].apply(self.logger,arguments); }; }; this.log=_209("log"); this.logError=_209("error"); this.logDebug=_209("debug"); this.logFatal=_209("fatal"); this.logWarning=_209("warning"); this.logger=new _207(); this.EXPORT_TAGS={":common":this.EXPORT,":all":m.concat(this.EXPORT,this.EXPORT_OK)}; m.nameFunctions(this); }; MochiKit.Logging.__new__(); MochiKit.Base._exportSymbols(this,MochiKit.Logging); if(typeof (dojo)!="undefined"){ dojo.provide("MochiKit.DateTime"); } if(typeof (MochiKit)=="undefined"){ MochiKit={}; } if(typeof (MochiKit.DateTime)=="undefined"){ MochiKit.DateTime={}; } MochiKit.DateTime.NAME="MochiKit.DateTime"; MochiKit.DateTime.VERSION="1.2"; MochiKit.DateTime.__repr__=function(){ return "["+this.NAME+" "+this.VERSION+"]"; }; MochiKit.DateTime.toString=function(){ return this.__repr__(); }; MochiKit.DateTime.isoDate=function(str){ str=str+""; if(typeof (str)!="string"||str.length==0){ return null; } var iso=str.split("-"); if(iso.length==0){ return null; } return new Date(iso[0],iso[1]-1,iso[2]); }; MochiKit.DateTime._isoRegexp=/(\d{4,})(?:-(\d{1,2})(?:-(\d{1,2})(?:[T ](\d{1,2}):(\d{1,2})(?::(\d{1,2})(?:\.(\d+))?)?(?:(Z)|([+-])(\d{1,2})(?::(\d{1,2}))?)?)?)?)?/; 00020000081300008AEC80D, MochiKit.DateTime.isoTimestamp=function(str){ str=str+""; if(typeof (str)!="string"||str.length==0){ return null; } var res=str.match(MochiKit.DateTime._isoRegexp); if(typeof (res)=="undefined"||res==null){ return null; } var year,month,day,hour,min,sec,msec; year=parseInt(res[1],10); if(typeof (res[2])=="undefined"||res[2]==""){ return new Date(year); } month=parseInt(res[2],10)-1; day=parseInt(res[3],10); if(typeof (res[4])=="undefined"||res[4]==""){ return new Date(year,month,day); } hour=parseInt(res[4],10); min=parseInt(res[5],10); sec=(typeof (res[6])!="undefined"&&res[6]!="")?parseInt(res[6],10):0; if(typeof (res[7])!="undefined"&&res[7]!=""){ msec=Math.round(1000*parseFloat("0."+res[7])); }else{ msec=0; } if((typeof (res[8])=="undefined"||res[8]=="")&&(typeof (res[9])=="undefined"||res[9]=="")){ return new Date(year,month,day,hour,min,sec,msec); } var ofs; if(typeof (res[9])!="undefined"&&res[9]!=""){ ofs=parseInt(res[10],10)*3600000; if(typeof (res[11])!="undefined"&&res[11]!=""){ ofs+=parseInt(res[11],10)*60000; } if(res[9]=="-"){ ofs=-ofs; } }else{ ofs=0; } return new Date(Date.UTC(year,month,day,hour,min,sec,msec)-ofs); }; MochiKit.DateTime.toISOTime=function(date,_215){ if(typeof (date)=="undefined"||date==null){ return null; } var hh=date.getHours(); var mm=date.getMinutes(); var ss=date.getSeconds(); var lst=[((_215&&(hh<10))?"0"+hh:hh),((mm<10)?"0"+mm:mm),((ss<10)?"0"+ss:ss)]; return lst.join(":"); }; MochiKit.DateTime.toISOTimestamp=function(date,_219){ if(typeof (date)=="undefined"||date==null){ return null; } var sep=_219?"T":" "; var foot=_219?"Z":""; if(_219){ date=new Date(date.getTime()+(date.getTimezoneOffset()*60000)); } return MochiKit.DateTime.toISODate(date)+sep+MochiKit.DateTime.toISOTime(date,_219)+foot; }; MochiKit.DateTime.toISODate=function(date){ if(typeof (date)=="undefined"||date==null){ return null; } var _222=MochiKit.DateTime._padTwo; return [date.getFullYear(),_222(date.getMonth()+1),_222(date.getDate())].join("-"); 000200000809000092F9803, }; MochiKit.DateTime.americanDate=function(d){ d=d+""; if(typeof (d)!="string"||d.length==0){ return null; } var a=d.split("/"); return new Date(a[2],a[0]-1,a[1]); }; MochiKit.DateTime._padTwo=function(n){ return (n>9)?n:"0"+n; }; MochiKit.DateTime.toPaddedAmericanDate=function(d){ if(typeof (d)=="undefined"||d==null){ return null; } var _224=MochiKit.DateTime._padTwo; return [_224(d.getMonth()+1),_224(d.getDate()),d.getFullYear()].join("/"); }; MochiKit.DateTime.toAmericanDate=function(d){ if(typeof (d)=="undefined"||d==null){ return null; } return [d.getMonth()+1,d.getDate(),d.getFullYear()].join("/"); }; MochiKit.DateTime.EXPORT=["isoDate","isoTimestamp","toISOTime","toISOTimestamp","toISODate","americanDate","toPaddedAmericanDate","toAmericanDate"]; MochiKit.DateTime.EXPORT_OK=[]; MochiKit.DateTime.EXPORT_TAGS={":common":MochiKit.DateTime.EXPORT,":all":MochiKit.DateTime.EXPORT}; MochiKit.DateTime.__new__=function(){ var base=this.NAME+"."; for(var k in this){ var o=this[k]; if(typeof (o)=="function"&&typeof (o.NAME)=="undefined"){ try{ o.NAME=base+k; } catch(e){ } } } }; MochiKit.DateTime.__new__(); (function(_225,_226){ if((typeof (JSAN)=="undefined"&&typeof (dojo)=="undefined")||(typeof (MochiKit.__compat__)=="boolean"&&MochiKit.__compat__)){ var all=_226.EXPORT_TAGS[":all"]; for(var i=0;i_234){ var i=_240.length-_234; res=fmt.separator+_240.substring(i,_240.length)+res; _240=_240.substring(0,i); } } res=_240+res; if(_232>0){ while(frac.length<_235){ frac=frac+"0"; } res=res+fmt.decimal+frac; } return _236+res+_237; }; }; MochiKit.Format.numberFormatter=function(_242,_243,_244){ if(typeof (_243)=="undefined"){ _243=""; } var _245=_242.match(/((?:[0#]+,)?[0#]+)(?:\.([0#]+))?(%)?/); if(!_245){ throw TypeError("Invalid pattern"); } var _246=_242.substr(0,_245.index); var _247=_242.substr(_245.index+_245[0].length); if(_246.search(/-/)==-1){ _246=_246+"-"; } var _248=_245[1]; var frac=(typeof (_245[2])=="string"&&_245[2]!="")?_245[2]:""; var _249=(typeof (_245[3])=="string"&&_245[3]!=""); var tmp=_248.split(/,/); var _251; if(typeof (_244)=="undefined"){ _244="default"; } if(tmp.length==1){ _251=null; }else{ _251=tmp[1].length; } var _252=_248.length-_248.replace(/0/g,"").length; var _253=frac.length-frac.replace(/0/g,"").length; var _254=frac.length; var rval=MochiKit.Format._numberFormatter(_243,_246,_247,_244,_249,_254,_252,_251,_253); var m=MochiKit.Base; if(m){ var fn=arguments.callee; var args=m.concat(arguments); rval.repr=function(){ return [self.NAME,"(",map(m.repr,args).join(", "),")"].join(""); }; } return rval; }; MochiKit.Format.formatLocale=function(_256){ if(typeof (_256)=="undefined"||_256==null){ _256="default"; } if(typeof (_256)=="string"){ var rval=MochiKit.Format.LOCALE[_256]; if(typeof (rval)=="string"){ rval=arguments.callee(rval); MochiKit.Format.LOCALE[_256]=rval; 0002000007FE0000A2F67F8, } return rval; }else{ return _256; } }; MochiKit.Format.twoDigitAverage=function(_257,_258){ if(_258){ var res=_257/_258; if(!isNaN(res)){ return MochiKit.Format.twoDigitFloat(_257/_258); } } return "0"; }; MochiKit.Format.twoDigitFloat=function(_259){ var sign=(_259<0?"-":""); var s=Math.floor(Math.abs(_259)*100).toString(); if(s=="0"){ return s; } if(s.length<3){ while(s.charAt(s.length-1)=="0"){ s=s.substring(0,s.length-1); } return sign+"0."+s; } var head=sign+s.substring(0,s.length-2); var tail=s.substring(s.length-2,s.length); if(tail=="00"){ return head; }else{ if(tail.charAt(1)=="0"){ return head+"."+tail.charAt(0); }else{ return head+"."+tail; } } }; MochiKit.Format.lstrip=function(str,_264){ str=str+""; if(typeof (str)!="string"){ return null; } if(!_264){ return str.replace(/^\s+/,""); }else{ return str.replace(new RegExp("^["+_264+"]+"),""); } }; MochiKit.Format.rstrip=function(str,_265){ str=str+""; if(typeof (str)!="string"){ return null; } if(!_265){ return str.replace(/\s+$/,""); }else{ return str.replace(new RegExp("["+_265+"]+$"),""); } }; MochiKit.Format.strip=function(str,_266){ var self=MochiKit.Format; return self.rstrip(self.lstrip(str,_266),_266); }; MochiKit.Format.truncToFixed=function(_267,_268){ _267=Math.floor(_267*Math.pow(10,_268)); var res=(_267*Math.pow(10,-_268)).toFixed(_268); if(res.charAt(0)=="."){ res="0"+res; } return res; }; MochiKit.Format.roundToFixed=function(_269,_270){ return MochiKit.Format.truncToFixed(_269+0.5*Math.pow(10,-_270),_270); }; MochiKit.Format.percentFormat=function(_271){ return MochiKit.Format.twoDigitFloat(100*_271)+"%"; }; MochiKit.Format.EXPORT=["truncToFixed","roundToFixed","numberFormatter","formatLocale","twoDigitAverage","twoDigitFloat","percentFormat","lstrip","rstrip","strip"]; MochiKit.Format.LOCALE={en_US:{separator:",",decimal:".",percent:"%"},de_DE:{separator:".",decimal:",",percent:"%"},fr_FR:{separator:" ",decimal:",",percent:"%"},"default":"en_US"}; 0002000007FA0000AAEE7F4, MochiKit.Format.EXPORT_OK=[]; MochiKit.Format.EXPORT_TAGS={":all":MochiKit.Format.EXPORT,":common":MochiKit.Format.EXPORT}; MochiKit.Format.__new__=function(){ var base=this.NAME+"."; var k,v,o; for(k in this.LOCALE){ o=this.LOCALE[k]; if(typeof (o)=="object"){ o.repr=function(){ return this.NAME; }; o.NAME=base+"LOCALE."+k; } } for(k in this){ o=this[k]; if(typeof (o)=="function"&&typeof (o.NAME)=="undefined"){ try{ o.NAME=base+k; } catch(e){ } } } }; MochiKit.Format.__new__(); (function(_272,_273){ if((typeof (JSAN)=="undefined"&&typeof (dojo)=="undefined")||(typeof (MochiKit.__compat__)=="boolean"&&MochiKit.__compat__)){ var all=_273.EXPORT_TAGS[":all"]; for(var i=0;i=0)){ this._fire(); } },_continue:function(res){ this._resback(res); this._unpause(); },_resback:function(res){ this.fired=((res instanceof Error)?1:0); this.results[this.fired]=res; this._fire(); },_check:function(){ if(this.fired!=-1){ if(!this.silentlyCancelled){ throw new MochiKit.Async.AlreadyCalledError(this); } this.silentlyCancelled=false; return; } },callback:function(res){ this._check(); this._resback(res); },errback:function(res){ this._check(); if(!(res instanceof Error)){ res=new MochiKit.Async.GenericError(res); } this._resback(res); },addBoth:function(fn){ if(arguments.length>1){ fn=MochiKit.Base.partial.apply(null,arguments); } return this.addCallbacks(fn,fn); },addCallback:function(fn){ if(arguments.length>1){ fn=MochiKit.Base.partial.apply(null,arguments); } return this.addCallbacks(fn,null); },addErrback:function(fn){ if(arguments.length>1){ fn=MochiKit.Base.partial.apply(null,arguments); } return this.addCallbacks(null,fn); },addCallbacks:function(cb,eb){ this.chain.push([cb,eb]); if(this.fired>=0){ this._fire(); } return this; },_fire:function(){ var _278=this.chain; var _279=this.fired; var res=this.results[_279]; var self=this; var cb=null; while(_278.length>0&&this.paused==0){ var pair=_278.shift(); var f=pair[_279]; if(f==null){ continue; } try{ res=f(res); _279=((res instanceof Error)?1:0); if(res instanceof MochiKit.Async.Deferred){ cb=function(res){ self._continue(res); }; this._pause(); } } catch(err){ _279=1; res=err; } } this.fired=_279; this.results[_279]=res; if(cb&&this.paused){ res.addBoth(cb); } }}; MochiKit.Base.update(MochiKit.Async,{evalJSONRequest:function(){ return eval("("+arguments[0].responseText+")"); },succeed:function(_281){ 0002000008070000BAE5801, var d=new MochiKit.Async.Deferred(); d.callback.apply(d,arguments); return d; },fail:function(_282){ var d=new MochiKit.Async.Deferred(); d.errback.apply(d,arguments); return d; },getXMLHttpRequest:function(){ var self=arguments.callee; if(!self.XMLHttpRequest){ var _283=[function(){ return new XMLHttpRequest(); },function(){ return new ActiveXObject("Msxml2.XMLHTTP"); },function(){ return new ActiveXObject("Microsoft.XMLHTTP"); },function(){ return new ActiveXObject("Msxml2.XMLHTTP.4.0"); },function(){ throw new MochiKit.Async.BrowserComplianceError("Browser does not support XMLHttpRequest"); }]; for(var i=0;i<_283.length;i++){ var func=_283[i]; try{ self.XMLHttpRequest=func; return func(); } catch(e){ } } } return self.XMLHttpRequest(); },sendXMLHttpRequest:function(req,_285){ if(typeof (_285)=="undefined"){ _285=null; } var _286=function(){ try{ req.onreadystatechange=null; } catch(e){ try{ req.onreadystatechange=function(){ }; } catch(e){ } } req.abort(); }; var self=MochiKit.Async; var d=new self.Deferred(_286); var _287=function(){ if(req.readyState==4){ try{ req.onreadystatechange=null; } catch(e){ try{ req.onreadystatechange=function(){ }; } catch(e){ } } var _288=null; try{ _288=req.status; if(!_288&&MochiKit.Base.isNotEmpty(req.responseText)){ _288=304; } } catch(e){ } if(_288==200||_288==304){ d.callback(req); }else{ var err=new self.XMLHttpRequestError(req,"Request failed"); if(err.number){ d.errback(err); }else{ d.errback(err); } } } }; try{ req.onreadystatechange=_287; req.send(_285); } catch(e){ try{ req.onreadystatechange=null; } catch(ignore){ } d.errback(e); } return d; },doSimpleXMLHttpRequest:function(url){ var self=MochiKit.Async; var req=self.getXMLHttpRequest(); if(arguments.length>1){ var m=MochiKit.Base; var qs=m.queryString.apply(null,m.extend(null,arguments,1)); if(qs){ url+="?"+qs; } } req.open("GET",url,true); return self.sendXMLHttpRequest(req); },loadJSONDoc:function(url){ 00020000080B0000C2E6805, var self=MochiKit.Async; var d=self.doSimpleXMLHttpRequest.apply(self,arguments); d=d.addCallback(self.evalJSONRequest); return d; },wait:function(_292,_293){ var d=new MochiKit.Async.Deferred(); var m=MochiKit.Base; if(typeof (_293)!="undefined"){ d.addCallback(function(){ return _293; }); } var _294=setTimeout(m.bind("callback",d),Math.floor(_292*1000)); d.canceller=function(){ try{ clearTimeout(_294); } catch(e){ } }; return d; },callLater:function(_295,func){ var m=MochiKit.Base; var _296=m.partial.apply(m,m.extend(null,arguments,1)); return MochiKit.Async.wait(_295).addCallback(function(res){ return _296(); }); }}); MochiKit.Async.DeferredLock=function(){ this.waiting=[]; this.locked=false; this.id=this._nextId(); }; MochiKit.Async.DeferredLock.prototype={__class__:MochiKit.Async.DeferredLock,acquire:function(){ d=new MochiKit.Async.Deferred(); if(this.locked){ this.waiting.push(d); }else{ this.locked=true; d.callback(this); } return d; },release:function(){ if(!this.locked){ throw TypeError("Tried to release an unlocked DeferredLock"); } this.locked=false; if(this.waiting.length>0){ this.locked=true; this.waiting.shift().callback(this); } },_nextId:MochiKit.Base.counter(),repr:function(){ var _297; if(this.locked){ _297="locked, "+this.waiting.length+" waiting"; }else{ _297="unlocked"; } return "DeferredLock("+this.id+", "+_297+")"; },toString:MochiKit.Base.forward("repr")}; MochiKit.Async.EXPORT=["AlreadyCalledError","CancelledError","BrowserComplianceError","GenericError","XMLHttpRequestError","Deferred","succeed","fail","getXMLHttpRequest","doSimpleXMLHttpRequest","loadJSONDoc","wait","callLater","sendXMLHttpRequest","DeferredLock"]; MochiKit.Async.EXPORT_OK=["evalJSONRequest"]; MochiKit.Async.__new__=function(){ var m=MochiKit.Base; var ne=m.partial(m._newNamedError,this); ne("AlreadyCalledError",function(_299){ this.deferred=_299; }); ne("CancelledError",function(_300){ this.deferred=_300; }); ne("BrowserComplianceError",function(msg){ 00020000080B0000CAEB805, this.message=msg; }); ne("GenericError",function(msg){ this.message=msg; }); ne("XMLHttpRequestError",function(req,msg){ this.req=req; this.message=msg; try{ this.number=req.status; } catch(e){ } }); this.EXPORT_TAGS={":common":this.EXPORT,":all":m.concat(this.EXPORT,this.EXPORT_OK)}; m.nameFunctions(this); }; MochiKit.Async.__new__(); MochiKit.Base._exportSymbols(this,MochiKit.Async); if(typeof (dojo)!="undefined"){ dojo.provide("MochiKit.DOM"); dojo.require("MochiKit.Iter"); } if(typeof (JSAN)!="undefined"){ JSAN.use("MochiKit.Iter",[]); } try{ if(typeof (MochiKit.Iter)=="undefined"){ throw ""; } } catch(e){ throw "MochiKit.DOM depends on MochiKit.Iter!"; } if(typeof (MochiKit.DOM)=="undefined"){ MochiKit.DOM={}; } MochiKit.DOM.NAME="MochiKit.DOM"; MochiKit.DOM.VERSION="1.2"; MochiKit.DOM.__repr__=function(){ return "["+this.NAME+" "+this.VERSION+"]"; }; MochiKit.DOM.toString=function(){ return this.__repr__(); }; MochiKit.DOM.EXPORT=["elementDimensions","formContents","currentWindow","currentDocument","withWindow","withDocument","registerDOMConverter","coerceToDOM","createDOM","createDOMFunc","getNodeAttribute","setNodeAttribute","updateNodeAttributes","appendChildNodes","replaceChildNodes","removeElement","swapDOM","BUTTON","TT","PRE","H1","H2","H3","BR","CANVAS","HR","LABEL","TEXTAREA","FORM","STRONG","SELECT","OPTION","OPTGROUP","LEGEND","FIELDSET","P","UL","OL","LI","TD","TR","THEAD","TBODY","TFOOT","TABLE","TH","INPUT","SPAN","A","DIV","IMG","getElement","$","computedStyle","getElementsByTagAndClassName","addToCallStack","addLoadEvent","focusOnLoad","setElementClass","toggleElementClass","addElementClass","removeElementClass","swapElementClass","hasElementClass","escapeHTML","toHTML","emitHTML","setDisplayForElement","hideElement","showElement","scrapeText","elementPosition"]; MochiKit.DOM.EXPORT_OK=["domConverters"]; MochiKit.DOM.Dimensions=function(w,h){ this.w=w; this.h=h; }; MochiKit.DOM.Dimensions.prototype.repr=function(){ var repr=MochiKit.Base.repr; 0002000008050000D2F07FF, return "{w: "+repr(this.w)+", h: "+repr(this.h)+"}"; }; MochiKit.DOM.Coordinates=function(x,y){ this.x=x; this.y=y; }; MochiKit.DOM.Coordinates.prototype.repr=function(){ var repr=MochiKit.Base.repr; return "{x: "+repr(this.x)+", y: "+repr(this.y)+"}"; }; MochiKit.DOM.elementDimensions=function(elem){ var self=MochiKit.DOM; if(typeof (elem.w)=="number"||typeof (elem.h)=="number"){ return new self.Dimensions(elem.w||0,elem.h||0); } elem=self.getElement(elem); if(!elem){ return undefined; } if(self.computedStyle(elem,"display")!="none"){ return new self.Dimensions(elem.w||0,elem.h||0); } var s=elem.style; var _305=s.visibility; var _306=s.position; s.visibility="hidden"; s.position="absolute"; s.display=""; var _307=elem.clientWidth; var _308=elem.clientHeight; s.display="none"; s.position=_306; s.visibility=_305; return new self.Dimensions(_307,_308); }; MochiKit.DOM.elementPosition=function(elem,_309){ var self=MochiKit.DOM; elem=self.getElement(elem); if(!elem){ return undefined; } var x=0; var y=0; if(elem.offsetParent){ while(elem.offsetParent){ x+=elem.offsetLeft; y+=elem.offsetTop; elem=elem.offsetParent; } }else{ x=elem.x||x; y=elem.y||y; } if(_309){ _309=arguments.callee(_309); if(_309){ x-=(_309.x||0); y-=(_309.y||0); } } return new self.Coordinates(x,y); }; MochiKit.DOM.currentWindow=function(){ return MochiKit.DOM._window; }; MochiKit.DOM.currentDocument=function(){ return MochiKit.DOM._document; }; MochiKit.DOM.withWindow=function(win,func){ var self=MochiKit.DOM; var _311=self._document; var _312=self._win; var rval; try{ self._window=win; self._document=win.document; rval=func(); } catch(e){ self._window=_312; self._document=_311; throw e; } self._window=_312; self._document=_311; return rval; }; MochiKit.DOM.formContents=function(elem){ var _313=[]; var _314=[]; var m=MochiKit.Base; var self=MochiKit.DOM; if(typeof (elem)=="undefined"||elem==null){ elem=self._document; }else{ elem=self.getElement(elem); 0002000007EF0000DAEF7E9, } m.nodeWalk(elem,function(elem){ var name=elem.name; if(m.isNotEmpty(name)){ if(elem.tagName=="INPUT"&&(elem.type=="radio"||elem.type=="checkbox")&&!elem.checked){ return null; } if(elem.tagName=="SELECT"){ var opts=elem.options; for(var i=0;i0){ return node; } if(typeof (node)=="number"||typeof (node)=="bool"){ node=node.toString(); } if(typeof (node)=="string"){ return self._document.createTextNode(node); } if(typeof (node.toDOM)=="function"){ node=node.toDOM(ctx); continue; } if(typeof (node)=="function"){ node=node(ctx); continue; } var _329=null; try{ _329=iter(node); } catch(e){ } if(_329){ return imap(_327,_329,_324(ctx)); } try{ node=_326.match(node,ctx); continue; } catch(e){ if(e!=_328){ throw e; } } return self._document.createTextNode(node.toString()); } return undefined; }; MochiKit.DOM.setNodeAttribute=function(node,attr,_331){ var o={}; o[attr]=_331; try{ return MochiKit.DOM.updateNodeAttributes(node,o); } catch(e){ } return null; 0002000008150000E2D880F, }; MochiKit.DOM.getNodeAttribute=function(node,attr){ var self=MochiKit.DOM; var _332=self.attributeArray.renames[attr]; node=self.getElement(node); try{ if(_332){ return node[_332]; } return node.getAttribute(attr); } catch(e){ } return null; }; MochiKit.DOM.updateNodeAttributes=function(node,_333){ var elem=node; var self=MochiKit.DOM; if(typeof (node)=="string"){ elem=self.getElement(node); } if(_333){ var _334=MochiKit.Base.updatetree; if(self.attributeArray.compliant){ for(var k in _333){ var v=_333[k]; if(typeof (v)=="object"&&typeof (elem[k])=="object"){ _334(elem[k],v); }else{ if(k.substring(0,2)=="on"){ if(typeof (v)=="string"){ v=new Function(v); } elem[k]=v; }else{ elem.setAttribute(k,v); } } } }else{ var _335=self.attributeArray.renames; for(k in _333){ v=_333[k]; var _336=_335[k]; if(k=="style"&&typeof (v)=="string"){ elem.style.cssText=v; }else{ if(typeof (_336)=="string"){ elem[_336]=v; }else{ if(typeof (elem[k])=="object"&&typeof (v)=="object"){ _334(elem[k],v); }else{ if(k.substring(0,2)=="on"){ if(typeof (v)=="string"){ v=new Function(v); } elem[k]=v; }else{ elem.setAttribute(k,v); } } } } } } } return elem; }; MochiKit.DOM.appendChildNodes=function(node){ var elem=node; var self=MochiKit.DOM; if(typeof (node)=="string"){ elem=self.getElement(node); } var _337=[self.coerceToDOM(MochiKit.Base.extend(null,arguments,1),elem)]; var _338=MochiKit.Iter.iextend; while(_337.length){ var n=_337.shift(); if(typeof (n)=="undefined"||n==null){ }else{ if(typeof (n.nodeType)=="number"){ elem.appendChild(n); }else{ _338(_337,n); } } } return elem; }; MochiKit.DOM.replaceChildNodes=function(node){ var elem=node; var self=MochiKit.DOM; if(typeof (node)=="string"){ elem=self.getElement(node); arguments[0]=elem; } var _339; while((_339=elem.firstChild)){ elem.removeChild(_339); } if(arguments.length<2){ return elem; }else{ return self.appendChildNodes.apply(this,arguments); } }; MochiKit.DOM.createDOM=function(name,_340){ 0002000007F20000EAE77EC, var elem; var self=MochiKit.DOM; if(typeof (name)=="string"){ if(_340&&"name" in _340&&!self.attributeArray.compliant){ name="<"+name+" name=\""+self.escapeHTML(_340.name)+"\">"; } elem=self._document.createElement(name); }else{ elem=name; } if(_340){ self.updateNodeAttributes(elem,_340); } if(arguments.length<=2){ return elem; }else{ var args=MochiKit.Base.extend([elem],arguments,2); return self.appendChildNodes.apply(this,args); } }; MochiKit.DOM.createDOMFunc=function(){ var m=MochiKit.Base; return m.partial.apply(this,m.extend([MochiKit.DOM.createDOM],arguments)); }; MochiKit.DOM.swapDOM=function(dest,src){ var self=MochiKit.DOM; dest=self.getElement(dest); var _343=dest.parentNode; if(src){ src=self.getElement(src); _343.replaceChild(src,dest); }else{ _343.removeChild(dest); } return src; }; MochiKit.DOM.getElement=function(id){ var self=MochiKit.DOM; if(arguments.length==1){ return ((typeof (id)=="string")?self._document.getElementById(id):id); }else{ return MochiKit.Base.map(self.getElement,arguments); } }; MochiKit.DOM.computedStyle=function(_345,_346,_347){ if(arguments.length==2){ _347=_346; } var self=MochiKit.DOM; var el=self.getElement(_345); var _349=self._document; if(!el||el==_349){ return undefined; } if(el.currentStyle){ return el.currentStyle[_346]; } if(typeof (_349.defaultView)=="undefined"){ return undefined; } if(_349.defaultView==null){ return undefined; } var _350=_349.defaultView.getComputedStyle(el,null); if(typeof (_350)=="undefined"||_350==null){ return undefined; } return _350.getPropertyValue(_347); }; MochiKit.DOM.getElementsByTagAndClassName=function(_351,_352,_353){ var self=MochiKit.DOM; if(typeof (_351)=="undefined"||_351==null){ _351="*"; } if(typeof (_353)=="undefined"||_353==null){ _353=self._document; } _353=self.getElement(_353); var _354=_353.getElementsByTagName(_351)||self._document.all; if(typeof (_352)=="undefined"||_352==null){ return MochiKit.Base.extend(null,_354); 0002000007F70000F2D37F1, } var _355=[]; for(var i=0;i<_354.length;i++){ var _356=_354[i]; var _357=_356.className.split(" "); for(var j=0;j<_357.length;j++){ if(_357[j]==_352){ _355.push(_356); break; } } } return _355; }; MochiKit.DOM._newCallStack=function(path,once){ var rval=function(){ var _360=arguments.callee.callStack; for(var i=0;i<_360.length;i++){ if(_360[i].apply(this,arguments)===false){ break; } } if(once){ try{ this[path]=null; } catch(e){ } } }; rval.callStack=[]; return rval; }; MochiKit.DOM.addToCallStack=function(_361,path,func,once){ var self=MochiKit.DOM; var _362=_361[path]; var _363=_362; if(!(typeof (_362)=="function"&&typeof (_362.callStack)=="object"&&_362.callStack!=null)){ _363=self._newCallStack(path,once); if(typeof (_362)=="function"){ _363.callStack.push(_362); } _361[path]=_363; } _363.callStack.push(func); }; MochiKit.DOM.addLoadEvent=function(func){ var self=MochiKit.DOM; self.addToCallStack(self._window,"onload",func,true); }; MochiKit.DOM.focusOnLoad=function(_364){ var self=MochiKit.DOM; self.addLoadEvent(function(){ _364=self.getElement(_364); if(_364){ _364.focus(); } }); }; MochiKit.DOM.setElementClass=function(_365,_366){ var self=MochiKit.DOM; var obj=self.getElement(_365); if(self.attributeArray.compliant){ obj.setAttribute("class",_366); }else{ obj.setAttribute("className",_366); } }; MochiKit.DOM.toggleElementClass=function(_367){ var self=MochiKit.DOM; for(var i=1;i/g,">"); }; MochiKit.DOM.toHTML=function(dom){ return MochiKit.DOM.emitHTML(dom).join(""); }; MochiKit.DOM.emitHTML=function(dom,lst){ if(typeof (lst)=="undefined"||lst==null){ lst=[]; } var _383=[dom]; var self=MochiKit.DOM; var _384=self.escapeHTML; var _385=self.attributeArray; while(_383.length){ dom=_383.pop(); if(typeof (dom)=="string"){ lst.push(dom); }else{ if(dom.nodeType==1){ lst.push("<"+dom.nodeName.toLowerCase()); var _386=[]; var _387=_385(dom); for(var i=0;i<_387.length;i++){ var a=_387[i]; _386.push([" ",a.name,"=\"",_384(a.value),"\""]); } _386.sort(); for(i=0;i<_386.length;i++){ var _388=_386[i]; for(var j=0;j<_388.length;j++){ lst.push(_388[j]); } } if(dom.hasChildNodes()){ lst.push(">"); _383.push(""); var _389=dom.childNodes; for(i=_389.length-1;i>=0;i--){ _383.push(_389[i]); } }else{ lst.push("/>"); } }else{ if(dom.nodeType==3){ lst.push(_384(dom.nodeValue)); 00020000080F000102D5809, } } } } return lst; }; MochiKit.DOM.setDisplayForElement=function(_390,_391){ var m=MochiKit.Base; var _392=m.extend(null,arguments,1); MochiKit.Iter.forEach(m.filter(null,m.map(MochiKit.DOM.getElement,_392)),function(_391){ _391.style.display=_390; }); }; MochiKit.DOM.scrapeText=function(node,_393){ var rval=[]; (function(node){ var cn=node.childNodes; if(cn){ for(var i=0;i0){ var _398=m.filter; _397=function(node){ return _398(_397.ignoreAttrFilter,node.attributes); }; _397.ignoreAttr={}; MochiKit.Iter.forEach(_396.attributes,function(a){ _397.ignoreAttr[a.name]=a.value; }); _397.ignoreAttrFilter=function(a){ return (_397.ignoreAttr[a.name]!=a.value); }; _397.compliant=false; _397.renames={"class":"className","checked":"defaultChecked","usemap":"useMap","for":"htmlFor"}; }else{ _397=function(node){ return node.attributes; }; _397.compliant=true; _397.renames={}; } this.attributeArray=_397; var _399=this.createDOMFunc; this.UL=_399("ul"); this.OL=_399("ol"); this.LI=_399("li"); this.TD=_399("td"); this.TR=_399("tr"); this.TBODY=_399("tbody"); this.THEAD=_399("thead"); this.TFOOT=_399("tfoot"); this.TABLE=_399("table"); this.TH=_399("th"); this.INPUT=_399("input"); this.SPAN=_399("span"); this.A=_399("a"); this.DIV=_399("div"); this.IMG=_399("img"); this.BUTTON=_399("button"); this.TT=_399("tt"); this.PRE=_399("pre"); this.H1=_399("h1"); this.H2=_399("h2"); this.H3=_399("h3"); this.BR=_399("br"); this.HR=_399("hr"); this.LABEL=_399("label"); this.TEXTAREA=_399("textarea"); 0002000007F600010ADE7F0, this.FORM=_399("form"); this.P=_399("p"); this.SELECT=_399("select"); this.OPTION=_399("option"); this.OPTGROUP=_399("optgroup"); this.LEGEND=_399("legend"); this.FIELDSET=_399("fieldset"); this.STRONG=_399("strong"); this.CANVAS=_399("canvas"); this.hideElement=m.partial(this.setDisplayForElement,"none"); this.showElement=m.partial(this.setDisplayForElement,"block"); this.removeElement=this.swapDOM; this.$=this.getElement; this.EXPORT_TAGS={":common":this.EXPORT,":all":m.concat(this.EXPORT,this.EXPORT_OK)}; m.nameFunctions(this); }; MochiKit.DOM.__new__(this); MochiKit.Base._exportSymbols(this,MochiKit.DOM); if(typeof (dojo)!="undefined"){ dojo.provide("MochiKit.LoggingPane"); dojo.require("MochiKit.Logging"); dojo.require("MochiKit.Base"); } if(typeof (JSAN)!="undefined"){ JSAN.use("MochiKit.Logging",[]); JSAN.use("MochiKit.Base",[]); } try{ if(typeof (MochiKit.Base)=="undefined"||typeof (MochiKit.Logging)=="undefined"){ throw ""; } } catch(e){ throw "MochiKit.LoggingPane depends on MochiKit.Base and MochiKit.Logging!"; } if(typeof (MochiKit.LoggingPane)=="undefined"){ MochiKit.LoggingPane={}; } MochiKit.LoggingPane.NAME="MochiKit.LoggingPane"; MochiKit.LoggingPane.VERSION="1.2"; MochiKit.LoggingPane.__repr__=function(){ return "["+this.NAME+" "+this.VERSION+"]"; }; MochiKit.LoggingPane.toString=function(){ return this.__repr__(); }; MochiKit.LoggingPane.createLoggingPane=function(_400){ var m=MochiKit.LoggingPane; _400=!(!_400); if(m._loggingPane&&m._loggingPane.inline!=_400){ m._loggingPane.closePane(); m._loggingPane=null; } if(!m._loggingPane||m._loggingPane.closed){ m._loggingPane=new m.LoggingPane(_400,MochiKit.Logging.logger); } return m._loggingPane; }; MochiKit.LoggingPane.LoggingPane=function(_401,_402){ if(typeof (_402)=="undefined"||_402==null){ _402=MochiKit.Logging.logger; } this.logger=_402; var _403=MochiKit.Base.update; var _404=MochiKit.Base.updatetree; var bind=MochiKit.Base.bind; var _405=MochiKit.Base.clone; 000200000831000112CE82B, var win=window; var uid="_MochiKit_LoggingPane"; if(typeof (MochiKit.DOM)!="undefined"){ win=MochiKit.DOM.currentWindow(); } if(!_401){ var url=win.location.href.split("?")[0].replace(/[:\/.><&]/g,"_"); var name=uid+"_"+url; var nwin=win.open("",name,"dependent,resizable,height=200"); if(!nwin){ alert("Not able to open debugging window due to pop-up blocking."); return undefined; } nwin.document.write(""+"[MochiKit.LoggingPane]"+""); nwin.document.close(); nwin.document.title+=" "+win.document.title; win=nwin; } var doc=win.document; this.doc=doc; var _408=doc.getElementById(uid); var _409=!!_408; if(_408&&typeof (_408.loggingPane)!="undefined"){ _408.loggingPane.logger=this.logger; _408.loggingPane.buildAndApplyFilter(); return _408.loggingPane; } if(_409){ var _410; while((_410=_408.firstChild)){ _408.removeChild(_410); } }else{ _408=doc.createElement("div"); _408.id=uid; } _408.loggingPane=this; var _411=doc.createElement("input"); var _412=doc.createElement("input"); var _413=doc.createElement("button"); var _414=doc.createElement("button"); var _415=doc.createElement("button"); var _416=doc.createElement("button"); var _417=doc.createElement("div"); var _418=doc.createElement("div"); var _419=uid+"_Listener"; this.colorTable=_405(this.colorTable); var _420=[]; var _421=null; var _422=function(msg){ var _423=msg.level; if(typeof (_423)=="number"){ _423=MochiKit.Logging.LogLevel[_423]; } return _423; }; var _424=function(msg){ return msg.info.join(" "); }; var _425=bind(function(msg){ var _426=_422(msg); var text=_424(msg); var c=this.colorTable[_426]; var p=doc.createElement("span"); p.className="MochiKit-LogMessage MochiKit-LogLevel-"+_426; p.style.cssText="margin: 0px; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word; wrap-option: emergency; color: "+c; 00020000081100011AF980B, p.appendChild(doc.createTextNode(_426+": "+text)); _418.appendChild(p); _418.appendChild(doc.createElement("br")); if(_417.offsetHeight>_417.scrollHeight){ _417.scrollTop=0; }else{ _417.scrollTop=_417.scrollHeight; } },this); var _429=function(msg){ _420[_420.length]=msg; _425(msg); }; var _430=function(){ var _431,infore; try{ _431=new RegExp(_411.value); infore=new RegExp(_412.value); } catch(e){ logDebug("Error in filter regex: "+e.message); return null; } return function(msg){ return (_431.test(_422(msg))&&infore.test(_424(msg))); }; }; var _432=function(){ while(_418.firstChild){ _418.removeChild(_418.firstChild); } }; var _433=function(){ _420=[]; _432(); }; var _434=bind(function(){ if(this.closed){ return; } this.closed=true; if(MochiKit.LoggingPane._loggingPane==this){ MochiKit.LoggingPane._loggingPane=null; } this.logger.removeListener(_419); _408.loggingPane=null; if(_401){ _408.parentNode.removeChild(_408); }else{ this.win.close(); } },this); var _435=function(){ _432(); for(var i=0;i<_420.length;i++){ var msg=_420[i]; if(_421==null||_421(msg)){ _425(msg); } } }; this.buildAndApplyFilter=function(){ _421=_430(); _435(); this.logger.removeListener(_419); this.logger.addListener(_419,_421,_429); }; var _436=bind(function(){ _420=this.logger.getMessages(); _435(); },this); var _437=bind(function(_438){ _438=_438||window.event; key=_