/* jslint immed:false */ LowPro = {}; LowPro.Version = '0.5'; LowPro.CompatibleWithPrototype = '1.6'; if ( Prototype.Version.indexOf(LowPro.CompatibleWithPrototype) !== 0 && window.console && window.console.warn) { console.warn("This version of Low Pro is tested with Prototype " + LowPro.CompatibleWithPrototype + " it may not work as expected with this version (" + Prototype.Version + ")"); } if (!Element.addMethods) { Element.addMethods = function(o) { Object.extend(Element.Methods, o); }; } // Simple utility methods for working with the DOM DOM = {}; // DOMBuilder for prototype DOM.Builder = { tagFunc : function(tag) { return function() { var attrs, children; if (arguments.length>0) { if (arguments[0].constructor == Object) { attrs = arguments[0]; children = Array.prototype.slice.call(arguments, 1); } else { children = arguments; } children = $A(children).flatten(); } return DOM.Builder.create(tag, attrs, children); }; }, create : function(tag, attrs, children) { tag = tag.toLowerCase(); attrs = attrs || {}; children = children || []; var el = new Element(tag, attrs); for (var i=0; i