var Prototype={Version:'1.3.1',emptyFunction:function(){}};if(!Array.prototype.push){Array.prototype.push=function(){var startLength=this.length;for(var i=0;i<arguments.length;i++)this[startLength+i]=arguments[i];return this.length;}};if(!Function.prototype.apply){Function.prototype.apply=function(object,parameters){var parameterStrings=new Array();if(!object)object=window;if(!parameters)parameters=new Array();for(var i=0;i<parameters.length;i++)parameterStrings[i]='parameters['+i+']';object.__apply__=this;var result=eval('object.__apply__('+parameterStrings.join(', ')+')');object.__apply__=null;return result;}};var Class={create:function(){return function(){this.initialize.apply(this,arguments);}}};var Abstract=new Object();Object.extend=function(destination,source){for(property in source){destination[property]=source[property];};return destination;};/*Object.prototype.extend=function(object){return Object.extend.apply(this,[this,object]);};*/Function.prototype.bind=function(object){var __method=this;return function(){return __method.apply(object,arguments);}};Function.prototype.bindAsEventListener=function(object){var __method=this;return function(event){return __method.call(object,event||window.event);}};Number.prototype.toColorPart=function(){var digits=this.toString(16);if(this<16)return '0'+digits;return digits;};var Try={these:function(){var returnValue;for(var i=0;i<arguments.length;i++){var lambda=arguments[i];try{returnValue=lambda();break;}catch(e){}}return returnValue;}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(callback,frequency){this.callback=callback;this.frequency=frequency;this.currentlyExecuting=false;this.registerCallback();},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback();}finally{this.currentlyExecuting=false;}}}};function $(){var elements=new Array();for(var i=0;i<arguments.length;i++){var element=arguments[i];if(typeof element=='string')element=document.getElementById(element);if(arguments.length==1)return element;elements.push(element);}return elements;}function isElement(o,strict){return o&&isObject(o)&&((!strict&&(o==window||o==document))||o.nodeType==1)}function $(n,d){if(isElement(n))return n;if(isString(n)==false)return null;var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=DOM.find(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}Object.extend(String.prototype,{pad:function(side,len,chr){if(!chr)chr=' ';var s=this;var left=side.toLowerCase()=='left';while(s.length<len)s=left?chr+s:s+chr;return s;},padLeft:function(len,chr){return this.pad('left',len,chr);},padRight:function(len,chr){return this.pad('right',len,chr);},zerofill:function(len){var s=this;var ix=/^[+-]/.test(s)?1:0;while(s.length<len)s=s.insert(ix,'0');return s;},trim:function(){return this.replace(/^\s+|\s+$/g,'');},trimLeft:function(){return this.replace(/^\s+/,'');},trimRight:function(){return this.replace(/\s+$/,'');}});function isAlien(a){return isObject(a)&&typeof a.constructor !='function'}function isArray(a){return isObject(a)&&a.constructor==Array}function isBoolean(a){return typeof a=='boolean'}function isFunction(a){return typeof a=='function'}function isNull(a){return typeof a=='object'&&!a}function isNumber(a){return typeof a=='number'&&isFinite(a)}function isObject(a){return(a&&typeof a=='object')||isFunction(a)}function isRegexp(a){return a&&a.constructor==RegExp}function isString(a){return typeof a=='string'}function isUndefined(a){return typeof a=='undefined'}function isEmpty(o){var i,v;if(isObject(o)){for(i in o){v=o[i];if(isUndefined(v)&&isFunction(v)){return false;}}}return true;}function undef(v){return isUndefined(v)}function isdef(v){return !isUndefined(v)}function isElement(o,strict){return o&&isObject(o)&&((!strict&&(o==window||o==document))||o.nodeType==1)}function isList(o){return o&&isObject(o)&&(isArray(o)||o.item)}Object.extend(Array,{indexOf:function(list,value,start,strict){start=start||0;for(var i=start;i<list.length;i++){var item=list[i];if(strict?item===value:isRegexp(value)?value.test(item):isFunction(value)?value(item):item==value)return i;}return -1;},find:function(list,value,start,strict){var i=Array.indexOf(list,value,start,strict);if(i!=-1)return list[i];return null;},contains:function(list,value,strict){return Array.indexOf(list,value,0,strict)!==-1;},count:function(list,value,strict){var pos,start=0,count=0;while((pos=Array.indexOf(list,value,start,strict))!==-1){start=pos+1;count++;}return count;},remove:function(list,value,all,strict){while(Array.contains(list,value,strict)){list.splice(Array.indexOf(list,value,0,strict),1);if(!all)break;}return list;}});function __strfn(args,fn){function quote(s){return '"'+s.replace(/"/g,'\\"')+'"'}if(!/\breturn\b/.test(fn)){fn=fn.replace(/;\s*$/,'');fn=fn.insert(fn.lastIndexOf(';')+1,' return ');}return eval('new Function('+map(args.split(/\s*,\s*/),quote).join()+','+quote(fn)+')');}function each(list,fn){if(typeof(fn)=='string')return each(list,__strfn('item,idx,list',fn));for(var i=0;i<list.length;i++)fn(list[i],i,list);}function map(list,fn){if(typeof(fn)=='string')return map(list,__strfn('item,idx,list',fn));var result=[];fn=fn||function(v){return v};for(var i=0;i<list.length;i++)result.push(fn(list[i],i,list));return result;};var Prado={Version:2.0};

