var Prototype={Version:"1.6.1",Browser:(function(){var c=navigator.userAgent;var d=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!d,Opera:d,WebKit:c.indexOf("AppleWebKit/")>-1,Gecko:c.indexOf("Gecko")>-1&&c.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(c)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var b=window.Element||window.HTMLElement;return !!(b&&b.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var f=document.createElement("div");var d=document.createElement("form");var e=false;if(f.__proto__&&(f.__proto__!==d.__proto__)){e=true}f=d=null;return e})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(b){return b}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};
var Try={these:function(){var e;for(var k=0,g=arguments.length;k<g;k++){var j=arguments[k];try{e=j();break}catch(h){}}return e}};var Class=(function(){function f(){}function d(){var c=null,b=$A(arguments);if(Object.isFunction(b[0])){c=b.shift()}function h(){this.initialize.apply(this,arguments)}Object.extend(h,Class.Methods);h.superclass=c;h.subclasses=[];if(c){f.prototype=c.prototype;h.prototype=new f;c.subclasses.push(h)}for(var a=0;a<b.length;a++){h.addMethods(b[a])}if(!h.prototype.initialize){h.prototype.initialize=Prototype.emptyFunction}h.prototype.constructor=h;return h}function e(p){var m=this.superclass&&this.superclass.prototype;var n=Object.keys(p);if(!Object.keys({toString:true}).length){if(p.toString!=Object.prototype.toString){n.push("toString")}if(p.valueOf!=Object.prototype.valueOf){n.push("valueOf")}}for(var c=0,o=n.length;c<o;c++){var q=n[c],b=p[q];if(m&&Object.isFunction(b)&&b.argumentNames().first()=="$super"){var a=b;b=(function(g){return function(){return m[g].apply(this,arguments)}})(q).wrap(a);
b.valueOf=a.valueOf.bind(a);b.toString=a.toString.bind(a)}this.prototype[q]=b}return this}return{create:d,Methods:{addMethods:e}}})();(function(){var C=Object.prototype.toString;function G(a,b){for(var c in b){a[c]=b[c]}return a}function s(b){try{if(E(b)){return"undefined"}if(b===null){return"null"}return b.inspect?b.inspect():String(b)}catch(a){if(a instanceof RangeError){return"..."}throw a}}function q(c){var b=typeof c;switch(b){case"undefined":case"function":case"unknown":return;case"boolean":return c.toString()}if(c===null){return"null"}if(c.toJSON){return c.toJSON()}if(y(c)){return}var d=[];for(var e in c){var a=q(c[e]);if(!E(a)){d.push(e.toJSON()+": "+a)}}return"{"+d.join(", ")+"}"}function A(a){return $H(a).toQueryString()}function D(a){return a&&a.toHTML?a.toHTML():String.interpret(a)}function r(a){var b=[];for(var c in a){b.push(c)}return b}function t(a){var b=[];for(var c in a){b.push(a[c])}return b}function x(a){return G({},a)}function y(a){return !!(a&&a.nodeType==1)}function B(a){return C.call(a)=="[object Array]"
}function w(a){return a instanceof Hash}function F(a){return typeof a==="function"}function z(a){return C.call(a)=="[object String]"}function v(a){return C.call(a)=="[object Number]"}function E(a){return typeof a==="undefined"}G(Object,{extend:G,inspect:s,toJSON:q,toQueryString:A,toHTML:D,keys:r,values:t,clone:x,isElement:y,isArray:B,isHash:w,isFunction:F,isString:z,isNumber:v,isUndefined:E})})();Object.extend(Function.prototype,(function(){var l=Array.prototype.slice;function s(c,a){var d=c.length,b=a.length;while(b--){c[d+b]=a[b]}return c}function m(a,b){a=l.call(a,0);return s(a,b)}function t(){var a=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,"").replace(/\s+/g,"").split(",");return a.length==1&&!a[0]?[]:a}function o(a){if(arguments.length<2&&Object.isUndefined(arguments[0])){return this}var c=this,b=l.call(arguments,1);return function(){var d=m(b,arguments);return c.apply(a,d)}}function q(a){var c=this,b=l.call(arguments,1);return function(d){var e=s([d||window.event],b);
return c.apply(a,e)}}function n(){if(!arguments.length){return this}var a=this,b=l.call(arguments,0);return function(){var c=m(b,arguments);return a.apply(this,c)}}function r(b){var c=this,a=l.call(arguments,1);b=b*1000;return window.setTimeout(function(){return c.apply(c,a)},b)}function w(){var a=s([0.01],arguments);return this.delay.apply(this,a)}function v(a){var b=this;return function(){var c=s([b.bind(this)],arguments);return a.apply(this,c)}}function p(){if(this._methodized){return this._methodized}var a=this;return this._methodized=function(){var b=s([this],arguments);return a.apply(null,b)}}return{argumentNames:t,bind:o,bindAsEventListener:q,curry:n,delay:r,defer:w,wrap:v,methodize:p}})());Date.prototype.toJSON=function(){return'"'+this.getUTCFullYear()+"-"+(this.getUTCMonth()+1).toPaddedString(2)+"-"+this.getUTCDate().toPaddedString(2)+"T"+this.getUTCHours().toPaddedString(2)+":"+this.getUTCMinutes().toPaddedString(2)+":"+this.getUTCSeconds().toPaddedString(2)+'Z"'};RegExp.prototype.match=RegExp.prototype.test;
RegExp.escape=function(b){return String(b).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var PeriodicalExecuter=Class.create({initialize:function(d,c){this.callback=d;this.frequency=c;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},execute:function(){this.callback(this)},stop:function(){if(!this.timer){return}clearInterval(this.timer);this.timer=null},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.execute();this.currentlyExecuting=false}catch(b){this.currentlyExecuting=false;throw b}}}});Object.extend(String,{interpret:function(b){return b==null?"":String(b)},specialChar:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\\":"\\\\"}});Object.extend(String.prototype,(function(){function prepareReplacement(replacement){if(Object.isFunction(replacement)){return replacement}var template=new Template(replacement);return function(match){return template.evaluate(match)
}}function gsub(pattern,replacement){var result="",source=this,match;replacement=prepareReplacement(replacement);if(Object.isString(pattern)){pattern=RegExp.escape(pattern)}if(!(pattern.length||pattern.source)){replacement=replacement("");return replacement+source.split("").join(replacement)+replacement}while(source.length>0){if(match=source.match(pattern)){result+=source.slice(0,match.index);result+=String.interpret(replacement(match));source=source.slice(match.index+match[0].length)}else{result+=source,source=""}}return result}function sub(pattern,replacement,count){replacement=prepareReplacement(replacement);count=Object.isUndefined(count)?1:count;return this.gsub(pattern,function(match){if(--count<0){return match[0]}return replacement(match)})}function scan(pattern,iterator){this.gsub(pattern,iterator);return String(this)}function truncate(length,truncation){length=length||30;truncation=Object.isUndefined(truncation)?"...":truncation;return this.length>length?this.slice(0,length-truncation.length)+truncation:String(this)
}function strip(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}function stripTags(){return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")}function stripScripts(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")}function extractScripts(){var matchAll=new RegExp(Prototype.ScriptFragment,"img");var matchOne=new RegExp(Prototype.ScriptFragment,"im");return(this.match(matchAll)||[]).map(function(scriptTag){return(scriptTag.match(matchOne)||["",""])[1]})}function evalScripts(){return this.extractScripts().map(function(script){return eval(script)})}function escapeHTML(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function unescapeHTML(){return this.stripTags().replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}function toQueryParams(separator){var match=this.strip().match(/([^?#]*)(#.*)?$/);if(!match){return{}}return match[1].split(separator||"&").inject({},function(hash,pair){if((pair=pair.split("="))[0]){var key=decodeURIComponent(pair.shift());
var value=pair.length>1?pair.join("="):pair[0];if(value!=undefined){value=decodeURIComponent(value)}if(key in hash){if(!Object.isArray(hash[key])){hash[key]=[hash[key]]}hash[key].push(value)}else{hash[key]=value}}return hash})}function toArray(){return this.split("")}function succ(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)}function times(count){return count<1?"":new Array(count+1).join(this)}function camelize(){var parts=this.split("-"),len=parts.length;if(len==1){return parts[0]}var camelized=this.charAt(0)=="-"?parts[0].charAt(0).toUpperCase()+parts[0].substring(1):parts[0];for(var i=1;i<len;i++){camelized+=parts[i].charAt(0).toUpperCase()+parts[i].substring(1)}return camelized}function capitalize(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()}function underscore(){return this.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/-/g,"_").toLowerCase()}function dasherize(){return this.replace(/_/g,"-")
}function inspect(useDoubleQuotes){var escapedString=this.replace(/[\x00-\x1f\\]/g,function(character){if(character in String.specialChar){return String.specialChar[character]}return"\\u00"+character.charCodeAt().toPaddedString(2,16)});if(useDoubleQuotes){return'"'+escapedString.replace(/"/g,'\\"')+'"'}return"'"+escapedString.replace(/'/g,"\\'")+"'"}function toJSON(){return this.inspect(true)}function unfilterJSON(filter){return this.replace(filter||Prototype.JSONFilter,"$1")}function isJSON(){var str=this;if(str.blank()){return false}str=this.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"");return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str)}function evalJSON(sanitize){var json=this.unfilterJSON();try{if(!sanitize||json.isJSON()){return eval("("+json+")")}}catch(e){}throw new SyntaxError("Badly formed JSON string: "+this.inspect())}function include(pattern){return this.indexOf(pattern)>-1}function startsWith(pattern){return this.indexOf(pattern)===0}function endsWith(pattern){var d=this.length-pattern.length;
return d>=0&&this.lastIndexOf(pattern)===d}function empty(){return this==""}function blank(){return/^\s*$/.test(this)}function interpolate(object,pattern){return new Template(this,pattern).evaluate(object)}return{gsub:gsub,sub:sub,scan:scan,truncate:truncate,strip:String.prototype.trim?String.prototype.trim:strip,stripTags:stripTags,stripScripts:stripScripts,extractScripts:extractScripts,evalScripts:evalScripts,escapeHTML:escapeHTML,unescapeHTML:unescapeHTML,toQueryParams:toQueryParams,parseQuery:toQueryParams,toArray:toArray,succ:succ,times:times,camelize:camelize,capitalize:capitalize,underscore:underscore,dasherize:dasherize,inspect:inspect,toJSON:toJSON,unfilterJSON:unfilterJSON,isJSON:isJSON,evalJSON:evalJSON,include:include,startsWith:startsWith,endsWith:endsWith,empty:empty,blank:blank,interpolate:interpolate}})());var Template=Class.create({initialize:function(c,d){this.template=c.toString();this.pattern=d||Template.Pattern},evaluate:function(b){if(b&&Object.isFunction(b.toTemplateReplacements)){b=b.toTemplateReplacements()
}return this.template.gsub(this.pattern,function(j){if(b==null){return(j[1]+"")}var m=j[1]||"";if(m=="\\"){return j[2]}var l=b,h=j[3];var a=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;j=a.exec(h);if(j==null){return m}while(j!=null){var k=j[1].startsWith("[")?j[2].replace(/\\\\]/g,"]"):j[1];l=l[k];if(null==l||""==j[3]){break}h=h.substring("["==j[3]?j[1].length:j[0].length);j=a.exec(h)}return m+String.interpret(l)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;var $break={};var Enumerable=(function(){function O(d,a){var b=0;try{this._each(function(e){d.call(a,e,b++)})}catch(c){if(c!=$break){throw c}}return this}function D(c,d,f){var b=-c,a=[],e=this.toArray();if(c<1){return e}while((b+=c)<e.length){a.push(e.slice(b,b+c))}return a.collect(d,f)}function P(a,b){a=a||Prototype.K;var c=true;this.each(function(d,e){c=c&&!!a.call(b,d,e);if(!c){throw $break}});return c}function J(a,b){a=a||Prototype.K;var c=false;this.each(function(d,e){if(c=!!a.call(b,d,e)){throw $break}});return c}function I(c,a){c=c||Prototype.K;var b=[];
this.each(function(d,e){b.push(c.call(a,d,e))});return b}function F(a,b){var c;this.each(function(d,e){if(a.call(b,d,e)){c=d;throw $break}});return c}function Q(c,a){var b=[];this.each(function(d,e){if(c.call(a,d,e)){b.push(d)}});return b}function K(b,c,d){c=c||Prototype.K;var a=[];if(Object.isString(b)){b=new RegExp(RegExp.escape(b))}this.each(function(f,e){if(b.match(f)){a.push(c.call(d,f,e))}});return a}function R(b){if(Object.isFunction(this.indexOf)){if(this.indexOf(b)!=-1){return true}}var a=false;this.each(function(c){if(c==b){a=true;throw $break}});return a}function C(b,a){a=Object.isUndefined(a)?null:a;return this.eachSlice(b,function(c){while(c.length<b){c.push(a)}return c})}function x(b,c,a){this.each(function(d,e){b=c.call(a,b,d,e)});return b}function H(a){var b=$A(arguments).slice(1);return this.map(function(c){return c[a].apply(c,b)})}function B(a,b){a=a||Prototype.K;var c;this.each(function(d,e){d=a.call(b,d,e);if(c==null||d>=c){c=d}});return c}function E(a,b){a=a||Prototype.K;var c;this.each(function(d,e){d=a.call(b,d,e);
if(c==null||d<c){c=d}});return c}function N(c,a){c=c||Prototype.K;var d=[],b=[];this.each(function(f,e){(c.call(a,f,e)?d:b).push(f)});return[d,b]}function M(b){var a=[];this.each(function(c){a.push(c[b])});return a}function L(c,a){var b=[];this.each(function(d,e){if(!c.call(a,d,e)){b.push(d)}});return b}function y(a,b){return this.map(function(c,d){return{value:c,criteria:a.call(b,c,d)}}).sort(function(f,c){var d=f.criteria,e=c.criteria;return d<e?-1:d>e?1:0}).pluck("value")}function A(){return this.map()}function z(){var a=Prototype.K,b=$A(arguments);if(Object.isFunction(b.last())){a=b.pop()}var c=[this].concat(b).map($A);return this.map(function(d,e){return a(c.pluck(e))})}function G(){return this.toArray().length}function w(){return"#<Enumerable:"+this.toArray().inspect()+">"}return{each:O,eachSlice:D,all:P,every:P,any:J,some:J,collect:I,map:I,detect:F,findAll:Q,select:Q,filter:Q,grep:K,include:R,member:R,inGroupsOf:C,inject:x,invoke:H,max:B,min:E,partition:N,pluck:M,reject:L,sortBy:y,toArray:A,entries:A,zip:z,size:G,inspect:w,find:F}
})();function $A(f){if(!f){return[]}if("toArray" in Object(f)){return f.toArray()}var e=f.length||0,d=new Array(e);while(e--){d[e]=f[e]}return d}function $w(b){if(!Object.isString(b)){return[]}b=b.strip();return b?b.split(/\s+/):[]}Array.from=$A;(function(){var D=Array.prototype,A=D.slice,y=D.forEach;function O(a){for(var b=0,c=this.length;b<c;b++){a(this[b])}}if(!y){y=O}function C(){this.length=0;return this}function M(){return this[0]}function J(){return this[this.length-1]}function G(){return this.select(function(a){return a!=null})}function H(){return this.inject([],function(a,b){if(Object.isArray(b)){return a.concat(b.flatten())}a.push(b);return a})}function I(){var a=A.call(arguments,0);return this.select(function(b){return !a.include(b)})}function K(a){return(a!==false?this:this.toArray())._reverse()}function E(a){return this.inject([],function(d,b,c){if(0==c||(a?d.last()!=b:!d.include(b))){d.push(b)}return d})}function x(a){return this.uniq().findAll(function(b){return a.detect(function(c){return b===c
})})}function w(){return A.call(this,0)}function F(){return this.length}function v(){return"["+this.map(Object.inspect).join(", ")+"]"}function B(){var a=[];this.each(function(c){var b=Object.toJSON(c);if(!Object.isUndefined(b)){a.push(b)}});return"["+a.join(", ")+"]"}function P(a,b){b||(b=0);var c=this.length;if(b<0){b=c+b}for(;b<c;b++){if(this[b]===a){return b}}return -1}function z(b,c){c=isNaN(c)?this.length:(c<0?this.length+c:c)+1;var a=this.slice(0,c).reverse().indexOf(b);return(a<0)?a:c-a-1}function N(){var b=A.call(this,0),f;for(var a=0,d=arguments.length;a<d;a++){f=arguments[a];if(Object.isArray(f)&&!("callee" in f)){for(var c=0,e=f.length;c<e;c++){b.push(f[c])}}else{b.push(f)}}return b}Object.extend(D,Enumerable);if(!D._reverse){D._reverse=D.reverse}Object.extend(D,{_each:y,clear:C,first:M,last:J,compact:G,flatten:H,without:I,reverse:K,uniq:E,intersect:x,clone:w,toArray:w,size:F,inspect:v,toJSON:B});var L=(function(){return[].concat(arguments)[0][0]!==1})(1,2);if(L){D.concat=N}if(!D.indexOf){D.indexOf=P
}if(!D.lastIndexOf){D.lastIndexOf=z}})();function $H(b){return new Hash(b)}var Hash=Class.create(Enumerable,(function(){function D(a){this._object=Object.isHash(a)?a.toObject():Object.clone(a)}function C(c){for(var d in this._object){var b=this._object[d],a=[d,b];a.key=d;a.value=b;c(a)}}function w(b,a){return this._object[b]=a}function F(a){if(this._object[a]!==Object.prototype[a]){return this._object[a]}}function q(b){var a=this._object[b];delete this._object[b];return a}function x(){return Object.clone(this._object)}function r(){return this.pluck("key")}function t(){return this.pluck("value")}function A(a){var b=this.detect(function(c){return c.value===a});return b&&b.key}function y(a){return this.clone().update(a)}function E(a){return new Hash(a).inject(this,function(c,b){c.set(b.key,b.value);return c})}function G(b,a){if(Object.isUndefined(a)){return b}return b+"="+encodeURIComponent(String.interpret(a))}function B(){return this.inject([],function(c,a){var d=encodeURIComponent(a.key),b=a.value;if(b&&typeof b=="object"){if(Object.isArray(b)){return c.concat(b.map(G.curry(d)))
}}else{c.push(G(d,b))}return c}).join("&")}function v(){return"#<Hash:{"+this.map(function(a){return a.map(Object.inspect).join(": ")}).join(", ")+"}>"}function s(){return Object.toJSON(this.toObject())}function z(){return new Hash(this)}return{initialize:D,_each:C,set:w,get:F,unset:q,toObject:x,toTemplateReplacements:x,keys:r,values:t,index:A,merge:y,update:E,toQueryString:B,inspect:v,toJSON:s,clone:z}})());Hash.from=$H;Object.extend(Number.prototype,(function(){function o(){return this.toPaddedString(2,16)}function n(){return this+1}function r(a,b){$R(0,this,true).each(a,b);return this}function q(c,a){var b=this.toString(a||10);return"0".times(c-b.length)+b}function k(){return isFinite(this)?this.toString():"null"}function j(){return Math.abs(this)}function l(){return Math.round(this)}function m(){return Math.ceil(this)}function p(){return Math.floor(this)}return{toColorPart:o,succ:n,times:r,toPaddedString:q,toJSON:k,abs:j,round:l,ceil:m,floor:p}})());function $R(f,e,d){return new ObjectRange(f,e,d)}var ObjectRange=Class.create(Enumerable,(function(){function d(a,c,b){this.start=a;
this.end=c;this.exclusive=b}function f(b){var a=this.start;while(this.include(a)){b(a);a=a.succ()}}function e(a){if(a<this.start){return false}if(this.exclusive){return a<this.end}return a<=this.end}return{initialize:d,_each:f,include:e}})());var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(b){this.responders._each(b)},register:function(b){if(!this.include(b)){this.responders.push(b)}},unregister:function(b){this.responders=this.responders.without(b)},dispatch:function(h,e,g,f){this.each(function(b){if(Object.isFunction(b[h])){try{b[h].apply(b,[e,g,f])}catch(a){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=Class.create({initialize:function(b){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",evalJSON:true,evalJS:true};
Object.extend(this.options,b||{});this.options.method=this.options.method.toLowerCase();if(Object.isString(this.options.parameters)){this.options.parameters=this.options.parameters.toQueryParams()}else{if(Object.isHash(this.options.parameters)){this.options.parameters=this.options.parameters.toObject()}}}});Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,d,c){$super(c);this.transport=Ajax.getTransport();this.request(d)},request:function(f){this.url=f;this.method=this.options.method;var g=Object.clone(this.options.parameters);if(!["get","post"].include(this.method)){g._method=this.method;this.method="post"}this.parameters=g;if(g=Object.toQueryString(g)){if(this.method=="get"){this.url+=(this.url.include("?")?"&":"?")+g}else{if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){g+="&_="}}}try{var e=new Ajax.Response(this);if(this.options.onCreate){this.options.onCreate(e)}Ajax.Responders.dispatch("onCreate",this,e);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);
if(this.options.asynchronous){this.respondToReadyState.bind(this).defer(1)}this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();this.body=this.method=="post"?(this.options.postBody||g):null;this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()}}catch(h){this.dispatchException(h)}},onStateChange:function(){var b=this.transport.readyState;if(b>1&&!((b==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)}},setRequestHeaders:function(){var h={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){h["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){h.Connection="close"}}if(typeof this.options.requestHeaders=="object"){var f=this.options.requestHeaders;
if(Object.isFunction(f.push)){for(var j=0,g=f.length;j<g;j+=2){h[f[j]]=f[j+1]}}else{$H(f).each(function(a){h[a.key]=a.value})}}for(var k in h){this.transport.setRequestHeader(k,h[k])}},success:function(){var b=this.getStatus();return !b||(b>=200&&b<300)},getStatus:function(){try{return this.transport.status||0}catch(b){return 0}},respondToReadyState:function(g){var k=Ajax.Request.Events[g],e=new Ajax.Response(this);if(k=="Complete"){try{this._complete=true;(this.options["on"+e.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(e,e.headerJSON)}catch(h){this.dispatchException(h)}var j=e.getHeader("Content-type");if(this.options.evalJS=="force"||(this.options.evalJS&&this.isSameOrigin()&&j&&j.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))){this.evalResponse()}}try{(this.options["on"+k]||Prototype.emptyFunction)(e,e.headerJSON);Ajax.Responders.dispatch("on"+k,this,e,e.headerJSON)}catch(h){this.dispatchException(h)}if(k=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction
}},isSameOrigin:function(){var b=this.url.match(/^\s*https?:\/\/[^\/]*/);return !b||(b[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""}))},getHeader:function(d){try{return this.transport.getResponseHeader(d)||null}catch(c){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())}catch(e){this.dispatchException(e)}},dispatchException:function(b){(this.options.onException||Prototype.emptyFunction)(this,b);Ajax.Responders.dispatch("onException",this,b)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Response=Class.create({initialize:function(h){this.request=h;var g=this.transport=h.transport,f=this.readyState=g.readyState;if((f>2&&!Prototype.Browser.IE)||f==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(g.responseText);this.headerJSON=this._getHeaderJSON()}if(f==4){var e=g.responseXML;
this.responseXML=Object.isUndefined(e)?null:e;this.responseJSON=this._getResponseJSON()}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||""}catch(b){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()}catch(b){return null}},getResponseHeader:function(b){return this.transport.getResponseHeader(b)},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var d=this.getHeader("X-JSON");if(!d){return null}d=decodeURIComponent(escape(d));try{return d.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin())}catch(c){this.request.dispatchException(c)}},_getResponseJSON:function(){var d=this.request.options;if(!d.evalJSON||(d.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json"))||this.responseText.blank()){return null}try{return this.responseText.evalJSON(d.sanitizeJSON||!this.request.isSameOrigin())
}catch(c){this.request.dispatchException(c)}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,h,f,e){this.container={success:(h.success||h),failure:(h.failure||(h.success?null:h))};e=Object.clone(e);var g=e.onComplete;e.onComplete=(function(a,b){this.updateContent(a.responseText);if(Object.isFunction(g)){g(a,b)}}).bind(this);$super(f,e)},updateContent:function(g){var e=this.container[this.success()?"success":"failure"],h=this.options;if(!h.evalScripts){g=g.stripScripts()}if(e=$(e)){if(h.insertion){if(Object.isString(h.insertion)){var f={};f[h.insertion]=g;e.insert(f)}else{h.insertion(e,g)}}else{e.update(g)}}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,f,e,d){$super(d);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=f;this.url=e;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;
clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(b){if(this.options.decay){this.decay=(b.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=b.responseText}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});function $(h){if(arguments.length>1){for(var g=0,f=[],e=arguments.length;g<e;g++){f.push($(arguments[g]))}return f}if(Object.isString(h)){h=document.getElementById(h)}return Element.extend(h)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(j,l){var m=[];var k=document.evaluate(j,$(l)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var g=0,h=k.snapshotLength;g<h;g++){m.push(Element.extend(k.snapshotItem(g)))}return m}}if(!window.Node){var Node={}}if(!Node.ELEMENT_NODE){Object.extend(Node,{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12})
}(function(e){var d=(function(){var c=document.createElement("form");var b=document.createElement("input");var h=document.documentElement;b.setAttribute("name","test");c.appendChild(b);h.appendChild(c);var a=c.elements?(typeof c.elements.test=="undefined"):null;h.removeChild(c);c=b=null;return a})();var f=e.Element;e.Element=function(a,b){b=b||{};a=a.toLowerCase();var c=Element.cache;if(d&&b.name){a="<"+a+' name="'+b.name+'">';delete b.name;return Element.writeAttribute(document.createElement(a),b)}if(!c[a]){c[a]=Element.extend(document.createElement(a))}return Element.writeAttribute(c[a].cloneNode(false),b)};Object.extend(e.Element,f||{});if(f){e.Element.prototype=f.prototype}})(this);Element.cache={};Element.idCounter=1;Element.Methods={visible:function(b){return $(b).style.display!="none"},toggle:function(b){b=$(b);Element[Element.visible(b)?"hide":"show"](b);return b},hide:function(b){b=$(b);b.style.display="none";return b},show:function(b){b=$(b);b.style.display="";return b},remove:function(b){b=$(b);b.parentNode.removeChild(b);
return b},update:(function(){var e=(function(){var b=document.createElement("select"),a=true;b.innerHTML='<option value="test">test</option>';if(b.options&&b.options[0]){a=b.options[0].nodeName.toUpperCase()!=="OPTION"}b=null;return a})();var f=(function(){try{var c=document.createElement("table");if(c&&c.tBodies){c.innerHTML="<tbody><tr><td>test</td></tr></tbody>";var a=typeof c.tBodies[0]=="undefined";c=null;return a}}catch(b){return true}})();var g=(function(){var c=document.createElement("script"),a=false;try{c.appendChild(document.createTextNode(""));a=!c.firstChild||c.firstChild&&c.firstChild.nodeType!==3}catch(b){a=true}c=null;return a})();function h(b,a){b=$(b);if(a&&a.toElement){a=a.toElement()}if(Object.isElement(a)){return b.update().insert(a)}a=Object.toHTML(a);var c=b.tagName.toUpperCase();if(c==="SCRIPT"&&g){b.text=a;return b}if(e||f){if(c in Element._insertionTranslations.tags){while(b.firstChild){b.removeChild(b.firstChild)}Element._getContentFromAnonymousElement(c,a.stripScripts()).each(function(d){b.appendChild(d)
})}else{b.innerHTML=a.stripScripts()}}else{b.innerHTML=a.stripScripts()}a.evalScripts.bind(a).defer();return b}return h})(),replace:function(d,f){d=$(d);if(f&&f.toElement){f=f.toElement()}else{if(!Object.isElement(f)){f=Object.toHTML(f);var e=d.ownerDocument.createRange();e.selectNode(d);f.evalScripts.bind(f).defer();f=e.createContextualFragment(f.stripScripts())}}d.parentNode.replaceChild(f,d);return d},insert:function(n,l){n=$(n);if(Object.isString(l)||Object.isNumber(l)||Object.isElement(l)||(l&&(l.toElement||l.toHTML))){l={bottom:l}}var m,h,o,k;for(var j in l){m=l[j];j=j.toLowerCase();h=Element._insertionTranslations[j];if(m&&m.toElement){m=m.toElement()}if(Object.isElement(m)){h(n,m);continue}m=Object.toHTML(m);o=((j=="before"||j=="after")?n.parentNode:n).tagName.toUpperCase();k=Element._getContentFromAnonymousElement(o,m.stripScripts());if(j=="top"||j=="after"){k.reverse()}k.each(h.curry(n));m.evalScripts.bind(m).defer()}return n},wrap:function(d,f,e){d=$(d);if(Object.isElement(f)){$(f).writeAttribute(e||{})
}else{if(Object.isString(f)){f=new Element(f,e)}else{f=new Element("div",f)}}if(d.parentNode){d.parentNode.replaceChild(f,d)}f.appendChild(d);return f},inspect:function(d){d=$(d);var c="<"+d.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(a){var h=a.first(),g=a.last();var b=(d[h]||"").toString();if(b){c+=" "+g+"="+b.inspect(true)}});return c+">"},recursivelyCollect:function(f,d){f=$(f);var e=[];while(f=f[d]){if(f.nodeType==1){e.push(Element.extend(f))}}return e},ancestors:function(b){return Element.recursivelyCollect(b,"parentNode")},descendants:function(b){return Element.select(b,"*")},firstDescendant:function(b){b=$(b).firstChild;while(b&&b.nodeType!=1){b=b.nextSibling}return $(b)},immediateDescendants:function(b){if(!(b=$(b).firstChild)){return[]}while(b&&b.nodeType!=1){b=b.nextSibling}if(b){return[b].concat($(b).nextSiblings())}return[]},previousSiblings:function(b){return Element.recursivelyCollect(b,"previousSibling")},nextSiblings:function(b){return Element.recursivelyCollect(b,"nextSibling")
},siblings:function(b){b=$(b);return Element.previousSiblings(b).reverse().concat(Element.nextSiblings(b))},match:function(c,d){if(Object.isString(d)){d=new Selector(d)}return d.match($(c))},up:function(h,g,e){h=$(h);if(arguments.length==1){return $(h.parentNode)}var f=Element.ancestors(h);return Object.isNumber(g)?f[g]:Selector.findElement(f,g,e)},down:function(d,f,e){d=$(d);if(arguments.length==1){return Element.firstDescendant(d)}return Object.isNumber(f)?Element.descendants(d)[f]:Element.select(d,f)[e||0]},previous:function(e,g,f){e=$(e);if(arguments.length==1){return $(Selector.handlers.previousElementSibling(e))}var h=Element.previousSiblings(e);return Object.isNumber(g)?h[g]:Selector.findElement(h,g,f)},next:function(e,g,f){e=$(e);if(arguments.length==1){return $(Selector.handlers.nextElementSibling(e))}var h=Element.nextSiblings(e);return Object.isNumber(g)?h[g]:Selector.findElement(h,g,f)},select:function(c){var d=Array.prototype.slice.call(arguments,1);return Selector.findChildElements(c,d)},adjacent:function(c){var d=Array.prototype.slice.call(arguments,1);
return Selector.findChildElements(c.parentNode,d).without(c)},identify:function(d){d=$(d);var c=Element.readAttribute(d,"id");if(c){return c}do{c="anonymous_element_"+Element.idCounter++}while($(c));Element.writeAttribute(d,"id",c);return c},readAttribute:function(d,e){d=$(d);if(Prototype.Browser.IE){var f=Element._attributeTranslations.read;if(f.values[e]){return f.values[e](d,e)}if(f.names[e]){e=f.names[e]}if(e.include(":")){return(!d.attributes||!d.attributes[e])?null:d.attributes[e].value}}return d.getAttribute(e)},writeAttribute:function(l,m,j){l=$(l);var g={},k=Element._attributeTranslations.write;if(typeof m=="object"){g=m}else{g[m]=Object.isUndefined(j)?true:j}for(var h in g){m=k.names[h]||h;j=g[h];if(k.values[h]){m=k.values[h](l,j)}if(j===false||j===null){l.removeAttribute(m)}else{if(j===true){l.setAttribute(m,m)}else{l.setAttribute(m,j)}}}return l},getHeight:function(b){return Element.getDimensions(b).height},getWidth:function(b){return Element.getDimensions(b).width},classNames:function(b){return new Element.ClassNames(b)
},hasClassName:function(d,e){if(!(d=$(d))){return}var f=d.className;return(f.length>0&&(f==e||new RegExp("(^|\\s)"+e+"(\\s|$)").test(f)))},addClassName:function(c,d){if(!(c=$(c))){return}if(!Element.hasClassName(c,d)){c.className+=(c.className?" ":"")+d}return c},removeClassName:function(c,d){if(!(c=$(c))){return}c.className=c.className.replace(new RegExp("(^|\\s+)"+d+"(\\s+|$)")," ").strip();return c},toggleClassName:function(c,d){if(!(c=$(c))){return}return Element[Element.hasClassName(c,d)?"removeClassName":"addClassName"](c,d)},cleanWhitespace:function(d){d=$(d);var f=d.firstChild;while(f){var e=f.nextSibling;if(f.nodeType==3&&!/\S/.test(f.nodeValue)){d.removeChild(f)}f=e}return d},empty:function(b){return $(b).innerHTML.blank()},descendantOf:function(c,d){c=$(c),d=$(d);if(c.compareDocumentPosition){return(c.compareDocumentPosition(d)&8)===8}if(d.contains){return d.contains(c)&&d!==c}while(c=c.parentNode){if(c==d){return true}}return false},scrollTo:function(d){d=$(d);var c=Element.cumulativeOffset(d);window.scrollTo(c[0],c[1]);
return d},getStyle:function(f,h){f=$(f);h=h=="float"?"cssFloat":h.camelize();var g=f.style[h];if(!g||g=="auto"){var e=document.defaultView.getComputedStyle(f,null);g=e?e[h]:null}if(h=="opacity"){return g?parseFloat(g):1}return g=="auto"?null:g},getOpacity:function(b){return $(b).getStyle("opacity")},setStyle:function(h,k){h=$(h);var f=h.style,j;if(Object.isString(k)){h.style.cssText+=";"+k;return k.include("opacity")?h.setOpacity(k.match(/opacity:\s*(\d?\.?\d*)/)[1]):h}for(var g in k){if(g=="opacity"){h.setOpacity(k[g])}else{f[(g=="float"||g=="cssFloat")?(Object.isUndefined(f.styleFloat)?"cssFloat":"styleFloat"):g]=k[g]}}return h},setOpacity:function(d,c){d=$(d);d.style.opacity=(c==1||c==="")?"":(c<0.00001)?0:c;return d},getDimensions:function(q){q=$(q);var m=Element.getStyle(q,"display");if(m!="none"&&m!=null){return{width:q.offsetWidth,height:q.offsetHeight}}var o=q.style;var k=o.visibility;var j=o.position;var p=o.display;o.visibility="hidden";if(j!="fixed"){o.position="absolute"}o.display="block";var l=q.clientWidth;
var n=q.clientHeight;o.display=p;o.position=j;o.visibility=k;return{width:l,height:n}},makePositioned:function(d){d=$(d);var c=Element.getStyle(d,"position");if(c=="static"||!c){d._madePositioned=true;d.style.position="relative";if(Prototype.Browser.Opera){d.style.top=0;d.style.left=0}}return d},undoPositioned:function(b){b=$(b);if(b._madePositioned){b._madePositioned=undefined;b.style.position=b.style.top=b.style.left=b.style.bottom=b.style.right=""}return b},makeClipping:function(b){b=$(b);if(b._overflow){return b}b._overflow=Element.getStyle(b,"overflow")||"auto";if(b._overflow!=="hidden"){b.style.overflow="hidden"}return b},undoClipping:function(b){b=$(b);if(!b._overflow){return b}b.style.overflow=b._overflow=="auto"?"":b._overflow;b._overflow=null;return b},cumulativeOffset:function(e){var d=0,f=0;do{d+=e.offsetTop||0;f+=e.offsetLeft||0;e=e.offsetParent}while(e);return Element._returnOffset(f,d)},positionedOffset:function(f){var e=0,g=0;do{e+=f.offsetTop||0;g+=f.offsetLeft||0;f=f.offsetParent;if(f){if(f.tagName.toUpperCase()=="BODY"){break
}var h=Element.getStyle(f,"position");if(h!=="static"){break}}}while(f);return Element._returnOffset(g,e)},absolutize:function(g){g=$(g);if(Element.getStyle(g,"position")=="absolute"){return g}var h=Element.positionedOffset(g);var j=h[1];var k=h[0];var m=g.clientWidth;var l=g.clientHeight;g._originalLeft=k-parseFloat(g.style.left||0);g._originalTop=j-parseFloat(g.style.top||0);g._originalWidth=g.style.width;g._originalHeight=g.style.height;g.style.position="absolute";g.style.top=j+"px";g.style.left=k+"px";g.style.width=m+"px";g.style.height=l+"px";return g},relativize:function(e){e=$(e);if(Element.getStyle(e,"position")=="relative"){return e}e.style.position="relative";var f=parseFloat(e.style.top||0)-(e._originalTop||0);var d=parseFloat(e.style.left||0)-(e._originalLeft||0);e.style.top=f+"px";e.style.left=d+"px";e.style.height=e._originalHeight;e.style.width=e._originalWidth;return e},cumulativeScrollOffset:function(e){var d=0,f=0;do{d+=e.scrollTop||0;f+=e.scrollLeft||0;e=e.parentNode}while(e);return Element._returnOffset(f,d)
},getOffsetParent:function(b){if(b.offsetParent){return $(b.offsetParent)}if(b==document.body){return $(b)}while((b=b.parentNode)&&b!=document.body){if(Element.getStyle(b,"position")!="static"){return $(b)}}return $(document.body)},viewportOffset:function(h){var e=0,g=0;var f=h;do{e+=f.offsetTop||0;g+=f.offsetLeft||0;if(f.offsetParent==document.body&&Element.getStyle(f,"position")=="absolute"){break}}while(f=f.offsetParent);f=h;do{if(!Prototype.Browser.Opera||(f.tagName&&(f.tagName.toUpperCase()=="BODY"))){e-=f.scrollTop||0;g-=f.scrollLeft||0}}while(f=f.parentNode);return Element._returnOffset(g,e)},clonePosition:function(m,h){var l=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});h=$(h);var k=Element.viewportOffset(h);m=$(m);var j=[0,0];var g=null;if(Element.getStyle(m,"position")=="absolute"){g=Element.getOffsetParent(m);j=Element.viewportOffset(g)}if(g==document.body){j[0]-=document.body.offsetLeft;j[1]-=document.body.offsetTop}if(l.setLeft){m.style.left=(k[0]-j[0]+l.offsetLeft)+"px"
}if(l.setTop){m.style.top=(k[1]-j[1]+l.offsetTop)+"px"}if(l.setWidth){m.style.width=h.offsetWidth+"px"}if(l.setHeight){m.style.height=h.offsetHeight+"px"}return m}};Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}};if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(g,k,j){switch(j){case"left":case"top":case"right":case"bottom":if(g(k,"position")==="static"){return null}case"height":case"width":if(!Element.visible(k)){return null}var h=parseInt(g(k,j),10);if(h!==k["offset"+j.capitalize()]){return h+"px"}var f;if(j==="height"){f=["border-top-width","padding-top","padding-bottom","border-bottom-width"]}else{f=["border-left-width","padding-left","padding-right","border-right-width"]}return f.inject(h,function(b,c){var a=g(k,c);return a===null?b:b-parseInt(a,10)})+"px";default:return g(k,j)}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(e,d,f){if(f==="title"){return d.title
}return e(d,f)})}else{if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.getOffsetParent.wrap(function(e,k){k=$(k);try{k.offsetParent}catch(h){return $(document.body)}var g=k.getStyle("position");if(g!=="static"){return e(k)}k.setStyle({position:"relative"});var j=e(k);k.setStyle({position:g});return j});$w("positionedOffset viewportOffset").each(function(b){Element.Methods[b]=Element.Methods[b].wrap(function(m,l){l=$(l);try{l.offsetParent}catch(e){return Element._returnOffset(0,0)}var a=l.getStyle("position");if(a!=="static"){return m(l)}var k=l.getOffsetParent();if(k&&k.getStyle("position")==="fixed"){k.setStyle({zoom:1})}l.setStyle({position:"relative"});var j=m(l);l.setStyle({position:a});return j})});Element.Methods.cumulativeOffset=Element.Methods.cumulativeOffset.wrap(function(e,d){try{d.offsetParent}catch(f){return Element._returnOffset(0,0)}return e(d)});Element.Methods.getStyle=function(e,d){e=$(e);d=(d=="float"||d=="cssFloat")?"styleFloat":d.camelize();var f=e.style[d];if(!f&&e.currentStyle){f=e.currentStyle[d]
}if(d=="opacity"){if(f=(e.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(f[1]){return parseFloat(f[1])/100}}return 1}if(f=="auto"){if((d=="width"||d=="height")&&(e.getStyle("display")!="none")){return e["offset"+d.capitalize()]+"px"}return null}return f};Element.Methods.setOpacity=function(m,k){function j(a){return a.replace(/alpha\([^\)]*\)/gi,"")}m=$(m);var g=m.currentStyle;if((g&&!g.hasLayout)||(!g&&m.style.zoom=="normal")){m.style.zoom=1}var h=m.getStyle("filter"),l=m.style;if(k==1||k===""){(h=j(h))?l.filter=h:l.removeAttribute("filter");return m}else{if(k<0.00001){k=0}}l.filter=j(h)+"alpha(opacity="+(k*100)+")";return m};Element._attributeTranslations=(function(){var f="className";var d="for";var e=document.createElement("div");e.setAttribute(f,"x");if(e.className!=="x"){e.setAttribute("class","x");if(e.className==="x"){f="class"}}e=null;e=document.createElement("label");e.setAttribute(d,"x");if(e.htmlFor!=="x"){e.setAttribute("htmlFor","x");if(e.htmlFor==="x"){d="htmlFor"}}e=null;return{read:{names:{"class":f,className:f,"for":d,htmlFor:d},values:{_getAttr:function(b,a){return b.getAttribute(a)
},_getAttr2:function(b,a){return b.getAttribute(a,2)},_getAttrNode:function(c,a){var b=c.getAttributeNode(a);return b?b.value:""},_getEv:(function(){var c=document.createElement("div");c.onclick=Prototype.emptyFunction;var a=c.getAttribute("onclick");var b;if(String(a).indexOf("{")>-1){b=function(j,g){g=j.getAttribute(g);if(!g){return null}g=g.toString();g=g.split("{")[1];g=g.split("}")[0];return g.strip()}}else{if(a===""){b=function(j,g){g=j.getAttribute(g);if(!g){return null}return g.strip()}}}c=null;return b})(),_flag:function(b,a){return $(b).hasAttribute(a)?a:null},style:function(a){return a.style.cssText.toLowerCase()},title:function(a){return a.title}}}}})();Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(d,c){d.checked=!!c},style:function(d,c){d.style.cssText=c?c:""}}};Element._attributeTranslations.has={};$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc frameBorder").each(function(b){Element._attributeTranslations.write.names[b.toLowerCase()]=b;
Element._attributeTranslations.has[b.toLowerCase()]=b});(function(b){Object.extend(b,{href:b._getAttr2,src:b._getAttr2,type:b._getAttr,action:b._getAttrNode,disabled:b._flag,checked:b._flag,readonly:b._flag,multiple:b._flag,onload:b._getEv,onunload:b._getEv,onclick:b._getEv,ondblclick:b._getEv,onmousedown:b._getEv,onmouseup:b._getEv,onmouseover:b._getEv,onmousemove:b._getEv,onmouseout:b._getEv,onfocus:b._getEv,onblur:b._getEv,onkeypress:b._getEv,onkeydown:b._getEv,onkeyup:b._getEv,onsubmit:b._getEv,onreset:b._getEv,onselect:b._getEv,onchange:b._getEv})})(Element._attributeTranslations.read.values);if(Prototype.BrowserFeatures.ElementExtensions){(function(){function b(k){var a=k.getElementsByTagName("*"),h=[];for(var j=0,g;g=a[j];j++){if(g.tagName!=="!"){h.push(g)}}return h}Element.Methods.down=function(f,e,a){f=$(f);if(arguments.length==1){return f.firstDescendant()}return Object.isNumber(e)?b(f)[e]:Element.select(f,e)[a||0]}})()}}else{if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(d,c){d=$(d);
d.style.opacity=(c==1)?0.999999:(c==="")?"":(c<0.00001)?0:c;return d}}else{if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(f,e){f=$(f);f.style.opacity=(e==1||e==="")?"":(e<0.00001)?0:e;if(e==1){if(f.tagName.toUpperCase()=="IMG"&&f.width){f.width++;f.width--}else{try{var g=document.createTextNode(" ");f.appendChild(g);f.removeChild(g)}catch(h){}}}return f};Element.Methods.cumulativeOffset=function(e){var d=0,f=0;do{d+=e.offsetTop||0;f+=e.offsetLeft||0;if(e.offsetParent==document.body){if(Element.getStyle(e,"position")=="absolute"){break}}e=e.offsetParent}while(e);return Element._returnOffset(f,d)}}}}}if("outerHTML" in document.documentElement){Element.Methods.replace=function(k,j){k=$(k);if(j&&j.toElement){j=j.toElement()}if(Object.isElement(j)){k.parentNode.replaceChild(j,k);return k}j=Object.toHTML(j);var m=k.parentNode,l=m.tagName.toUpperCase();if(Element._insertionTranslations.tags[l]){var g=k.next();var h=Element._getContentFromAnonymousElement(l,j.stripScripts());m.removeChild(k);if(g){h.each(function(a){m.insertBefore(a,g)
})}else{h.each(function(a){m.appendChild(a)})}}else{k.outerHTML=j.stripScripts()}j.evalScripts.bind(j).defer();return k}}Element._returnOffset=function(e,d){var f=[e,d];f.left=e;f.top=d;return f};Element._getContentFromAnonymousElement=function(f,h){var g=new Element("div"),e=Element._insertionTranslations.tags[f];if(e){g.innerHTML=e[0]+h+e[1];e[2].times(function(){g=g.firstChild})}else{g.innerHTML=h}return $A(g.childNodes)};Element._insertionTranslations={before:function(d,c){d.parentNode.insertBefore(c,d)},top:function(d,c){d.insertBefore(c,d.firstChild)},bottom:function(d,c){d.appendChild(c)},after:function(d,c){d.parentNode.insertBefore(c,d.nextSibling)},tags:{TABLE:["<table>","</table>",1],TBODY:["<table><tbody>","</tbody></table>",2],TR:["<table><tbody><tr>","</tr></tbody></table>",3],TD:["<table><tbody><tr><td>","</td></tr></tbody></table>",4],SELECT:["<select>","</select>",1]}};(function(){var b=Element._insertionTranslations.tags;Object.extend(b,{THEAD:b.TBODY,TFOOT:b.TBODY,TH:b.TD})})();Element.Methods.Simulated={hasAttribute:function(e,f){f=Element._attributeTranslations.has[f]||f;
var d=$(e).getAttributeNode(f);return !!(d&&d.specified)}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);(function(b){if(!Prototype.BrowserFeatures.ElementExtensions&&b.__proto__){window.HTMLElement={};window.HTMLElement.prototype=b.__proto__;Prototype.BrowserFeatures.ElementExtensions=true}b=null})(document.createElement("div"));Element.extend=(function(){function m(e){if(typeof window.Element!="undefined"){var c=window.Element.prototype;if(c){var a="_"+(Math.random()+"").slice(2);var d=document.createElement(e);c[a]="x";var b=(d[a]!=="x");delete c[a];d=null;return b}}return false}function g(b,c){for(var d in c){var a=c[d];if(Object.isFunction(a)&&!(d in b)){b[d]=a.methodize()}}}var h=m("object");if(Prototype.BrowserFeatures.SpecificElementExtensions){if(h){return function(b){if(b&&typeof b._extendedByPrototype=="undefined"){var a=b.tagName;if(a&&(/^(?:object|applet|embed)$/i.test(a))){g(b,Element.Methods);g(b,Element.Methods.Simulated);g(b,Element.Methods.ByTag[a.toUpperCase()])}}return b}}return Prototype.K
}var k={},l=Element.Methods.ByTag;var j=Object.extend(function(a){if(!a||typeof a._extendedByPrototype!="undefined"||a.nodeType!=1||a==window){return a}var c=Object.clone(k),b=a.tagName.toUpperCase();if(l[b]){Object.extend(c,l[b])}g(a,c);a._extendedByPrototype=Prototype.emptyFunction;return a},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(k,Element.Methods);Object.extend(k,Element.Methods.Simulated)}}});j.refresh();return j})();Element.hasAttribute=function(d,c){if(d.hasAttribute){return d.hasAttribute(c)}return Element.Methods.Simulated.hasAttribute(d,c)};Element.addMethods=function(r){var l=Prototype.BrowserFeatures,q=Element.Methods.ByTag;if(!r){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods)})}if(arguments.length==2){var o=r;r=arguments[1]}if(!o){Object.extend(Element.Methods,r||{})
}else{if(Object.isArray(o)){o.each(t)}else{t(o)}}function t(a){a=a.toUpperCase();if(!Element.Methods.ByTag[a]){Element.Methods.ByTag[a]={}}Object.extend(Element.Methods.ByTag[a],r)}function s(b,d,e){e=e||false;for(var c in b){var a=b[c];if(!Object.isFunction(a)){continue}if(!e||!(c in d)){d[c]=a.methodize()}}}function p(a){var c;var e={OPTGROUP:"OptGroup",TEXTAREA:"TextArea",P:"Paragraph",FIELDSET:"FieldSet",UL:"UList",OL:"OList",DL:"DList",DIR:"Directory",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading",Q:"Quote",INS:"Mod",DEL:"Mod",A:"Anchor",IMG:"Image",CAPTION:"TableCaption",COL:"TableCol",COLGROUP:"TableCol",THEAD:"TableSection",TFOOT:"TableSection",TBODY:"TableSection",TR:"TableRow",TH:"TableCell",TD:"TableCell",FRAMESET:"FrameSet",IFRAME:"IFrame"};if(e[a]){c="HTML"+e[a]+"Element"}if(window[c]){return window[c]}c="HTML"+a+"Element";if(window[c]){return window[c]}c="HTML"+a.capitalize()+"Element";if(window[c]){return window[c]}var b=document.createElement(a);var d=b.__proto__||b.constructor.prototype;
b=null;return d}var m=window.HTMLElement?HTMLElement.prototype:Element.prototype;if(l.ElementExtensions){s(Element.Methods,m);s(Element.Methods.Simulated,m,true)}if(l.SpecificElementExtensions){for(var k in Element.Methods.ByTag){var n=p(k);if(Object.isUndefined(n)){continue}s(q[k],n.prototype)}}Object.extend(Element,Element.Methods);delete Element.ByTag;if(Element.extend.refresh){Element.extend.refresh()}Element.cache={}};document.viewport={getDimensions:function(){return{width:this.getWidth(),height:this.getHeight()}},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)}};(function(o){var k=Prototype.Browser,l=document,n,h={};function j(){if(k.WebKit&&!l.evaluate){return document}if(k.Opera&&window.parseFloat(window.opera.version())<9.5){return document.body}return document.documentElement}function m(a){if(!n){n=j()}h[a]="client"+a;o["get"+a]=function(){return n[h[a]]
};return o["get"+a]()}o.getWidth=m.curry("Width");o.getHeight=m.curry("Height")})(document.viewport);Element.Storage={UID:1};Element.addMethods({getStorage:function(d){if(!(d=$(d))){return}var c;if(d===window){c=0}else{if(typeof d._prototypeUID==="undefined"){d._prototypeUID=[Element.Storage.UID++]}c=d._prototypeUID[0]}if(!Element.Storage[c]){Element.Storage[c]=$H()}return Element.Storage[c]},store:function(e,d,f){if(!(e=$(e))){return}if(arguments.length===2){Element.getStorage(e).update(d)}else{Element.getStorage(e).set(d,f)}return e},retrieve:function(g,f,k){if(!(g=$(g))){return}var h=Element.getStorage(g),j=h.get(f);if(Object.isUndefined(j)){h.set(f,k);j=k}return j},clone:function(f,g){if(!(f=$(f))){return}var h=f.cloneNode(g);h._prototypeUID=void 0;if(g){var j=Element.select(h,"*"),k=j.length;while(k--){j[k]._prototypeUID=void 0}}return Element.extend(h)}});var Selector=Class.create({initialize:function(b){this.expression=b.strip();if(this.shouldUseSelectorsAPI()){this.mode="selectorsAPI"}else{if(this.shouldUseXPath()){this.mode="xpath";
this.compileXPathMatcher()}else{this.mode="normal";this.compileMatcher()}}},shouldUseXPath:(function(){var b=(function(){var f=false;if(document.evaluate&&window.XPathResult){var h=document.createElement("div");h.innerHTML="<ul><li></li></ul><div><ul><li></li></ul></div>";var a=".//*[local-name()='ul' or local-name()='UL']//*[local-name()='li' or local-name()='LI']";var g=document.evaluate(a,h,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);f=(g.snapshotLength!==2);h=null}return f})();return function(){if(!Prototype.BrowserFeatures.XPath){return false}var a=this.expression;if(Prototype.Browser.WebKit&&(a.include("-of-type")||a.include(":empty"))){return false}if((/(\[[\w-]*?:|:checked)/).test(a)){return false}if(b){return false}return true}})(),shouldUseSelectorsAPI:function(){if(!Prototype.BrowserFeatures.SelectorsAPI){return false}if(Selector.CASE_INSENSITIVE_CLASS_NAMES){return false}if(!Selector._div){Selector._div=new Element("div")}try{Selector._div.querySelector(this.expression)}catch(b){return false}return true
},compileMatcher:function(){var e=this.expression,ps=Selector.patterns,h=Selector.handlers,c=Selector.criteria,le,p,m,len=ps.length,name;if(Selector._cache[e]){this.matcher=Selector._cache[e];return}this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i=0;i<len;i++){p=ps[i].re;name=ps[i].name;if(m=e.match(p)){this.matcher.push(Object.isFunction(c[name])?c[name](m):new Template(c[name]).evaluate(m));e=e.replace(m[0],"");break}}}this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join("\n"));Selector._cache[this.expression]=this.matcher},compileXPathMatcher:function(){var m=this.expression,l=Selector.patterns,q=Selector.xpath,n,e,k=l.length,p;if(Selector._cache[m]){this.xpath=Selector._cache[m];return}this.matcher=[".//*"];while(m&&n!=m&&(/\S/).test(m)){n=m;for(var o=0;o<k;o++){p=l[o].name;if(e=m.match(l[o].re)){this.matcher.push(Object.isFunction(q[p])?q[p](e):new Template(q[p]).evaluate(e));m=m.replace(e[0],"");
break}}}this.xpath=this.matcher.join("");Selector._cache[this.expression]=this.xpath},findElements:function(g){g=g||document;var k=this.expression,e;switch(this.mode){case"selectorsAPI":if(g!==document){var j=g.id,h=$(g).identify();h=h.replace(/([\.:])/g,"\\$1");k="#"+h+" "+k}e=$A(g.querySelectorAll(k)).map(Element.extend);g.id=j;return e;case"xpath":return document._getElementsByXPath(this.xpath,g);default:return this.matcher(g)}},match:function(t){this.tokens=[];var e=this.expression,A=Selector.patterns,w=Selector.assertions;var B,y,x,m=A.length,z;while(e&&B!==e&&(/\S/).test(e)){B=e;for(var s=0;s<m;s++){y=A[s].re;z=A[s].name;if(x=e.match(y)){if(w[z]){this.tokens.push([z,Object.clone(x)]);e=e.replace(x[0],"")}else{return this.findElements(document).include(t)}}}}var p=true,z,r;for(var s=0,v;v=this.tokens[s];s++){z=v[0],r=v[1];if(!Selector.assertions[z](t,r)){p=false;break}}return p},toString:function(){return this.expression},inspect:function(){return"#<Selector:"+this.expression.inspect()+">"}});if(Prototype.BrowserFeatures.SelectorsAPI&&document.compatMode==="BackCompat"){Selector.CASE_INSENSITIVE_CLASS_NAMES=(function(){var f=document.createElement("div"),e=document.createElement("span");
f.id="prototype_test_id";e.className="Test";f.appendChild(e);var d=(f.querySelector("#prototype_test_id .test")!==null);f=e=null;return d})()}Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:"/following-sibling::*",tagName:function(b){if(b[1]=="*"){return""}return"[local-name()='"+b[1].toLowerCase()+"' or local-name()='"+b[1].toUpperCase()+"']"},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:function(b){b[1]=b[1].toLowerCase();return new Template("[@#{1}]").evaluate(b)},attr:function(b){b[1]=b[1].toLowerCase();b[3]=b[5]||b[6];return new Template(Selector.xpath.operators[b[2]]).evaluate(b)},pseudo:function(d){var c=Selector.xpath.pseudos[d[1]];if(!c){return""}if(Object.isFunction(c)){return c(d)}return new Template(Selector.xpath.pseudos[d[1]]).evaluate(d)},operators:{"=":"[@#{1}='#{3}']","!=":"[@#{1}!='#{3}']","^=":"[starts-with(@#{1}, '#{3}')]","$=":"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']","*=":"[contains(@#{1}, '#{3}')]","~=":"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]","|=":"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},pseudos:{"first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","only-child":"[not(preceding-sibling::* or following-sibling::*)]",empty:"[count(*) = 0 and (count(text()) = 0)]",checked:"[@checked]",disabled:"[(@disabled) and (@type!='hidden')]",enabled:"[not(@disabled) and (@type!='hidden')]",not:function(q){var n=q[6],s=Selector.patterns,m=Selector.xpath,v,e,o=s.length,t;
var r=[];while(n&&v!=n&&(/\S/).test(n)){v=n;for(var p=0;p<o;p++){t=s[p].name;if(q=n.match(s[p].re)){e=Object.isFunction(m[t])?m[t](q):new Template(m[t]).evaluate(q);r.push("("+e.substring(1,e.length-1)+")");n=n.replace(q[0],"");break}}}return"[not("+r.join(" and ")+")]"},"nth-child":function(b){return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",b)},"nth-last-child":function(b){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",b)},"nth-of-type":function(b){return Selector.xpath.pseudos.nth("position() ",b)},"nth-last-of-type":function(b){return Selector.xpath.pseudos.nth("(last() + 1 - position()) ",b)},"first-of-type":function(b){b[6]="1";return Selector.xpath.pseudos["nth-of-type"](b)},"last-of-type":function(b){b[6]="1";return Selector.xpath.pseudos["nth-last-of-type"](b)},"only-of-type":function(d){var c=Selector.xpath.pseudos;return c["first-of-type"](d)+c["last-of-type"](d)},nth:function(k,m){var a,b=m[6],j;if(b=="even"){b="2n+0"}if(b=="odd"){b="2n+1"}if(a=b.match(/^(\d+)$/)){return"["+k+"= "+a[1]+"]"
}if(a=b.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(a[1]=="-"){a[1]=-1}var l=a[1]?Number(a[1]):1;var n=a[2]?Number(a[2]):0;j="[((#{fragment} - #{b}) mod #{a} = 0) and ((#{fragment} - #{b}) div #{a} >= 0)]";return new Template(j).evaluate({fragment:k,a:l,b:n})}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c);      c = false;',className:'n = h.className(n, r, "#{1}", c);    c = false;',id:'n = h.id(n, r, "#{1}", c);           c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c); c = false;',attr:function(b){b[3]=(b[5]||b[6]);return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(b)},pseudo:function(b){if(b[6]){b[6]=b[6].replace(/"/g,'\\"')}return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(b)},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:[{name:"laterSibling",re:/^\s*~\s*/},{name:"child",re:/^\s*>\s*/},{name:"adjacent",re:/^\s*\+\s*/},{name:"descendant",re:/^\s/},{name:"tagName",re:/^\s*(\*|[\w\-]+)(\b|$)?/},{name:"id",re:/^#([\w\-\*]+)(\b|$)/},{name:"className",re:/^\.([\w\-\*]+)(\b|$)/},{name:"pseudo",re:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/},{name:"attrPresence",re:/^\[((?:[\w-]+:)?[\w-]+)\]/},{name:"attr",re:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/}],assertions:{tagName:function(d,c){return c[1].toUpperCase()==d.tagName.toUpperCase()
},className:function(d,c){return Element.hasClassName(d,c[1])},id:function(d,c){return d.id===c[1]},attrPresence:function(d,c){return Element.hasAttribute(d,c[1])},attr:function(d,f){var e=Element.readAttribute(d,f[1]);return e&&Selector.operators[f[2]](e,f[5]||f[6])}},handlers:{concat:function(g,h){for(var b=0,a;a=h[b];b++){g.push(a)}return g},mark:function(f){var g=Prototype.emptyFunction;for(var e=0,h;h=f[e];e++){h._countedByPrototype=g}return f},unmark:(function(){var b=(function(){var h=document.createElement("div"),f=false,a="_countedByPrototype",g="x";h[a]=g;f=(h.getAttribute(a)===g);h=null;return f})();return b?function(a){for(var f=0,e;e=a[f];f++){e.removeAttribute("_countedByPrototype")}return a}:function(a){for(var f=0,e;e=a[f];f++){e._countedByPrototype=void 0}return a}})(),index:function(l,o,k){l._countedByPrototype=Prototype.emptyFunction;if(o){for(var j=l.childNodes,n=j.length-1,h=1;n>=0;n--){var m=j[n];if(m.nodeType==1&&(!k||m._countedByPrototype)){m.nodeIndex=h++}}}else{for(var n=0,h=1,j=l.childNodes;
m=j[n];n++){if(m.nodeType==1&&(!k||m._countedByPrototype)){m.nodeIndex=h++}}}},unique:function(f){if(f.length==0){return f}var j=[],h;for(var k=0,g=f.length;k<g;k++){if(typeof(h=f[k])._countedByPrototype=="undefined"){h._countedByPrototype=Prototype.emptyFunction;j.push(Element.extend(h))}}return Selector.handlers.unmark(j)},descendant:function(g){var j=Selector.handlers;for(var k=0,f=[],h;h=g[k];k++){j.concat(f,h.getElementsByTagName("*"))}return f},child:function(j){var m=Selector.handlers;for(var n=0,o=[],l;l=j[n];n++){for(var h=0,k;k=l.childNodes[h];h++){if(k.nodeType==1&&k.tagName!="!"){o.push(k)}}}return o},adjacent:function(g){for(var k=0,f=[],h;h=g[k];k++){var j=this.nextElementSibling(h);if(j){f.push(j)}}return f},laterSibling:function(g){var j=Selector.handlers;for(var k=0,f=[],h;h=g[k];k++){j.concat(f,Element.nextSiblings(h))}return f},nextElementSibling:function(b){while(b=b.nextSibling){if(b.nodeType==1){return b}}return null},previousElementSibling:function(b){while(b=b.previousSibling){if(b.nodeType==1){return b
}}return null},tagName:function(s,l,n,m){var h=n.toUpperCase();var p=[],o=Selector.handlers;if(s){if(m){if(m=="descendant"){for(var q=0,r;r=s[q];q++){o.concat(p,r.getElementsByTagName(n))}return p}else{s=this[m](s)}if(n=="*"){return s}}for(var q=0,r;r=s[q];q++){if(r.tagName.toUpperCase()===h){p.push(r)}}return p}else{return l.getElementsByTagName(n)}},id:function(s,h,r,m){var j=$(r),n=Selector.handlers;if(h==document){if(!j){return[]}if(!s){return[j]}}else{if(!h.sourceIndex||h.sourceIndex<1){var s=h.getElementsByTagName("*");for(var p=0,q;q=s[p];p++){if(q.id===r){return[q]}}}}if(s){if(m){if(m=="child"){for(var o=0,q;q=s[o];o++){if(j.parentNode==q){return[j]}}}else{if(m=="descendant"){for(var o=0,q;q=s[o];o++){if(Element.descendantOf(j,q)){return[j]}}}else{if(m=="adjacent"){for(var o=0,q;q=s[o];o++){if(Selector.handlers.previousElementSibling(j)==q){return[j]}}}else{s=n[m](s)}}}}for(var o=0,q;q=s[o];o++){if(q==j){return[j]}}return[]}return(j&&Element.descendantOf(j,h))?[j]:[]},className:function(g,e,h,f){if(g&&f){g=this[f](g)
}return Selector.handlers.byClassName(g,e,h)},byClassName:function(q,k,j){if(!q){q=Selector.handlers.descendant([k])}var l=" "+j+" ";for(var o=0,p=[],m,n;m=q[o];o++){n=m.className;if(n.length==0){continue}if(n==j||(" "+n+" ").include(l)){p.push(m)}}return p},attrPresence:function(n,o,j,h){if(!n){n=o.getElementsByTagName("*")}if(n&&h){n=this[h](n)}var l=[];for(var m=0,k;k=n[m];m++){if(Element.hasAttribute(k,j)){l.push(k)}}return l},attr:function(x,o,p,n,q,r){if(!x){x=o.getElementsByTagName("*")}if(x&&r){x=this[r](x)}var m=Selector.operators[q],t=[];for(var v=0,w;w=x[v];v++){var s=Element.readAttribute(w,p);if(s===null){continue}if(m(s,n)){t.push(w)}}return t},pseudo:function(k,j,h,f,g){if(k&&g){k=this[g](k)}if(!k){k=f.getElementsByTagName("*")}return Selector.pseudos[j](k,h,f)}},pseudos:{"first-child":function(g,j,h){for(var l=0,m=[],k;k=g[l];l++){if(Selector.handlers.previousElementSibling(k)){continue}m.push(k)}return m},"last-child":function(g,j,h){for(var l=0,m=[],k;k=g[l];l++){if(Selector.handlers.nextElementSibling(k)){continue
}m.push(k)}return m},"only-child":function(h,k,j){var m=Selector.handlers;for(var n=0,o=[],l;l=h[n];n++){if(!m.previousElementSibling(l)&&!m.nextElementSibling(l)){o.push(l)}}return o},"nth-child":function(d,f,e){return Selector.pseudos.nth(d,f,e)},"nth-last-child":function(d,f,e){return Selector.pseudos.nth(d,f,e,true)},"nth-of-type":function(d,f,e){return Selector.pseudos.nth(d,f,e,false,true)},"nth-last-of-type":function(d,f,e){return Selector.pseudos.nth(d,f,e,true,true)},"first-of-type":function(d,f,e){return Selector.pseudos.nth(d,"1",e,false,true)},"last-of-type":function(d,f,e){return Selector.pseudos.nth(d,"1",e,true,true)},"only-of-type":function(e,g,f){var h=Selector.pseudos;return h["last-of-type"](h["first-of-type"](e,g,f),g,f)},getIndices:function(b,f,a){if(b==0){return f>0?[f]:[]}return $R(1,a).inject([],function(d,c){if(0==(c-f)%b&&(c-f)/b>=0){d.push(c)}return d})},nth:function(B,A,E,G,a){if(B.length==0){return[]}if(A=="even"){A="2n+0"}if(A=="odd"){A="2n+1"}var b=Selector.handlers,h=[],z=[],x;b.mark(B);
for(var j=0,y;y=B[j];j++){if(!y.parentNode._countedByPrototype){b.index(y.parentNode,G,a);z.push(y.parentNode)}}if(A.match(/^\d+$/)){A=Number(A);for(var j=0,y;y=B[j];j++){if(y.nodeIndex==A){h.push(y)}}}else{if(x=A.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(x[1]=="-"){x[1]=-1}var D=x[1]?Number(x[1]):1;var F=x[2]?Number(x[2]):0;var C=Selector.pseudos.getIndices(D,F,B.length);for(var j=0,y,m=C.length;y=B[j];j++){for(var l=0;l<m;l++){if(y.nodeIndex==C[l]){h.push(y)}}}}}b.unmark(B);b.unmark(z);return h},empty:function(g,j,h){for(var l=0,m=[],k;k=g[l];l++){if(k.tagName=="!"||k.firstChild){continue}m.push(k)}return m},not:function(v,r,m){var o=Selector.handlers,h,s;var n=new Selector(r).findElements(m);o.mark(n);for(var p=0,q=[],t;t=v[p];p++){if(!t._countedByPrototype){q.push(t)}}o.unmark(n);return q},enabled:function(g,j,h){for(var l=0,m=[],k;k=g[l];l++){if(!k.disabled&&(!k.type||k.type!=="hidden")){m.push(k)}}return m},disabled:function(g,j,h){for(var l=0,m=[],k;k=g[l];l++){if(k.disabled){m.push(k)}}return m},checked:function(g,j,h){for(var l=0,m=[],k;
k=g[l];l++){if(k.checked){m.push(k)}}return m}},operators:{"=":function(c,d){return c==d},"!=":function(c,d){return c!=d},"^=":function(c,d){return c==d||c&&c.startsWith(d)},"$=":function(c,d){return c==d||c&&c.endsWith(d)},"*=":function(c,d){return c==d||c&&c.include(d)},"~=":function(c,d){return(" "+c+" ").include(" "+d+" ")},"|=":function(c,d){return("-"+(c||"").toUpperCase()+"-").include("-"+(d||"").toUpperCase()+"-")}},split:function(c){var d=[];c.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(a){d.push(a[1].strip())});return d},matchElements:function(j,k){var l=$$(k),m=Selector.handlers;m.mark(l);for(var n=0,o=[],h;h=j[n];n++){if(h._countedByPrototype){o.push(h)}}m.unmark(l);return o},findElement:function(e,f,d){if(Object.isNumber(f)){d=f;f=false}return Selector.matchElements(e,f||"*")[d||0]},findChildElements:function(o,k){k=Selector.split(k.join(","));var m=[],l=Selector.handlers;for(var n=0,h=k.length,j;n<h;n++){j=new Selector(k[n].strip());l.concat(m,j.findElements(o))}return(h>1)?l.unique(m):m
}});if(Prototype.Browser.IE){Object.extend(Selector.handlers,{concat:function(g,h){for(var b=0,a;a=h[b];b++){if(a.tagName!=="!"){g.push(a)}}return g}})}function $$(){return Selector.findChildElements(document,$A(arguments))}var Form={reset:function(b){b=$(b);b.reset();return b},serializeElements:function(o,m){if(typeof m!="object"){m={hash:!!m}}else{if(Object.isUndefined(m.hash)){m.hash=true}}var n,k,h=false,j=m.submit;var l=o.inject({},function(a,b){if(!b.disabled&&b.name){n=b.name;k=$(b).getValue();if(k!=null&&b.type!="file"&&(b.type!="submit"||(!h&&j!==false&&(!j||n==j)&&(h=true)))){if(n in a){if(!Object.isArray(a[n])){a[n]=[a[n]]}a[n].push(k)}else{a[n]=k}}}return a});return m.hash?l:Object.toQueryString(l)}};Form.Methods={serialize:function(c,d){return Form.serializeElements(Form.getElements(c),d)},getElements:function(j){var g=$(j).getElementsByTagName("*"),l,h=[],m=Form.Element.Serializers;for(var k=0;l=g[k];k++){h.push(l)}return h.inject([],function(b,a){if(m[a.tagName.toLowerCase()]){b.push(Element.extend(a))
}return b})},getInputs:function(m,o,q){m=$(m);var n=m.getElementsByTagName("input");if(!o&&!q){return $A(n).map(Element.extend)}for(var p=0,l=[],k=n.length;p<k;p++){var j=n[p];if((o&&j.type!=o)||(q&&j.name!=q)){continue}l.push(Element.extend(j))}return l},disable:function(b){b=$(b);Form.getElements(b).invoke("disable");return b},enable:function(b){b=$(b);Form.getElements(b).invoke("enable");return b},findFirstElement:function(f){var e=$(f).getElements().findAll(function(a){return"hidden"!=a.type&&!a.disabled});var d=e.findAll(function(a){return a.hasAttribute("tabIndex")&&a.tabIndex>=0}).sortBy(function(a){return a.tabIndex}).first();return d?d:e.find(function(a){return/^(?:input|select|textarea)$/i.test(a.tagName)})},focusFirstElement:function(b){b=$(b);b.findFirstElement().activate();return b},request:function(h,e){h=$(h),e=Object.clone(e||{});var g=e.parameters,f=h.readAttribute("action")||"";if(f.blank()){f=window.location.href}e.parameters=h.serialize(true);if(g){if(Object.isString(g)){g=g.toQueryParams()
}Object.extend(e.parameters,g)}if(h.hasAttribute("method")&&!e.method){e.method=h.method}return new Ajax.Request(f,e)}};Form.Element={focus:function(b){$(b).focus();return b},select:function(b){$(b).select();return b}};Form.Element.Methods={serialize:function(e){e=$(e);if(!e.disabled&&e.name){var d=e.getValue();if(d!=undefined){var f={};f[e.name]=d;return Object.toQueryString(f)}}return""},getValue:function(d){d=$(d);var c=d.tagName.toLowerCase();return Form.Element.Serializers[c](d)},setValue:function(e,d){e=$(e);var f=e.tagName.toLowerCase();Form.Element.Serializers[f](e,d);return e},clear:function(b){$(b).value="";return b},present:function(b){return $(b).value!=""},activate:function(d){d=$(d);try{d.focus();if(d.select&&(d.tagName.toLowerCase()!="input"||!(/^(?:button|reset|submit)$/i.test(d.type)))){d.select()}}catch(c){}return d},disable:function(b){b=$(b);b.disabled=true;return b},enable:function(b){b=$(b);b.disabled=false;return b}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers={input:function(d,c){switch(d.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(d,c);
default:return Form.Element.Serializers.textarea(d,c)}},inputSelector:function(d,c){if(Object.isUndefined(c)){return d.checked?d.value:null}else{d.checked=!!c}},textarea:function(d,c){if(Object.isUndefined(c)){return d.value}else{d.value=c}},select:function(h,l){if(Object.isUndefined(l)){return this[h.type=="select-one"?"selectOne":"selectMany"](h)}else{var n,m,k=!Object.isArray(l);for(var o=0,j=h.length;o<j;o++){n=h.options[o];m=this.optionValue(n);if(k){if(m==l){n.selected=true;return}}else{n.selected=l.include(m)}}}},selectOne:function(c){var d=c.selectedIndex;return d>=0?this.optionValue(c.options[d]):null},selectMany:function(f){var h,g=f.length;if(!g){return null}for(var j=0,h=[];j<g;j++){var k=f.options[j];if(k.selected){h.push(this.optionValue(k))}}return h},optionValue:function(b){return Element.extend(b).hasAttribute("value")?b.value:b.text}};Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,e,f,d){$super(d,f);this.element=$(e);this.lastValue=this.getValue()},execute:function(){var b=this.getValue();
if(Object.isString(this.lastValue)&&Object.isString(b)?this.lastValue!=b:String(this.lastValue)!=String(b)){this.callback(this.element,b);this.lastValue=b}}});Form.Element.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=Class.create({initialize:function(d,c){this.element=$(d);this.callback=c;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()}else{this.registerCallback(this.element)}},onElementEvent:function(){var b=this.getValue();if(this.lastValue!=b){this.callback(this.element,b);this.lastValue=b}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this)},registerCallback:function(b){if(b.type){switch(b.type.toLowerCase()){case"checkbox":case"radio":Event.observe(b,"click",this.onElementEvent.bind(this));break;default:Event.observe(b,"change",this.onElementEvent.bind(this));
break}}}});Form.Element.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element)}});(function(){var x={KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{}};var N=document.documentElement;var H="onmouseenter" in N&&"onmouseleave" in N;var C;if(Prototype.Browser.IE){var L={0:1,1:4,2:2};C=function(b,a){return b.button===L[a]}}else{if(Prototype.Browser.WebKit){C=function(b,a){switch(a){case 0:return b.which==1&&!b.metaKey;case 1:return b.which==1&&b.metaKey;default:return false}}}else{C=function(b,a){return b.which?(b.which===a+1):(b.button===a)}}}function E(a){return C(a,0)}function D(a){return C(a,1)}function I(a){return C(a,2)}function K(c){c=x.extend(c);var d=c.target,b=c.type,a=c.currentTarget;if(a&&a.tagName){if(b==="load"||b==="error"||(b==="click"&&a.tagName.toLowerCase()==="input"&&a.type==="radio")){d=a
}}if(d.nodeType==Node.TEXT_NODE){d=d.parentNode}return Element.extend(d)}function z(c,b){var d=x.element(c);if(!b){return d}var a=[d].concat(d.ancestors());return Selector.findElement(a,b,0)}function B(a){return{x:Q(a),y:R(a)}}function Q(b){var c=document.documentElement,a=document.body||{scrollLeft:0};return b.pageX||(b.clientX+(c.scrollLeft||a.scrollLeft)-(c.clientLeft||0))}function R(b){var c=document.documentElement,a=document.body||{scrollTop:0};return b.pageY||(b.clientY+(c.scrollTop||a.scrollTop)-(c.clientTop||0))}function F(a){x.extend(a);a.preventDefault();a.stopPropagation();a.stopped=true}x.Methods={isLeftClick:E,isMiddleClick:D,isRightClick:I,element:K,findElement:z,pointer:B,pointerX:Q,pointerY:R,stop:F};var A=Object.keys(x.Methods).inject({},function(a,b){a[b]=x.Methods[b].methodize();return a});if(Prototype.Browser.IE){function O(b){var a;switch(b.type){case"mouseover":a=b.fromElement;break;case"mouseout":a=b.toElement;break;default:return null}return Element.extend(a)}Object.extend(A,{stopPropagation:function(){this.cancelBubble=true
},preventDefault:function(){this.returnValue=false},inspect:function(){return"[object Event]"}});x.extend=function(c,a){if(!c){return false}if(c._extendedByPrototype){return c}c._extendedByPrototype=Prototype.emptyFunction;var b=x.pointer(c);Object.extend(c,{target:c.srcElement||a,relatedTarget:O(c),pageX:b.x,pageY:b.y});return Object.extend(c,A)}}else{x.prototype=window.Event.prototype||document.createEvent("HTMLEvents").__proto__;Object.extend(x.prototype,A);x.extend=Prototype.K}function S(f,b,e){var a=Element.retrieve(f,"prototype_event_registry");if(Object.isUndefined(a)){P.push(f);a=Element.retrieve(f,"prototype_event_registry",$H())}var d=a.get(b);if(Object.isUndefined(d)){d=[];a.set(b,d)}if(d.pluck("handler").include(e)){return false}var c;if(b.include(":")){c=function(g){if(Object.isUndefined(g.eventName)){return false}if(g.eventName!==b){return false}x.extend(g,f);e.call(f,g)}}else{if(!H&&(b==="mouseenter"||b==="mouseleave")){if(b==="mouseenter"||b==="mouseleave"){c=function(h){x.extend(h,f);var j=h.relatedTarget;
while(j&&j!==f){try{j=j.parentNode}catch(g){j=f}}if(j===f){return}e.call(f,h)}}}else{c=function(g){x.extend(g,f);e.call(f,g)}}}c.handler=e;d.push(c);return c}function M(){for(var b=0,a=P.length;b<a;b++){x.stopObserving(P[b]);P[b]=null}}var P=[];if(Prototype.Browser.IE){window.attachEvent("onunload",M)}if(Prototype.Browser.WebKit){window.addEventListener("unload",Prototype.emptyFunction,false)}var T=Prototype.K;if(!H){T=function(a){var b={mouseenter:"mouseover",mouseleave:"mouseout"};return a in b?b[a]:a}}function G(e,b,d){e=$(e);var a=S(e,b,d);if(!a){return e}if(b.include(":")){if(e.addEventListener){e.addEventListener("dataavailable",a,false)}else{e.attachEvent("ondataavailable",a);e.attachEvent("onfilterchange",a)}}else{var c=T(b);if(e.addEventListener){e.addEventListener(c,a,false)}else{e.attachEvent("on"+c,a)}}return e}function J(g,b,c){g=$(g);var e=Element.retrieve(g,"prototype_event_registry");if(Object.isUndefined(e)){return g}if(b&&!c){var d=e.get(b);if(Object.isUndefined(d)){return g}d.each(function(h){Element.stopObserving(g,b,h.handler)
});return g}else{if(!b){e.each(function(h){var k=h.key,j=h.value;j.each(function(l){Element.stopObserving(g,k,l.handler)})});return g}}var d=e.get(b);if(!d){return}var f=d.find(function(h){return h.handler===c});if(!f){return g}var a=T(b);if(b.include(":")){if(g.removeEventListener){g.removeEventListener("dataavailable",f,false)}else{g.detachEvent("ondataavailable",f);g.detachEvent("onfilterchange",f)}}else{if(g.removeEventListener){g.removeEventListener(a,f,false)}else{g.detachEvent("on"+a,f)}}e.set(b,d.without(f));return g}function y(c,e,b,d){c=$(c);if(Object.isUndefined(d)){d=true}if(c==document&&document.createEvent&&!c.dispatchEvent){c=document.documentElement}var a;if(document.createEvent){a=document.createEvent("HTMLEvents");a.initEvent("dataavailable",true,true)}else{a=document.createEventObject();a.eventType=d?"ondataavailable":"onfilterchange"}a.eventName=e;a.memo=b||{};if(document.createEvent){c.dispatchEvent(a)}else{c.fireEvent(a.eventType,a)}return x.extend(a)}Object.extend(x,x.Methods);Object.extend(x,{fire:y,observe:G,stopObserving:J});
Element.addMethods({fire:y,observe:G,stopObserving:J});Object.extend(document,{fire:y.methodize(),observe:G.methodize(),stopObserving:J.methodize(),loaded:false});if(window.Event){Object.extend(window.Event,x)}else{window.Event=x}})();(function(){var g;function f(){if(document.loaded){return}if(g){window.clearTimeout(g)}document.loaded=true;document.fire("dom:loaded")}function h(){if(document.readyState==="complete"){document.stopObserving("readystatechange",h);f()}}function e(){try{document.documentElement.doScroll("left")}catch(a){g=e.defer();return}f()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",f,false)}else{document.observe("readystatechange",h);if(window==top){g=e.defer()}}Event.observe(window,"load",f)})();Element.addMethods();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};Element.Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(d,c){return Element.insert(d,{before:c})},Top:function(d,c){return Element.insert(d,{top:c})
},Bottom:function(d,c){return Element.insert(d,{bottom:c})},After:function(d,c){return Element.insert(d,{after:c})}};var $continue=new Error('"throw $continue" is deprecated, use "return" instead');var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},within:function(d,e,f){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(d,e,f)}this.xcomp=e;this.ycomp=f;this.offset=Element.cumulativeOffset(d);return(f>=this.offset[1]&&f<this.offset[1]+d.offsetHeight&&e>=this.offset[0]&&e<this.offset[0]+d.offsetWidth)},withinIncludingScrolloffsets:function(e,f,g){var h=Element.cumulativeScrollOffset(e);this.xcomp=f+h[0]-this.deltaX;this.ycomp=g+h[1]-this.deltaY;this.offset=Element.cumulativeOffset(e);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+e.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+e.offsetWidth)
},overlap:function(c,d){if(!c){return 0}if(c=="vertical"){return((this.offset[1]+d.offsetHeight)-this.ycomp)/d.offsetHeight}if(c=="horizontal"){return((this.offset[0]+d.offsetWidth)-this.xcomp)/d.offsetWidth}},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(b){Position.prepare();return Element.absolutize(b)},relativize:function(b){Position.prepare();return Element.relativize(b)},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(e,f,d){d=d||{};return Element.clonePosition(f,e,d)}};if(!document.getElementsByClassName){document.getElementsByClassName=function(c){function d(a){return a.blank()?null:"[contains(concat(' ', @class, ' '), ' "+a+" ')]"}c.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(b,f){f=f.toString().strip();var a=/\s/.test(f)?$w(f).map(d).join(""):d(f);return a?document._getElementsByXPath(".//*"+a,b):[]}:function(n,o){o=o.toString().strip();
var q=[],l=(/\s/.test(o)?$w(o):null);if(!l&&!o){return q}var p=$(n).getElementsByTagName("*");o=" "+o+" ";for(var m=0,a,b;a=p[m];m++){if(a.className&&(b=" "+a.className+" ")&&(b.include(o)||(l&&l.all(function(e){return !e.toString().blank()&&b.include(" "+e+" ")})))){q.push(Element.extend(a))}}return q};return function(b,a){return $(a||document.body).getElementsByClassName(b)}}(Element.Methods)}Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(b){this.element=$(b)},_each:function(b){this.element.className.split(/\s+/).select(function(a){return a.length>0})._each(b)},set:function(b){this.element.className=b},add:function(b){if(this.include(b)){return}this.set($A(this).concat(b).join(" "))},remove:function(b){if(!this.include(b)){return}this.set($A(this).without(b).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);var olLoaded=0,pmStart=10000000,pmUpper=10001000,pmCount=pmStart+1,pmt="",pms=new Array(),olInfo=new Info("4.21",1),FREPLACE=0,FBEFORE=1,FAFTER=2,FALTERNATE=3,FCHAIN=4,olHideForm=0,olHautoFlag=0,olVautoFlag=0,hookPts=new Array(),postParse=new Array(),cmdLine=new Array(),runTime=new Array();
registerCommands("donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass");if(typeof ol_fgcolor=="undefined"){var ol_fgcolor="#CCCCFF"}if(typeof ol_bgcolor=="undefined"){var ol_bgcolor="#333399"}if(typeof ol_textcolor=="undefined"){var ol_textcolor="#000000"}if(typeof ol_capcolor=="undefined"){var ol_capcolor="#FFFFFF"}if(typeof ol_closecolor=="undefined"){var ol_closecolor="#9999FF"}if(typeof ol_textfont=="undefined"){var ol_textfont="Verdana,Arial,Helvetica"}if(typeof ol_captionfont=="undefined"){var ol_captionfont="Verdana,Arial,Helvetica"
}if(typeof ol_closefont=="undefined"){var ol_closefont="Verdana,Arial,Helvetica"}if(typeof ol_textsize=="undefined"){var ol_textsize="1"}if(typeof ol_captionsize=="undefined"){var ol_captionsize="1"}if(typeof ol_closesize=="undefined"){var ol_closesize="1"}if(typeof ol_width=="undefined"){var ol_width="200"}if(typeof ol_border=="undefined"){var ol_border="1"}if(typeof ol_cellpad=="undefined"){var ol_cellpad=2}if(typeof ol_offsetx=="undefined"){var ol_offsetx=10}if(typeof ol_offsety=="undefined"){var ol_offsety=10}if(typeof ol_text=="undefined"){var ol_text="Default Text"}if(typeof ol_cap=="undefined"){var ol_cap=""}if(typeof ol_sticky=="undefined"){var ol_sticky=0}if(typeof ol_background=="undefined"){var ol_background=""}if(typeof ol_close=="undefined"){var ol_close="Close"}if(typeof ol_hpos=="undefined"){var ol_hpos=RIGHT}if(typeof ol_status=="undefined"){var ol_status=""}if(typeof ol_autostatus=="undefined"){var ol_autostatus=0}if(typeof ol_height=="undefined"){var ol_height=-1}if(typeof ol_snapx=="undefined"){var ol_snapx=0
}if(typeof ol_snapy=="undefined"){var ol_snapy=0}if(typeof ol_fixx=="undefined"){var ol_fixx=-1}if(typeof ol_fixy=="undefined"){var ol_fixy=-1}if(typeof ol_relx=="undefined"){var ol_relx=null}if(typeof ol_rely=="undefined"){var ol_rely=null}if(typeof ol_fgbackground=="undefined"){var ol_fgbackground=""}if(typeof ol_bgbackground=="undefined"){var ol_bgbackground=""}if(typeof ol_padxl=="undefined"){var ol_padxl=1}if(typeof ol_padxr=="undefined"){var ol_padxr=1}if(typeof ol_padyt=="undefined"){var ol_padyt=1}if(typeof ol_padyb=="undefined"){var ol_padyb=1}if(typeof ol_fullhtml=="undefined"){var ol_fullhtml=0}if(typeof ol_vpos=="undefined"){var ol_vpos=BELOW}if(typeof ol_aboveheight=="undefined"){var ol_aboveheight=0}if(typeof ol_capicon=="undefined"){var ol_capicon=""}if(typeof ol_frame=="undefined"){var ol_frame=self}if(typeof ol_timeout=="undefined"){var ol_timeout=0}if(typeof ol_function=="undefined"){var ol_function=null}if(typeof ol_delay=="undefined"){var ol_delay=0}if(typeof ol_hauto=="undefined"){var ol_hauto=0
}if(typeof ol_vauto=="undefined"){var ol_vauto=0}if(typeof ol_closeclick=="undefined"){var ol_closeclick=0}if(typeof ol_wrap=="undefined"){var ol_wrap=0}if(typeof ol_followmouse=="undefined"){var ol_followmouse=1}if(typeof ol_mouseoff=="undefined"){var ol_mouseoff=0}if(typeof ol_closetitle=="undefined"){var ol_closetitle="Close"}if(typeof ol_compatmode=="undefined"){var ol_compatmode=0}if(typeof ol_css=="undefined"){var ol_css=CSSOFF}if(typeof ol_fgclass=="undefined"){var ol_fgclass=""}if(typeof ol_bgclass=="undefined"){var ol_bgclass=""}if(typeof ol_textfontclass=="undefined"){var ol_textfontclass=""}if(typeof ol_captionfontclass=="undefined"){var ol_captionfontclass=""}if(typeof ol_closefontclass=="undefined"){var ol_closefontclass=""}if(typeof ol_texts=="undefined"){var ol_texts=new Array("Text 0","Text 1")}if(typeof ol_caps=="undefined"){var ol_caps=new Array("Caption 0","Caption 1")}var o3_text="",o3_cap="",o3_sticky=0,o3_background="",o3_close="Close",o3_hpos=RIGHT,o3_offsetx=2,o3_offsety=2,o3_fgcolor="",o3_bgcolor="",o3_textcolor="",o3_capcolor="",o3_closecolor="",o3_width=100,o3_border=1,o3_cellpad=2,o3_status="",o3_autostatus=0,o3_height=-1,o3_snapx=0,o3_snapy=0,o3_fixx=-1,o3_fixy=-1,o3_relx=null,o3_rely=null,o3_fgbackground="",o3_bgbackground="",o3_padxl=0,o3_padxr=0,o3_padyt=0,o3_padyb=0,o3_fullhtml=0,o3_vpos=BELOW,o3_aboveheight=0,o3_capicon="",o3_textfont="Verdana,Arial,Helvetica",o3_captionfont="Verdana,Arial,Helvetica",o3_closefont="Verdana,Arial,Helvetica",o3_textsize="1",o3_captionsize="1",o3_closesize="1",o3_frame=self,o3_timeout=0,o3_timerid=0,o3_allowmove=0,o3_function=null,o3_delay=0,o3_delayid=0,o3_hauto=0,o3_vauto=0,o3_closeclick=0,o3_wrap=0,o3_followmouse=1,o3_mouseoff=0,o3_closetitle="",o3_compatmode=0,o3_css=CSSOFF,o3_fgclass="",o3_bgclass="",o3_textfontclass="",o3_captionfontclass="",o3_closefontclass="";
var o3_x=0,o3_y=0,o3_showingsticky=0,o3_removecounter=0;var over=null,fnRef,hoveringSwitch=false,olHideDelay;var isMac=(navigator.userAgent.indexOf("Mac")!=-1),olOp=(navigator.userAgent.toLowerCase().indexOf("opera")>-1&&document.createTextNode),olNs4=(navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==4),olNs6=(document.getElementById)?true:false,olKq=(olNs6&&/konqueror/i.test(navigator.userAgent)),olIe4=(document.all)?true:false,olIe5=false,olIe55=false,docRoot="document.body";if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight){location.reload()}}}if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6){olNs6=false}}}if(olNs6){olIe4=false}}if(document.compatMode&&document.compatMode=="CSS1Compat"){docRoot=((olIe4&&!olOp)?"document.documentElement":docRoot)}if(window.addEventListener){window.addEventListener("load",OLonLoad_handler,false)
}else{if(window.attachEvent){window.attachEvent("onload",OLonLoad_handler)}}var capExtent;function overlib(){if(!olLoaded||isExclusive(overlib.arguments)){return true}if(olCheckMouseCapture){olMouseCapture()}if(over){over=(typeof over.id!="string")?o3_frame.document.all.overDiv:over;cClick()}olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;o3_capicon=ol_capicon;
o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;o3_closefontclass=ol_closefontclass;setRunTimeVariables();fnRef="";o3_frame=ol_frame;if(!(over=createDivContainer())){return false}parseTokens("o3_",overlib.arguments);if(!postParseChecks()){return false}if(o3_delay==0){return runHook("olMain",FREPLACE)}else{o3_delayid=setTimeout("runHook('olMain',FREPLACE)",o3_delay);return false}}function nd(a){if(olLoaded&&!isExclusive()){hideDelay(a);if(o3_removecounter>=1){o3_showingsticky=0}if(o3_showingsticky==0){o3_allowmove=0;if(over!=null&&o3_timerid==0){runHook("hideObject",FREPLACE,over)
}}else{o3_removecounter++}}return true}function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0}return false}function overlib_pagedefaults(){parseTokens("ol_",overlib_pagedefaults.arguments)}function olMain(){var a,b;runHook("olMain",FBEFORE);if(o3_background!=""||o3_fullhtml){a=runHook("ol_content_background",FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml)}else{b=(pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass");if(o3_fgbackground!=""){o3_fgbackground='background="'+o3_fgbackground+'"'}if(o3_bgbackground!=""){o3_bgbackground=(b?'background="'+o3_bgbackground+'"':o3_bgbackground)}if(o3_fgcolor!=""){o3_fgcolor=(b?'bgcolor="'+o3_fgcolor+'"':o3_fgcolor)}if(o3_bgcolor!=""){o3_bgcolor=(b?'bgcolor="'+o3_bgcolor+'"':o3_bgcolor)}if(o3_height>0){o3_height=(b?'height="'+o3_height+'"':o3_height)}else{o3_height=""}if(o3_cap==""){a=runHook("ol_content_simple",FALTERNATE,o3_css,o3_text)}else{if(o3_sticky){a=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,o3_close)
}else{a=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,"")}}}if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}o3_showingsticky=1;o3_removecounter=0}if(!runHook("createPopup",FREPLACE,a)){return false}if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1){o3_status=o3_cap}}o3_allowmove=0;if(o3_timeout>0){if(o3_timerid>0){clearTimeout(o3_timerid)}o3_timerid=setTimeout("cClick()",o3_timeout)}runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER);return(olOp&&event&&event.type=="mouseover"&&!o3_status)?"":(o3_status!="")}function ol_content_simple(c){var b=/,/.test(o3_cellpad);var a='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_height)+'><tr><td><table width="100%" border="0" '+((olNs4||!b)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&b)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+c+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";
set_background("");return a}function ol_content_caption(g,f,e){var h,a,b=/,/.test(o3_cellpad);var c,d;c="";d="onmouseover";if(o3_closeclick==1){d=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick"}if(o3_capicon!=""){h=' hspace="5" align="middle" alt=""';if(typeof o3_dragimg!="undefined"&&o3_dragimg){h=' hspace="5" name="'+o3_dragimg+'" id="'+o3_dragimg+'" align="middle" alt="Drag Enabled" title="Drag Enabled"'}o3_capicon='<img src="'+o3_capicon+'"'+h+" />"}if(e!=""){c="<td "+(!o3_compatmode&&o3_closefontclass?'class="'+o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+((o3_compatmode&&o3_closefontclass)?' class="'+o3_closefontclass+'" ':" ")+d+'="return '+fnRef+'cClick();">'+(o3_closefontclass?"":wrapStr(0,o3_closesize,"close"))+e+(o3_closefontclass?"":wrapStr(1,o3_closesize,"close"))+"</a></td>"}a='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_bgbackground+" "+o3_height)+'><tr><td><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td'+(o3_captionfontclass?' class="'+o3_captionfontclass+'">':">")+(o3_captionfontclass?"":"<b>"+wrapStr(0,o3_captionsize,"caption"))+o3_capicon+f+(o3_captionfontclass?"":wrapStr(1,o3_captionsize)+"</b>")+"</td>"+c+'</tr></table><table width="100%" border="0" '+((olNs4||!b)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&b)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+g+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";
set_background("");return a}function ol_content_background(c,b,a){if(a){txt=c}else{txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-o3_padxl-o3_padxr)+(o3_textfontclass?'" class="'+o3_textfontclass:"")+'">'+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+c+(o3_textfontclass?"":wrapStr(1,o3_textsize))+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>'}set_background(b);return txt}function set_background(a){if(a==""){if(olNs4){over.background.src=null}else{if(over.style){over.style.backgroundImage="none"}}}else{if(olNs4){over.background.src=a}else{if(over.style){over.style.width=o3_width+"px";over.style.backgroundImage="url("+a+")"}}}}var olShowId=-1;function disp(a){runHook("disp",FBEFORE);if(o3_allowmove==0){runHook("placeLayer",FREPLACE);(olNs6&&olShowId<0)?olShowId=setTimeout("runHook('showObject',FREPLACE,over)",1):runHook("showObject",FREPLACE,over);
o3_allowmove=(o3_sticky||o3_followmouse==0)?0:1}runHook("disp",FAFTER);if(a!=""){self.status=a}}function createPopup(a){runHook("createPopup",FBEFORE);if(o3_wrap){var c,d,b=(olNs4?over:over.style);b.top=b.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);layerWrite(a);c=(olNs4?over.clip.width:over.offsetWidth);if(c>(d=windowWidth())){a=a.replace(/\&nbsp;/g," ");o3_width=d;o3_wrap=0}}layerWrite(a);if(o3_wrap){o3_width=(olNs4?over.clip.width:over.offsetWidth)}runHook("createPopup",FAFTER,a);return true}function placeLayer(){var placeX,placeY,widthFix=0;if(o3_frame.innerWidth){widthFix=18}iwidth=windowWidth();winoffset=(olIe4)?eval("o3_frame."+docRoot+".scrollLeft"):o3_frame.pageXOffset;placeX=runHook("horizontalPlacement",FCHAIN,iwidth,winoffset,widthFix);if(o3_frame.innerHeight){iheight=o3_frame.innerHeight}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval("o3_frame."+docRoot+".clientHeight")){iheight=eval("o3_frame."+docRoot+".clientHeight")}}scrolloffset=(olIe4)?eval("o3_frame."+docRoot+".scrollTop"):o3_frame.pageYOffset;
placeY=runHook("verticalPlacement",FCHAIN,iheight,scrolloffset);repositionTo(over,placeX,placeY)}function olMouseMove(e){var e=(e)?e:event;if(e.pageX){o3_x=e.pageX;o3_y=e.pageY}else{if(e.clientX){o3_x=eval("e.clientX+o3_frame."+docRoot+".scrollLeft");o3_y=eval("e.clientY+o3_frame."+docRoot+".scrollTop")}}if(o3_allowmove==1){runHook("placeLayer",FREPLACE)}if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){(olHideDelay?hideDelay(olHideDelay):cClick());hoveringSwitch=!hoveringSwitch}}function no_overlib(){return ver3fix}function olMouseCapture(){capExtent=document;var fN,str="",l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/;wMv=(!olIe4&&window.onmousemove);if(document.onmousemove||wMv){if(wMv){capExtent=window}f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null){str=f+"(e);"}else{if(fN[1]=="anonymous"||fN[1]=="olMouseMove"||(wMv&&fN[1]=="onmousemove")){if(!olOp&&wMv){l=f.indexOf("{")+1;k=f.lastIndexOf("}");sS=f.substring(l,k);if((l=sS.indexOf("("))!=-1){sS=sS.substring(0,l).replace(/^\s+/,"").replace(/\s+$/,"");
if(eval("typeof "+sS+"=='undefined'")){window.onmousemove=null}else{str=sS+"(e);"}}}if(!str){olCheckMouseCapture=false;return}}else{if(fN[1]){str=fN[1]+"(e);"}else{l=f.indexOf("{")+1;k=f.lastIndexOf("}");str=f.substring(l,k)+"\n"}}}str+="olMouseMove(e);";mseHandler=new Function("e",str)}capExtent.onmousemove=mseHandler;if(olNs4){capExtent.captureEvents(Event.MOUSEMOVE)}}function parseTokens(pf,ar){var v,i,mode=-1,par=(pf!="ol_"),fnMark=(par&&!ar.length?1:0);for(i=0;i<ar.length;i++){if(mode<0){if(typeof ar[i]=="number"&&ar[i]>pmStart&&ar[i]<pmUpper){fnMark=(par?1:0);i--}else{switch(pf){case"ol_":ol_text=ar[i].toString();break;default:o3_text=ar[i].toString()}}mode=0}else{if(ar[i]>=pmCount||ar[i]==DONOTHING){continue}if(ar[i]==INARRAY){fnMark=0;eval(pf+"text=ol_texts["+ar[++i]+"].toString()");continue}if(ar[i]==CAPARRAY){eval(pf+"cap=ol_caps["+ar[++i]+"].toString()");continue}if(ar[i]==STICKY){if(pf!="ol_"){eval(pf+"sticky=1")}continue}if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[++i]+'"');continue}if(ar[i]==NOCLOSE){if(pf!="ol_"){opt_NOCLOSE()
}continue}if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+"hpos="+ar[i]);if(pf!="ol_"){olHautoFlag=1}continue}if(ar[i]==OFFSETX){eval(pf+"offsetx="+ar[++i]);continue}if(ar[i]==OFFSETY){eval(pf+"offsety="+ar[++i]);continue}if(ar[i]==FGCOLOR){eval(pf+'fgcolor="'+ar[++i]+'"');continue}if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[++i]+'"');continue}if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[++i]+'"');continue}if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[++i]+'"');continue}if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[++i]+'"');continue}if(ar[i]==WIDTH){eval(pf+"width="+ar[++i]);continue}if(ar[i]==BORDER){eval(pf+"border="+ar[++i]);continue}if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(++i,ar,(pf+"cellpad"));continue}if(ar[i]==STATUS){eval(pf+"status='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==AUTOSTATUS){eval(pf+"autostatus=("+pf+"autostatus==1)?0:1");continue}if(ar[i]==AUTOSTATUSCAP){eval(pf+"autostatus=("+pf+"autostatus==2)?0:2");continue}if(ar[i]==HEIGHT){eval(pf+"height="+pf+"aboveheight="+ar[++i]);
continue}if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==SNAPX){eval(pf+"snapx="+ar[++i]);continue}if(ar[i]==SNAPY){eval(pf+"snapy="+ar[++i]);continue}if(ar[i]==FIXX){eval(pf+"fixx="+ar[++i]);continue}if(ar[i]==FIXY){eval(pf+"fixy="+ar[++i]);continue}if(ar[i]==RELX){eval(pf+"relx="+ar[++i]);continue}if(ar[i]==RELY){eval(pf+"rely="+ar[++i]);continue}if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[++i]+'"');continue}if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[++i]+'"');continue}if(ar[i]==PADX){eval(pf+"padxl="+ar[++i]);eval(pf+"padxr="+ar[++i]);continue}if(ar[i]==PADY){eval(pf+"padyt="+ar[++i]);eval(pf+"padyb="+ar[++i]);continue}if(ar[i]==FULLHTML){if(pf!="ol_"){eval(pf+"fullhtml=1")}continue}if(ar[i]==BELOW||ar[i]==ABOVE){eval(pf+"vpos="+ar[i]);if(pf!="ol_"){olVautoFlag=1}continue}if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[++i])+"'");
continue}if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[++i]+'"');continue}if(ar[i]==CLOSESIZE){eval(pf+'closesize="'+ar[++i]+'"');continue}if(ar[i]==TIMEOUT){eval(pf+"timeout="+ar[++i]);continue}if(ar[i]==FUNCTION){if(pf=="ol_"){if(typeof ar[i+1]!="number"){v=ar[++i];ol_function=(typeof v=="function"?v:null)}}else{fnMark=0;v=null;if(typeof ar[i+1]!="number"){v=ar[++i]}opt_FUNCTION(v)}continue}if(ar[i]==DELAY){eval(pf+"delay="+ar[++i]);continue}if(ar[i]==HAUTO){eval(pf+"hauto=("+pf+"hauto==0)?1:0");continue}if(ar[i]==VAUTO){eval(pf+"vauto=("+pf+"vauto==0)?1:0");continue}if(ar[i]==CLOSECLICK){eval(pf+"closeclick=("+pf+"closeclick==0)?1:0");continue}if(ar[i]==WRAP){eval(pf+"wrap=("+pf+"wrap==0)?1:0");continue}if(ar[i]==FOLLOWMOUSE){eval(pf+"followmouse=("+pf+"followmouse==1)?0:1");continue}if(ar[i]==MOUSEOFF){eval(pf+"mouseoff=("+pf+"mouseoff==0)?1:0");v=ar[i+1];if(pf!="ol_"&&eval(pf+"mouseoff")&&typeof v=="number"&&(v<pmStart||v>pmUpper)){olHideDelay=ar[++i]
}continue}if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CSSOFF||ar[i]==CSSCLASS){eval(pf+"css="+ar[i]);continue}if(ar[i]==COMPATMODE){eval(pf+"compatmode=("+pf+"compatmode==0)?1:0");continue}if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[++i]+'"');continue}if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[++i]+'"');continue}if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[++i]+'"');continue}i=parseCmdLine(pf,i,ar)}}if(fnMark&&o3_function){o3_text=o3_function()}if((pf=="o3_")&&o3_wrap){o3_width=0;var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text)){o3_text=o3_text.replace(/[ ]+/g,"&nbsp;")}if(!tReg.test(o3_cap)){o3_cap=o3_cap.replace(/[ ]+/g,"&nbsp;")}}if((pf=="o3_")&&o3_sticky){if(!o3_close&&(o3_frame!=ol_frame)){o3_close=ol_close}if(o3_mouseoff&&(o3_frame==ol_frame)){opt_NOCLOSE(" ")}}}function layerWrite(a){a+="\n";if(olNs4){var b=o3_frame.document.layers.overDiv.document;
b.write(a);b.close()}else{if(typeof over.innerHTML!="undefined"){if(olIe5&&isMac){over.innerHTML=""}over.innerHTML=a}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(a);while(over.hasChildNodes()){over.removeChild(over.lastChild)}over.appendChild(domfrag)}}}function showObject(b){runHook("showObject",FBEFORE);var a=(olNs4?b:b.style);a.visibility="visible";runHook("showObject",FAFTER)}function hideObject(b){runHook("hideObject",FBEFORE);var a=(olNs4?b:b.style);if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0}a.visibility="hidden";a.top=a.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);if(o3_timerid>0){clearTimeout(o3_timerid)}if(o3_delayid>0){clearTimeout(o3_delayid)}o3_timerid=0;o3_delayid=0;self.status="";if(b.onmouseout||b.onmouseover){if(olNs4){b.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER)}b.onmouseout=b.onmouseover=null}runHook("hideObject",FAFTER)}function repositionTo(c,d,a){var b=(olNs4?c:c.style);b.left=d+(!olNs4?"px":0);b.top=a+(!olNs4?"px":0)
}function cursorOff(){var d=parseInt(over.style.left);var c=parseInt(over.style.top);var a=d+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var b=c+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);if(o3_x<d||o3_x>a||o3_y<c||o3_y>b){return true}return false}function opt_FUNCTION(callme){o3_text=(callme?(typeof callme=="string"?(/.+\(.*\)/.test(callme)?eval(callme):callme):callme()):(o3_function?o3_function():"No Function"));return 0}function opt_NOCLOSE(a){if(!a){o3_close=""}if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}};over.onmouseout=function(b){if(olHideDelay){hideDelay(olHideDelay)}else{cClick(b)}}}else{over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}}}return 0}function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str="";for(k=i;k<args.length;k++){if(typeof args[k]=="number"&&args[k]>pmStart){break}str+=args[k]+","
}if(str){str=str.substring(0,--str.length)}k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(",")[0]:str;eval(parameter+'="'+pV+'"');return k}function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g," ");o3_cap=o3_cap.replace(/\&nbsp;/g," ")}}function escSglQuote(a){return a.toString().replace(/'/g,"\\'")}function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i;if(!olLoaded){olLoaded=1}if(window.removeEventListener&&e.eventPhase==3){window.removeEventListener("load",OLonLoad_handler,false)}else{if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute("onload");if(fN){fN=fN.toString().match(re);if(fN&&fN.length){for(i=0;i<fN.length;i++){if(/anonymous/.test(fN[i])){continue}while((l=fN[i].search(/\)[;\s]+/))!=-1){fn=fN[i].substring(0,l+1);fN[i]=fN[i].substring(l+2);if(olre.test(fn)){eval(fn)}}}}}}}}function wrapStr(endWrap,fontSizeStr,whichString){var fontStr,fontColor,isClose=((whichString=="close")?1:0),hasDims=/[%\-a-z]+$/.test(fontSizeStr);
fontSizeStr=(olNs4)?(!hasDims?fontSizeStr:"1"):fontSizeStr;if(endWrap){return(hasDims&&!olNs4)?(isClose?"</span>":"</div>"):"</font>"}else{fontStr="o3_"+whichString+"font";fontColor="o3_"+((whichString=="caption")?"cap":whichString)+"color";return(hasDims&&!olNs4)?(isClose?'<span style="font-family: '+quoteMultiNameFonts(eval(fontStr))+";color: "+eval(fontColor)+";font-size: "+fontSizeStr+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(fontStr))+";color: "+eval(fontColor)+";font-size: "+fontSizeStr+';">'):'<font face="'+eval(fontStr)+'" color="'+eval(fontColor)+'" size="'+(parseInt(fontSizeStr)>7?"7":fontSizeStr)+'">'}}function quoteMultiNameFonts(a){var b,c=a.split(",");for(var d=0;d<c.length;d++){b=c[d];b=b.replace(/^\s+/,"").replace(/\s+$/,"");if(/\s/.test(b)&&!/['"]/.test(b)){b="'"+b+"'";c[d]=b}}return c.join()}function isExclusive(a){return false}function setCellPadStr(h){var e="",a=0,c=new Array(),g,d,f,b;e+="padding: ";c=h.replace(/\s+/g,"").split(",");switch(c.length){case 2:g=d=c[a];f=b=c[++a];
break;case 3:g=c[a];f=b=c[++a];d=c[++a];break;case 4:g=c[a];b=c[++a];d=c[++a];f=c[++a];break}e+=((c.length==1)?c[0]+"px;":g+"px "+b+"px "+d+"px "+f+"px;");return e}function hideDelay(a){if(a&&!o3_delay){if(o3_timerid>0){clearTimeout(o3_timerid)}o3_timerid=setTimeout("cClick()",(o3_timeout=a))}}function horizontalPlacement(g,f,a){var h,c=g,b=f;var e=parseInt(o3_width);if(o3_fixx>-1||o3_relx!=null){h=(o3_relx!=null?(o3_relx<0?b+o3_relx+c-e-a:b+o3_relx):o3_fixx)}else{if(o3_hauto==1){if((o3_x-b)>(c/2)){o3_hpos=LEFT}else{o3_hpos=RIGHT}}if(o3_hpos==CENTER){h=o3_x+o3_offsetx-(e/2);if(h<b){h=b}}if(o3_hpos==RIGHT){h=o3_x+o3_offsetx;if((h+e)>(b+c-a)){h=c+b-e-a;if(h<0){h=0}}}if(o3_hpos==LEFT){h=o3_x-o3_offsetx-e;if(h<b){h=b}}if(o3_snapx>1){var d=h%o3_snapx;if(o3_hpos==LEFT){h=h-(o3_snapx+d)}else{h=h+(o3_snapx-d)}if(h<b){h=b}}}return h}function verticalPlacement(c,b){var a,g=c,d=b;var f=(o3_aboveheight?parseInt(o3_aboveheight):(olNs4?over.clip.height:over.offsetHeight));if(o3_fixy>-1||o3_rely!=null){a=(o3_rely!=null?(o3_rely<0?d+o3_rely+g-f:d+o3_rely):o3_fixy)
}else{if(o3_vauto==1){if((o3_y-d)>(g/2)&&o3_vpos==BELOW&&(o3_y+f+o3_offsety-(d+g)>0)){o3_vpos=ABOVE}else{if(o3_vpos==ABOVE&&(o3_y-(f+o3_offsety)-d<0)){o3_vpos=BELOW}}}if(o3_vpos==ABOVE){if(o3_aboveheight==0){o3_aboveheight=f}a=o3_y-(o3_aboveheight+o3_offsety);if(a<d){a=d}}else{a=o3_y+o3_offsety}if(o3_snapy>1){var e=a%o3_snapy;if(o3_aboveheight>0&&o3_vpos==ABOVE){a=a-(o3_snapy+e)}else{a=a+(o3_snapy-e)}if(a<d){a=d}}}return a}function checkPositionFlags(){if(olHautoFlag){olHautoFlag=o3_hauto=0}if(olVautoFlag){olVautoFlag=o3_vauto=0}return true}function windowWidth(){var w;if(o3_frame.innerWidth){w=o3_frame.innerWidth}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval("o3_frame."+docRoot+".clientWidth")){w=eval("o3_frame."+docRoot+".clientWidth")}}return w}function createDivContainer(f,d,c){f=(f||"overDiv"),d=(d||o3_frame),c=(c||1000);var e,b=layerReference(f);if(b==null){if(olNs4){b=d.document.layers[f]=new Layer(window.innerWidth,d);e=b}else{var a=(olIe4?d.document.all.tags("BODY")[0]:d.document.getElementsByTagName("BODY")[0]);
if(olIe4&&!document.getElementById){a.insertAdjacentHTML("beforeEnd",'<div id="'+f+'"></div>');b=layerReference(f)}else{b=d.document.createElement("DIV");b.id=f;a.appendChild(b)}e=b.style}e.position="absolute";e.visibility="hidden";e.zIndex=c;if(olIe4&&!olOp){e.left=e.top="0px"}else{e.left=e.top=-10000+(!olNs4?"px":0)}}return b}function layerReference(a){return(olNs4?o3_frame.document.layers[a]:(document.all?o3_frame.document.all[a]:o3_frame.document.getElementById(a)))}function isFunction(c){var b=true;if(typeof c=="object"){for(var a=0;a<c.length;a++){if(typeof c[a]=="function"){continue}b=false;break}}else{if(typeof c!="function"){b=false}}return b}function argToString(g,d,f){var e=d,a="",c=g;f=(f?f:"ar");if(c.length>e){for(var b=e;b<c.length;b++){a+=f+"["+b+"], "}a=a.substring(0,a.length-2)}return a}function reOrder(f,g,a){var b=new Array(),d,e,c;if(!a||typeof a=="undefined"||typeof a=="number"){return f}if(typeof a=="function"){if(typeof g=="object"){b=b.concat(g)}else{b[b.length++]=g}for(e=0;e<f.length;e++){d=false;
if(typeof g=="function"&&f[e]==g){continue}else{for(c=0;c<g.length;c++){if(f[e]==g[c]){d=true;break}}}if(!d){b[b.length++]=f[e]}}b[b.length++]=a}else{if(typeof a=="object"){if(typeof g=="object"){b=b.concat(g)}else{b[b.length++]=g}for(c=0;c<f.length;c++){d=false;if(typeof g=="function"&&f[c]==g){continue}else{for(e=0;e<g.length;e++){if(f[c]==g[e]){d=true;break}}}if(!d){b[b.length++]=f[c]}}for(e=0;e<b.length;e++){f[e]=b[e]}b.length=0;for(c=0;c<f.length;c++){d=false;for(e=0;e<a.length;e++){if(f[c]==a[e]){d=true;break}}if(!d){b[b.length++]=f[c]}}b=b.concat(a)}}f=b;return f}function setRunTimeVariables(){if(typeof runTime!="undefined"&&runTime.length){for(var a=0;a<runTime.length;a++){runTime[a]()}}}function parseCmdLine(a,e,d){if(typeof cmdLine!="undefined"&&cmdLine.length){for(var b=0;b<cmdLine.length;b++){var c=cmdLine[b](a,e,d);if(c>-1){e=c;break}}}return e}function postParseChecks(a,c){if(typeof postParse!="undefined"&&postParse.length){for(var b=0;b<postParse.length;b++){if(postParse[b](a,c)){continue}return false
}}return true}function registerCommands(cmdStr){if(typeof cmdStr!="string"){return}var pM=cmdStr.split(",");pms=pms.concat(pM);for(var i=0;i<pM.length;i++){eval(pM[i].toUpperCase()+"="+pmCount++)}}function registerNoParameterCommands(a){if(!a&&typeof a!="string"){return}pmt=(!pmt)?a:pmt+","+a}function registerHook(f,e,a,b){var d,c=typeof b;if(f=="plgIn"||f=="postParse"){return}if(typeof hookPts[f]=="undefined"){hookPts[f]=new FunctionReference()}d=hookPts[f];if(a!=null){if(a==FREPLACE){d.ovload=e;if(f.indexOf("ol_content_")>-1){d.alt[pms[CSSOFF-1-pmStart]]=e}}else{if(a==FBEFORE||a==FAFTER){var d=(a==1?d.before:d.after);if(typeof e=="object"){d=d.concat(e)}else{d[d.length++]=e}if(b){d=reOrder(d,e,b)}}else{if(a==FALTERNATE){if(c=="number"){d.alt[pms[b-1-pmStart]]=e}}else{if(a==FCHAIN){d=d.chain;if(typeof e=="object"){d=d.concat(e)}else{d[d.length++]=e}}}}}return}}function registerRunTimeFunction(a){if(isFunction(a)){if(typeof a=="object"){runTime=runTime.concat(a)}else{runTime[runTime.length++]=a}}}function registerCmdLineFunction(a){if(isFunction(a)){if(typeof a=="object"){cmdLine=cmdLine.concat(a)
}else{cmdLine[cmdLine.length++]=a}}}function registerPostParseFunction(a){if(isFunction(a)){if(typeof a=="object"){postParse=postParse.concat(a)}else{postParse[postParse.length++]=a}}}function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments;if(hookType==FREPLACE){arS=argToString(ar,2);if(typeof l=="undefined"||!(l=l.ovload)){rtnVal=eval(fnHookTo+"("+arS+")")}else{rtnVal=eval("l("+arS+")")}}else{if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!="undefined"){l=(hookType==1?l.before:l.after);if(l.length){arS=argToString(ar,2);for(var k=0;k<l.length;k++){eval("l[k]("+arS+")")}}}}else{if(hookType==FALTERNATE){optPm=ar[2];arS=argToString(ar,3);if(typeof l=="undefined"||(l=l.alt[pms[optPm-1-pmStart]])=="undefined"){rtnVal=eval(fnHookTo+"("+arS+")")}else{rtnVal=eval("l("+arS+")")}}else{if(hookType==FCHAIN){arS=argToString(ar,2);l=l.chain;for(k=l.length;k>0;k--){if((rtnVal=eval("l[k-1]("+arS+")"))!=void (0)){break}}}}}}return rtnVal}function FunctionReference(){this.ovload=null;
this.before=new Array();this.after=new Array();this.alt=new Array();this.chain=new Array()}function Info(a,b){this.version=a;this.prerelease=b;this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major*10;this.revision=parseInt(this.simpleversion)-this.major*100-this.minor*10;this.meets=meets}function meets(a){return(!a)?false:this.simpleversion>=Math.round(100*parseFloat(a))}registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);
registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||(olIe5&&isMac)||olKq){olLoaded=1}registerNoParameterCommands("sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode");var olCheckMouseCapture=true;if((olNs4||olNs6||olIe4)){olMouseCapture()}else{overlib=no_overlib;nd=no_overlib;ver3fix=true}function babFlashHide(){for(var a=0;a<document.getElementsByTagName("embed").length;a++){document.getElementsByTagName("embed")[a].style.visibility="hidden"}for(var a=0;a<document.getElementsByTagName("object").length;a++){document.getElementsByTagName("object")[a].style.visibility="hidden"}for(var a=0;a<document.getElementsByTagName("iframe").length;a++){document.getElementsByTagName("iframe")[a].style.visibility="hidden"}}function babFlashShow(b){for(var a=0;a<document.getElementsByTagName("embed").length;a++){document.getElementsByTagName("embed")[a].style.visibility="visible"}for(var a=0;a<document.getElementsByTagName("object").length;a++){document.getElementsByTagName("object")[a].style.visibility="visible"
}for(var a=0;a<document.getElementsByTagName("iframe").length;a++){document.getElementsByTagName("iframe")[a].style.visibility="visible"}}function babPrepModal(a){if($(a)!=null){$(a).remove()}$("babBody").insert({bottom:"<div id='"+a+"' style='position:absolute;z-index:1000;top:0px;left:0px;'></div>"})}function babDDLangShow(){babPrepModal("placeModal");var a="/tools/getDDLang.php";new Ajax.Updater("placeModal",a,{evalScripts:true,onSuccess:function(b){babFlashHide()},onFailure:function(b){alert(emLostConnection)}})}function babDDLangHide(){babFlashShow();$("placeModal").innerHTML="";$("babBody").stopObserving("click")}function babNavMoreShow(){babFlashHide();$("babDDNavMore").setStyle({left:($("babNavMore").viewportOffset().left-7)+"px"});$("babDDNavMore").removeClassName("babDDNavMore");$("babBody").observe("click",babNavMoreHide)}function babNavMoreHide(){babFlashShow();$("babDDNavMore").addClassName("babDDNavMore");$("babBody").stopObserving("click")}function babSelSearch(b){var a="/tools/chgDD.php";new Ajax.Updater("placeModal",a,{method:"post",parameters:{s:b,d:babDictShort},evalScripts:true,onFailure:function(c){alert(emLostConnection)
}})}function getRegister(){babGetRegister()}function babGetRegister(){if($("babPM")==null){}var a="/tools/getRegister.php";new Ajax.Updater("babPM",a,{method:"post",parameters:{},evalScripts:true,onFailure:function(b){alert("Die Verbindung zum Server wurde unterbrochen. Bitte versuche es später nochmal.")}})}function showRegister(){babHideSelects();window.scrollTo(0,0);updateCaptcha("imgRegCaptcha");$("babMBgd").show();$("modalRegister").show()}function doRegister(){var a="/tools/register.php";var c=0,b=0;try{c=gRegType}catch(d){c=0}try{b=gRegTypeId}catch(d){b=0}new Ajax.Request(a,{method:"post",parameters:{nickname:$("regNickname").value,email:$("regEmail").value,email2:$("regEmail2").value,passLength:$("regPassword").value.length,password:hex_sha1($("regPassword").value),password2:hex_sha1($("regPassword2").value),agbcheck:($("regTosCheck").checked?"1":"0"),newsletter:($("regNewsletter").checked?"1":"0"),captcha:$("regCaptcha").value,regType:c,regTypeId:b},onSuccess:function(e){},onFailure:function(e){alert(emLostConnection)
}})}function closeRegister(){babShowSelects();if($("modalRegister")!=null){$("modalRegister").hide()}if($("babMBgd")!=null){$("babMBgd").hide()}}function testNickname(){url="/tools/testNickname.php";new Ajax.Request(url,{method:"post",parameters:{nickname:$("regNickname").value},onFailure:function(a){alert(emLostConnection)}})}function getLogin(){babGetLogin()}function babGetLogin(){if($("placeModal")==null){}var a="/tools/getLogin.php";new Ajax.Updater("placeModal",a,{method:"post",evalScripts:true,onFailure:function(b){alert(emLostConnection)}})}function showLogin(){babHideSelects();window.scrollTo(0,0);$("babMBgd").show();$("modalLogin").show();$("mLoginNickname").focus()}function doLogin(){if($("mLoginNickname").value==""){alert(emNickname)}else{if($("mLoginPass").value==""){alert(emPassword)}else{$("mLoginPassHash").value=hex_sha1(hex_sha1($("mLoginPass").value+hashHelp));$("mLoginPassHash").value=hex_sha1($("mLoginPass").value);$("mLoginPass").value="";var a="/tools/setlogin.php";new Ajax.Request(a,{method:"post",parameters:{nickname:$("mLoginNickname").value,passhash:$("mLoginPassHash").value},onSuccess:function(b){},onFailure:function(b){alert(emLostConnection)
}})}}}function closeLogin(){babShowSelects();if($("modalLogin")!=null){$("modalLogin").hide()}if($("babMBgd")!=null){$("babMBgd").hide()}}function babDoLogout(){var a="/tools/setlogout.php";new Ajax.Request(a,{method:"post",onSuccess:function(b){},onFailure:function(b){alert(emLostConnection)}})}function getSuggestion(){var a="/tools/getSuggestion.php";new Ajax.Updater("placeModal",a,{method:"post",parameters:{language:babDictShort},evalScripts:true,onFailure:function(b){alert(emLostConnection)}})}babAddEvent(window,"load",babInitSuggest);function babSuggest(k){var n=this;var a=null;var s=null;var e=new Array();var c=-1;var m=false;var o=new Date();var j=10;var r=function(w){window.suggest.handle(w)};var p=function(w){window.suggest.hide()};var d=function(w){var x=(window.event)?window.event:w;if(x.keyCode==13){return false}};t();function t(){b()}function b(){k.setAttribute("autocomplete","off",0);babAddEvent(k,"keyup",r);babAddEvent(k,"keypress",d);babAddEvent(document.getElementsByTagName("body")[0],"click",p)
}function v(){k.removeAttribute("autocomplete");babRemoveEvent(k,"keyup",r);babRemoveEvent(k,"keypress",d);babRemoveEvent(document.getElementsByTagName("body")[0],"click",p)}function g(w){var x=new Date();if(w.length<4){if($("babDDBox")){$("babDDBox").style.visibility="hidden"}return}if(!m&&(x-o>100)){m=true;o=new Date();new Ajax.Updater("babDDBox","/tools/wordresults.php",{method:"post",parameters:{q:$("babQ").value,dict:babDictShort},onSuccess:function(z){var y=$("babQ").viewportOffset();$("babDDBox").style.top=y.top+$("babQ").offsetHeight;$("babDDBox").style.left=y.left;$("babDDBox").style.visibility="visible";m=false},onFailure:function(y){$("babDDBox").style.visibility="hidden";m=false},onCompletion:function(y){m=false}})}}function f(w){return(window.event)?window.event:w}function q(w){var x=f(w);return(x.target)?x.target:x.srcElement}function h(w){var x=f(w);if(x.keyCode){if(x.keyCode==38||x.keyCode==40||x.keyCode==13){switch(x.keyCode){case 38:if(c>0){$("babSuggestion").firstChild.childNodes[c].style.backgroundColor="#fff";
c--;$("babSuggestion").firstChild.childNodes[c].style.backgroundColor="#ebf4fc";babDictQ.value=$("babSuggestion").firstChild.childNodes[c].firstChild.firstChild.innerHTML}return;case 40:if($("babSuggestion")&&c<$("babSuggestion").firstChild.childNodes.length-1){if(c>=0){$("babSuggestion").firstChild.childNodes[c].style.backgroundColor="#fff"}c++;$("babSuggestion").firstChild.childNodes[c].style.backgroundColor="#ebf4fc";babDictQ=$("babSuggestion").firstChild.childNodes[c].firstChild.firstChild.innerHTML}return;case 13:if(c>=0){babSearch(babDictQ)}else{babSearch($("babQ").value)}return}}}g(q(x).value)}function l(){if($("babDDBox")){$("babDDBox").innerHTML=""}}n.handle=h;n.hide=l}var suggestIsInitialized=false;function babInitSuggest(){if(!suggestIsInitialized){var a=document.getElementsByName("babQ")[0];if((a)){window.suggest=new babSuggest(a)}suggestIsInitialized=true}}function babAddEvent(e,a,b,d){if(e.addEventListener){e.addEventListener(a,b,d);return true}else{if(e.attachEvent){var c=e.attachEvent("on"+a,b);
return c}}}function babRemoveEvent(e,a,b,d){if(e.removeEventListener){e.removeEventListener(a,b,d);return true}else{if(e.detachEvent){var c=e.detachEvent("on"+a,b);return c}}}function babDDChange(b){var a="/tools/chgDD.php";new Ajax.Updater("placeModal",a,{method:"post",parameters:{s:b},evalScripts:true,onFailure:function(c){alert(emLostConnection)}})}function babSearch(a){try{if(babSearchType=="d"){}}catch(b){babSearchType="d"}switch(babSearchType){case"d":babDictSearch(a);break;case"g":case"i":case"w":window.open(babSearchBaseUrl+encodeURI(a),"_blank");break}}function babDictSearch(b){if(b.length>0){var a=babDictUrl+babDictName+encodeURI(b)+".html";location.href=a}}function babDDDictShow(){var a="";try{if(babSearchType=="d"){}}catch(b){babSearchType="d"}switch(babSearchType){case"g":case"i":case"w":a="/tools/getDDOtherSearches.php";break;case"d":default:a="/tools/getDDDict.php";break}new Ajax.Updater("placeModal",a,{evalScripts:true,parameters:{s:babSearchType},onSuccess:function(c){babFlashHide()},onFailure:function(c){alert(emLostConnection)
}})}function babDDDictMore(a){if(babDictMoreLast.length>0){$("babMDDDict"+babDictMoreLast).removeClassName("babBgb4cde1")}babDictMoreLast=a;$("babMDDDict"+a).addClassName("babBgb4cde1");moreHTML="";for(var b in babADicts[a]){moreHTML+="<div onclick='babDDDictSlct(\""+a+'","'+b+"\");' onmouseover='babChgText(this,\"o_u\")' onmouseout='babChgText(this,\"b_nu\")'>"+babALang[a]+"&lt;&gt;"+babALang[b]+"</div>"}$("babMDDDictMore").update(moreHTML);$("babMDDDictMore").setStyle({top:$("babMDDDict"+a).viewportOffset().top-0+"px",left:$("babMDDDict"+a).viewportOffset().left+$("babMDDDict"+a).getWidth()+1+"px"});$("babMDDDictMore").show()}function babDDOSMore(a){if(babDictMoreLast.length>0){$("babMDDDict"+babDictMoreLast).removeClassName("babBgb4cde1")}babDictMoreLast=a;$("babMDDDict"+a).addClassName("babBgb4cde1")}function babDDDictSlct(b,a){babDictName=babADir[b]+"-"+babADir[a]+"/";babDictShort=b+a;$("babDDictL").innerHTML=babALang[b]+"&lt;&gt;"+babALang[a];babDDDictHide()}function babDDOSSlct(a){switch(babSearchType){case"g":$("babDDictL").innerHTML=babAOS[a]+babAOSAdd;
babSearchBaseUrl="http://www."+babAOS[a]+"/cse?cx=partner-pub-6559961775616345:fdd8bzkbt38&ie=UTF-8&sa=Search&q=";break;case"i":$("babDDictL").innerHTML=babAOS[a]+babAOSAdd;babSearchBaseUrl="http://images."+babAOS[a]+"/images?q=";break;case"w":$("babDDictL").innerHTML=babAON[a];babSearchBaseUrl="http://"+babAOS[a]+"/wiki/";break}}function babDDDictHide(){babFlashShow();$("placeModal").innerHTML="";$("babBody").stopObserving("click")}function babSpeak(b,a){url="/sounds/speak.php?id="+b+"%26lang="+a;speak_html="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='10' height='10'><param name='movie' value='"+url+"'><param name='quality' value='high'><param name='loop' value='false'><param name='bgcolor' value='#000000'><param name='menu' value='false'><embed src='"+url+"' loop='false' width='1' height='1' quality='high' bgcolor='#00000f' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' menu='false'></embed></object>";
speak_html="<object type='application/x-shockwave-flash' data='/emff.swf' width='1' height='1'><param name='bgcolor' value='#ffffff'><param name='movie' value='/emff.swf'><param name='FlashVars' value='src="+url+"&amp;autoload=yes&amp;autostart=yes'></object>";$("placeModal").show();$("placeModal").innerHTML=speak_html;pageTracker._trackPageview("/"+gSiteLang+url)}function babChgAd(b){var a={babAdTop:10,babAdSky:11}}function babVT(g,d,e,b,c){if((g==1)||(g==-1)){var f="/tools/rankVote.php";var a="/actions/"+c+"/"+b+"/rankvote/"+e;new Ajax.Request(f,{method:"post",parameters:{language:b,term:d,voteTransId:e,vote:g},onSuccess:function(h){},onFailure:function(h){alert(emLostConnection)}});pageTracker._trackPageview(a)}}function babChPic2(e,b){var a="/img/voted-yes.png";var d="/img/voted-no.png";var c="/img/vote-yes.gif";var f="/img/vote-no.gif";if(b=="VotedYes"){return e.src=a}else{if(b=="VotedNo"){return e.src=d}else{if(b=="VoteYes"){return e.src=c}else{if(b=="VoteNo"){return e.src=f}}}}}function babChPic(f,b){var a="/img/arrowGreen.png";
var c="/img/arrowRed.png";var e="/img/arrowUp.gif";var d="/img/arrowDown.gif";if(b=="Up"){return document.getElementById(f).src=e}else{if(b=="Down"){return document.getElementById(f).src=d}else{if(b=="Green"){return document.getElementById(f).src=a}else{if(b=="Red"){return document.getElementById(f).src=c}}}}}function babReportShow(a){$("rpSent_"+a).show()}function babReportHide(a){$("rpSent_"+a).hide()}function babReportSent(e,f,d,a){var c="/actions/"+d+"/"+a+"/reportsent/"+f+"/"+e;var b="/tools/reportSentence.php";new Ajax.Request(b,{method:"post",parameters:{sentId:$("sentId_"+e).value,sentLang:$("sentLang_"+e).value,rpReason:$("reason_"+e).value,rpMessage:$("message_"+e).value,rpName:$("name_"+e).value,rpEmail:$("email_"+e).value},onSuccess:function(g){},onFailure:function(g){alert(emLostConnection)}});pageTracker._trackPageview(c)}function babVS(g,f,a,e,b){if(g==1){var d="/actions/"+e+"/"+b+"/sentvote/"+a+"/"+f;var c="/tools/voteSentence.php";new Ajax.Request(c,{method:"post",parameters:{sentLang:a,sentId:f,sentVote:g},onSuccess:function(h){},onFailure:function(h){alert(emLostConnection)
}});pageTracker._trackPageview(d)}}function babFilterAdd(a){url=location.href;if(url.indexOf("?")>0){url+="&filter[]="+a}else{url="?filter[]="+a}babET(2);location.href=url}function babFilterRemove(id){u=location.href.toString();reg=eval("/filter\\[\\]="+id+"&*/");u=u.replace(reg,"");lc=u.charAt(u.length-1);if("?"==lc||"&"==lc){u=u.substr(0,u.length-1)}babET(2);location.href=u.replace(reg,"")}function toggleFilterView(a){a=a.substr(0,1).toUpperCase()+a.substr(1);if($("babFilter"+a).style.display=="none"){$("babFilter"+a).show();$("babFilterArrow"+a).removeClassName("arrowRight");$("babFilterArrow"+a).addClassName("arrow");$("babFilterArrow"+a).removeClassName("babArrowRight");$("babFilterArrow"+a).addClassName("babArrowDown")}else{$("babFilter"+a).hide();$("babFilterArrow"+a).removeClassName("babArrowDown");$("babFilterArrow"+a).addClassName("babArrowRight")}babET(2)}function babFilterShowMore(a){a=a.substr(0,1).toUpperCase()+a.substr(1);if($("babFilterMore"+a)!=null){$("babFilterMore"+a).show()}if($("babFilterML"+a)!=null){$("babFilterML"+a).hide()
}babET(2)}function babLastSearches(a){u=location.href.toString();u=u.replace(/last=activate&*/,"");u=u.replace(/last=deactivate&*/,"");lc=u.charAt(u.length-1);if("?"==lc||"&"==lc){u=u.substr(0,u.length-1)}if(u.indexOf("?")>0){u+="&"}else{u+="?"}switch(a){case"start":u+="last=activate";location.href=u;break;case"stop":u+="last=deactivate";location.href=u;break}}function babWebSearch(b,c,e){if($(e)!=null){var a="/tools/getWeb.php";new Ajax.Updater(e,a,{method:"post",evalScripts:true,parameters:{q:b,d:c},onSuccess:function(d){},onFailure:function(d){alert(emLostConnection)}})}}function updateCaptcha(a){var b=new Date();$(a).src="/img/captcha/captcha.php?time="+b.getTime()}function ol(a){return overlib("&nbsp;"+a,MOUSEOFF,WIDTH,150,FGCOLOR,"#FFFF90",BGCOLOR,"#EBEBA9",TEXTSIZE,2,DELAY,250)}function babOl(a){return overlib("&nbsp;"+a,MOUSEOFF,WIDTH,150,FGCOLOR,"#FFFF90",BGCOLOR,"#EBEBA9",TEXTSIZE,2,DELAY,250)}function lengthValidation(b,a){babLenVal(b,a)}function babLenVal(b,a){if(b.value.length>a){b.value=b.value.substring(0,a)
}}function changeBgColor(a,b){if(b==0){a.style.backgroundColor="#FFFFFF"}else{a.style.backgroundColor="#CCCCCC"}}function doDelete(){var a="/tools/setDelete.php";new Ajax.Request(a,{method:"post",parameters:{},onSuccess:function(b){},onFailure:function(b){alert(emLostConnection)}})}function instructions(a){window.open(a,"babla_instructions","width=400, height=400, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no")}function highlightText(g,c,f,e){if((!f)||(!e)){f="<span style='color:blue; background-color:yellow;'>";e="</span>"}var d="";var b=-1;var a=c.toLowerCase();var h=g.toLowerCase();while(g.length>0){b=h.indexOf(a,b+1);if(b<0){d+=g;g=""}else{if(g.lastIndexOf(">",b)>=g.lastIndexOf("<",b)){if(h.lastIndexOf("/script>",b)>=h.lastIndexOf("<script",b)){d+=g.substring(0,b)+f+g.substr(b,c.length)+e;g=g.substr(b+c.length);h=g.toLowerCase();b=-1}}}}return d}function doSubscribe(a,c){var b="/tools/subscribeTest.php?nickname="+a;if(typeof(c)!="undefined"){b+="&testId="+c}new Ajax.Updater("placeModal",b,{method:"get",evalScripts:true,onSuccess:function(d){},onFailure:function(d){alert(emLostConnection)
}})}function showModal(b){if(UserAgent.MSIE){var a=document.getElementsByTagName("select");for(i=0;i<a.length;i++){a[i].style.visibility="hidden"}}window.scrollTo(0,0);$("modalBkgd").show();$("modal"+b).show()}function closeModal(b){if(UserAgent.MSIE){var a=document.getElementsByTagName("select");for(i=0;i<a.length;i++){a[i].style.visibility=""}}if($("modal"+b)!=null){$("modal"+b).hide()}if($("modalBkgd")!=null){$("modalBkgd").hide()}}function awo(b){var c=window.open(b,"p","");c.focus()}function hideSelects(a){babHideSelects(a)}function babHideSelects(a){babFlashHide();if(UserAgent.MSIE){if(a==null){a=document.getElementsByTagName("select")}var a=document.getElementsByTagName("select");for(i=0;i<a.length;i++){a[i].style.visibility="hidden"}}}function showSelects(a){babShowSelects(a)}function babShowSelects(a){babFlashShow();if(UserAgent.MSIE){if(a==null){selects=document.getElementsByTagName("select")}else{selects=a.getElementsByTagName("select")}for(i=0;i<selects.length;i++){selects[i].style.visibility=""}}}function openWindow(c,a,b){window.open(c,a,b)
}var UserAgent={};if(navigator.userAgent.indexOf("AppleWebKit")>-1){UserAgent.WEBKIT=true}else{if(navigator.userAgent.indexOf("Opera")>-1){UserAgent.OPERA=true;UserAgent.VERSION=navigator.userAgent.match(/Opera.(\d)/)[1]}else{if(navigator.userAgent.indexOf("KHTML")>-1){UserAgent.KHTML=true}else{if(navigator.userAgent.indexOf("Gecko")>-1){UserAgent.GECKO=true}else{if(navigator.userAgent.indexOf("MSIE")>-1){UserAgent.MSIE=true}}}}}function babChgText(b,a){switch(a){case"o_u":b.style.color="#f39300";b.style.textDecoration="underline";break;case"b_nu":b.style.color="#333333",b.style.textDecoration="none";break}}function showVerify(c,a){hideSelects();var b="/tools/verifyWord.php";new Ajax.Updater("placeModal",b,{method:"post",parameters:{language:a,transId:c},evalScripts:true});window.scrollTo(0,0)}function stopVerify(){showSelects();$("modalBkgd").hide();$("modalVerify").hide()}function doVerify(c,a){var b="/tools/verifyVote.php";new Ajax.Request(b,{method:"post",parameters:{language:a,transId:c,vote:$("vote").value},onFailure:function(d){alert(emLostConnection)
}})}function doVerifyInline(c,a){var b="/tools/verifyVoteInline.php";new Ajax.Request(b,{method:"post",parameters:{language:a,transId:c,vote:$("vote").value,comment:$("comment"+$("vote").value).value},onFailure:function(d){alert(emLostConnection)}})}function showMail(e,c,d){var b="/tools/tellAFriend.php";if(d==1){var a="true"}else{var a="false"}new Ajax.Updater("placeModal",b,{method:"post",parameters:{type:e,id:c,step:0,widget:a},evalScripts:true,onFailure:function(f){alert(emLostConnection)}});window.scrollTo(0,0);if($("yourscore")!=null){$("yourscore").hide()}if($("avgscore")!=null){$("avgscore").hide()}}function doMail(){var a="/tools/tellAFriend.php";new Ajax.Updater("modalMailUpdate",a,{method:"post",parameters:{type:$("mailType").value,id:$("typeId").value,step:1,fromEmail:$("fromEmail").value,toEmail:$("toEmail").value,textEmail:$("emailText").value},evalScripts:true,onFailure:function(b){alert(emLostConnection)}})}function closeMail(){showSelects();$("modalBkgd").hide();$("modalTellAFriend").hide();if($("yourscore")!=null){$("yourscore").show()
}if($("avgscore")!=null){$("avgscore").show()}}function help(){window.open("/help.php","babla_help","width=400, height=400, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no")}function init_addsearch(){var b=0;if(window.external){if(typeof document.body.style.maxHeight!="undefined"){b=1}}else{ua=navigator.userAgent.toLowerCase();if(ua.indexOf("firefox/1.")!=-1){b=2}}var a=document.getElementById("searchadd");if((a!=null)&&b!=0){a.innerHTML='<a href="javascript:addsearch('+b+')">Klicken Sie hier, um bab.la zu ihren Suchmaschinen im Browser hinzuzufügen</a>'}}function addsearch(a){if(a==1){window.external.AddSearchProvider("http://bab.la/toolbars/ie7ff2.xml")}if(a==2){if((typeof window.sidebar=="object")&&(typeof window.sidebar.addSearchEngine=="function")){window.sidebar.addSearchEngine("http://bab.la/toolbars/ff1.src","http://bab.la/toolbars/babla.gif","bab.la de-en","Web")}}}function addsearchprovider(b,c){var a=0;if(window.external){if(typeof document.body.style.maxHeight!="undefined"){a=1
}}else{ua=navigator.userAgent.toLowerCase();if(ua.indexOf("firefox/1.")!=-1){a=2}}if(a==1){window.external.AddSearchProvider("http://"+b+".bab.la/toolbars/os2.php?dict="+c)}if(a==2){if((typeof window.sidebar=="object")&&(typeof window.sidebar.addSearchEngine=="function")){window.sidebar.addSearchEngine("http://bab.la/toolbars/ff1.src","http://bab.la/toolbars/babla.gif","bab.la de-en","Web")}}}function requestWorldLangMap(){var a="/tools/requestWorldMap.php";new Ajax.Request(a,{method:"post",parameters:{mapFirstName:$("wdMapFirstName").value,mapLastName:$("wdMapLastName").value,mapEmail:$("wdMapEmail").value,mapOrg:$("wdMapOrg").value,mapStreet:$("wdMapStreet").value,mapCity:$("wdMapCity").value,mapCountry:$("wdMapCountry").value,mapMessage:$("wdMapMessage").value},onSuccess:function(b){},onFailure:function(b){alert("Die Verbindung zum Server wurde unterbrochen. Bitte versuche es später nochmal.")}})}function reportContent(d,c,b,e){var a="/tools/reportContent.php";new Ajax.Request(a,{method:"post",parameters:{type:d,id1:c,id2:b,infoText:e},onSuccess:function(f){},onFailure:function(f){}})
}function babEdTInfoShow(c,a,e,d){babPrepModal("placeModal");var b="/tools/getEdTransInfo.php";new Ajax.Updater("placeModal",b,{evalScripts:true,parameters:{wordPos:c,transId:a,term:d,dict:e},onSuccess:function(f){babFlashHide()},onFailure:function(f){alert(emLostConnection)}});pageTracker._trackEvent("dictionary i-symbol","click i-symbol","click i-symbol")}function babEdTInfoHide(){babFlashShow();$("placeModal").innerHTML="";$("babBody").stopObserving("click")}function babEdTransShow(c,b){if(typeof(babEdit)!="undefined"){msgid=8;var a="/tools/getBabErrorMsg.php";new Ajax.Request(a,{method:"post",parameters:{msgId:msgid},onSuccess:function(d){},onFailure:function(d){}})}else{babEdit=c;var a="/tools/editTranslation.php";new Ajax.Updater("babPM",a,{method:"post",parameters:{transId:c,dict:b},evalScripts:true,onSuccess:function(d){$("babPM").hide()},onFailure:function(d){alert(emLostConnection)}});pageTracker._trackPageview("/"+gSiteLang+"/actions/dict/editword");pageTracker._trackEvent("dictionary i-symbol","i-symbol menu","edit this entry")
}}function babVerifyEdTrans(c,a){var b="/tools/verifyVoteEdTrans.php";new Ajax.Request(b,{method:"post",parameters:{language:a,inputId:c,vote:$("vote").value,comment:$("comment"+$("vote").value).value},onFailure:function(d){alert(emLostConnection)}})}function babAdjustHights(a){$("babContL"+a).style.height="auto";$("babContC"+a).style.height="auto";$("babContR").style.height="auto";hl=$("babContLS").offsetHeight;hm=$("babContCS").offsetHeight;hr=$("babContR").offsetHeight;hmax=Math.max(Math.max(hl,hm),hr)+100;$("babContL"+a).style.height=hmax;$("babContC"+a).style.height=hmax;$("babContR").style.height=hmax}function babReloadNewWordCaptcha(){var a=new Date();$("newWordCaptchaImg").src="/img/captcha/captcha.php?time="+a.getTime()}function babShowEdTransExp(a){if(a==1){$("editExp").show()}else{$("babEdTExp").show()}}function babCancelEdTrans(){var a="/tools/cancelEditTrans.php";new Ajax.Request(a,{method:"post",parameters:{transId:$("babTransId").value,language:$("babTransDic").value},onSuccess:function(b){},onFailure:function(b){alert("Die Verbindung zum Server wurde unterbrochen. Bitte versuche es später nochmal.")
}});pageTracker._trackEvent("dictionary i-symbol","edit funciton","click cancel")}function babSaveEdTrans(){var b="/tools/saveEditTrans.php";var a=hex_sha1($("newWordPass").value);new Ajax.Request(b,{method:"post",parameters:{transId:$("babTransId").value,language:$("babTransDic").value,newWord1:$("newWord1").value,newWord2:$("newWord2").value,context1:$("context1").value,context2:$("context2").value,categoryWord1:$("categoryWord1").value,regionWord1:$("regionWord1").value,regionWord2:$("regionWord2").value,grammarWord1:$("grammarWord1").value,grammarWord2:$("grammarWord2").value,grammar1Word1:$("grammar1Word1").value,grammar1Word2:$("grammar1Word2").value,styleWord1:$("styleWord1").value,styleWord2:$("styleWord2").value,wfmWord1:$("wfmWord1").value,wfmWord2:$("wfmWord2").value,comment:$("comment").value,captcha:$("newWordCaptcha").value,nickname:$("newWordNickname").value,passHash:a},onSuccess:function(c){},onFailure:function(c){alert("Die Verbindung zum Server wurde unterbrochen. Bitte versuche es später nochmal.")
}});pageTracker._trackEvent("dictionary i-symbol","edit funciton","click save")}function babEdTSuggStep1(){var a=0;if(($("newWord1").value.length>0)&&($("newWord2").value.length>0)){$("editWord1").value=($("newWord1").value);$("editWord2").value=($("newWord2").value);$("showWord1").update($("newWord1").value);$("showWord2").update($("newWord2").value);$("categoryWord1").value=0;$("regionWord1").value=0;$("regionWord2").value=0;$("grammarWord1").value=0;$("grammarWord2").value=0;$("grammar1Word1").value=0;$("grammar1Word2").value=0;$("styleWord1").value=0;$("styleWord2").value=0;$("wfmWord1").value=0;$("wfmWord2").value=0;new Ajax.Updater("similarWords",langDir+"tools/similarWords.php",{method:"get",parameters:{l1:$("newWord1").value,l2:$("newWord2").value,language:babDictShort}});$("categoryWord2").style.visibility="hidden";$("suggStep1").show();$("suggStep2").hide();$("suggStep3").hide()}else{alert(addNewWord)}}function babEdTSuggStep2(){babReloadNewWordCaptcha();$("newWordCaptcha").value="";var a="/tools/saveEditTransAlt.php";
new Ajax.Request(a,{method:"post",parameters:{language:babDictShort,inputId:$("inputId").value,newWord1:$("newWord1").value,newWord2:$("newWord2").value,contextWord1:$("contextWord1").value,contextWord2:$("contextWord2").value,categoryWord1:$("categoryWord1").value,regionWord1:$("regionWord1").value,regionWord2:$("regionWord2").value,grammarWord1:$("grammarWord1").value,grammarWord2:$("grammarWord2").value,grammar1Word1:$("grammar1Word1").value,grammar1Word2:$("grammar1Word2").value,styleWord1:$("styleWord1").value,styleWord2:$("styleWord2").value,wfmWord1:$("wfmWord1").value,wfmWord2:$("wfmWord2").value,comment:$("comment").value},onSuccess:function(b){},onFailure:function(b){alert("Die Verbindung zum Server wurde unterbrochen. Bitte versuche es später nochmal.")}})}function babEdTSuggStep3(){var b="/tools/saveEditTransAlt.php";var a=hex_sha1($("newWordPass").value);new Ajax.Request(b,{method:"post",parameters:{language:babDictShort,inputId:$("inputId").value,newWord1:$("newWord1").value,newWord2:$("newWord2").value,contextWord1:$("contextWord1").value,contextWord2:$("contextWord2").value,categoryWord1:$("categoryWord1").value,regionWord1:$("regionWord1").value,regionWord2:$("regionWord2").value,grammarWord1:$("grammarWord1").value,grammarWord2:$("grammarWord2").value,grammar1Word1:$("grammar1Word1").value,grammar1Word2:$("grammar1Word2").value,styleWord1:$("styleWord1").value,styleWord2:$("styleWord2").value,wfmWord1:$("wfmWord1").value,wfmWord2:$("wfmWord2").value,comment:$("comment").value,nickname:$("newWordNickname").value,passHash:a,captcha:$("newWordCaptcha").value},onSuccess:function(c){},onFailure:function(c){alert("Die Verbindung zum Server wurde unterbrochen. Bitte versuche es später nochmal.")
}})}function babEdTSuggStop(){showSelects();if($("modalBkgd")!=null){$("modalBkgd").hide()}if($("suggStep1")!=null){$("suggStep1").hide()}if($("suggStep2")!=null){$("suggStep2").hide()}if($("suggStep3")!=null){$("suggStep3").hide()}}function babChangeDropDown(c,b,a){if(b!=null){$(c).options.length=1;for(i=1;i<b.length;i++){if(a==b[i]["value"]){$(c).options[i]=new Option(b[i]["name"],b[i]["value"],true)}else{$(c).options[i]=new Option(b[i]["name"],b[i]["value"])}}}else{$(c).options.length=1}}var hexcase=0;var b64pad="";var chrsz=8;function hex_sha1(a){return binb2hex(core_sha1(str2binb(a),a.length*chrsz))}function b64_sha1(a){return binb2b64(core_sha1(str2binb(a),a.length*chrsz))}function str_sha1(a){return binb2str(core_sha1(str2binb(a),a.length*chrsz))}function hex_hmac_sha1(a,b){return binb2hex(core_hmac_sha1(a,b))}function b64_hmac_sha1(a,b){return binb2b64(core_hmac_sha1(a,b))}function str_hmac_sha1(a,b){return binb2str(core_hmac_sha1(a,b))}function sha1_vm_test(){return hex_sha1("abc")=="a9993e364706816aba3e25717850c26c9cd0d89d"
}function core_sha1(v,o){v[o>>5]|=128<<(24-o%32);v[((o+64>>9)<<4)+15]=o;var z=Array(80);var y=1732584193;var s=-271733879;var r=-1732584194;var q=271733878;var p=-1009589776;for(var l=0;l<v.length;l+=16){var n=y;var m=s;var k=r;var h=q;var f=p;for(var g=0;g<80;g++){if(g<16){z[g]=v[l+g]}else{z[g]=rol(z[g-3]^z[g-8]^z[g-14]^z[g-16],1)}var A=safe_add(safe_add(rol(y,5),sha1_ft(g,s,r,q)),safe_add(safe_add(p,z[g]),sha1_kt(g)));p=q;q=r;r=rol(s,30);s=y;y=A}y=safe_add(y,n);s=safe_add(s,m);r=safe_add(r,k);q=safe_add(q,h);p=safe_add(p,f)}return Array(y,s,r,q,p)}function sha1_ft(e,a,g,f){if(e<20){return(a&g)|((~a)&f)}if(e<40){return a^g^f}if(e<60){return(a&g)|(a&f)|(g&f)}return a^g^f}function sha1_kt(a){return(a<20)?1518500249:(a<40)?1859775393:(a<60)?-1894007588:-899497514}function core_hmac_sha1(c,f){var e=str2binb(c);if(e.length>16){e=core_sha1(e,c.length*chrsz)}var a=Array(16),d=Array(16);for(var b=0;b<16;b++){a[b]=e[b]^909522486;d[b]=e[b]^1549556828}var g=core_sha1(a.concat(str2binb(f)),512+f.length*chrsz);return core_sha1(d.concat(g),512+160)
}function safe_add(a,d){var c=(a&65535)+(d&65535);var b=(a>>16)+(d>>16)+(c>>16);return(b<<16)|(c&65535)}function rol(a,b){return(a<<b)|(a>>>(32-b))}function str2binb(d){var c=Array();var a=(1<<chrsz)-1;for(var b=0;b<d.length*chrsz;b+=chrsz){c[b>>5]|=(d.charCodeAt(b/chrsz)&a)<<(32-chrsz-b%32)}return c}function binb2str(c){var d="";var a=(1<<chrsz)-1;for(var b=0;b<c.length*32;b+=chrsz){d+=String.fromCharCode((c[b>>5]>>>(32-chrsz-b%32))&a)}return d}function binb2hex(c){var b=hexcase?"0123456789ABCDEF":"0123456789abcdef";var d="";for(var a=0;a<c.length*4;a++){d+=b.charAt((c[a>>2]>>((3-a%4)*8+4))&15)+b.charAt((c[a>>2]>>((3-a%4)*8))&15)}return d}function binb2b64(d){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var f="";for(var b=0;b<d.length*4;b+=3){var e=(((d[b>>2]>>8*(3-b%4))&255)<<16)|(((d[b+1>>2]>>8*(3-(b+1)%4))&255)<<8)|((d[b+2>>2]>>8*(3-(b+2)%4))&255);for(var a=0;a<4;a++){if(b*8+a*6>d.length*32){f+=b64pad}else{f+=c.charAt((e>>6*(3-a))&63)}}}return f};
function babChIcVt(e,c){e.className="babImg babIcVt"+c;}
function babChIcArr(e,c){e.className="babImg babIcArr"+c;}


