Protoload={timeUntilShow:250,opacity:0.8,startWaiting:function(a,b,d){if(typeof a=="string"){a=$(a)}if(b==undefined){b="waiting"}if(d==undefined){d=Protoload.timeUntilShow}a._waiting=true;if(!a._loading){var c=document.createElement("div");(a.offsetParent||document.body).appendChild(a._loading=c);c.style.position="absolute";try{c.style.opacity=Protoload.opacity}catch(c){}try{c.style.MozOpacity=Protoload.opacity}catch(c){}try{c.style.filter="alpha(opacity="+Math.round(Protoload.opacity*100)+")"}catch(c){}try{c.style.KhtmlOpacity=Protoload.opacity}catch(c){}}a._loading.className=b;window.setTimeout((function(){if(this._waiting){var i=this.offsetLeft,h=this.offsetTop,g=this.offsetWidth,e=this.offsetHeight,f=this._loading;f.style.left=i+"px";f.style.top=h+"px";f.style.width=g+"px";f.style.height=e+"px";f.style.display="inline"}}).bind(a),d)},stopWaiting:function(a){if(a._waiting){a._waiting=false;a._loading.parentNode.removeChild(a._loading);a._loading=null}}};Object.extend(Array.prototype,{autoHeight:function(){var a=0;this.each(function(b){$(b).setStyle({height:a+"px"})}.bind(this.each(function(c){var b=parseInt($(c).getStyle("height"),10);a=b>a?b:a})))},curve:function(){var a=e2=e3=e4=null;this.each(function(b){a=document.createElement("span");$(a).addClassName("tl");e2=document.createElement("span");$(e2).addClassName("tr");e3=document.createElement("span");$(e3).addClassName("bl");e4=document.createElement("span");$(e4).addClassName("br");b.appendChild(a);b.appendChild(e2);b.appendChild(e3);b.appendChild(e4)})},_merge:function(b){for(var a=0;a<b.length;a++){if(this[a].indexOf(b[a][0])==-1){this.push(b[a])}}}});Form.Methods.check=function(c,b){var d=true;($(c).getElements().each(function(a){if(!a.value&a.type!="hidden"&a.type!="button"&a.type!="submit"){d=false}}));return d?d:(alert(b),false)};var userAgent=navigator.userAgent.toLowerCase();Prototype.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};Element.addMethods();Element.addMethods(Protoload);Object.extend(Element,Protoload);
