function get3(php,parameterek,div_id,div_wait){if(div_id&&div_wait){document.getElementById(div_id).innerHTML=div_wait}parameterek=encodeURI(parameterek);var myAjax=new Ajax.Request(php+"?"+parameterek,{method:"get",onComplete:function(req){eval(req.responseText);if(div_id&&div_wait){document.getElementById(div_id).innerHTML=""}}})}function get(a,b){var c=new Ajax.Request(a,{method:"get",onComplete:function(d){if(b){document.getElementById(b).innerHTML=d.responseText}}})}function get_sync(a,b){var c=new Ajax.Request(a,{method:"get",asynchronous:false,onComplete:function(d){if(b){document.getElementById(b).innerHTML=d.responseText}}})}function post(a,b){document.getElementById(b).action=a;$(b).request({encoding:"UTF-8",method:"post",onComplete:function(c){}})}function post_sync(url,formid){document.getElementById(formid).action=url;$(formid).request({encoding:"UTF-8",method:"post",asynchronous:false,onComplete:function(req){eval(req)},onFailure:function(req){alert("some errors :(")}})}var enc={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",norm:function(c){var a="";var l,h,f,k,g,e,d;var b=0;c=enc._utf8_encode(c);while(b<c.length){l=c.charCodeAt(b++);h=c.charCodeAt(b++);f=c.charCodeAt(b++);k=l>>2;g=((l&3)<<4)|(h>>4);e=((h&15)<<2)|(f>>6);d=f&63;if(isNaN(h)){e=d=64}else{if(isNaN(f)){d=64}}a=a+this._keyStr.charAt(k)+this._keyStr.charAt(g)+this._keyStr.charAt(e)+this._keyStr.charAt(d)}return a},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var e=0;e<b.length;e++){var d=b.charCodeAt(e);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a}};var Prototype={Version:"1.7",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div"),b=document.createElement("form"),a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){var d=(function(){for(var e in {toString:1}){if(e==="toString"){return false}}return true})();function a(){}function b(){var h=null,g=$A(arguments);if(Object.isFunction(g[0])){h=g.shift()}function e(){this.initialize.apply(this,arguments)}Object.extend(e,Class.Methods);e.superclass=h;e.subclasses=[];if(h){a.prototype=h.prototype;e.prototype=new a();h.subclasses.push(e)}for(var f=0,k=g.length;f<k;f++){e.addMethods(g[f])}if(!e.prototype.initialize){e.prototype.initialize=Prototype.emptyFunction}e.prototype.constructor=e;return e}function c(n){var g=this.superclass&&this.superclass.prototype,f=Object.keys(n);if(d){if(n.toString!=Object.prototype.toString){f.push("toString")}if(n.valueOf!=Object.prototype.valueOf){f.push("valueOf")}}for(var e=0,h=f.length;e<h;e++){var l=f[e],k=n[l];if(g&&Object.isFunction(k)&&k.argumentNames()[0]=="$super"){var p=k;k=(function(q){return function(){return g[q].apply(this,arguments)}})(l).wrap(p);k.valueOf=p.valueOf.bind(p);k.toString=p.toString.bind(p)}this.prototype[l]=k}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var K=Object.prototype.toString,J="Null",u="Undefined",D="Boolean",f="Number",A="String",P="Object",B="[object Function]",G="[object Boolean]",g="[object Number]",p="[object String]",h="[object Array]",F="[object Date]",k=window.JSON&&typeof JSON.stringify==="function"&&JSON.stringify(0)==="0"&&typeof JSON.stringify(Prototype.K)==="undefined";function n(R){switch(R){case null:return J;case (void 0):return u}var Q=typeof R;switch(Q){case"boolean":return D;case"number":return f;case"string":return A}return P}function H(Q,S){for(var R in S){Q[R]=S[R]}return Q}function O(Q){try{if(c(Q)){return"undefined"}if(Q===null){return"null"}return Q.inspect?Q.inspect():String(Q)}catch(R){if(R instanceof RangeError){return"..."}throw R}}function L(Q){return N("",{"":Q},[])}function N(Z,W,X){var Y=W[Z],V=typeof Y;if(n(Y)===P&&typeof Y.toJSON==="function"){Y=Y.toJSON(Z)}var S=K.call(Y);switch(S){case g:case G:case p:Y=Y.valueOf()}switch(Y){case null:return"null";case true:return"true";case false:return"false"}V=typeof Y;switch(V){case"string":return Y.inspect(true);case"number":return isFinite(Y)?String(Y):"null";case"object":for(var R=0,Q=X.length;R<Q;R++){if(X[R]===Y){throw new TypeError()}}X.push(Y);var U=[];if(S===h){for(var R=0,Q=Y.length;R<Q;R++){var T=N(R,Y,X);U.push(typeof T==="undefined"?"null":T)}U="["+U.join(",")+"]"}else{var ab=Object.keys(Y);for(var R=0,Q=ab.length;R<Q;R++){var Z=ab[R],T=N(Z,Y,X);if(typeof T!=="undefined"){U.push(Z.inspect(true)+":"+T)}}U="{"+U.join(",")+"}"}X.pop();return U}}function E(Q){return JSON.stringify(Q)}function l(Q){return $H(Q).toQueryString()}function v(Q){return Q&&Q.toHTML?Q.toHTML():String.interpret(Q)}function z(Q){if(n(Q)!==P){throw new TypeError()}var R=[];for(var S in Q){if(Q.hasOwnProperty(S)){R.push(S)}}return R}function d(Q){var R=[];for(var S in Q){R.push(Q[S])}return R}function I(Q){return H({},Q)}function C(Q){return !!(Q&&Q.nodeType==1)}function q(Q){return K.call(Q)===h}var b=(typeof Array.isArray=="function")&&Array.isArray([])&&!Array.isArray({});if(b){q=Array.isArray}function e(Q){return Q instanceof Hash}function a(Q){return K.call(Q)===B}function t(Q){return K.call(Q)===p}function w(Q){return K.call(Q)===g}function M(Q){return K.call(Q)===F}function c(Q){return typeof Q==="undefined"}H(Object,{extend:H,inspect:O,toJSON:k?E:L,toQueryString:l,toHTML:v,keys:Object.keys||z,values:d,clone:I,isElement:C,isArray:q,isHash:e,isFunction:a,isString:t,isNumber:w,isDate:M,isUndefined:c})})();Object.extend(Function.prototype,(function(){var n=Array.prototype.slice;function d(u,p){var t=u.length,q=p.length;while(q--){u[t+q]=p[q]}return u}function k(q,p){q=n.call(q,0);return d(q,p)}function g(){var p=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,"").replace(/\s+/g,"").split(",");return p.length==1&&!p[0]?[]:p}function h(t){if(arguments.length<2&&Object.isUndefined(arguments[0])){return this}var p=this,q=n.call(arguments,1);return function(){var u=k(q,arguments);return p.apply(t,u)}}function f(t){var p=this,q=n.call(arguments,1);return function(v){var u=d([v||window.event],q);return p.apply(t,u)}}function l(){if(!arguments.length){return this}var p=this,q=n.call(arguments,0);return function(){var t=k(q,arguments);return p.apply(this,t)}}function e(t){var p=this,q=n.call(arguments,1);t=t*1000;return window.setTimeout(function(){return p.apply(p,q)},t)}function a(){var p=d([0.01],arguments);return this.delay.apply(this,p)}function c(q){var p=this;return function(){var t=d([p.bind(this)],arguments);return q.apply(this,t)}}function b(){if(this._methodized){return this._methodized}var p=this;return this._methodized=function(){var q=d([this],arguments);return p.apply(null,q)}}return{argumentNames:g,bind:h,bindAsEventListener:f,curry:l,delay:e,defer:a,wrap:c,methodize:b}})());(function(c){function b(){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"}function a(){return this.toISOString()}if(!c.toISOString){c.toISOString=b}if(!c.toJSON){c.toJSON=a}})(Date.prototype);RegExp.prototype.match=RegExp.prototype.test;RegExp.escape=function(a){return String(a).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var PeriodicalExecuter=Class.create({initialize:function(b,a){this.callback=b;this.frequency=a;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(a){this.currentlyExecuting=false;throw a}}}});Object.extend(String,{interpret:function(a){return a==null?"":String(a)},specialChar:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\\":"\\\\"}});Object.extend(String.prototype,(function(){var NATIVE_JSON_PARSE_SUPPORT=window.JSON&&typeof JSON.parse==="function"&&JSON.parse('{"test": true}').test;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"),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()),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(){return this.replace(/-+(.)?/g,function(match,chr){return chr?chr.toUpperCase():""})}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 unfilterJSON(filter){return this.replace(filter||Prototype.JSONFilter,"$1")}function isJSON(){var str=this;if(str.blank()){return false}str=str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@");str=str.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");str=str.replace(/(?:^|:|,)(?:\s*\[)+/g,"");return(/^[\],:{}\s]*$/).test(str)}function evalJSON(sanitize){var json=this.unfilterJSON(),cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(cx.test(json)){json=json.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}try{if(!sanitize||json.isJSON()){return eval("("+json+")")}}catch(e){}throw new SyntaxError("Badly formed JSON string: "+this.inspect())}function parseJSON(){var json=this.unfilterJSON();return JSON.parse(json)}function include(pattern){return this.indexOf(pattern)>-1}function startsWith(pattern){return this.lastIndexOf(pattern,0)===0}function endsWith(pattern){var d=this.length-pattern.length;return d>=0&&this.indexOf(pattern,d)===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||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,unfilterJSON:unfilterJSON,isJSON:isJSON,evalJSON:NATIVE_JSON_PARSE_SUPPORT?parseJSON:evalJSON,include:include,startsWith:startsWith,endsWith:endsWith,empty:empty,blank:blank,interpolate:interpolate}})());var Template=Class.create({initialize:function(a,b){this.template=a.toString();this.pattern=b||Template.Pattern},evaluate:function(a){if(a&&Object.isFunction(a.toTemplateReplacements)){a=a.toTemplateReplacements()}return this.template.gsub(this.pattern,function(d){if(a==null){return(d[1]+"")}var f=d[1]||"";if(f=="\\"){return d[2]}var b=a,g=d[3],e=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;d=e.exec(g);if(d==null){return f}while(d!=null){var c=d[1].startsWith("[")?d[2].replace(/\\\\]/g,"]"):d[1];b=b[c];if(null==b||""==d[3]){break}g=g.substring("["==d[3]?d[1].length:d[0].length);d=e.exec(g)}return f+String.interpret(b)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;var $break={};var Enumerable=(function(){function c(G,F){var E=0;try{this._each(function(I){G.call(F,I,E++)})}catch(H){if(H!=$break){throw H}}return this}function z(H,G,F){var E=-H,I=[],J=this.toArray();if(H<1){return J}while((E+=H)<J.length){I.push(J.slice(E,E+H))}return I.collect(G,F)}function b(G,F){G=G||Prototype.K;var E=true;this.each(function(I,H){E=E&&!!G.call(F,I,H);if(!E){throw $break}});return E}function k(G,F){G=G||Prototype.K;var E=false;this.each(function(I,H){if(E=!!G.call(F,I,H)){throw $break}});return E}function l(G,F){G=G||Prototype.K;var E=[];this.each(function(I,H){E.push(G.call(F,I,H))});return E}function B(G,F){var E;this.each(function(I,H){if(G.call(F,I,H)){E=I;throw $break}});return E}function h(G,F){var E=[];this.each(function(I,H){if(G.call(F,I,H)){E.push(I)}});return E}function g(H,G,F){G=G||Prototype.K;var E=[];if(Object.isString(H)){H=new RegExp(RegExp.escape(H))}this.each(function(J,I){if(H.match(J)){E.push(G.call(F,J,I))}});return E}function a(E){if(Object.isFunction(this.indexOf)){if(this.indexOf(E)!=-1){return true}}var F=false;this.each(function(G){if(G==E){F=true;throw $break}});return F}function w(F,E){E=Object.isUndefined(E)?null:E;return this.eachSlice(F,function(G){while(G.length<F){G.push(E)}return G})}function p(E,G,F){this.each(function(I,H){E=G.call(F,E,I,H)});return E}function D(F){var E=$A(arguments).slice(1);return this.map(function(G){return G[F].apply(G,E)})}function v(G,F){G=G||Prototype.K;var E;this.each(function(I,H){I=G.call(F,I,H);if(E==null||I>=E){E=I}});return E}function t(G,F){G=G||Prototype.K;var E;this.each(function(I,H){I=G.call(F,I,H);if(E==null||I<E){E=I}});return E}function e(H,F){H=H||Prototype.K;var G=[],E=[];this.each(function(J,I){(H.call(F,J,I)?G:E).push(J)});return[G,E]}function f(F){var E=[];this.each(function(G){E.push(G[F])});return E}function d(G,F){var E=[];this.each(function(I,H){if(!G.call(F,I,H)){E.push(I)}});return E}function q(F,E){return this.map(function(H,G){return{value:H,criteria:F.call(E,H,G)}}).sort(function(J,I){var H=J.criteria,G=I.criteria;return H<G?-1:H>G?1:0}).pluck("value")}function u(){return this.map()}function A(){var F=Prototype.K,E=$A(arguments);if(Object.isFunction(E.last())){F=E.pop()}var G=[this].concat(E).map($A);return this.map(function(I,H){return F(G.pluck(H))})}function n(){return this.toArray().length}function C(){return"#<Enumerable:"+this.toArray().inspect()+">"}return{each:c,eachSlice:z,all:b,every:b,any:k,some:k,collect:l,map:l,detect:B,findAll:h,select:h,filter:h,grep:g,include:a,member:a,inGroupsOf:w,inject:p,invoke:D,max:v,min:t,partition:e,pluck:f,reject:d,sortBy:q,toArray:u,entries:u,zip:A,size:n,inspect:C,find:B}})();function $A(c){if(!c){return[]}if("toArray" in Object(c)){return c.toArray()}var b=c.length||0,a=new Array(b);while(b--){a[b]=c[b]}return a}function $w(a){if(!Object.isString(a)){return[]}a=a.strip();return a?a.split(/\s+/):[]}Array.from=$A;(function(){var z=Array.prototype,q=z.slice,u=z.forEach;function b(E,D){for(var C=0,F=this.length>>>0;C<F;C++){if(C in this){E.call(D,this[C],C,this)}}}if(!u){u=b}function p(){this.length=0;return this}function d(){return this[0]}function g(){return this[this.length-1]}function k(){return this.select(function(C){return C!=null})}function B(){return this.inject([],function(D,C){if(Object.isArray(C)){return D.concat(C.flatten())}D.push(C);return D})}function h(){var C=q.call(arguments,0);return this.select(function(D){return !C.include(D)})}function f(C){return(C===false?this.toArray():this)._reverse()}function n(C){return this.inject([],function(F,E,D){if(0==D||(C?F.last()!=E:!F.include(E))){F.push(E)}return F})}function v(C){return this.uniq().findAll(function(D){return C.detect(function(E){return D===E})})}function w(){return q.call(this,0)}function l(){return this.length}function A(){return"["+this.map(Object.inspect).join(", ")+"]"}function a(E,C){C||(C=0);var D=this.length;if(C<0){C=D+C}for(;C<D;C++){if(this[C]===E){return C}}return -1}function t(D,C){C=isNaN(C)?this.length:(C<0?this.length+C:C)+1;var E=this.slice(0,C).reverse().indexOf(D);return(E<0)?E:C-E-1}function c(){var H=q.call(this,0),F;for(var D=0,E=arguments.length;D<E;D++){F=arguments[D];if(Object.isArray(F)&&!("callee" in F)){for(var C=0,G=F.length;C<G;C++){H.push(F[C])}}else{H.push(F)}}return H}Object.extend(z,Enumerable);if(!z._reverse){z._reverse=z.reverse}Object.extend(z,{_each:u,clear:p,first:d,last:g,compact:k,flatten:B,without:h,reverse:f,uniq:n,intersect:v,clone:w,toArray:w,size:l,inspect:A});var e=(function(){return[].concat(arguments)[0][0]!==1})(1,2);if(e){z.concat=c}if(!z.indexOf){z.indexOf=a}if(!z.lastIndexOf){z.lastIndexOf=t}})();function $H(a){return new Hash(a)}var Hash=Class.create(Enumerable,(function(){function e(v){this._object=Object.isHash(v)?v.toObject():Object.clone(v)}function f(w){for(var v in this._object){var z=this._object[v],A=[v,z];A.key=v;A.value=z;w(A)}}function l(v,w){return this._object[v]=w}function c(v){if(this._object[v]!==Object.prototype[v]){return this._object[v]}}function q(v){var w=this._object[v];delete this._object[v];return w}function u(){return Object.clone(this._object)}function t(){return this.pluck("key")}function p(){return this.pluck("value")}function g(w){var v=this.detect(function(z){return z.value===w});return v&&v.key}function k(v){return this.clone().update(v)}function d(v){return new Hash(v).inject(this,function(w,z){w.set(z.key,z.value);return w})}function b(v,w){if(Object.isUndefined(w)){return v}return v+"="+encodeURIComponent(String.interpret(w))}function a(){return this.inject([],function(B,E){var A=encodeURIComponent(E.key),w=E.value;if(w&&typeof w=="object"){if(Object.isArray(w)){var D=[];for(var z=0,v=w.length,C;z<v;z++){C=w[z];D.push(b(A,C))}return B.concat(D)}}else{B.push(b(A,w))}return B}).join("&")}function n(){return"#<Hash:{"+this.map(function(v){return v.map(Object.inspect).join(": ")}).join(", ")+"}>"}function h(){return new Hash(this)}return{initialize:e,_each:f,set:l,get:c,unset:q,toObject:u,toTemplateReplacements:u,keys:t,values:p,index:g,merge:k,update:d,toQueryString:a,inspect:n,toJSON:u,clone:h}})());Hash.from=$H;Object.extend(Number.prototype,(function(){function d(){return this.toPaddedString(2,16)}function b(){return this+1}function h(l,k){$R(0,this,true).each(l,k);return this}function g(n,l){var k=this.toString(l||10);return"0".times(n-k.length)+k}function a(){return Math.abs(this)}function c(){return Math.round(this)}function e(){return Math.ceil(this)}function f(){return Math.floor(this)}return{toColorPart:d,succ:b,times:h,toPaddedString:g,abs:a,round:c,ceil:e,floor:f}})());function $R(c,a,b){return new ObjectRange(c,a,b)}var ObjectRange=Class.create(Enumerable,(function(){function b(f,d,e){this.start=f;this.end=d;this.exclusive=e}function c(d){var e=this.start;while(this.include(e)){d(e);e=e.succ()}}function a(d){if(d<this.start){return false}if(this.exclusive){return d<this.end}return d<=this.end}return{initialize:b,_each:c,include:a}})());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(a){this.responders._each(a)},register:function(a){if(!this.include(a)){this.responders.push(a)}},unregister:function(a){this.responders=this.responders.without(a)},dispatch:function(d,b,c,a){this.each(function(f){if(Object.isFunction(f[d])){try{f[d].apply(f,[b,c,a])}catch(g){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=Class.create({initialize:function(a){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",evalJSON:true,evalJS:true};Object.extend(this.options,a||{});this.options.method=this.options.method.toLowerCase();if(Object.isHash(this.options.parameters)){this.options.parameters=this.options.parameters.toObject()}}});Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,b,a){$super(a);this.transport=Ajax.getTransport();this.request(b)},request:function(b){this.url=b;this.method=this.options.method;var d=Object.isString(this.options.parameters)?this.options.parameters:Object.toQueryString(this.options.parameters);if(!["get","post"].include(this.method)){d+=(d?"&":"")+"_method="+this.method;this.method="post"}if(d&&this.method==="get"){this.url+=(this.url.include("?")?"&":"?")+d}this.parameters=d.toQueryParams();try{var a=new Ajax.Response(this);if(this.options.onCreate){this.options.onCreate(a)}Ajax.Responders.dispatch("onCreate",this,a);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||d):null;this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()}}catch(c){this.dispatchException(c)}},onStateChange:function(){var a=this.transport.readyState;if(a>1&&!((a==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)}},setRequestHeaders:function(){var e={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){e["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){e.Connection="close"}}if(typeof this.options.requestHeaders=="object"){var c=this.options.requestHeaders;if(Object.isFunction(c.push)){for(var b=0,d=c.length;b<d;b+=2){e[c[b]]=c[b+1]}}else{$H(c).each(function(f){e[f.key]=f.value})}}for(var a in e){this.transport.setRequestHeader(a,e[a])}},success:function(){var a=this.getStatus();return !a||(a>=200&&a<300)||a==304},getStatus:function(){try{if(this.transport.status===1223){return 204}return this.transport.status||0}catch(a){return 0}},respondToReadyState:function(a){var c=Ajax.Request.Events[a],b=new Ajax.Response(this);if(c=="Complete"){try{this._complete=true;(this.options["on"+b.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(b,b.headerJSON)}catch(d){this.dispatchException(d)}var f=b.getHeader("Content-type");if(this.options.evalJS=="force"||(this.options.evalJS&&this.isSameOrigin()&&f&&f.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))){this.evalResponse()}}try{(this.options["on"+c]||Prototype.emptyFunction)(b,b.headerJSON);Ajax.Responders.dispatch("on"+c,this,b,b.headerJSON)}catch(d){this.dispatchException(d)}if(c=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}},isSameOrigin:function(){var a=this.url.match(/^\s*https?:\/\/[^\/]*/);return !a||(a[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""}))},getHeader:function(a){try{return this.transport.getResponseHeader(a)||null}catch(b){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())}catch(e){this.dispatchException(e)}},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch("onException",this,a)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Response=Class.create({initialize:function(c){this.request=c;var d=this.transport=c.transport,a=this.readyState=d.readyState;if((a>2&&!Prototype.Browser.IE)||a==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(d.responseText);this.headerJSON=this._getHeaderJSON()}if(a==4){var b=d.responseXML;this.responseXML=Object.isUndefined(b)?null:b;this.responseJSON=this._getResponseJSON()}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||""}catch(a){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()}catch(a){return null}},getResponseHeader:function(a){return this.transport.getResponseHeader(a)},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var a=this.getHeader("X-JSON");if(!a){return null}a=decodeURIComponent(escape(a));try{return a.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}},_getResponseJSON:function(){var a=this.request.options;if(!a.evalJSON||(a.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json"))||this.responseText.blank()){return null}try{return this.responseText.evalJSON(a.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,a,c,b){this.container={success:(a.success||a),failure:(a.failure||(a.success?null:a))};b=Object.clone(b);var d=b.onComplete;b.onComplete=(function(e,f){this.updateContent(e.responseText);if(Object.isFunction(d)){d(e,f)}}).bind(this);$super(c,b)},updateContent:function(d){var c=this.container[this.success()?"success":"failure"],a=this.options;if(!a.evalScripts){d=d.stripScripts()}if(c=$(c)){if(a.insertion){if(Object.isString(a.insertion)){var b={};b[a.insertion]=d;c.insert(b)}else{a.insertion(c,d)}}else{c.update(d)}}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,a,c,b){$super(b);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=a;this.url=c;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(a){if(this.options.decay){this.decay=(a.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=a.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 $(b){if(arguments.length>1){for(var a=0,d=[],c=arguments.length;a<c;a++){d.push($(arguments[a]))}return d}if(Object.isString(b)){b=document.getElementById(b)}return Element.extend(b)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(f,a){var c=[];var e=document.evaluate(f,$(a)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=0,d=e.snapshotLength;b<d;b++){c.push(Element.extend(e.snapshotItem(b)))}return c}}if(!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(c){function d(f,e){if(f==="select"){return false}if("type" in e){return false}return true}var b=(function(){try{var e=document.createElement('<input name="x">');return e.tagName.toLowerCase()==="input"&&e.name==="x"}catch(f){return false}})();var a=c.Element;c.Element=function(g,f){f=f||{};g=g.toLowerCase();var e=Element.cache;if(b&&f.name){g="<"+g+' name="'+f.name+'">';delete f.name;return Element.writeAttribute(document.createElement(g),f)}if(!e[g]){e[g]=Element.extend(document.createElement(g))}var h=d(g,f)?e[g].cloneNode(false):document.createElement(g);return Element.writeAttribute(h,f)};Object.extend(c.Element,a||{});if(a){c.Element.prototype=a.prototype}})(this);Element.idCounter=1;Element.cache={};Element._purgeElement=function(b){var a=b._prototypeUID;if(a){Element.stopObserving(b);b._prototypeUID=void 0;delete Element.Storage[a]}};Element.Methods={visible:function(a){return $(a).style.display!="none"},toggle:function(a){a=$(a);Element[Element.visible(a)?"hide":"show"](a);return a},hide:function(a){a=$(a);a.style.display="none";return a},show:function(a){a=$(a);a.style.display="";return a},remove:function(a){a=$(a);a.parentNode.removeChild(a);return a},update:(function(){var d=(function(){var g=document.createElement("select"),h=true;g.innerHTML='<option value="test">test</option>';if(g.options&&g.options[0]){h=g.options[0].nodeName.toUpperCase()!=="OPTION"}g=null;return h})();var b=(function(){try{var g=document.createElement("table");if(g&&g.tBodies){g.innerHTML="<tbody><tr><td>test</td></tr></tbody>";var k=typeof g.tBodies[0]=="undefined";g=null;return k}}catch(h){return true}})();var a=(function(){try{var g=document.createElement("div");g.innerHTML="<link>";var k=(g.childNodes.length===0);g=null;return k}catch(h){return true}})();var c=d||b||a;var f=(function(){var g=document.createElement("script"),k=false;try{g.appendChild(document.createTextNode(""));k=!g.firstChild||g.firstChild&&g.firstChild.nodeType!==3}catch(h){k=true}g=null;return k})();function e(n,p){n=$(n);var g=Element._purgeElement;var q=n.getElementsByTagName("*"),l=q.length;while(l--){g(q[l])}if(p&&p.toElement){p=p.toElement()}if(Object.isElement(p)){return n.update().insert(p)}p=Object.toHTML(p);var k=n.tagName.toUpperCase();if(k==="SCRIPT"&&f){n.text=p;return n}if(c){if(k in Element._insertionTranslations.tags){while(n.firstChild){n.removeChild(n.firstChild)}Element._getContentFromAnonymousElement(k,p.stripScripts()).each(function(t){n.appendChild(t)})}else{if(a&&Object.isString(p)&&p.indexOf("<link")>-1){while(n.firstChild){n.removeChild(n.firstChild)}var h=Element._getContentFromAnonymousElement(k,p.stripScripts(),true);h.each(function(t){n.appendChild(t)})}else{n.innerHTML=p.stripScripts()}}}else{n.innerHTML=p.stripScripts()}p.evalScripts.bind(p).defer();return n}return e})(),replace:function(b,c){b=$(b);if(c&&c.toElement){c=c.toElement()}else{if(!Object.isElement(c)){c=Object.toHTML(c);var a=b.ownerDocument.createRange();a.selectNode(b);c.evalScripts.bind(c).defer();c=a.createContextualFragment(c.stripScripts())}}b.parentNode.replaceChild(c,b);return b},insert:function(c,e){c=$(c);if(Object.isString(e)||Object.isNumber(e)||Object.isElement(e)||(e&&(e.toElement||e.toHTML))){e={bottom:e}}var d,f,b,g;for(var a in e){d=e[a];a=a.toLowerCase();f=Element._insertionTranslations[a];if(d&&d.toElement){d=d.toElement()}if(Object.isElement(d)){f(c,d);continue}d=Object.toHTML(d);b=((a=="before"||a=="after")?c.parentNode:c).tagName.toUpperCase();g=Element._getContentFromAnonymousElement(b,d.stripScripts());if(a=="top"||a=="after"){g.reverse()}g.each(f.curry(c));d.evalScripts.bind(d).defer()}return c},wrap:function(b,c,a){b=$(b);if(Object.isElement(c)){$(c).writeAttribute(a||{})}else{if(Object.isString(c)){c=new Element(c,a)}else{c=new Element("div",c)}}if(b.parentNode){b.parentNode.replaceChild(c,b)}c.appendChild(b);return c},inspect:function(b){b=$(b);var a="<"+b.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(f){var e=f.first(),c=f.last(),d=(b[e]||"").toString();if(d){a+=" "+c+"="+d.inspect(true)}});return a+">"},recursivelyCollect:function(a,c,d){a=$(a);d=d||-1;var b=[];while(a=a[c]){if(a.nodeType==1){b.push(Element.extend(a))}if(b.length==d){break}}return b},ancestors:function(a){return Element.recursivelyCollect(a,"parentNode")},descendants:function(a){return Element.select(a,"*")},firstDescendant:function(a){a=$(a).firstChild;while(a&&a.nodeType!=1){a=a.nextSibling}return $(a)},immediateDescendants:function(b){var a=[],c=$(b).firstChild;while(c){if(c.nodeType===1){a.push(Element.extend(c))}c=c.nextSibling}return a},previousSiblings:function(a,b){return Element.recursivelyCollect(a,"previousSibling")},nextSiblings:function(a){return Element.recursivelyCollect(a,"nextSibling")},siblings:function(a){a=$(a);return Element.previousSiblings(a).reverse().concat(Element.nextSiblings(a))},match:function(b,a){b=$(b);if(Object.isString(a)){return Prototype.Selector.match(b,a)}return a.match(b)},up:function(b,d,a){b=$(b);if(arguments.length==1){return $(b.parentNode)}var c=Element.ancestors(b);return Object.isNumber(d)?c[d]:Prototype.Selector.find(c,d,a)},down:function(b,c,a){b=$(b);if(arguments.length==1){return Element.firstDescendant(b)}return Object.isNumber(c)?Element.descendants(b)[c]:Element.select(b,c)[a||0]},previous:function(b,c,a){b=$(b);if(Object.isNumber(c)){a=c,c=false}if(!Object.isNumber(a)){a=0}if(c){return Prototype.Selector.find(b.previousSiblings(),c,a)}else{return b.recursivelyCollect("previousSibling",a+1)[a]}},next:function(b,d,a){b=$(b);if(Object.isNumber(d)){a=d,d=false}if(!Object.isNumber(a)){a=0}if(d){return Prototype.Selector.find(b.nextSiblings(),d,a)}else{var c=Object.isNumber(a)?a+1:1;return b.recursivelyCollect("nextSibling",a+1)[a]}},select:function(a){a=$(a);var b=Array.prototype.slice.call(arguments,1).join(", ");return Prototype.Selector.select(b,a)},adjacent:function(a){a=$(a);var b=Array.prototype.slice.call(arguments,1).join(", ");return Prototype.Selector.select(b,a.parentNode).without(a)},identify:function(a){a=$(a);var b=Element.readAttribute(a,"id");if(b){return b}do{b="anonymous_element_"+Element.idCounter++}while($(b));Element.writeAttribute(a,"id",b);return b},readAttribute:function(c,a){c=$(c);if(Prototype.Browser.IE){var b=Element._attributeTranslations.read;if(b.values[a]){return b.values[a](c,a)}if(b.names[a]){a=b.names[a]}if(a.include(":")){return(!c.attributes||!c.attributes[a])?null:c.attributes[a].value}}return c.getAttribute(a)},writeAttribute:function(e,c,f){e=$(e);var b={},d=Element._attributeTranslations.write;if(typeof c=="object"){b=c}else{b[c]=Object.isUndefined(f)?true:f}for(var a in b){c=d.names[a]||a;f=b[a];if(d.values[a]){c=d.values[a](e,f)}if(f===false||f===null){e.removeAttribute(c)}else{if(f===true){e.setAttribute(c,c)}else{e.setAttribute(c,f)}}}return e},getHeight:function(a){return Element.getDimensions(a).height},getWidth:function(a){return Element.getDimensions(a).width},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(!(a=$(a))){return}var c=a.className;return(c.length>0&&(c==b||new RegExp("(^|\\s)"+b+"(\\s|$)").test(c)))},addClassName:function(a,b){if(!(a=$(a))){return}if(!Element.hasClassName(a,b)){a.className+=(a.className?" ":"")+b}return a},removeClassName:function(a,b){if(!(a=$(a))){return}a.className=a.className.replace(new RegExp("(^|\\s+)"+b+"(\\s+|$)")," ").strip();return a},toggleClassName:function(a,b){if(!(a=$(a))){return}return Element[Element.hasClassName(a,b)?"removeClassName":"addClassName"](a,b)},cleanWhitespace:function(b){b=$(b);var c=b.firstChild;while(c){var a=c.nextSibling;if(c.nodeType==3&&!/\S/.test(c.nodeValue)){b.removeChild(c)}c=a}return b},empty:function(a){return $(a).innerHTML.blank()},descendantOf:function(b,a){b=$(b),a=$(a);if(b.compareDocumentPosition){return(b.compareDocumentPosition(a)&8)===8}if(a.contains){return a.contains(b)&&a!==b}while(b=b.parentNode){if(b==a){return true}}return false},scrollTo:function(a){a=$(a);var b=Element.cumulativeOffset(a);window.scrollTo(b[0],b[1]);return a},getStyle:function(b,c){b=$(b);c=c=="float"?"cssFloat":c.camelize();var d=b.style[c];if(!d||d=="auto"){var a=document.defaultView.getComputedStyle(b,null);d=a?a[c]:null}if(c=="opacity"){return d?parseFloat(d):1}return d=="auto"?null:d},getOpacity:function(a){return $(a).getStyle("opacity")},setStyle:function(b,c){b=$(b);var e=b.style,a;if(Object.isString(c)){b.style.cssText+=";"+c;return c.include("opacity")?b.setOpacity(c.match(/opacity:\s*(\d?\.?\d*)/)[1]):b}for(var d in c){if(d=="opacity"){b.setOpacity(c[d])}else{e[(d=="float"||d=="cssFloat")?(Object.isUndefined(e.styleFloat)?"cssFloat":"styleFloat"):d]=c[d]}}return b},setOpacity:function(a,b){a=$(a);a.style.opacity=(b==1||b==="")?"":(b<0.00001)?0:b;return a},makePositioned:function(a){a=$(a);var b=Element.getStyle(a,"position");if(b=="static"||!b){a._madePositioned=true;a.style.position="relative";if(Prototype.Browser.Opera){a.style.top=0;a.style.left=0}}return a},undoPositioned:function(a){a=$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=""}return a},makeClipping:function(a){a=$(a);if(a._overflow){return a}a._overflow=Element.getStyle(a,"overflow")||"auto";if(a._overflow!=="hidden"){a.style.overflow="hidden"}return a},undoClipping:function(a){a=$(a);if(!a._overflow){return a}a.style.overflow=a._overflow=="auto"?"":a._overflow;a._overflow=null;return a},clonePosition:function(b,d){var a=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});d=$(d);var e=Element.viewportOffset(d),f=[0,0],c=null;b=$(b);if(Element.getStyle(b,"position")=="absolute"){c=Element.getOffsetParent(b);f=Element.viewportOffset(c)}if(c==document.body){f[0]-=document.body.offsetLeft;f[1]-=document.body.offsetTop}if(a.setLeft){b.style.left=(e[0]-f[0]+a.offsetLeft)+"px"}if(a.setTop){b.style.top=(e[1]-f[1]+a.offsetTop)+"px"}if(a.setWidth){b.style.width=d.offsetWidth+"px"}if(a.setHeight){b.style.height=d.offsetHeight+"px"}return b}};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(d,b,c){switch(c){case"height":case"width":if(!Element.visible(b)){return null}var e=parseInt(d(b,c),10);if(e!==b["offset"+c.capitalize()]){return e+"px"}var a;if(c==="height"){a=["border-top-width","padding-top","padding-bottom","border-bottom-width"]}else{a=["border-left-width","padding-left","padding-right","border-right-width"]}return a.inject(e,function(f,g){var h=d(b,g);return h===null?f:f-parseInt(h,10)})+"px";default:return d(b,c)}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(c,a,b){if(b==="title"){return a.title}return c(a,b)})}else{if(Prototype.Browser.IE){Element.Methods.getStyle=function(a,b){a=$(a);b=(b=="float"||b=="cssFloat")?"styleFloat":b.camelize();var c=a.style[b];if(!c&&a.currentStyle){c=a.currentStyle[b]}if(b=="opacity"){if(c=(a.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(c[1]){return parseFloat(c[1])/100}}return 1}if(c=="auto"){if((b=="width"||b=="height")&&(a.getStyle("display")!="none")){return a["offset"+b.capitalize()]+"px"}return null}return c};Element.Methods.setOpacity=function(b,e){function f(g){return g.replace(/alpha\([^\)]*\)/gi,"")}b=$(b);var a=b.currentStyle;if((a&&!a.hasLayout)||(!a&&b.style.zoom=="normal")){b.style.zoom=1}var d=b.getStyle("filter"),c=b.style;if(e==1||e===""){(d=f(d))?c.filter=d:c.removeAttribute("filter");return b}else{if(e<0.00001){e=0}}c.filter=f(d)+"alpha(opacity="+(e*100)+")";return b};Element._attributeTranslations=(function(){var b="className",a="for",c=document.createElement("div");c.setAttribute(b,"x");if(c.className!=="x"){c.setAttribute("class","x");if(c.className==="x"){b="class"}}c=null;c=document.createElement("label");c.setAttribute(a,"x");if(c.htmlFor!=="x"){c.setAttribute("htmlFor","x");if(c.htmlFor==="x"){a="htmlFor"}}c=null;return{read:{names:{"class":b,className:b,"for":a,htmlFor:a},values:{_getAttr:function(d,e){return d.getAttribute(e)},_getAttr2:function(d,e){return d.getAttribute(e,2)},_getAttrNode:function(d,f){var e=d.getAttributeNode(f);return e?e.value:""},_getEv:(function(){var d=document.createElement("div"),g;d.onclick=Prototype.emptyFunction;var e=d.getAttribute("onclick");if(String(e).indexOf("{")>-1){g=function(f,h){h=f.getAttribute(h);if(!h){return null}h=h.toString();h=h.split("{")[1];h=h.split("}")[0];return h.strip()}}else{if(e===""){g=function(f,h){h=f.getAttribute(h);if(!h){return null}return h.strip()}}}d=null;return g})(),_flag:function(d,e){return $(d).hasAttribute(e)?e:null},style:function(d){return d.style.cssText.toLowerCase()},title:function(d){return d.title}}}}})();Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(a,b){a.checked=!!b},style:function(a,b){a.style.cssText=b?b:""}}};Element._attributeTranslations.has={};$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc frameBorder").each(function(a){Element._attributeTranslations.write.names[a.toLowerCase()]=a;Element._attributeTranslations.has[a.toLowerCase()]=a});(function(a){Object.extend(a,{href:a._getAttr2,src:a._getAttr2,type:a._getAttr,action:a._getAttrNode,disabled:a._flag,checked:a._flag,readonly:a._flag,multiple:a._flag,onload:a._getEv,onunload:a._getEv,onclick:a._getEv,ondblclick:a._getEv,onmousedown:a._getEv,onmouseup:a._getEv,onmouseover:a._getEv,onmousemove:a._getEv,onmouseout:a._getEv,onfocus:a._getEv,onblur:a._getEv,onkeypress:a._getEv,onkeydown:a._getEv,onkeyup:a._getEv,onsubmit:a._getEv,onreset:a._getEv,onselect:a._getEv,onchange:a._getEv})})(Element._attributeTranslations.read.values);if(Prototype.BrowserFeatures.ElementExtensions){(function(){function a(e){var b=e.getElementsByTagName("*"),d=[];for(var c=0,f;f=b[c];c++){if(f.tagName!=="!"){d.push(f)}}return d}Element.Methods.down=function(c,d,b){c=$(c);if(arguments.length==1){return c.firstDescendant()}return Object.isNumber(d)?a(c)[d]:Element.select(c,d)[b||0]}})()}}else{if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=(b==1)?0.999999:(b==="")?"":(b<0.00001)?0:b;return a}}else{if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=(b==1||b==="")?"":(b<0.00001)?0:b;if(b==1){if(a.tagName.toUpperCase()=="IMG"&&a.width){a.width++;a.width--}else{try{var d=document.createTextNode(" ");a.appendChild(d);a.removeChild(d)}catch(c){}}}return a}}}}}if("outerHTML" in document.documentElement){Element.Methods.replace=function(c,e){c=$(c);if(e&&e.toElement){e=e.toElement()}if(Object.isElement(e)){c.parentNode.replaceChild(e,c);return c}e=Object.toHTML(e);var d=c.parentNode,b=d.tagName.toUpperCase();if(Element._insertionTranslations.tags[b]){var f=c.next(),a=Element._getContentFromAnonymousElement(b,e.stripScripts());d.removeChild(c);if(f){a.each(function(g){d.insertBefore(g,f)})}else{a.each(function(g){d.appendChild(g)})}}else{c.outerHTML=e.stripScripts()}e.evalScripts.bind(e).defer();return c}}Element._returnOffset=function(b,c){var a=[b,c];a.left=b;a.top=c;return a};Element._getContentFromAnonymousElement=function(e,d,f){var g=new Element("div"),c=Element._insertionTranslations.tags[e];var a=false;if(c){a=true}else{if(f){a=true;c=["","",0]}}if(a){g.innerHTML="&nbsp;"+c[0]+d+c[1];g.removeChild(g.firstChild);for(var b=c[2];b--;){g=g.firstChild}}else{g.innerHTML=d}return $A(g.childNodes)};Element._insertionTranslations={before:function(a,b){a.parentNode.insertBefore(b,a)},top:function(a,b){a.insertBefore(b,a.firstChild)},bottom:function(a,b){a.appendChild(b)},after:function(a,b){a.parentNode.insertBefore(b,a.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 a=Element._insertionTranslations.tags;Object.extend(a,{THEAD:a.TBODY,TFOOT:a.TBODY,TH:a.TD})})();Element.Methods.Simulated={hasAttribute:function(a,c){c=Element._attributeTranslations.has[c]||c;var b=$(a).getAttributeNode(c);return !!(b&&b.specified)}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);(function(a){if(!Prototype.BrowserFeatures.ElementExtensions&&a.__proto__){window.HTMLElement={};window.HTMLElement.prototype=a.__proto__;Prototype.BrowserFeatures.ElementExtensions=true}a=null})(document.createElement("div"));Element.extend=(function(){function c(g){if(typeof window.Element!="undefined"){var k=window.Element.prototype;if(k){var n="_"+(Math.random()+"").slice(2),h=document.createElement(g);k[n]="x";var l=(h[n]!=="x");delete k[n];h=null;return l}}return false}function b(h,g){for(var l in g){var k=g[l];if(Object.isFunction(k)&&!(l in h)){h[l]=k.methodize()}}}var d=c("object");if(Prototype.BrowserFeatures.SpecificElementExtensions){if(d){return function(h){if(h&&typeof h._extendedByPrototype=="undefined"){var g=h.tagName;if(g&&(/^(?:object|applet|embed)$/i.test(g))){b(h,Element.Methods);b(h,Element.Methods.Simulated);b(h,Element.Methods.ByTag[g.toUpperCase()])}}return h}}return Prototype.K}var a={},e=Element.Methods.ByTag;var f=Object.extend(function(k){if(!k||typeof k._extendedByPrototype!="undefined"||k.nodeType!=1||k==window){return k}var g=Object.clone(a),h=k.tagName.toUpperCase();if(e[h]){Object.extend(g,e[h])}b(k,g);k._extendedByPrototype=Prototype.emptyFunction;return k},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(a,Element.Methods);Object.extend(a,Element.Methods.Simulated)}}});f.refresh();return f})();if(document.documentElement.hasAttribute){Element.hasAttribute=function(a,b){return a.hasAttribute(b)}}else{Element.hasAttribute=Element.Methods.Simulated.hasAttribute}Element.addMethods=function(c){var k=Prototype.BrowserFeatures,d=Element.Methods.ByTag;if(!c){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),BUTTON:Object.clone(Form.Element.Methods)})}if(arguments.length==2){var b=c;c=arguments[1]}if(!b){Object.extend(Element.Methods,c||{})}else{if(Object.isArray(b)){b.each(g)}else{g(b)}}function g(n){n=n.toUpperCase();if(!Element.Methods.ByTag[n]){Element.Methods.ByTag[n]={}}Object.extend(Element.Methods.ByTag[n],c)}function a(q,p,n){n=n||false;for(var u in q){var t=q[u];if(!Object.isFunction(t)){continue}if(!n||!(u in p)){p[u]=t.methodize()}}}function e(t){var n;var q={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(q[t]){n="HTML"+q[t]+"Element"}if(window[n]){return window[n]}n="HTML"+t+"Element";if(window[n]){return window[n]}n="HTML"+t.capitalize()+"Element";if(window[n]){return window[n]}var p=document.createElement(t),u=p.__proto__||p.constructor.prototype;p=null;return u}var h=window.HTMLElement?HTMLElement.prototype:Element.prototype;if(k.ElementExtensions){a(Element.Methods,h);a(Element.Methods.Simulated,h,true)}if(k.SpecificElementExtensions){for(var l in Element.Methods.ByTag){var f=e(l);if(Object.isUndefined(f)){continue}a(d[l],f.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(b){var g=Prototype.Browser,e=document,c,d={};function a(){if(g.WebKit&&!e.evaluate){return document}if(g.Opera&&window.parseFloat(window.opera.version())<9.5){return document.body}return document.documentElement}function f(h){if(!c){c=a()}d[h]="client"+h;b["get"+h]=function(){return c[d[h]]};return b["get"+h]()}b.getWidth=f.curry("Width");b.getHeight=f.curry("Height")})(document.viewport);Element.Storage={UID:1};Element.addMethods({getStorage:function(b){if(!(b=$(b))){return}var a;if(b===window){a=0}else{if(typeof b._prototypeUID==="undefined"){b._prototypeUID=Element.Storage.UID++}a=b._prototypeUID}if(!Element.Storage[a]){Element.Storage[a]=$H()}return Element.Storage[a]},store:function(b,a,c){if(!(b=$(b))){return}if(arguments.length===2){Element.getStorage(b).update(a)}else{Element.getStorage(b).set(a,c)}return b},retrieve:function(c,b,a){if(!(c=$(c))){return}var e=Element.getStorage(c),d=e.get(b);if(Object.isUndefined(d)){e.set(b,a);d=a}return d},clone:function(c,a){if(!(c=$(c))){return}var e=c.cloneNode(a);e._prototypeUID=void 0;if(a){var d=Element.select(e,"*"),b=d.length;while(b--){d[b]._prototypeUID=void 0}}return Element.extend(e)},purge:function(c){if(!(c=$(c))){return}var a=Element._purgeElement;a(c);var d=c.getElementsByTagName("*"),b=d.length;while(b--){a(d[b])}return null}});(function(){function h(D){var C=D.match(/^(\d+)%?$/i);if(!C){return null}return(Number(C[1])/100)}function u(N,O,D){var G=null;if(Object.isElement(N)){G=N;N=G.getStyle(O)}if(N===null){return null}if((/^(?:-)?\d+(\.\d+)?(px)?$/i).test(N)){return window.parseFloat(N)}var I=N.include("%"),E=(D===document.viewport);if(/\d/.test(N)&&G&&G.runtimeStyle&&!(I&&E)){var C=G.style.left,M=G.runtimeStyle.left;G.runtimeStyle.left=G.currentStyle.left;G.style.left=N||0;N=G.style.pixelLeft;G.style.left=C;G.runtimeStyle.left=M;return N}if(G&&I){D=D||G.parentNode;var F=h(N);var J=null;var H=G.getStyle("position");var L=O.include("left")||O.include("right")||O.include("width");var K=O.include("top")||O.include("bottom")||O.include("height");if(D===document.viewport){if(L){J=document.viewport.getWidth()}else{if(K){J=document.viewport.getHeight()}}}else{if(L){J=$(D).measure("width")}else{if(K){J=$(D).measure("height")}}}return(J===null)?0:J*F}return 0}function g(C){if(Object.isString(C)&&C.endsWith("px")){return C}return C+"px"}function l(D){var C=D;while(D&&D.parentNode){var E=D.getStyle("display");if(E==="none"){return false}D=$(D.parentNode)}return true}var d=Prototype.K;if("currentStyle" in document.documentElement){d=function(C){if(!C.currentStyle.hasLayout){C.style.zoom=1}return C}}function f(C){if(C.include("border")){C=C+"-width"}return C.camelize()}Element.Layout=Class.create(Hash,{initialize:function($super,D,C){$super();this.element=$(D);Element.Layout.PROPERTIES.each(function(E){this._set(E,null)},this);if(C){this._preComputing=true;this._begin();Element.Layout.PROPERTIES.each(this._compute,this);this._end();this._preComputing=false}},_set:function(D,C){return Hash.prototype.set.call(this,D,C)},set:function(D,C){throw"Properties of Element.Layout are read-only."},get:function($super,D){var C=$super(D);return C===null?this._compute(D):C},_begin:function(){if(this._prepared){return}var G=this.element;if(l(G)){this._prepared=true;return}var I={position:G.style.position||"",width:G.style.width||"",visibility:G.style.visibility||"",display:G.style.display||""};G.store("prototype_original_styles",I);var J=G.getStyle("position"),C=G.getStyle("width");if(C==="0px"||C===null){G.style.display="block";C=G.getStyle("width")}var D=(J==="fixed")?document.viewport:G.parentNode;G.setStyle({position:"absolute",visibility:"hidden",display:"block"});var E=G.getStyle("width");var F;if(C&&(E===C)){F=u(G,"width",D)}else{if(J==="absolute"||J==="fixed"){F=u(G,"width",D)}else{var K=G.parentNode,H=$(K).getLayout();F=H.get("width")-this.get("margin-left")-this.get("border-left")-this.get("padding-left")-this.get("padding-right")-this.get("border-right")-this.get("margin-right")}}G.setStyle({width:F+"px"});this._prepared=true},_end:function(){var D=this.element;var C=D.retrieve("prototype_original_styles");D.store("prototype_original_styles",null);D.setStyle(C);this._prepared=false},_compute:function(D){var C=Element.Layout.COMPUTATIONS;if(!(D in C)){throw"Property not found."}return this._set(D,C[D].call(this,this.element))},toObject:function(){var C=$A(arguments);var D=(C.length===0)?Element.Layout.PROPERTIES:C.join(" ").split(" ");var E={};D.each(function(F){if(!Element.Layout.PROPERTIES.include(F)){return}var G=this.get(F);if(G!=null){E[F]=G}},this);return E},toHash:function(){var C=this.toObject.apply(this,arguments);return new Hash(C)},toCSS:function(){var C=$A(arguments);var E=(C.length===0)?Element.Layout.PROPERTIES:C.join(" ").split(" ");var D={};E.each(function(F){if(!Element.Layout.PROPERTIES.include(F)){return}if(Element.Layout.COMPOSITE_PROPERTIES.include(F)){return}var G=this.get(F);if(G!=null){D[f(F)]=G+"px"}},this);return D},inspect:function(){return"#<Element.Layout>"}});Object.extend(Element.Layout,{PROPERTIES:$w("height width top left right bottom border-left border-right border-top border-bottom padding-left padding-right padding-top padding-bottom margin-top margin-bottom margin-left margin-right padding-box-width padding-box-height border-box-width border-box-height margin-box-width margin-box-height"),COMPOSITE_PROPERTIES:$w("padding-box-width padding-box-height margin-box-width margin-box-height border-box-width border-box-height"),COMPUTATIONS:{height:function(E){if(!this._preComputing){this._begin()}var C=this.get("border-box-height");if(C<=0){if(!this._preComputing){this._end()}return 0}var F=this.get("border-top"),D=this.get("border-bottom");var H=this.get("padding-top"),G=this.get("padding-bottom");if(!this._preComputing){this._end()}return C-F-D-H-G},width:function(E){if(!this._preComputing){this._begin()}var D=this.get("border-box-width");if(D<=0){if(!this._preComputing){this._end()}return 0}var H=this.get("border-left"),C=this.get("border-right");var F=this.get("padding-left"),G=this.get("padding-right");if(!this._preComputing){this._end()}return D-H-C-F-G},"padding-box-height":function(D){var C=this.get("height"),F=this.get("padding-top"),E=this.get("padding-bottom");return C+F+E},"padding-box-width":function(C){var D=this.get("width"),E=this.get("padding-left"),F=this.get("padding-right");return D+E+F},"border-box-height":function(D){if(!this._preComputing){this._begin()}var C=D.offsetHeight;if(!this._preComputing){this._end()}return C},"border-box-width":function(C){if(!this._preComputing){this._begin()}var D=C.offsetWidth;if(!this._preComputing){this._end()}return D},"margin-box-height":function(D){var C=this.get("border-box-height"),E=this.get("margin-top"),F=this.get("margin-bottom");if(C<=0){return 0}return C+E+F},"margin-box-width":function(E){var D=this.get("border-box-width"),F=this.get("margin-left"),C=this.get("margin-right");if(D<=0){return 0}return D+F+C},top:function(C){var D=C.positionedOffset();return D.top},bottom:function(C){var F=C.positionedOffset(),D=C.getOffsetParent(),E=D.measure("height");var G=this.get("border-box-height");return E-G-F.top},left:function(C){var D=C.positionedOffset();return D.left},right:function(E){var G=E.positionedOffset(),F=E.getOffsetParent(),C=F.measure("width");var D=this.get("border-box-width");return C-D-G.left},"padding-top":function(C){return u(C,"paddingTop")},"padding-bottom":function(C){return u(C,"paddingBottom")},"padding-left":function(C){return u(C,"paddingLeft")},"padding-right":function(C){return u(C,"paddingRight")},"border-top":function(C){return u(C,"borderTopWidth")},"border-bottom":function(C){return u(C,"borderBottomWidth")},"border-left":function(C){return u(C,"borderLeftWidth")},"border-right":function(C){return u(C,"borderRightWidth")},"margin-top":function(C){return u(C,"marginTop")},"margin-bottom":function(C){return u(C,"marginBottom")},"margin-left":function(C){return u(C,"marginLeft")},"margin-right":function(C){return u(C,"marginRight")}}});if("getBoundingClientRect" in document.documentElement){Object.extend(Element.Layout.COMPUTATIONS,{right:function(D){var E=d(D.getOffsetParent());var F=D.getBoundingClientRect(),C=E.getBoundingClientRect();return(C.right-F.right).round()},bottom:function(D){var E=d(D.getOffsetParent());var F=D.getBoundingClientRect(),C=E.getBoundingClientRect();return(C.bottom-F.bottom).round()}})}Element.Offset=Class.create({initialize:function(D,C){this.left=D.round();this.top=C.round();this[0]=this.left;this[1]=this.top},relativeTo:function(C){return new Element.Offset(this.left-C.left,this.top-C.top)},inspect:function(){return"#<Element.Offset left: #{left} top: #{top}>".interpolate(this)},toString:function(){return"[#{left}, #{top}]".interpolate(this)},toArray:function(){return[this.left,this.top]}});function z(D,C){return new Element.Layout(D,C)}function b(C,D){return $(C).getLayout().get(D)}function t(D){D=$(D);var H=Element.getStyle(D,"display");if(H&&H!=="none"){return{width:D.offsetWidth,height:D.offsetHeight}}var E=D.style;var C={visibility:E.visibility,position:E.position,display:E.display};var G={visibility:"hidden",display:"block"};if(C.position!=="fixed"){G.position="absolute"}Element.setStyle(D,G);var F={width:D.offsetWidth,height:D.offsetHeight};Element.setStyle(D,C);return F}function p(C){C=$(C);if(e(C)||c(C)||q(C)||n(C)){return $(document.body)}var D=(Element.getStyle(C,"display")==="inline");if(!D&&C.offsetParent){return $(C.offsetParent)}while((C=C.parentNode)&&C!==document.body){if(Element.getStyle(C,"position")!=="static"){return n(C)?$(document.body):$(C)}}return $(document.body)}function B(D){D=$(D);var C=0,E=0;if(D.parentNode){do{C+=D.offsetTop||0;E+=D.offsetLeft||0;D=D.offsetParent}while(D)}return new Element.Offset(E,C)}function v(D){D=$(D);var E=D.getLayout();var C=0,G=0;do{C+=D.offsetTop||0;G+=D.offsetLeft||0;D=D.offsetParent;if(D){if(q(D)){break}var F=Element.getStyle(D,"position");if(F!=="static"){break}}}while(D);G-=E.get("margin-top");C-=E.get("margin-left");return new Element.Offset(G,C)}function a(D){var C=0,E=0;do{C+=D.scrollTop||0;E+=D.scrollLeft||0;D=D.parentNode}while(D);return new Element.Offset(E,C)}function A(G){D=$(D);var C=0,F=0,E=document.body;var D=G;do{C+=D.offsetTop||0;F+=D.offsetLeft||0;if(D.offsetParent==E&&Element.getStyle(D,"position")=="absolute"){break}}while(D=D.offsetParent);D=G;do{if(D!=E){C-=D.scrollTop||0;F-=D.scrollLeft||0}}while(D=D.parentNode);return new Element.Offset(F,C)}function w(C){C=$(C);if(Element.getStyle(C,"position")==="absolute"){return C}var G=p(C);var F=C.viewportOffset(),D=G.viewportOffset();var H=F.relativeTo(D);var E=C.getLayout();C.store("prototype_absolutize_original_styles",{left:C.getStyle("left"),top:C.getStyle("top"),width:C.getStyle("width"),height:C.getStyle("height")});C.setStyle({position:"absolute",top:H.top+"px",left:H.left+"px",width:E.get("width")+"px",height:E.get("height")+"px"});return C}function k(D){D=$(D);if(Element.getStyle(D,"position")==="relative"){return D}var C=D.retrieve("prototype_absolutize_original_styles");if(C){D.setStyle(C)}return D}if(Prototype.Browser.IE){p=p.wrap(function(E,D){D=$(D);if(e(D)||c(D)||q(D)||n(D)){return $(document.body)}var C=D.getStyle("position");if(C!=="static"){return E(D)}D.setStyle({position:"relative"});var F=E(D);D.setStyle({position:C});return F});v=v.wrap(function(F,D){D=$(D);if(!D.parentNode){return new Element.Offset(0,0)}var C=D.getStyle("position");if(C!=="static"){return F(D)}var E=D.getOffsetParent();if(E&&E.getStyle("position")==="fixed"){d(E)}D.setStyle({position:"relative"});var G=F(D);D.setStyle({position:C});return G})}else{if(Prototype.Browser.Webkit){B=function(D){D=$(D);var C=0,E=0;do{C+=D.offsetTop||0;E+=D.offsetLeft||0;if(D.offsetParent==document.body){if(Element.getStyle(D,"position")=="absolute"){break}}D=D.offsetParent}while(D);return new Element.Offset(E,C)}}}Element.addMethods({getLayout:z,measure:b,getDimensions:t,getOffsetParent:p,cumulativeOffset:B,positionedOffset:v,cumulativeScrollOffset:a,viewportOffset:A,absolutize:w,relativize:k});function q(C){return C.nodeName.toUpperCase()==="BODY"}function n(C){return C.nodeName.toUpperCase()==="HTML"}function e(C){return C.nodeType===Node.DOCUMENT_NODE}function c(C){return C!==document.body&&!Element.descendantOf(C,document.body)}if("getBoundingClientRect" in document.documentElement){Element.addMethods({viewportOffset:function(C){C=$(C);if(c(C)){return new Element.Offset(0,0)}var D=C.getBoundingClientRect(),E=document.documentElement;return new Element.Offset(D.left-E.clientLeft,D.top-E.clientTop)}})}})();window.$$=function(){var a=$A(arguments).join(", ");return Prototype.Selector.select(a,document)};Prototype.Selector=(function(){function a(){throw new Error('Method "Prototype.Selector.select" must be defined.')}function c(){throw new Error('Method "Prototype.Selector.match" must be defined.')}function d(n,p,h){h=h||0;var g=Prototype.Selector.match,l=n.length,f=0,k;for(k=0;k<l;k++){if(g(n[k],p)&&h==f++){return Element.extend(n[k])}}}function e(h){for(var f=0,g=h.length;f<g;f++){Element.extend(h[f])}return h}var b=Prototype.K;return{select:a,match:c,find:d,extendElements:(Element.extend===b)?b:e,extendElement:Element.extend}})();Prototype._original_property=window.Sizzle;
/*
 * Sizzle CSS Selector Engine - v1.0
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var w=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,l=0,d=Object.prototype.toString,u=false,k=true;[0,0].sort(function(){k=false;return 0});var b=function(M,C,J,E){J=J||[];var e=C=C||document;if(C.nodeType!==1&&C.nodeType!==9){return[]}if(!M||typeof M!=="string"){return J}var K=[],L,H,Q,P,I,B,A=true,F=v(C),O=M;while((w.exec(""),L=w.exec(O))!==null){O=L[3];K.push(L[1]);if(L[2]){B=L[3];break}}if(K.length>1&&n.exec(M)){if(K.length===2&&f.relative[K[0]]){H=g(K[0]+K[1],C)}else{H=f.relative[K[0]]?[C]:b(K.shift(),C);while(K.length){M=K.shift();if(f.relative[M]){M+=K.shift()}H=g(M,H)}}}else{if(!E&&K.length>1&&C.nodeType===9&&!F&&f.match.ID.test(K[0])&&!f.match.ID.test(K[K.length-1])){var R=b.find(K.shift(),C,F);C=R.expr?b.filter(R.expr,R.set)[0]:R.set[0]}if(C){var R=E?{expr:K.pop(),set:a(E)}:b.find(K.pop(),K.length===1&&(K[0]==="~"||K[0]==="+")&&C.parentNode?C.parentNode:C,F);H=R.expr?b.filter(R.expr,R.set):R.set;if(K.length>0){Q=a(H)}else{A=false}while(K.length){var D=K.pop(),G=D;if(!f.relative[D]){D=""}else{G=K.pop()}if(G==null){G=C}f.relative[D](Q,G,F)}}else{Q=K=[]}}if(!Q){Q=H}if(!Q){throw"Syntax error, unrecognized expression: "+(D||M)}if(d.call(Q)==="[object Array]"){if(!A){J.push.apply(J,Q)}else{if(C&&C.nodeType===1){for(var N=0;Q[N]!=null;N++){if(Q[N]&&(Q[N]===true||Q[N].nodeType===1&&h(C,Q[N]))){J.push(H[N])}}}else{for(var N=0;Q[N]!=null;N++){if(Q[N]&&Q[N].nodeType===1){J.push(H[N])}}}}}else{a(Q,J)}if(B){b(B,e,J,E);b.uniqueSort(J)}return J};b.uniqueSort=function(A){if(c){u=k;A.sort(c);if(u){for(var e=1;e<A.length;e++){if(A[e]===A[e-1]){A.splice(e--,1)}}}}return A};b.matches=function(e,A){return b(e,null,null,A)};b.find=function(G,e,H){var F,D;if(!G){return[]}for(var C=0,B=f.order.length;C<B;C++){var E=f.order[C],D;if((D=f.leftMatch[E].exec(G))){var A=D[1];D.splice(1,1);if(A.substr(A.length-1)!=="\\"){D[1]=(D[1]||"").replace(/\\/g,"");F=f.find[E](D,e,H);if(F!=null){G=G.replace(f.match[E],"");break}}}}if(!F){F=e.getElementsByTagName("*")}return{set:F,expr:G}};b.filter=function(J,I,M,C){var B=J,O=[],G=I,E,e,F=I&&I[0]&&v(I[0]);while(J&&I.length){for(var H in f.filter){if((E=f.match[H].exec(J))!=null){var A=f.filter[H],N,L;e=false;if(G==O){O=[]}if(f.preFilter[H]){E=f.preFilter[H](E,G,M,O,C,F);if(!E){e=N=true}else{if(E===true){continue}}}if(E){for(var D=0;(L=G[D])!=null;D++){if(L){N=A(L,E,D,G);var K=C^!!N;if(M&&N!=null){if(K){e=true}else{G[D]=false}}else{if(K){O.push(L);e=true}}}}}if(N!==undefined){if(!M){G=O}J=J.replace(f.match[H],"");if(!e){return[]}break}}}if(J==B){if(e==null){throw"Syntax error, unrecognized expression: "+J}else{break}}B=J}return G};var f=b.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")}},relative:{"+":function(G,e,F){var D=typeof e==="string",H=D&&!/\W/.test(e),E=D&&!H;if(H&&!F){e=e.toUpperCase()}for(var C=0,B=G.length,A;C<B;C++){if((A=G[C])){while((A=A.previousSibling)&&A.nodeType!==1){}G[C]=E||A&&A.nodeName===e?A||false:A===e}}if(E){b.filter(e,G,true)}},">":function(F,A,G){var D=typeof A==="string";if(D&&!/\W/.test(A)){A=G?A:A.toUpperCase();for(var B=0,e=F.length;B<e;B++){var E=F[B];if(E){var C=E.parentNode;F[B]=C.nodeName===A?C:false}}}else{for(var B=0,e=F.length;B<e;B++){var E=F[B];if(E){F[B]=D?E.parentNode:E.parentNode===A}}if(D){b.filter(A,F,true)}}},"":function(C,A,E){var B=l++,e=z;if(!/\W/.test(A)){var D=A=E?A:A.toUpperCase();e=t}e("parentNode",A,B,C,D,E)},"~":function(C,A,E){var B=l++,e=z;if(typeof A==="string"&&!/\W/.test(A)){var D=A=E?A:A.toUpperCase();e=t}e("previousSibling",A,B,C,D,E)}},find:{ID:function(A,B,C){if(typeof B.getElementById!=="undefined"&&!C){var e=B.getElementById(A[1]);return e?[e]:[]}},NAME:function(B,E,F){if(typeof E.getElementsByName!=="undefined"){var A=[],D=E.getElementsByName(B[1]);for(var C=0,e=D.length;C<e;C++){if(D[C].getAttribute("name")===B[1]){A.push(D[C])}}return A.length===0?null:A}},TAG:function(e,A){return A.getElementsByTagName(e[1])}},preFilter:{CLASS:function(C,A,B,e,F,G){C=" "+C[1].replace(/\\/g,"")+" ";if(G){return C}for(var D=0,E;(E=A[D])!=null;D++){if(E){if(F^(E.className&&(" "+E.className+" ").indexOf(C)>=0)){if(!B){e.push(E)}}else{if(B){A[D]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(A,e){for(var B=0;e[B]===false;B++){}return e[B]&&v(e[B])?A[1]:A[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var A=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(A[1]+(A[2]||1))-0;e[3]=A[3]-0}e[0]=l++;return e},ATTR:function(D,A,B,e,E,F){var C=D[1].replace(/\\/g,"");if(!F&&f.attrMap[C]){D[1]=f.attrMap[C]}if(D[2]==="~="){D[4]=" "+D[4]+" "}return D},PSEUDO:function(D,A,B,e,E){if(D[1]==="not"){if((w.exec(D[3])||"").length>1||/^\w/.test(D[3])){D[3]=b(D[3],null,null,A)}else{var C=b.filter(D[3],A,B,true^E);if(!B){e.push.apply(e,C)}return false}}else{if(f.match.POS.test(D[0])||f.match.CHILD.test(D[0])){return true}}return D},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(B,A,e){return !!b(e[3],B).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(A,e){return e===0},last:function(B,A,e,C){return A===C.length-1},even:function(A,e){return e%2===0},odd:function(A,e){return e%2===1},lt:function(B,A,e){return A<e[3]-0},gt:function(B,A,e){return A>e[3]-0},nth:function(B,A,e){return e[3]-0==A},eq:function(B,A,e){return e[3]-0==A}},filter:{PSEUDO:function(F,B,C,G){var A=B[1],D=f.filters[A];if(D){return D(F,C,B,G)}else{if(A==="contains"){return(F.textContent||F.innerText||"").indexOf(B[3])>=0}else{if(A==="not"){var E=B[3];for(var C=0,e=E.length;C<e;C++){if(E[C]===F){return false}}return true}}}},CHILD:function(e,C){var F=C[1],A=e;switch(F){case"only":case"first":while((A=A.previousSibling)){if(A.nodeType===1){return false}}if(F=="first"){return true}A=e;case"last":while((A=A.nextSibling)){if(A.nodeType===1){return false}}return true;case"nth":var B=C[2],I=C[3];if(B==1&&I==0){return true}var E=C[0],H=e.parentNode;if(H&&(H.sizcache!==E||!e.nodeIndex)){var D=0;for(A=H.firstChild;A;A=A.nextSibling){if(A.nodeType===1){A.nodeIndex=++D}}H.sizcache=E}var G=e.nodeIndex-I;if(B==0){return G==0}else{return(G%B==0&&G/B>=0)}}},ID:function(A,e){return A.nodeType===1&&A.getAttribute("id")===e},TAG:function(A,e){return(e==="*"&&A.nodeType===1)||A.nodeName===e},CLASS:function(A,e){return(" "+(A.className||A.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(E,C){var B=C[1],e=f.attrHandle[B]?f.attrHandle[B](E):E[B]!=null?E[B]:E.getAttribute(B),F=e+"",D=C[2],A=C[4];return e==null?D==="!=":D==="="?F===A:D==="*="?F.indexOf(A)>=0:D==="~="?(" "+F+" ").indexOf(A)>=0:!A?F&&e!==false:D==="!="?F!=A:D==="^="?F.indexOf(A)===0:D==="$="?F.substr(F.length-A.length)===A:D==="|="?F===A||F.substr(0,A.length+1)===A+"-":false},POS:function(D,A,B,E){var e=A[2],C=f.setFilters[e];if(C){return C(D,B,A,E)}}}};var n=f.match.POS;for(var q in f.match){f.match[q]=new RegExp(f.match[q].source+/(?![^\[]*\])(?![^\(]*\))/.source);f.leftMatch[q]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[q].source)}var a=function(A,e){A=Array.prototype.slice.call(A,0);if(e){e.push.apply(e,A);return e}return A};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(p){a=function(D,C){var A=C||[];if(d.call(D)==="[object Array]"){Array.prototype.push.apply(A,D)}else{if(typeof D.length==="number"){for(var B=0,e=D.length;B<e;B++){A.push(D[B])}}else{for(var B=0;D[B];B++){A.push(D[B])}}}return A}}var c;if(document.documentElement.compareDocumentPosition){c=function(A,e){if(!A.compareDocumentPosition||!e.compareDocumentPosition){if(A==e){u=true}return 0}var B=A.compareDocumentPosition(e)&4?-1:A===e?0:1;if(B===0){u=true}return B}}else{if("sourceIndex" in document.documentElement){c=function(A,e){if(!A.sourceIndex||!e.sourceIndex){if(A==e){u=true}return 0}var B=A.sourceIndex-e.sourceIndex;if(B===0){u=true}return B}}else{if(document.createRange){c=function(C,A){if(!C.ownerDocument||!A.ownerDocument){if(C==A){u=true}return 0}var B=C.ownerDocument.createRange(),e=A.ownerDocument.createRange();B.setStart(C,0);B.setEnd(C,0);e.setStart(A,0);e.setEnd(A,0);var D=B.compareBoundaryPoints(Range.START_TO_END,e);if(D===0){u=true}return D}}}}(function(){var A=document.createElement("div"),B="script"+(new Date).getTime();A.innerHTML="<a name='"+B+"'/>";var e=document.documentElement;e.insertBefore(A,e.firstChild);if(!!document.getElementById(B)){f.find.ID=function(D,E,F){if(typeof E.getElementById!=="undefined"&&!F){var C=E.getElementById(D[1]);return C?C.id===D[1]||typeof C.getAttributeNode!=="undefined"&&C.getAttributeNode("id").nodeValue===D[1]?[C]:undefined:[]}};f.filter.ID=function(E,C){var D=typeof E.getAttributeNode!=="undefined"&&E.getAttributeNode("id");return E.nodeType===1&&D&&D.nodeValue===C}}e.removeChild(A);e=A=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){f.find.TAG=function(A,E){var D=E.getElementsByTagName(A[1]);if(A[1]==="*"){var C=[];for(var B=0;D[B];B++){if(D[B].nodeType===1){C.push(D[B])}}D=C}return D}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){f.attrHandle.href=function(A){return A.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var e=b,B=document.createElement("div");B.innerHTML="<p class='TEST'></p>";if(B.querySelectorAll&&B.querySelectorAll(".TEST").length===0){return}b=function(F,E,C,D){E=E||document;if(!D&&E.nodeType===9&&!v(E)){try{return a(E.querySelectorAll(F),C)}catch(G){}}return e(F,E,C,D)};for(var A in e){b[A]=e[A]}B=null})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}f.order.splice(1,0,"CLASS");f.find.CLASS=function(A,B,C){if(typeof B.getElementsByClassName!=="undefined"&&!C){return B.getElementsByClassName(A[1])}};e=null})()}function t(A,F,E,J,G,I){var H=A=="previousSibling"&&!I;for(var C=0,B=J.length;C<B;C++){var e=J[C];if(e){if(H&&e.nodeType===1){e.sizcache=E;e.sizset=C}e=e[A];var D=false;while(e){if(e.sizcache===E){D=J[e.sizset];break}if(e.nodeType===1&&!I){e.sizcache=E;e.sizset=C}if(e.nodeName===F){D=e;break}e=e[A]}J[C]=D}}}function z(A,F,E,J,G,I){var H=A=="previousSibling"&&!I;for(var C=0,B=J.length;C<B;C++){var e=J[C];if(e){if(H&&e.nodeType===1){e.sizcache=E;e.sizset=C}e=e[A];var D=false;while(e){if(e.sizcache===E){D=J[e.sizset];break}if(e.nodeType===1){if(!I){e.sizcache=E;e.sizset=C}if(typeof F!=="string"){if(e===F){D=true;break}}else{if(b.filter(F,[e]).length>0){D=e;break}}}e=e[A]}J[C]=D}}}var h=document.compareDocumentPosition?function(A,e){return A.compareDocumentPosition(e)&16}:function(A,e){return A!==e&&(A.contains?A.contains(e):true)};var v=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&e.ownerDocument.documentElement.nodeName!=="HTML"};var g=function(e,G){var C=[],D="",E,B=G.nodeType?[G]:G;while((E=f.match.PSEUDO.exec(e))){D+=E[0];e=e.replace(f.match.PSEUDO,"")}e=f.relative[e]?e+"*":e;for(var F=0,A=B.length;F<A;F++){b(e,B[F],C)}return b.filter(D,C)};window.Sizzle=b})();(function(c){var d=Prototype.Selector.extendElements;function a(e,f){return d(c(e,f||document))}function b(f,e){return c.matches(e,[f]).length==1}Prototype.Selector.engine=c;Prototype.Selector.select=a;Prototype.Selector.match=b})(Sizzle);window.Sizzle=Prototype._original_property;delete Prototype._original_property;var Form={reset:function(a){a=$(a);a.reset();return a},serializeElements:function(h,d){if(typeof d!="object"){d={hash:!!d}}else{if(Object.isUndefined(d.hash)){d.hash=true}}var e,g,a=false,f=d.submit,b,c;if(d.hash){c={};b=function(k,l,n){if(l in k){if(!Object.isArray(k[l])){k[l]=[k[l]]}k[l].push(n)}else{k[l]=n}return k}}else{c="";b=function(k,l,n){return k+(k?"&":"")+encodeURIComponent(l)+"="+encodeURIComponent(n)}}return h.inject(c,function(k,l){if(!l.disabled&&l.name){e=l.name;g=$(l).getValue();if(g!=null&&l.type!="file"&&(l.type!="submit"||(!a&&f!==false&&(!f||e==f)&&(a=true)))){k=b(k,e,g)}}return k})}};Form.Methods={serialize:function(b,a){return Form.serializeElements(Form.getElements(b),a)},getElements:function(e){var f=$(e).getElementsByTagName("*"),d,a=[],c=Form.Element.Serializers;for(var b=0;d=f[b];b++){a.push(d)}return a.inject([],function(g,h){if(c[h.tagName.toLowerCase()]){g.push(Element.extend(h))}return g})},getInputs:function(g,c,d){g=$(g);var a=g.getElementsByTagName("input");if(!c&&!d){return $A(a).map(Element.extend)}for(var e=0,h=[],f=a.length;e<f;e++){var b=a[e];if((c&&b.type!=c)||(d&&b.name!=d)){continue}h.push(Element.extend(b))}return h},disable:function(a){a=$(a);Form.getElements(a).invoke("disable");return a},enable:function(a){a=$(a);Form.getElements(a).invoke("enable");return a},findFirstElement:function(b){var c=$(b).getElements().findAll(function(d){return"hidden"!=d.type&&!d.disabled});var a=c.findAll(function(d){return d.hasAttribute("tabIndex")&&d.tabIndex>=0}).sortBy(function(d){return d.tabIndex}).first();return a?a:c.find(function(d){return/^(?:input|select|textarea)$/i.test(d.tagName)})},focusFirstElement:function(b){b=$(b);var a=b.findFirstElement();if(a){a.activate()}return b},request:function(b,a){b=$(b),a=Object.clone(a||{});var d=a.parameters,c=b.readAttribute("action")||"";if(c.blank()){c=window.location.href}a.parameters=b.serialize(true);if(d){if(Object.isString(d)){d=d.toQueryParams()}Object.extend(a.parameters,d)}if(b.hasAttribute("method")&&!a.method){a.method=b.method}return new Ajax.Request(c,a)}};Form.Element={focus:function(a){$(a).focus();return a},select:function(a){$(a).select();return a}};Form.Element.Methods={serialize:function(a){a=$(a);if(!a.disabled&&a.name){var b=a.getValue();if(b!=undefined){var c={};c[a.name]=b;return Object.toQueryString(c)}}return""},getValue:function(a){a=$(a);var b=a.tagName.toLowerCase();return Form.Element.Serializers[b](a)},setValue:function(a,b){a=$(a);var c=a.tagName.toLowerCase();Form.Element.Serializers[c](a,b);return a},clear:function(a){$(a).value="";return a},present:function(a){return $(a).value!=""},activate:function(a){a=$(a);try{a.focus();if(a.select&&(a.tagName.toLowerCase()!="input"||!(/^(?:button|reset|submit)$/i.test(a.type)))){a.select()}}catch(b){}return a},disable:function(a){a=$(a);a.disabled=true;return a},enable:function(a){a=$(a);a.disabled=false;return a}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers=(function(){function b(h,k){switch(h.type.toLowerCase()){case"checkbox":case"radio":return f(h,k);default:return e(h,k)}}function f(h,k){if(Object.isUndefined(k)){return h.checked?h.value:null}else{h.checked=!!k}}function e(h,k){if(Object.isUndefined(k)){return h.value}else{h.value=k}}function a(l,q){if(Object.isUndefined(q)){return(l.type==="select-one"?c:d)(l)}var k,n,t=!Object.isArray(q);for(var h=0,p=l.length;h<p;h++){k=l.options[h];n=this.optionValue(k);if(t){if(n==q){k.selected=true;return}}else{k.selected=q.include(n)}}}function c(k){var h=k.selectedIndex;return h>=0?g(k.options[h]):null}function d(n){var h,p=n.length;if(!p){return null}for(var l=0,h=[];l<p;l++){var k=n.options[l];if(k.selected){h.push(g(k))}}return h}function g(h){return Element.hasAttribute(h,"value")?h.value:h.text}return{input:b,inputSelector:f,textarea:e,select:a,selectOne:c,selectMany:d,optionValue:g,button:e}})();Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,a,b,c){$super(c,b);this.element=$(a);this.lastValue=this.getValue()},execute:function(){var a=this.getValue();if(Object.isString(this.lastValue)&&Object.isString(a)?this.lastValue!=a:String(this.lastValue)!=String(a)){this.callback(this.element,a);this.lastValue=a}}});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(a,b){this.element=$(a);this.callback=b;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()}else{this.registerCallback(this.element)}},onElementEvent:function(){var a=this.getValue();if(this.lastValue!=a){this.callback(this.element,a);this.lastValue=a}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this)},registerCallback:function(a){if(a.type){switch(a.type.toLowerCase()){case"checkbox":case"radio":Event.observe(a,"click",this.onElementEvent.bind(this));break;default:Event.observe(a,"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 K={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 f=document.documentElement;var L="onmouseenter" in f&&"onmouseleave" in f;var a=function(M){return false};if(window.attachEvent){if(window.addEventListener){a=function(M){return !(M instanceof window.Event)}}else{a=function(M){return true}}}var z;function I(N,M){return N.which?(N.which===M+1):(N.button===M)}var u={0:1,1:4,2:2};function G(N,M){return N.button===u[M]}function J(N,M){switch(M){case 0:return N.which==1&&!N.metaKey;case 1:return N.which==2||(N.which==1&&N.metaKey);case 2:return N.which==3;default:return false}}if(window.attachEvent){if(!window.addEventListener){z=G}else{z=function(N,M){return a(N)?G(N,M):I(N,M)}}}else{if(Prototype.Browser.WebKit){z=J}else{z=I}}function D(M){return z(M,0)}function B(M){return z(M,1)}function t(M){return z(M,2)}function d(O){O=K.extend(O);var N=O.target,M=O.type,P=O.currentTarget;if(P&&P.tagName){if(M==="load"||M==="error"||(M==="click"&&P.tagName.toLowerCase()==="input"&&P.type==="radio")){N=P}}if(N.nodeType==Node.TEXT_NODE){N=N.parentNode}return Element.extend(N)}function v(N,O){var M=K.element(N);if(!O){return M}while(M){if(Object.isElement(M)&&Prototype.Selector.match(M,O)){return Element.extend(M)}M=M.parentNode}}function A(M){return{x:c(M),y:b(M)}}function c(O){var N=document.documentElement,M=document.body||{scrollLeft:0};return O.pageX||(O.clientX+(N.scrollLeft||M.scrollLeft)-(N.clientLeft||0))}function b(O){var N=document.documentElement,M=document.body||{scrollTop:0};return O.pageY||(O.clientY+(N.scrollTop||M.scrollTop)-(N.clientTop||0))}function w(M){K.extend(M);M.preventDefault();M.stopPropagation();M.stopped=true}K.Methods={isLeftClick:D,isMiddleClick:B,isRightClick:t,element:d,findElement:v,pointer:A,pointerX:c,pointerY:b,stop:w};var F=Object.keys(K.Methods).inject({},function(M,N){M[N]=K.Methods[N].methodize();return M});if(window.attachEvent){function k(N){var M;switch(N.type){case"mouseover":case"mouseenter":M=N.fromElement;break;case"mouseout":case"mouseleave":M=N.toElement;break;default:return null}return Element.extend(M)}var C={stopPropagation:function(){this.cancelBubble=true},preventDefault:function(){this.returnValue=false},inspect:function(){return"[object Event]"}};K.extend=function(N,M){if(!N){return false}if(!a(N)){return N}if(N._extendedByPrototype){return N}N._extendedByPrototype=Prototype.emptyFunction;var O=K.pointer(N);Object.extend(N,{target:N.srcElement||M,relatedTarget:k(N),pageX:O.x,pageY:O.y});Object.extend(N,F);Object.extend(N,C);return N}}else{K.extend=Prototype.K}if(window.addEventListener){K.prototype=window.Event.prototype||document.createEvent("HTMLEvents").__proto__;Object.extend(K.prototype,F)}function q(Q,P,R){var O=Element.retrieve(Q,"prototype_event_registry");if(Object.isUndefined(O)){e.push(Q);O=Element.retrieve(Q,"prototype_event_registry",$H())}var M=O.get(P);if(Object.isUndefined(M)){M=[];O.set(P,M)}if(M.pluck("handler").include(R)){return false}var N;if(P.include(":")){N=function(S){if(Object.isUndefined(S.eventName)){return false}if(S.eventName!==P){return false}K.extend(S,Q);R.call(Q,S)}}else{if(!L&&(P==="mouseenter"||P==="mouseleave")){if(P==="mouseenter"||P==="mouseleave"){N=function(T){K.extend(T,Q);var S=T.relatedTarget;while(S&&S!==Q){try{S=S.parentNode}catch(U){S=Q}}if(S===Q){return}R.call(Q,T)}}}else{N=function(S){K.extend(S,Q);R.call(Q,S)}}}N.handler=R;M.push(N);return N}function h(){for(var M=0,N=e.length;M<N;M++){K.stopObserving(e[M]);e[M]=null}}var e=[];if(Prototype.Browser.IE){window.attachEvent("onunload",h)}if(Prototype.Browser.WebKit){window.addEventListener("unload",Prototype.emptyFunction,false)}var p=Prototype.K,g={mouseenter:"mouseover",mouseleave:"mouseout"};if(!L){p=function(M){return(g[M]||M)}}function E(P,O,Q){P=$(P);var N=q(P,O,Q);if(!N){return P}if(O.include(":")){if(P.addEventListener){P.addEventListener("dataavailable",N,false)}else{P.attachEvent("ondataavailable",N);P.attachEvent("onlosecapture",N)}}else{var M=p(O);if(P.addEventListener){P.addEventListener(M,N,false)}else{P.attachEvent("on"+M,N)}}return P}function n(S,P,T){S=$(S);var O=Element.retrieve(S,"prototype_event_registry");if(!O){return S}if(!P){O.each(function(V){var U=V.key;n(S,U)});return S}var Q=O.get(P);if(!Q){return S}if(!T){Q.each(function(U){n(S,P,U.handler)});return S}var R=Q.length,N;while(R--){if(Q[R].handler===T){N=Q[R];break}}if(!N){return S}if(P.include(":")){if(S.removeEventListener){S.removeEventListener("dataavailable",N,false)}else{S.detachEvent("ondataavailable",N);S.detachEvent("onlosecapture",N)}}else{var M=p(P);if(S.removeEventListener){S.removeEventListener(M,N,false)}else{S.detachEvent("on"+M,N)}}O.set(P,Q.without(N));return S}function H(P,O,N,M){P=$(P);if(Object.isUndefined(M)){M=true}if(P==document&&document.createEvent&&!P.dispatchEvent){P=document.documentElement}var Q;if(document.createEvent){Q=document.createEvent("HTMLEvents");Q.initEvent("dataavailable",M,true)}else{Q=document.createEventObject();Q.eventType=M?"ondataavailable":"onlosecapture"}Q.eventName=O;Q.memo=N||{};if(document.createEvent){P.dispatchEvent(Q)}else{P.fireEvent(Q.eventType,Q)}return K.extend(Q)}K.Handler=Class.create({initialize:function(O,N,M,P){this.element=$(O);this.eventName=N;this.selector=M;this.callback=P;this.handler=this.handleEvent.bind(this)},start:function(){K.observe(this.element,this.eventName,this.handler);return this},stop:function(){K.stopObserving(this.element,this.eventName,this.handler);return this},handleEvent:function(N){var M=K.findElement(N,this.selector);if(M){this.callback.call(this.element,N,M)}}});function l(O,N,M,P){O=$(O);if(Object.isFunction(M)&&Object.isUndefined(P)){P=M,M=null}return new K.Handler(O,N,M,P).start()}Object.extend(K,K.Methods);Object.extend(K,{fire:H,observe:E,stopObserving:n,on:l});Element.addMethods({fire:H,observe:E,stopObserving:n,on:l});Object.extend(document,{fire:H.methodize(),observe:E.methodize(),stopObserving:n.methodize(),on:l.methodize(),loaded:false});if(window.Event){Object.extend(window.Event,K)}else{window.Event=K}})();(function(){var d;function a(){if(document.loaded){return}if(d){window.clearTimeout(d)}document.loaded=true;document.fire("dom:loaded")}function c(){if(document.readyState==="complete"){document.stopObserving("readystatechange",c);a()}}function b(){try{document.documentElement.doScroll("left")}catch(f){d=b.defer();return}a()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",a,false)}else{document.observe("readystatechange",c);if(window==top){d=b.defer()}}Event.observe(window,"load",a)})();Element.addMethods();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};Element.Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(a,b){return Element.insert(a,{before:b})},Top:function(a,b){return Element.insert(a,{top:b})},Bottom:function(a,b){return Element.insert(a,{bottom:b})},After:function(a,b){return Element.insert(a,{after:b})}};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(b,a,c){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(b,a,c)}this.xcomp=a;this.ycomp=c;this.offset=Element.cumulativeOffset(b);return(c>=this.offset[1]&&c<this.offset[1]+b.offsetHeight&&a>=this.offset[0]&&a<this.offset[0]+b.offsetWidth)},withinIncludingScrolloffsets:function(b,a,d){var c=Element.cumulativeScrollOffset(b);this.xcomp=a+c[0]-this.deltaX;this.ycomp=d+c[1]-this.deltaY;this.offset=Element.cumulativeOffset(b);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+b.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+b.offsetWidth)},overlap:function(b,a){if(!b){return 0}if(b=="vertical"){return((this.offset[1]+a.offsetHeight)-this.ycomp)/a.offsetHeight}if(b=="horizontal"){return((this.offset[0]+a.offsetWidth)-this.xcomp)/a.offsetWidth}},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(a){Position.prepare();return Element.absolutize(a)},relativize:function(a){Position.prepare();return Element.relativize(a)},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(b,c,a){a=a||{};return Element.clonePosition(c,b,a)}};if(!document.getElementsByClassName){document.getElementsByClassName=function(b){function a(c){return c.blank()?null:"[contains(concat(' ', @class, ' '), ' "+c+" ')]"}b.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(c,e){e=e.toString().strip();var d=/\s/.test(e)?$w(e).map(a).join(""):a(e);return d?document._getElementsByXPath(".//*"+d,c):[]}:function(e,f){f=f.toString().strip();var g=[],h=(/\s/.test(f)?$w(f):null);if(!h&&!f){return g}var c=$(e).getElementsByTagName("*");f=" "+f+" ";for(var d=0,l,k;l=c[d];d++){if(l.className&&(k=" "+l.className+" ")&&(k.include(f)||(h&&h.all(function(n){return !n.toString().blank()&&k.include(" "+n+" ")})))){g.push(Element.extend(l))}}return g};return function(d,c){return $(c||document.body).getElementsByClassName(d)}}(Element.Methods)}Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(a){this.element=$(a)},_each:function(a){this.element.className.split(/\s+/).select(function(b){return b.length>0})._each(a)},set:function(a){this.element.className=a},add:function(a){if(this.include(a)){return}this.set($A(this).concat(a).join(" "))},remove:function(a){if(!this.include(a)){return}this.set($A(this).without(a).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);(function(){window.Selector=Class.create({initialize:function(a){this.expression=a.strip()},findElements:function(a){return Prototype.Selector.select(this.expression,a)},match:function(a){return Prototype.Selector.match(a,this.expression)},toString:function(){return this.expression},inspect:function(){return"#<Selector: "+this.expression+">"}});Object.extend(Selector,{matchElements:function(f,g){var a=Prototype.Selector.match,d=[];for(var c=0,e=f.length;c<e;c++){var b=f[c];if(a(b,g)){d.push(Element.extend(b))}}return d},findElement:function(f,g,b){b=b||0;var a=0,d;for(var c=0,e=f.length;c<e;c++){d=f[c];if(Prototype.Selector.match(d,g)&&b===a++){return Element.extend(d)}}},findChildElements:function(b,c){var a=c.toArray().join(", ");return Prototype.Selector.select(a,b||document)}})})();var id,idomero,idomero_stop;var lista=[];var pauseat=[];function idomero_stop_all(){if(document.getElementById("oldal04timerinput")){idomero_stop("oldal04timerinput")}if(document.getElementById("oldal05timerinput")){idomero_stop("oldal05timerinput")}if(document.getElementById("oldal06timerinput")){idomero_stop("oldal06timerinput")}}function idomero_reset(a){lista[a]=0;from=new Date();document.getElementById(a).title=0;document.getElementById(a).innerHTML=0}function idomero_stop(a){pauseat[a]=document.getElementById(a).innerHTML;lista[a]=2}function idomero_start(a){if(lista[a]===0||lista[a]===null){lista[a]=1;if(document.getElementById(a).title===0||document.getElementById(a).title===null){from=new Date();document.getElementById(a).title=parseInt(from.getTime()/1000,10)}idomero(a)}if(lista[a]==2){lista[a]=1;document.getElementById(a).innerHTML=pauseat[a];from=new Date();document.getElementById(a).title=parseInt(from.getTime()/1000,10)-pauseat[a];idomero(a)}}function idomero(a){if(lista[a]==1){now=new Date();document.getElementById(a).innerHTML=parseInt(now.getTime()/1000,10)-document.getElementById(a).title;id=setTimeout("idomero('"+a+"')",1000)}}var CreateEl,Locate,hideTooltip,showTooltip,Prepare;function getElementsByTagNames(e,b){if(!b){b=document}var g=e.split(",");var h=[];for(var c=0,k=g.length;c<k;c++){var l=b.getElementsByTagName(g[c]);for(var a=0,d=l.length;a<d;a++){h.push(l[a])}}var f=h[0];if(!f){return[]}if(f.sourceIndex){h.sort(function(p,n){return p.sourceIndex-n.sourceIndex})}else{if(f.compareDocumentPosition){h.sort(function(p,n){return 3-(p.compareDocumentPosition(n)&6)})}}return h}function enableTooltips(g,b){document.getElementById("btt_all").style.display="block";var d=[],c,a,e,f;if(!document.getElementById||!document.getElementsByTagName){return}f=document.createElement("span");f.id="btc";f.setAttribute("id","btc");f.style.position="absolute";document.getElementsByTagName("body")[0].appendChild(f);d=getElementsByTagNames(b);for(e=0,j=d.length;e<j;e++){Prepare(d[e])}document.getElementById("btt_all").style.display="none"}function bt(a){document.getElementById("btt_all").style.display="block";Prepare(a);document.getElementById("btt_all").style.display="none"}function Prepare(a){var p,n,f,q,e;n=a.getAttribute("title");i=/nobtt/.test(a.getAttribute("class"));if(!n||n.length===0||i===true){return}a.removeAttribute("title");p=CreateEl("span","tooltip");q=CreateEl("div","top");var k=n.split("::");var c;var h;if(k[1]){if(document.getElementById(k[1])){var g=document.getElementById(k[1]);if(navigator.appName.indexOf("Microsoft")!=-1){if(parseInt(g.style.width,10)!="NaN"){g.style.width=parseInt(g.style.width,10)+22}a.btheight=g.offsetHeight+20;a.btwidth=isNaN(parseInt(g.style.width,10))?g.offsetWidth+20:parseInt(g.style.width,10);var d=g.innerHTML;g.innerHTML='<iframe style="width:100%; height:'+(g.offsetHeight+20)+'; position:absolute; z-index:-1"></iframe><div class="asize">'+g.innerHTML+"</div>";h=g.cloneNode(1);q.appendChild(h);g.innerHTML=d}else{a.btheight=g.offsetHeight;a.btwidth=isNaN(parseInt(g.style.width,10))?g.offsetWidth:parseInt(g.style.width,10);h=g.cloneNode(1);q.appendChild(h)}}else{a.btwidth="120";a.btheight="30";c=document.createElement("DIV");q.appendChild(c);c.innerHTML='There is no<br>&lt div id="'+k[1]+'" &gt your tip &lt /div &gt<br> to make a BubbleTip!'}}else{a.btwidth="120";a.btheight="30";c=document.createElement("DIV");q.appendChild(c);c.innerHTML=n}p.appendChild(q);a.tooltip=p;a.onmouseover=showTooltip;a.onmouseout=hideTooltip;a.onmousemove=showTooltip}btt_laste="";show=1;isMSIE=(navigator.appName.indexOf("Microsoft")!=-1);function showTooltip(b){var a,c;if(isMSIE){show++;if(show%5===0){if(show%20===0){if(btt_laste){hideTooltip(btt_laste)}}document.getElementById("btc").appendChild(this.tooltip);document.getElementById("btc").style.zIndex="999";a=this.btwidth;c=this.btheight;Locate(b,a,c);btt_laste=b}}else{if(btt_laste){hideTooltip(btt_laste)}document.getElementById("btc").appendChild(this.tooltip);document.getElementById("btc").style.zIndex="999";a=this.btwidth;c=this.btheight;Locate(b,a,c);btt_laste=b}}function hideTooltip(a){var b=document.getElementById("btc");if(b.childNodes.length>0){b.removeChild(b.firstChild)}}function setOpacity(a){a.style.filter="alpha(opacity:100)";a.style.KHTMLOpacity="1.00";a.style.MozOpacity="1.00";a.style.opacity="1.00"}function CreateEl(b,d){var a=document.createElement(b);a.className=d;a.style.display="block";return(a)}function AddCss(){var a=CreateEl("link");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href","info/bt/bt.css");a.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(a)}function Locate(d,n,k){var g=0,f=0;if(!d){d=window.event}if(document.documentElement.scrollTop){scrollLeft=document.documentElement.scrollLeft;scrollTop=document.documentElement.scrollTop}else{scrollLeft=document.body.scrollLeft;scrollTop=document.body.scrollTop}if(d.pageX||d.pageY){g=d.pageX;f=d.pageY}else{if(d.clientX||d.clientY){g=d.clientX+scrollLeft;f=d.clientY+scrollTop}}if(navigator.appName.indexOf("Microsoft")!=-1){iwidth=document.body.offsetWidth;iheight=document.body.offsetHeight}else{iwidth=window.innerWidth;iheight=window.innerHeight}var c=d.clientX/(iwidth-20);var a=d.clientY/iheight;var l=document.getElementById("btc");l.style.left=(g-n*c-20*c*c*c)+"px";var h=(a<0.5);if(h){l.style.top=(f+20)+"px"}else{l.style.top=(f-k-5)+"px"}}function load_css(c){var a=document.getElementsByTagName("head")[0];var b=document.createElement("link");b.type="text/css";b.rel="stylesheet";b.href=c;b.media="screen";a.appendChild(b)}function pausecomp(c){var b=new Date();var a=null;do{a=new Date()}while(a-b<c)}function veletlen_szamok(a,c,b){var d=[];for(i=0;i<b;i++){d[i]=(Math.floor(Math.random()*(c-a+1))+a)}return d}function veletlen_szamok2(a,e,b,d,c){var f=[];akt=e-c-1;akt0=e-c-1;f[0]=e-c;f[1]=e-c-1;f[2]=e-c-1-c;f[3]=e-c-1-c-1;f[4]=e-c-1-1;f[5]=e-c-1;for(i=6;i<b;i++){sw=Math.floor(Math.random()*c);switch(sw){case 0:akt=(akt-d);break;case 1:akt=(akt-c);break;case 2:akt=(akt+c);break;case 3:akt=(akt+c);break}if((akt+1>a)&&(akt-1<e)){f[i]=akt}else{akt=akt0;f[i]=akt}}return f}function getElementsByClass(b){var d=0;var a=[];var c=document.getElementsByTagName("*");if(c){for(i=0,j=c.length;i<j;i++){if(c[i].className==b){a[d++]=c[i]}}}return(a)}function selectlistelemByName(a,c){var b=0;if(document.all){while(b<a.length){if(a.options[b].value==c){a.options[b].selected=true}else{a.options[b].selected=false}b++}}else{while(b<a.length){if(a.options[b].value==c){a.options[b].selected=true}else{a.options[b].selected=false}b++}}}function isElemNameinselectlist(b,d){var c=0;var a=false;if(document.all){while(c<b.length){if(b.options[c].value==d){a=true}c++}}else{while(c<b.length){if(b.options[c].value==d){a=true}c++}}return a}var bill_valtas_oldal01,teszt_oldal01,csere_temp_oldal01,csere_vegrehajtasa01;var innerhtmljavitas_oldal01;function oldal01oonload(){selectlistelemByName(document.getElementById("oldal01stilus"),"magyaradorjanregi-t");bill_valtas_oldal01("magyaradorjanregi-t")}funnn01="";oldal01tukorstilus=true;elsoford01=true;function bill_valtas_oldal01(bill){stlo+="::__B1:"+bill+"__";var bill2=bill.replace(/[^a-zA-Z0-9]/g,"_");eval("if(typeof(o1_"+bill2+')=="undefined"){ var tolteni=true;}else{ var tolteni=false;}');if(tolteni){var myAjax=new Ajax.Request("bill_valt01.php?bill="+bill,{method:"get",asynchronous:false,onComplete:function(req){funnn01=req.responseText;eval(funnn01)}})}else{oo1=null;rr1=null;o1=null;r1=null;ooo1=null;rrr1=null;eval("oo1=oo1_"+bill2+"; rr1=rr1_"+bill2+"; o1=o1_"+bill2+"; r1=r1_"+bill2+"; ooo1=ooo1_"+bill2+"; rrr1=rrr1_"+bill2)}if(!elsoford01){teszt_oldal01("oldal01szoveg")}elsoford01=false}function teszt_oldal01(a){var d=new Date().getTime();var c=document.getElementById(a).value;c=c.replace(/\r\n/g,"\n");c=c.replace(/\n/g,"::");if(c=="FordÃtÃ¡shoz kattintsunk az aranyszÃnÅ± gombra!::::a Ã¡ b c cs d dz dzs e Ã© f g gy::h i Ã j k l ly m n ny o Ã³ Ã¶ Å‘ p::r s sz t ty u Ãº Ã¼ Å± v z zs::nincs: q w x y"){alap=true}else{alap=false}if(c!=c.replace(/FordÃtÃ¡shoz kattintsunk az aranyszÃnÅ± gombra!::|::a Ã¡ b c cs d dz dzs e Ã© f g gy|::h i Ã j k l ly m n ny o Ã³ Ã¶ Å‘ p|::r s sz t ty u Ãº Ã¼ Å± v z zs|::nincs: q w x y/gi,"")){alap2=true}else{alap2=false}csere_temp_oldal01(a,"oldal01rovas",alap,alap2);var b=new Date().getTime();document.getElementById("rendszeruzenet").innerHTML=b-d;elsoford01=false}function csere_temp_oldal01(a,f,c,e){s=document.getElementById(a).value;sorok=s.split("\n");if(typeof(o1e)=="undefined"){o1e=""}if(typeof(soroke)=="undefined"){soroke=[]}elozo=false;if(o1e!=o1){soroke=[];document.getElementById(f).innerHTML="";elozo=true}o1e=o1;var b;if(sorok.length<soroke.length){for(b=sorok.length,j=soroke.length;b<j;b++){document.getElementById("line"+b).innerHTML=""}}var d;for(d in sorok){if(!soroke[d]){dz=document.createElement("div");dz.setAttribute("id","line"+d);document.getElementById(f).appendChild(dz);soroke[d]="<br>"}if(soroke[d]!=sorok[d]){if(sorok[d].length===0){document.getElementById("line"+d).innerHTML="<br>"}else{document.getElementById("line"+d).innerHTML='<span dir="rtl">'+csere_vegrehajtasa01(sorok[d])+"</span>"}if(elozo){stlo4.push(":: N:...elozo...")}else{if(c){stlo4.push(":: N:...alapduma...")}else{if(e){sorok[d]=sorok[d].replace(/FordÃtÃ¡shoz kattintsunk az aranyszÃnÅ± gombra!::|::a Ã¡ b c cs d dz dzs e Ã© f g gy|::h i Ã j k l ly m n ny o Ã³ Ã¶ Å‘ p|::r s sz t ty u Ãº Ã¼ Å± v z zs|::nincs: q w x y/gi,"")}if(stlo4[stlo4.length-1]){stlo4u=stlo4[stlo4.length-1]}else{stlo4u="Å?"}sorokstl=":: N:"+d+":"+sorok[d];if(sorokstl.match(stlo4u)&&sorok[d]!==""){b=stlo4.pop();stlo4.push(sorokstl)}else{if(stlo4u.match(sorokstl)){stlo4[stlo4.length-1]+="_"+d+"<"}else{stlo4.push(":: N:"+d+":"+sorok[d])}}}}}}soroke=sorok}function csere_vegrehajtasa01(b){var a;b=b.replace(/\(/g,"{");b=b.replace(/\)/g,"}");b=b.replace(/_/g,"~~");b=">"+b+"<";b=b.replace(/\n/g,"<->");b=b.replace(/Ã´|Ã”|Ãµ|Ã•/g,"Å‘");b=b.replace(/Ã»|Ã›|Å©|Å¨/g,"Å±");b=b.replace(/w|W/g,"vv");b=b.replace(/basz|bassz|bazd|buzi|fasz|farkam|fuck|geci|hÃ¼lye|kapd be|kurva|kÃºrva|rohadt|kÃ¶csÃ¶g|picsa|picsÃ¡|segg|szopj/gi,"");if(oo1){for(a in oo1){b=b.replace(oo1[a],rr1[a])}}b=b.replace(/,(?![\n\s\,<])/g,"Â¤");for(a in o1){valt=true;while(valt){elotte=b;b=b.replace(o1[a],"$1<"+a+">$2");valt=(b!=elotte)}}b=innerhtmljavitas_oldal01(b);for(a in o1){rg=new RegExp("<"+a+">","g");b=b.replace(rg,r1[a])}if(ooo1){for(a in ooo1){b=b.replace(ooo1[a],rrr1[a])}}b=b.replace(/Â¤/g,"");b=b.replace(/<->/g,"<br>");b=b.substring(1,(b.length-1));return b}function innerhtmljavitas_oldal01(b){b=b.replace(/(>[^<]*)([a-z.A-ZÃ¡Ã©ÃÃ³Ã¶Å‘ÃºÃ¼Å±Ã?Ã‰Ã?Ã“Ã–Å?ÃšÃœÅ°Â§'"+!%=?:_~Ë‡\^Ë˜Ë›`Ë™Â´Ë?Â¨Â¸\|Ã·Ã—Ä‘Ä?Å‚Å?Ä‘Ä?\[\]$ÃŸ#&@{};*\-]+)([^<]*<)/g,"$1<9999><$2><0000>$3");b=b.replace(/><0000><9999></g,"");var c=0;var a='<a href="#null" onmouseover="bt(this)" onclick="oldal_ugras(\'beallitasok\',\'beallitasok\')" class="hiany" title="::hianyTip">';b=b.replace(/<9999></g,a);b=b.replace(/><0000>/g,"</a>");return b}var fadecross,fadecrossinner;function fmreg_mail(){post("reg_mail.php","reg_mail_form");stlo+="::_REG_MAIL:"}function fmreg_mail_list(){post("reg_mail_list.php","reg_mail_form");stlo+="::_REG_MAIL_LIST:"}function fmreg_forum(){post("reg_forum.php","reg_forum_form");stlo+="::_REG_FORUM:"}function fomenu_be(){if(btt_laste){hideTooltip(btt_laste)}fomenu_var="be";document.getElementById("fomenu").style.display="block";document.getElementById("fomenu_be").style.display="none";document.getElementById("fomenu_ki").style.display="block"}function fomenu_ki(){if(btt_laste){hideTooltip(btt_laste)}fomenu_var="ki";document.getElementById("fomenu_ki").style.display="none";document.getElementById("fomenu_be").style.display="block";window.setTimeout("fomenu_ki2()",0)}function fomenu_ki2(){if(fomenu_var=="ki"){document.getElementById("fomenu").style.display="none";document.getElementById("fomenu_ki").style.display="none";document.getElementById("fomenu_be").style.display="block"}}utolso_oldal="kezdolap";function oldal_ugras(c,a){hist2=true;idomero_stop_all();if(btt_laste){hideTooltip(btt_laste)}aktu=utolso_oldal;if(aktu!=c){if(document.getElementById(c).innerHTML===""||document.getElementById(c).innerHTML=='<img src="load.gif">betÃ¶ltÃ©s...'){document.getElementById(c).innerHTML='<img src="load.gif">betÃ¶ltÃ©s...';get(a,c);var b=1}aktu=c;fadecross(utolso_oldal,c);if(aktu!="oldal01"&&utolso_oldal=="oldal01"){setTimeout(function(){document.getElementById("oldal01masodiksor").style.display="none"},900)}utolso_oldal=aktu;stlo+="::--"+aktu+" "}else{}}function fadecross(b,a){fadecrossinner(b,a,0)}function fadecrossinner(b,a,c){if(c<3){$(b).setOpacity((2-c)/2);$(a).setOpacity(c/2);c++;window.setTimeout('fadecrossinner("'+b+'","'+a+'",'+c+")",400)}else{$(b).style.display="none";$(a).style.position="relative";if($("footer")){$("footer").show()}}if(c==1){$(b).style.position="absolute";$(a).style.display="block";if($("footer")){$("footer").hide()}}}var bill_valtas_oldal03,innerhtmljavitas_oldal03,csere_vegrehajtasa;var csere_temp_oldal03,csere_load_onc,tukorstilus_oldal03;billhasznalt=false;oldal03bill_ki=true;oldal03cimke_be=false;oldal03tukorstilus=true;function oldal03oonload(){var a,b,f,c,d,e;bill_valtas_oldal03("rovas-50-t")}funnn="";function bal_jelbe(){var a=document.getElementById("oldal03jeltemp").innerHTML;a=document.getElementById("oldal03jel").innerHTML.replace(' id="mostide"',"")+elvalaszto+a;document.getElementById("oldal03jel").innerHTML=a;document.getElementById("oldal03tesztszoveg").value="";document.getElementById("oldal03jeltemp").innerHTML=""}function bill_valtas_tukrozottre_oldal03(a){billhasznalt=false;tukorstilus_oldal03(a);oldal03cimke_be=false;document.getElementById("oldal03cimkekep").className="cimke_ki_gif"}function bill_valtas_oldal03(a){billhasznalt=false;bal_jelbe();document.getElementById("oldal03tesztszoveg").value="";csere_load_onc(a);if(!oldal03bill_ki){mireelozo03=a;load_css("bill_betolt04_css.php?bill="+a);get("bill_betolt03.php?bill="+a,"oldal03billentyuzet")}oldal03cimke_be=false;document.getElementById("oldal03cimkekep").className="cimke_ki_gif";if(oldal03tukorstilus){a=a+"~";a=a.replace("-t~","")}stlo+="::__B3:"+a+"__";selectlistelemByName(document.getElementById("oldal03bill_lista_sima"),a);selectlistelemByName(document.getElementById("oldal03bill_lista_tukrozott"),a+"-t")}function tukorstilus_oldal03(d){var c=oldal03tukorstilus;var a=isElemNameinselectlist(document.getElementById("oldal03bill_lista_sima"),d);var b=isElemNameinselectlist(document.getElementById("oldal03bill_lista_tukrozott"),d+"-t");if(c&&a){bal_jelbe();oldal03tukorstilus=false;document.getElementById("oldal03tukorstiluskep").src=dollar_kepszerver+"gif/iranyok/12.gif";csere_load_onc(d);if(!oldal03bill_ki){mireelozo03=d;load_css("bill_betolt04_css.php?bill="+d);get("bill_betolt03.php?bill="+d,"oldal03billentyuzet")}document.getElementById("oldal03bill_lista_tukrozott_div").style.display="none";document.getElementById("oldal03bill_lista_sima_div").style.display="inline";selectlistelemByName(document.getElementById("oldal03bill_lista_sima"),d);stlo+="__B3:t:"+d+"__"}else{if(b){bal_jelbe();d=d+"-t";oldal03tukorstilus=true;document.getElementById("oldal03tukorstiluskep").src=dollar_kepszerver+"gif/iranyok/21.gif";csere_load_onc(d);if(!oldal03bill_ki){mireelozo03=d;load_css("bill_betolt04_css.php?bill="+d);get("bill_betolt03.php?bill="+d,"oldal03billentyuzet")}document.getElementById("oldal03bill_lista_sima_div").style.display="none";document.getElementById("oldal03bill_lista_tukrozott_div").style.display="inline";selectlistelemByName(document.getElementById("oldal03bill_lista_tukrozott"),d);stlo+="__B3:t:"+d+"__"}else{alert("Ennek a billentyÅ±zetnek nincs tÃ¼kÃ¶rkÃ©pe")}}}mireelozo03="";function bill_tolt03(){var b=oldal03tukorstilus;var a;if(b){a=document.getElementById("oldal03bill_lista_tukrozott").value;if(mireelozo03!=a){load_css("bill_betolt04_css.php?bill="+a);get("bill_betolt03.php?bill="+a,"oldal03billentyuzet")}}else{if(!b){a=document.getElementById("oldal03bill_lista_sima").value;if(mireelozo03!=a){load_css("bill_betolt04_css.php?bill="+a);get("bill_betolt03.php?bill="+a,"oldal03billentyuzet")}}}mireelozo03=a}function bill_ki_oldal03(){if(oldal03bill_ki){bill_tolt03();oldal03bill_ki=false;document.getElementById("oldal03bill_ki_kep").className="bill_be_gif";document.getElementById("oldal03bill").className="nyitott";stlo+="__B3:BE__"}else{oldal03bill_ki=true;document.getElementById("oldal03bill_ki_kep").className="bill_ki_gif";document.getElementById("oldal03bill").className="csukott";stlo+="__B3:KI__"}}function cimke_oldal03(){var b;var a;if(oldal03cimke_be){oldal03cimke_be=false;document.getElementById("oldal03cimkekep").className="cimke_ki_gif";stlo+="__B3:C:KI__";a=getElementsByClass("oldal03cimke");if(a){for(b in a){if(a[b].style){a[b].style.display="none"}}}}else{if(oldal03bill_ki){oldal03bill_ki=false;document.getElementById("oldal03bill_ki_kep").className="bill_be_gif";stlo+="__B3:BE__";bill_tolt03();document.getElementById("oldal03bill").className="nyitott";setTimeout(function(){oldal03cimke_be=true;document.getElementById("oldal03cimkekep").className="cimke_gif";stlo+="__B3:C:BE__";a=getElementsByClass("oldal03cimke");if(a){var c;for(c in a){if(a[c].style){a[c].style.display="inline"}}}},2000)}else{oldal03cimke_be=true;document.getElementById("oldal03cimkekep").className="cimke_gif";stlo+="__B3:C:BE__";a=getElementsByClass("oldal03cimke");if(a){for(b in a){if(a[b].style){a[b].style.display="inline"}}}}}}function enter_gomb_oldal03(){billhasznalt=false;bal_jelbe();var a=document.getElementById("oldal03jel").innerHTML.replace(' id="mostide"',"");document.getElementById("oldal03jel").innerHTML="";document.getElementById("oldal03gepeltarhivum").innerHTML=document.getElementById("oldal03gepeltarhivum").innerHTML+"<div></div>"+a;document.getElementById("oldal03tesztszoveg").focus()}function jel_jobbra(a){if(!billhasznalt){bal_jelbe();if(oldal03tukorstilus){document.getElementById("oldal03jeltemp").innerHTML=elvalaszto+'<span dir="rtl" id="mostide"></span>'}else{document.getElementById("oldal03jeltemp").innerHTML=elvalaszto+'<span dir="ltr" id="mostide"></span>'}}billhasznalt=true;document.getElementById("mostide").innerHTML+='<img src="'+a+'"onclick="this.style.display=\'none\'">'}dollar_kepszerver="http://rvs.hu/";elvalaszto='<span><img class="ureselv" onmouseover="bt(this)" title="::elvalasztoTip" onclick="this.style.display=\'none\'" src="'+dollar_kepszerver+'gif/ures.gif"></span>';function csere_load_onc(bill){bill2=bill.replace(/[^a-zA-Z0-9]/g,"_");eval("if(typeof(o_"+bill2+')=="undefined") var tolteni=true;else var tolteni=false;');if(bill.match("z_")){tolteni=true}if(tolteni){var myAjax=new Ajax.Request("bill_valt03.php?bill="+bill,{method:"get",asynchronous:false,onComplete:function(req){funnn=req.responseText;eval(funnn)}})}else{oo=null;rr=null;o=null;r=null;ooo=null;rrr=null;eval("oo=oo_"+bill2+"; rr=rr_"+bill2+"; o=o_"+bill2+"; r=r_"+bill2+"; ooo=ooo_"+bill2+"; rrr=rrr_"+bill2)}}function enter_oldal03(){var a=document.getElementById("oldal03tesztszoveg").value;stlo3+=":: E:"+a;enter_gomb_oldal03();return false}var slen=0;function teszt_oldal03(){var d=new Date().getTime();var c=document.getElementById("oldal03tesztszoveg").value;if(billhasznalt){billhasznalt=false;bal_jelbe();document.getElementById("oldal03jeltemp").innerHTML=document.getElementById("oldal03jeltemp").innerHTML.replace('id="mostide"',"");document.getElementById("oldal03tesztszoveg").value=c}if(slen<=c.length){stlo2=c}else{stlo4.push(stlo2+"<");stlo2=""}slen=c.length;var b=c.substring((c.length-2),c.length);if(b=="::"){document.getElementById("oldal03tesztszoveg").value=c.substring(0,(c.length-2));csere_temp_oldal03("oldal03jeltemp");bill_valtas_tukrozottre_oldal03(document.getElementById("oldal03bill_lista_sima").value)}else{csere_temp_oldal03("oldal03jeltemp")}document.getElementById("oldal03tesztszoveg").focus();var a=new Date().getTime();document.getElementById("rendszeruzenet").innerHTML=a-d}function csere_temp_oldal03(a){s=document.getElementById("oldal03tesztszoveg").value;csere_vegrehajtasa();if(oldal03tukorstilus){s=elvalaszto+'<span dir="rtl">'+s+"</span>";document.getElementById(a).innerHTML=s}else{s=elvalaszto+'<span dir="ltr">'+s+"</span>";document.getElementById(a).innerHTML=s}}function csere_vegrehajtasa(){var a;s=s.replace(/basz|bassz|bazd|buzi|fasz|farkam|fuck|geci|hÃ¼lye|kapd be|kurva|kÃºrva|rohadt|kÃ¶csÃ¶g|picsa|picsÃ¡|segg|szopj/gi,"");s=s.replace(/\(/g,"{");s=s.replace(/\)/g,"}");s=s.replace(/_/g,"~~");s=">"+s+"<";if(oo){for(a in oo){s=s.replace(oo[a],rr[a])}}s=s.replace(/,(?![\n\s\,<])/g,"Â¤");for(a in o){valt=true;while(valt){elotte=s;s=s.replace(o[a],"$1<"+a+">$2");valt=(s!=elotte)}}s=innerhtmljavitas_oldal03(s);for(a in o){rg=new RegExp("<"+a+">","g");s=s.replace(rg,r[a])}if(ooo){for(a in ooo){s=s.replace(ooo[a],rrr[a])}}s=s.replace(/Â¤/g,"");s=s.substring(1,(s.length-1))}function innerhtmljavitas_oldal03(b){b=b.replace(/(>[^<]*)([a-z,.A-ZÃ¡Ã©ÃÃ³Ã¶Å‘ÃºÃ¼Å±Ã?Ã‰Ã?Ã“Ã–Å?ÃšÃœÅ°Â§'"+!%=?:_~Ë‡\^Ë˜Ë›`Ë™Â´Ë?Â¨Â¸\|Ã·Ã—Ä‘Ä?Å‚Å?Ä‘Ä?\[\]$ÃŸ#&@{};*\-]+)([^<]*<)/g,"$1<9999><$2><0000>$3");b=b.replace(/><0000><9999></g,"");var c=0;var a='<a href="#null" onmouseover="bt(this)" onclick="oldal_ugras(\'beallitasok\',\'beallitasok\')" class="hiany" title="::hianyTip">';b=b.replace(/<9999></g,a);b=b.replace(/><0000>/g,"</a>");return b}function innerhtmlturit_oldal03(){billhasznalt=false;document.getElementById("oldal03gepeltarhivum").innerHTML="";document.getElementById("oldal03gepelt").innerHTML='<span id="oldal03jel"></span><span id="oldal03jeltemp"></span>'}var bill_valtas_oldal04,jel_jobbra_jatek;var kov_feladvany_oldal04,jel_jobbra_jatek_enter,feladvany_beall_oldal04;function oldal04oonload(){oldal04cimke_var=false;feladvany_beall_oldal04(0);aktualis_feladvany_szam_oldal04=feladvany_sor_oldal04.length-1;kov_feladvany_oldal04();bill_valtas_oldal04("magyaradorjanregi-t");idomero_stop("oldal04timerinput");idomero_reset("oldal04timerinput")}function bill_valtas_oldal04(a){load_css("bill_betolt04_css.php?bill="+a);get("bill_betolt04.php?bill="+a,"oldal04billentyuzet");document.getElementById("oldal04cimke_checkbox").checked=false;document.getElementById("oldal04cimke_kep").className="cimke_ki_gif";stlo+="::__B4:"+a+"__"}function innerhtmlturit_oldal04(a){document.getElementById("oldal04jel").innerHTML='<img id=oldal04cursor2 src="'+dollar_kepszerver+'gif/ures.gif">';document.getElementById("oldal04jeltemp").innerHTML="";document.getElementById("oldal04ellenorzodoboz").innerHTML="";document.getElementById("oldal04gratula_span").innerHTML="";idomero_reset("oldal04timerinput");idomero_start("oldal04timerinput");jatek_index=1}function ell_jatek(a,c,k){if(jatek_index==1){var h=document.getElementById("oldal04ellenorzodoboz").innerHTML+"("+a+")";var d=document.getElementById("oldal04ellenorzodoboz").innerHTML+"(.sortores_)("+a+")";var e=document.getElementById("oldal04ellenorzodoboz").innerHTML+"(_space_)("+a+")";var f=megoldas_oldal04.substring(0,h.length);var b=megoldas_oldal04.substring(0,d.length);var g=megoldas_oldal04.substring(0,e.length);if(f==h){document.getElementById("oldal04gratula_span").innerHTML="";document.getElementById("oldal04ellenorzodoboz").innerHTML=h;jel_jobbra_jatek(c)}else{if(b==d){document.getElementById("oldal04gratula_span").innerHTML="";document.getElementById("oldal04ellenorzodoboz").innerHTML=d;jel_jobbra_jatek_enter("<div></div>");jel_jobbra_jatek(c)}else{if(g==e){document.getElementById("oldal04gratula_span").innerHTML="";document.getElementById("oldal04ellenorzodoboz").innerHTML=e;jel_jobbra_jatek('gif/ures.gif" width="8px');jel_jobbra_jatek(c)}else{document.getElementById("oldal04gratula_span").innerHTML=("Az egy '"+k+"' jel!")}}}if(megoldas_oldal04==h){document.getElementById("oldal04gratula_span").innerHTML='GratulÃ¡lok! Sikeres megoldÃ¡s!<img class="gratulaClass kovetkezo_gif" onmouseover="bt(this)" onclick="kov_feladvany_oldal04();if(btt_laste){hideTooltip(btt_laste)}" src="http://rvs.hu/gif/ures.gif" title="::kovetkezofeladvanyTip">';idomero_stop("oldal04timerinput");jatek_index=0;stlo+=", M:"+document.getElementById("oldal04feladvany_span").innerHTML.substring(0,10)+"..."}}}function ell_jatek_enter(d,b){var c=document.getElementById("oldal04ellenorzodoboz").innerHTML+"("+d+")";var a=megoldas_oldal04.substring(0,c.length);if(a==c){document.getElementById("oldal04ellenorzodoboz").innerHTML=document.getElementById("oldal04ellenorzodoboz").innerHTML+"("+d+")";jel_jobbra_jatek_enter("<div></div>")}else{document.getElementById("oldal04gratula_span").innerHTML=("Ide nem kell "+b+"!")}if(megoldas_oldal04==c){document.getElementById("oldal04gratula_span").innerHTML='GratulÃ¡lok! Sikeres megoldÃ¡s!<br><a href="#null" class="gratulaClass" onclick="kov_feladvany_oldal04()">KÃ¶vetkezÅ‘ feladvÃ¡ny</a>';idomero_stop("oldal04timerinput");jatek_index=0}}function jel_jobbra_jatek(a){ihtemp=document.getElementById("oldal04jel").innerHTML;mit='<img id=oldal04cursor2 src="'+dollar_kepszerver+'gif/ures.gif">';stringX='<img src="'+dollar_kepszerver;stringY='">';mire=mit+stringX+a+stringY;ihtemp=ihtemp.replace(mit,"");document.getElementById("oldal04jel").innerHTML=mire+ihtemp}function jel_jobbra_jatek_enter(a){ihtemp=document.getElementById("oldal04jel").innerHTML;mit='<img id=oldal04cursor2 src="'+dollar_kepszerver+'gif/ures.gif">';mire=mit+a;ihtemp=ihtemp.replace(mit,"");document.getElementById("oldal04jel").innerHTML=mire+ihtemp}function cimke_oldal04(){var a=getElementsByClass("oldal04cimke");if(oldal04cimke_var){for(i=0,j=a.length;i<j;i++){a[i].style.display="none"}oldal04cimke_var=false;document.getElementById("oldal04cimke_kep").className="cimke_ki_gif";stlo+="__B4:C:KI__"}else{for(i=0,j=a.length;i<j;i++){a[i].style.display="inline"}oldal04cimke_var=true;document.getElementById("oldal04cimke_kep").className="cimke_gif";stlo+="__B4:C:BE__"}}function feladvany_beall_oldal04(a){feladvany_oldal04=feladvany_sor_oldal04[a];if(document.getElementById("oldal04feladvany_span")!==null){document.getElementById("oldal04feladvany_span").innerHTML=feladvany_oldal04}megoldas_oldal04=megoldas_sor_oldal04[a]}function kov_feladvany_oldal04(){innerhtmlturit_oldal04();if(feladvany_sor_oldal04.length-1==aktualis_feladvany_szam_oldal04){aktualis_feladvany_szam_oldal04=0}else{aktualis_feladvany_szam_oldal04=aktualis_feladvany_szam_oldal04+1}feladvany_oldal04=feladvany_sor_oldal04[aktualis_feladvany_szam_oldal04];if(document.getElementById("oldal04feladvany_span")!==null){document.getElementById("oldal04feladvany_span").innerHTML=feladvany_oldal04}if(document.getElementById("oldal04feladvany_szam_span")!==null){document.getElementById("oldal04feladvany_szam_span").innerHTML=aktualis_feladvany_szam_oldal04+1+". feladvÃ¡ny"}megoldas_oldal04=megoldas_sor_oldal04[aktualis_feladvany_szam_oldal04]}function elozo_feladvany_oldal04(){if(aktualis_feladvany_szam_oldal04===0){aktualis_feladvany_szam_oldal04=feladvany_sor_oldal04.length-1}else{aktualis_feladvany_szam_oldal04=aktualis_feladvany_szam_oldal04-1}feladvany_oldal04=feladvany_sor_oldal04[aktualis_feladvany_szam_oldal04];if(document.getElementById("oldal04feladvany_span")!==null){document.getElementById("oldal04feladvany_span").innerHTML=feladvany_oldal04}if(document.getElementById("oldal04feladvany_szam_span")!==null){document.getElementById("oldal04feladvany_szam_span").innerHTML=aktualis_feladvany_szam_oldal04+1+". feladvÃ¡ny"}megoldas_oldal04=megoldas_sor_oldal04[aktualis_feladvany_szam_oldal04];innerhtmlturit_oldal04()}var csere_oldal05,csere_tobb_oldal05,kov_feladvany_oldal05;function oldal05oonload(){afsz_oldal05=feladvany_sor_oldal05.length-1;kov_feladvany_oldal05();idomero_stop("oldal05timerinput");idomero_reset("oldal05timerinput");jatek_index_oldal05=true;a_oldal05=""}function keveres_oldal05(){for(i=0;i<oldal05meret;i++){document.getElementById("k_"+(i+1)).className=""}megoldas_oldal05=document.getElementById("oldal05kirakos").innerHTML;document.getElementById("oldal05kirakos").innerHTML=megoldas_oldal05;megoldas_oldal05=document.getElementById("oldal05kirakos").innerHTML;csere_tobb_oldal05(veletlen_szamok(1,oldal05meret,78));jatek_index_oldal05=true;idomero_reset("oldal05timerinput");idomero_start("oldal05timerinput")}function olvas_oldal05(a){if(jatek_index_oldal05){if(a_oldal05===""){document.getElementById("oldal05gratula").innerHTML="Melyikre cserÃ©ljÃ¼k?";document.getElementById("k_"+a).className="red";a_oldal05=a}else{document.getElementById("k_"+a_oldal05).className="";document.getElementById("oldal05gratula").innerHTML="";csere_oldal05("k_"+a_oldal05,"k_"+a);if(megoldas_oldal05==document.getElementById("oldal05kirakos").innerHTML){jatek_index_oldal05=false;idomero_stop("oldal05timerinput");for(i=0;i<oldal05meret;i++){document.getElementById("k_"+(i+1)).className="sima"}document.getElementById("oldal05gratula").innerHTML='GratulÃ¡lok! Sikeres megoldÃ¡s!<img class="gratulaClass ujra_gif" onmouseover="bt(this)" onclick="if(btt_laste){hideTooltip(btt_laste)}; keveres_oldal05()" src="http://rvs.hu/gif/ures.gif" title="::ujrafeladvanyTip"><img class="gratulaClass kovetkezo_gif" onmouseover="bt(this)" onclick="if(btt_laste){hideTooltip(btt_laste)}; kov_feladvany_oldal05()" src="http://rvs.hu/gif/ures.gif" title="::kovetkezofeladvanyTip">';stlo+=", M2:"+afsz_oldal05}a_oldal05=""}}}function csere_oldal05(a,d){var c=document.getElementById(a).innerHTML;var b=document.getElementById(d).innerHTML;document.getElementById(a).innerHTML=b;document.getElementById(d).innerHTML=c}function csere_tobb_oldal05(c){for(i=0,j=c.length;i*2<j;i++){var b=document.getElementById("k_"+c[i*2]).innerHTML;var a=document.getElementById("k_"+c[i*2+1]).innerHTML;document.getElementById("k_"+c[i*2]).innerHTML=a;document.getElementById("k_"+c[i*2+1]).innerHTML=b}document.getElementById("oldal05gratula").innerHTML="";jatek_index_oldal05=true}function megoldas_mutat_oldal05(){jelen_allapot_oldal05=document.getElementById("oldal05kirakos").innerHTML;jelen_gratula_oldal05=document.getElementById("oldal05gratula").innerHTML;document.getElementById("oldal05kirakos").innerHTML=megoldas_oldal05;document.getElementById("oldal05gratula").innerHTML="Ã?gy nÃ©z ki a helyes megoldÃ¡s"}function megoldas_rejt_oldal05(){document.getElementById("oldal05kirakos").innerHTML=jelen_allapot_oldal05;document.getElementById("oldal05gratula").innerHTML=jelen_gratula_oldal05}function feladvany_beall_oldal05(a){if(afsz_oldal05===0){afe_oldal05=feladvany_sor_oldal05.length-1;afk_oldal05=afsz_oldal05+1}else{if(feladvany_sor_oldal05.length-1==afsz_oldal05){afe_oldal05=afsz_oldal05-1;afk_oldal05=0}else{afe_oldal05=afsz_oldal05-1;afk_oldal05=afsz_oldal05+1}}document.getElementById("oldal05elozo").src="jatek-kepek/"+(afe_oldal05+1)+".jpg";document.getElementById("oldal05kovetkezo").src="jatek-kepek/"+(afk_oldal05+1)+".jpg";x=feladvany_sor_oldal05[a][0];y=feladvany_sor_oldal05[a][1];x1=document.getElementById("oldal05x1").value;y1=document.getElementById("oldal05y1").value;oldal05meret=x1*y1;feladvany_oldal05="<div>";for(j=1,sor=0,m=x1*y1;sor<y1;sor++){for(oszlop=0;oszlop<x1;j++,oszlop++){feladvany_oldal05+='<span id="k_'+j+'" onclick="olvas_oldal05('+j+')"><img src="http://rvs.hu/gif/ures.gif" style="background:url(http://rvs.hu/jatek-kepek/'+(a+1)+".jpg) -"+(oszlop%x1)*(x/x1)+"px "+(y-(sor%y1)*(y/y1))+"px; width:"+(x/x1)+"px; height:"+(y/y1)+'px"></span>'}feladvany_oldal05+="<br>"}feladvany_oldal05+="</div>";if(document.getElementById("oldal05kirakos")){document.getElementById("oldal05kirakos").innerHTML=feladvany_oldal05}keveres_oldal05()}function kov_feladvany_oldal05(){if(feladvany_sor_oldal05.length-1==afsz_oldal05){afsz_oldal05=0}else{afsz_oldal05=afsz_oldal05+1}feladvany_beall_oldal05(afsz_oldal05);if(document.getElementById("oldal05feladvany_szam_span")){document.getElementById("oldal05feladvany_szam_span").innerHTML=afsz_oldal05+1+". feladvÃ¡ny"}}function elozo_feladvany_oldal05(){if(afsz_oldal05===0){afsz_oldal05=feladvany_sor_oldal05.length-1}else{afsz_oldal05=afsz_oldal05-1}feladvany_beall_oldal05(afsz_oldal05);if(document.getElementById("oldal05feladvany_szam_span")!==null){document.getElementById("oldal05feladvany_szam_span").innerHTML=afsz_oldal05+1+". feladvÃ¡ny"}}var csere_oldal06,csere_tobb_oldal06,kov_feladvany_oldal06;function oldal06oonload(){afsz_oldal06=feladvany_sor_oldal06.length-1;gyorstoli_index=1;kov_feladvany_oldal06();idomero_stop("oldal06timerinput");idomero_reset("oldal06timerinput")}function gyorstoli(){if(gyorstoli_index===0){gyorstoli_index=1;document.getElementById("oldal06kirakos").innerHTML=document.getElementById("oldal06kirakos").innerHTML.replace(/onclick/g,"onmouseover");document.getElementById("oldal06gyorstoli_kep").className="gyorstoli_gif";megoldas_oldal06_var=megoldas_oldal06_var.replace(/onclick/g,"onmouseover")}else{gyorstoli_index=0;document.getElementById("oldal06kirakos").innerHTML=document.getElementById("oldal06kirakos").innerHTML.replace(/onmouseover/g,"onclick");document.getElementById("oldal06gyorstoli_kep").className="gyorstoli_ki_gif";megoldas_oldal06_var=megoldas_oldal06_var.replace(/onmouseover/g,"onclick")}}function keveres_oldal06(){csere_index=0;keveres_index=1;a_oldal06=x1*y1;if(gyorstoli_index==1){document.getElementById("oldal06kirakos").innerHTML=document.getElementById("oldal06kirakos").innerHTML.replace(/onclick/g,"onmouseover")}megoldas0_oldal06=document.getElementById("oldal06kirakos").innerHTML;ures_vissza=document.getElementById("t_"+a_oldal06).innerHTML;document.getElementById("t_"+a_oldal06).innerHTML='<img id="ures" src="'+dollar_kepszerver+'gif/ures.gif" style="width:'+(x/x1)+"px; height:"+(y/y1)+'px">';megoldas_oldal06_var=document.getElementById("oldal06kirakos").innerHTML;document.getElementById("oldal06kirakos").innerHTML=megoldas_oldal06_var;megoldas_oldal06_var=document.getElementById("oldal06kirakos").innerHTML;elozo_luk06="";aa=veletlen_szamok2(1,a_oldal06,a_oldal06*10,1,x1);csere_tobb_oldal06(aa);document.getElementById("t_"+a_oldal06).innerHTML='<img id="ures" src="'+dollar_kepszerver+'gif/ures.gif" style="width:'+(x/x1)+"px; height:"+(y/y1)+'px">';keveres_index=0;csere_index=1;idomero_reset("oldal06timerinput");idomero_start("oldal06timerinput")}function olvas_oldal06(a){if((keveres_index==1&&a!=a_oldal06&&a!=elozo_luk06)||csere_index==1){b_oldal06=a;elozo_luk06=a_oldal06;if((a_oldal06-b_oldal06)==x1|(b_oldal06-a_oldal06)==x1|(a_oldal06-b_oldal06)==1|(b_oldal06-a_oldal06)==1){if(((b_oldal06%x1)===0&&(a_oldal06-b_oldal06)!=1)|((a_oldal06%x1)===0&&(b_oldal06-a_oldal06)!=1)|((b_oldal06%x1)!==0&&(a_oldal06%x1)!==0)){csere_oldal06("t_"+a_oldal06,"t_"+b_oldal06);a_oldal06=b_oldal06;if(keveres_index===0&&megoldas_oldal06_var==document.getElementById("oldal06kirakos").innerHTML){idomero_stop("oldal06timerinput");csere_index=0;for(i=0;i<oldal06meret;i++){document.getElementById("t_"+(i+1)).className="sima"}document.getElementById("t_"+a_oldal06).innerHTML=ures_vissza;document.getElementById("oldal06gratula").innerHTML='GratulÃ¡lok! Sikeres megoldÃ¡s!<img class="gratulaClass ures_gif" onmouseover="bt(this)" onclick="if(btt_laste){hideTooltip(btt_laste)}; keveres_oldal06()" src="http://rvs.hu/gif/ures.gif" title="::ujrafeladvanyTip"><img class="gratulaClass kovetkezo_gif" onmouseover="bt(this)" onclick="if(btt_laste){hideTooltip(btt_laste)}; kov_feladvany_oldal06()" src="http://rvs.hu/gif/ures.gif" title="::kovetkezofeladvanyTip">';stlo+=", M3:"+afsz_oldal06}}}}}function csere_oldal06(b,d){var c=document.getElementById(b).innerHTML;var a=document.getElementById(d).innerHTML;document.getElementById(b).innerHTML=a;document.getElementById(d).innerHTML=c}function csere_tobb_oldal06(a){for(i=0;i*2<a.length;i++){olvas_oldal06(a[i])}document.getElementById("oldal06gratula").innerHTML=""}function megoldas_mutat_oldal06(){jelen_allapot_oldal06=document.getElementById("oldal06kirakos").innerHTML;jelen_gratula_oldal06=document.getElementById("oldal06gratula").innerHTML;document.getElementById("oldal06kirakos").innerHTML=megoldas0_oldal06;document.getElementById("oldal06gratula").innerHTML="Ã?gy nÃ©z ki a helyes megoldÃ¡s"}function megoldas_rejt_oldal06(){document.getElementById("oldal06kirakos").innerHTML=jelen_allapot_oldal06;document.getElementById("oldal06gratula").innerHTML=jelen_gratula_oldal06}function feladvany_beall_oldal06(a){if(afsz_oldal06===0){afe_oldal06=feladvany_sor_oldal06.length-1;afk_oldal06=afsz_oldal06+1}else{if(feladvany_sor_oldal06.length-1==afsz_oldal06){afe_oldal06=afsz_oldal06-1;afk_oldal06=0}else{afe_oldal06=afsz_oldal06-1;afk_oldal06=afsz_oldal06+1}}document.getElementById("oldal06elozo").src="jatek-kepek/"+(afe_oldal06+1)+".jpg";document.getElementById("oldal06kovetkezo").src="jatek-kepek/"+(afk_oldal06+1)+".jpg";x=feladvany_sor_oldal06[a][0];y=feladvany_sor_oldal06[a][1];x1=document.getElementById("oldal06x1").value;y1=document.getElementById("oldal06y1").value;oldal06meret=x1*y1;feladvany_oldal06='<div><span id="oldal06meret">'+x1*y1+'</span><span id="oldal06oszlopszam">'+y1+'</span><span id="oldal06meretx">'+(x/x1)+'</span><span id="oldal06merety">'+(y/y1)+"</span>";feladvany_oldal06="<div>";for(j=1,sor=0,m=x1*y1;sor<y1;sor++){for(oszlop=0;oszlop<x1;j++,oszlop++){feladvany_oldal06+='<span id="t_'+j+'" onclick="olvas_oldal06('+j+')"><img src="http://rvs.hu/gif/ures.gif" style="background:url(http://rvs.hu/jatek-kepek/'+(a+1)+".jpg) -"+(oszlop%x1)*(x/x1)+"px "+(y-(sor%y1)*(y/y1))+"px; width:"+(x/x1)+"px; height:"+(y/y1)+'px"></span>'}feladvany_oldal06+="<br>"}feladvany_oldal06+="</div>";if(document.getElementById("oldal06kirakos")!==null){document.getElementById("oldal06kirakos").innerHTML=feladvany_oldal06}keveres_oldal06()}function kov_feladvany_oldal06(){gyorstoli_index=1;document.getElementById("oldal06gyorstoli_kep").className="gyorstoli_gif";if(feladvany_sor_oldal06.length-1==afsz_oldal06){afsz_oldal06=0}else{afsz_oldal06=afsz_oldal06+1}feladvany_beall_oldal06(afsz_oldal06);if(document.getElementById("oldal06feladvany_szam_span")!==null){document.getElementById("oldal06feladvany_szam_span").innerHTML=afsz_oldal06+1+". feladvÃ¡ny"}}function elozo_feladvany_oldal06(){gyorstoli_index=1;document.getElementById("oldal06gyorstoli_kep").className="gyorstoli_gif";if(afsz_oldal06===0){afsz_oldal06=feladvany_sor_oldal06.length-1}else{afsz_oldal06=afsz_oldal06-1}feladvany_beall_oldal06(afsz_oldal06);if(document.getElementById("oldal06feladvany_szam_span")!==null){document.getElementById("oldal06feladvany_szam_span").innerHTML=afsz_oldal06+1+". feladvÃ¡ny"}}function jsUpload(b){var c=/\.gif|\.jpg|\.png|\.zip/i;var a=b.value;var d=document.getElementById("feltoltendo_stilus").value;if(a.search(c)==-1){alert("Csak .gif, .jpg, .png illetve .zip fÃ¡jlokat lehet feltÃ¶lteni!");return false}if(d===""){alert("ElÅ‘bb ki kell vÃ¡lasztanunk a feltÃ¶ltendÅ‘ stÃlust!");return false}document.getElementById("filename").value="feltÃ¶ltÃ©s folyamatban...";b.form.submit();b.disabled=true;return true}function clean_str(a){unsent=true;if(a.replace(/[^_a-zA-Z0-9-.@]/g,"")!=a){alert("Ã©rvÃ©nytelen karakter van benne!")}stlo3+="1:"+a+" "}function clean_str2(a){unsent=true;if(a.replace(/[^_a-zA-Z0-9-.@]/g,"")!=a){alert("Ã©rvÃ©nytelen karakter van benne!")}stlo3+="2:"+a+" "}function oldal01send_mail(){oldal01rovastartalom=document.getElementById("oldal01rovas").innerHTML.replace(/onclick="this.style.display='none'"/gi,"");stlo+="::_L:";oldal01rovastartalom=oldal01rovastartalom.replace(/<a [^>]*>/gi,"<span>");oldal01rovastartalom=oldal01rovastartalom.replace(/<\/a>/gi,"</span>");oldal01rovastartalom=oldal01rovastartalom.replace(/\â€™/g,"'");oldal01rovastartalom=oldal01rovastartalom.replace(/\â€˜/g,"'");oldal01rovastartalom=oldal01rovastartalom.replace(/\â€ž/g,'"');oldal01rovastartalom=oldal01rovastartalom.replace(/src="http:\/\/www.rvs.hu\//gi,'src="');oldal01rovastartalom=oldal01rovastartalom.replace(/src="/gi,'src="http://rvs.hu/');var a=oldal01stilus;oldal01szovegtartalom=document.getElementById("oldal01szoveg").value;oldal01szovegtartalom=oldal01szovegtartalom.replace(/\â€™/g,"'");oldal01szovegtartalom=oldal01szovegtartalom.replace(/\â€˜/g,"'");oldal01szovegtartalom=oldal01szovegtartalom.replace(/\â€ž/g,'"');document.getElementById("mail_contents").value="<pre style='text-align:left'>"+oldal01szovegtartalom+"</pre>";document.getElementById("mail_contents2").value="<div style='text-align:right'>"+oldal01rovastartalom.replace(/img src=\"http:\/\/rvs.hu\/stilusok\/[^\/]*\//gi,"#")+"</div>";document.getElementById("lev_stilus").value=a;post("send_mail.php","send_mail_form")}function m_mail(){if(document.getElementById("mail_to").value!==""&&document.getElementById("mail_from").value!==""){if(document.getElementById("automatikus_forditas").checked){csere_temp_oldal01("oldal01szoveg","oldal01rovas")}if(document.getElementById("oldal01rovas").innerHTML.match(/<img/i)===null){alert("Az Ã¼zenet nem tartalmaz egy jelet sem!\nNem kerÃ¼lt elkÃ¼ldÃ©sre!")}else{oldal01send_mail();unsent=false;alert("Ã¼zenet elkÃ¼ldve!")}}else{alert("Meg kell adni a cÃmzett Ã©s a feladÃ³ e-mail cÃmÃ©t!")}}function oldal01mentes(){oldal01rovastartalom=document.getElementById("oldal01rovas").innerHTML.replace(/onclick="this.style.display='none'"/gi,"");stlo+="::_MENT1:";oldal01rovastartalom=oldal01rovastartalom.replace(/<a [^>]*>/gi,"<span>");oldal01rovastartalom=oldal01rovastartalom.replace(/<\/a>/gi,"</span>");oldal01rovastartalom=oldal01rovastartalom.replace(/src="http:\/\/www.rvs.hu\//gi,'src="http://rvs.hu/');oldal01szovegtartalom=document.getElementById("oldal01szoveg").value;mywindow=window.open("about:blank","rovasiras","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,copyhistory=0,width=500,height=300,screenX=100,screenY=200");mywindow.document.write('<HTML http-equiv="content-type" content="text/html;charset=utf-8"><HEAD><TITLE>http://rvs.hu</TITLE></HEAD><BODY>');mywindow.document.write("<pre style='text-align:left'>"+oldal01szovegtartalom+"</pre><hr>");mywindow.document.write("<div style='text-align:right'>"+oldal01rovastartalom+"</div></BODY></HTML>");mywindow.document.close()}function oldal01mentes2(){if(document.getElementById("automatikus_forditas").checked){csere_temp_oldal01("oldal01szoveg","oldal01rovas")}oldal01rovastartalom=document.getElementById("oldal01rovas").innerHTML.replace(/onclick="this.style.display='none'"/gi,"");stlo+="::_MENT2:";oldal01rovastartalom=oldal01rovastartalom.replace(/<a [^>]*>/gi,"<span>");oldal01rovastartalom=oldal01rovastartalom.replace(/<\/a>/gi,"</span>");oldal01rovastartalom=oldal01rovastartalom.replace(/src="http:\/\/www.rvs.hu\//gi,'src="');oldal01rovastartalom=oldal01rovastartalom.replace(/src="/gi,'src="http://rvs.hu/');oldal01szovegtartalom=document.getElementById("oldal01szoveg").value;document.getElementById("save_contents_id").value="<pre style='text-align:left'>"+oldal01szovegtartalom+"</pre><hr>";document.getElementById("save_contents_id").value+="<div style='text-align:right'>"+oldal01rovastartalom+"</div>";document.save_latin1.submit()};
