function e_elem(a){return document.getElementById(a)}function e_elem_new(a){return document.createElement(a)}function e_is_obj(a){if(typeof a=="object"){return true}return false}function e_is_array(a){if(typeof a=="array"){return true}if(typeof a=="object"){if(typeof a.length=="number"){return true}}return false}function e_is_undef(a){if(typeof a=="undefined"){return true}if(typeof a=="unknown"){return true}return false}function e_is_null(a){if(e_is_undef(a)){return true}if(!a){return true}return false}var e_log_debug_mode=true;function e_log_on(){e_log_debug_mode=true}function e_log_off(){e_log_debug_mode=false}function e_log(a){if(!e_log_debug_mode){return false}if(e_is_undef(window.console)){return false}window.console.log(a);return true}function e_trim(b,a){return e_ltrim(e_rtrim(b,a),a)}function e_ltrim(b,a){a=a||"\\s";return b.replace(new RegExp("^["+a+"]+","g"),"")}function e_rtrim(b,a){a=a||"\\s";return b.replace(new RegExp("["+a+"]+$","g"),"")}function e_is_num(a){return(typeof(a)==="number"||typeof(a)==="string")&&a!==""&&!isNaN(a)}function e_elem_bounds(d){var c=d.offsetLeft;var b=d.offsetTop;for(var a=d.offsetParent;a;a=a.offsetParent){c+=a.offsetLeft;b+=a.offsetTop;if(!e_is_null(window.opera)){c-=a.scrollLeft;b-=a.scrollTop}}return{left:c,top:b,width:d.offsetWidth,height:d.offsetHeight}}function e_init_mouse(){window.e_mouse_coord=new Array(0,0);document.onmousemove=function(a){if(document.all){window.e_mouse_coord[0]=window.event.x;window.e_mouse_coord[1]=window.event.y}else{window.e_mouse_coord[0]=(window.Event)?a.pageX:event.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);window.e_mouse_coord[1]=(window.Event)?a.pageY:event.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}}}function e_mouse_x(){return window.e_mouse_coord[0]}function e_mouse_y(){return window.e_mouse_coord[1]}function e_mouse_position(){return new Array(window.e_mouse_coord[0],window.e_mouse_coord[1])}function e_client_size(b){var a=window;if(b){a=b}if(document.all){return{width:a.document.body.clientWidth,height:a.document.body.clientHeight}}else{return{width:a.innerWidth,height:a.innerHeight}}}function e_disable_select(a){if(document.all){a.onselectstart=function(){return false}}else{a.onmousedown=function(){return false}}}function e_redirect(a){location.href=a}function e_process_time(a){if(a.length==7){return{month:a.substr(5,2),year:a.substr(0,4)}}if(a.length==10){return{day:a.substr(8,2),month:a.substr(5,2),year:a.substr(0,4)}}if(a.length==16){return{day:a.substr(8,2),month:a.substr(5,2),year:a.substr(0,4),hour:a.substr(11,2),minute:a.substr(14,2)}}if(a.length==19){return{day:a.substr(8,2),month:a.substr(5,2),year:a.substr(0,4),hour:a.substr(11,2),minute:a.substr(14,2),second:a.substr(17,2)}}return null}function e_is_valid_date(a,d,c){var b=new Date(c,d,a);return((a==b.getDate())&&(d==b.getMonth())&&(c==b.getFullYear()))}var e_mouse_wheel_func_id=1;var e_mouse_wheel_funcs=new Array();function e_mouse_wheel_func(b){var c=0;if(!b){b=window.event}if(!e_is_null(b.wheelDelta)){c=b.wheelDelta/120}else{if(!e_is_null(b.detail)){c=-b.detail/3}}if(c!=0){for(var a=0;a<e_mouse_wheel_funcs.length;a++){if(!e_is_null(e_mouse_wheel_funcs[a].func)){e_mouse_wheel_funcs[a].func(c)}}}}function e_init_mouse_wheel(){if(!e_is_null(window.addEventListener)){window.addEventListener("DOMMouseScroll",e_mouse_wheel_func,false)}window.onmousewheel=document.onmousewheel=e_mouse_wheel_func}function e_mouse_wheel_add_func(a){var b=new Object;b.id=e_mouse_wheel_func_id;e_mouse_wheel_func_id++;b.func=a;e_mouse_wheel_funcs.push(b);return true}function e_mouse_wheel_remove_func(b){for(var a=0;a<e_mouse_wheel_funcs.length;a++){if(e_mouse_wheel_funcs[a].func==b){e_mouse_wheel_funcs.splice(a,1);return true}}return false}function e_new_window(d,c,f){var b={centered:true,x:0,y:0,width:640,height:480,scrollbars:true,resizable:false,status:false,menubar:false,toolbar:false,location:false,directories:false,personalbar:false};if(!e_is_null(f)){if(e_is_obj(f)){if(!e_is_null(f.x)){b.x=f.x}if(!e_is_null(f.y)){b.y=f.y}if(!e_is_null(f.width)){b.width=f.width}if(!e_is_null(f.height)){b.height=f.height}}}var a="";if(b.centered){b.x=parseInt(screen.width/2)-parseInt(b.width/2);b.y=parseInt(screen.height/2)-parseInt(b.height/2)}a+="left="+b.x+",";a+="top="+b.y+",";a+="width="+b.width+",";a+="height="+b.height+",";if(b.scrollbars){a+="scrollbars=yes,"}else{a+="scrollbars=no,"}if(b.resizable){a+="resizable=yes,"}else{a+="resizable=no,"}if(b.status){a+="status=yes,"}else{a+="status=no,"}if(b.menubar){a+="menubar=yes,"}else{a+="menubar=no,"}if(b.toolbar){a+="toolbar=yes,"}else{a+="toolbar=no,"}if(b.location){a+="location=yes,"}else{a+="location=no,"}if(b.directories){a+="directories=yes,"}else{a+="directories=no,"}if(b.personalbar){a+="personalbar=yes"}else{a+="personalbar=no"}var e=window.open(d,c,a);return e}function e_check_email(b){var a=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(a.test(b)==false){return false}return true};function e_result(a,b){this.result=null;this.isSuccess=function(){if(e_is_null(this.result)){return false}if(e_is_null(this.result.result)){return false}if(this.result.result!="success"){return false}return true};this.getError=function(){if(e_is_null(this.result)){return""}if(e_is_null(this.result.error)){return""}return this.result.error};this.construct=function(){if(e_is_null(a)){return false}if(e_is_null(b)){b="json"}switch(b){case"json":this.result=jsonParse(a);break;case"text":break;default:case"xml":break}return true};this.construct()}function e_request(){this.request=null;this.vars=null;this.mode="GET";this.func_init=null;this.func_loading_result=null;this.func_loading_result_end=null;this.func_process_result=null;this.func_success=null;this.func_error=null;this.as_xml=false;this.charset="utf-8";if(window.XMLHttpRequest){this.request=new XMLHttpRequest()}else{if(window.ActiveXObject){try{this.request=new ActiveXObject("Msxml2.XMLHTTP")}catch(a){this.request=new ActiveXObject("Microsoft.XMLHTTP")}}}this.isOk=function(){if(!this.request){return false}return true};this.setUrl=function(b){if(!this.request){return false}this.url=b;return true};this.asXML=function(){this.as_xml=true};this.setCallback=function(b,c){if(!this.request){return false}this.func_success=b;this.func_error=c;return true};this.setVars=function(c,b){if(!this.request){return false}switch(c){case"get":case"GET":if(typeof b!="undefined"&&typeof b!="unknown"){this.vars=b}this.mode="GET";break;case"post":case"POST":if(typeof b!="undefined"&&typeof b!="unknown"){this.vars=b}this.mode="POST";break;default:break}return false};this.enc=function(b){return encodeURIComponent(b)};this.run=function(){if(!this.request){return false}var c=this;this.request.onreadystatechange=function(){switch(c.request.readyState){case 0:if(c.func_init){c.func_init()}break;case 1:if(c.func_loading_result){c.func_loading_result()}break;case 2:if(c.func_loading_result_end){c.func_loading_result_end()}break;case 3:if(c.func_process_result){c.func_process_result()}break;case 4:switch(c.request.status){case 200:if(c.func_success){if(c.as_xml){c.func_success(c.request.responseXml)}else{c.func_success(c.request.responseText)}}break;default:if(c.func_error){c.func_error()}break}break}};switch(this.mode){case"get":case"GET":if(this.vars){this.request.open(this.mode,this.url+"?"+this.vars,true)}else{this.request.open(this.mode,this.url,true)}if(this.as_xml){this.request.setRequestHeader("Content-Type","application/xml; charset="+this.charset)}this.request.send(null);break;case"post":case"POST":this.request.open(this.mode,this.url,true);if(this.vars){this.request.setRequestHeader("Content-type","application/x-www-form-urlencoded");try{this.request.setRequestHeader("Content-length",this.vars.length);this.request.setRequestHeader("Connection","close")}catch(b){e_log("warning: e_request, refused to set headers 'Content-length' and 'Connection'")}}if(this.vars){this.request.send(this.vars)}else{this.request.send(null)}break}return true}};window.jsonParse=function(){var h="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",d='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))';d='(?:"'+d+'*")';var g=new RegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+h+"|"+d+")","g"),f=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),e={'"':'"',"/":"/","\\":"\\",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"};function c(k,i,l){return i?e[i]:String.fromCharCode(parseInt(l,16))}var b=new String(""),a=Object.hasOwnProperty;return function(q,o){q=q.match(g);var r,t=q[0],n=false;if("{"===t){r={}}else{if("["===t){r=[]}else{r=[];n=true}}for(var v,s=[r],k=1-n,u=q.length;k<u;++k){t=q[k];var w;switch(t.charCodeAt(0)){default:w=s[0];w[v||w.length]=+t;v=void 0;break;case 34:t=t.substring(1,t.length-1);if(t.indexOf("\\")!==-1){t=t.replace(f,c)}w=s[0];if(!v){if(w instanceof Array){v=w.length}else{v=t||b;break}}w[v]=t;v=void 0;break;case 91:w=s[0];s.unshift(w[v||w.length]=[]);v=void 0;break;case 93:s.shift();break;case 102:w=s[0];w[v||w.length]=false;v=void 0;break;case 110:w=s[0];w[v||w.length]=null;v=void 0;break;case 116:w=s[0];w[v||w.length]=true;v=void 0;break;case 123:w=s[0];s.unshift(w[v||w.length]={});v=void 0;break;case 125:s.shift();break}}if(n){if(s.length!==1){throw new Error}r=r[0]}else{if(s.length){throw new Error}}if(o){var i=function(y,x){var p=y[x];if(p&&typeof p==="object"){var j=null;for(var l in p){if(a.call(p,l)&&p!==y){var m=i(p,l);if(m!==void 0){p[l]=m}else{j||(j=[]);j.push(l)}}}if(j){for(l=j.length;--l>=0;){delete p[j[l]]}}}return o.call(y,x,p)};r=i({"":r},"")}return r}}();function e_location_hash(a){this.hashes=new Array();this.id=1;this.pfh=new Array();this.removeHashAfterLoad=function(b){if(b<0){return false}if(b>=this.pfh.length){return false}this.removeHash(this.pfh[b]);this.pfh.splice(b,1);return true};this.clearHashAfterLoad=function(){for(var b=0;b<this.pfh.length;b++){this.removeHash(this.pfh[b])}this.pfh=new Array()};this.getNumberOfHashAfterLoad=function(){return this.pfh.length};this.getHashAfterLoad=function(b){if(b<0){return null}if(b>=this.pfh.length){return null}return this.getHash(this.pfh[b])};this.getHashIDAfterLoad=function(b){if(b<0){return null}if(b>=this.pfh.length){return null}return this.pfh[b]};this.processFromHash=function(){var d=location.hash;d=d.substr(1);d=d.split(";");var c=new Array;for(var b=0;b<d.length;b++){c.push(this.pushHash(d[b]))}return c};this.getHash=function(c){for(var b=0;b<this.hashes.length;b++){if(this.hashes[b].id==c){return this.hashes[b].h}}return null};this.generateHash=function(){var c="";for(var b=0;b<this.hashes.length;b++){if(c.length>0){c+=";"}c+=this.hashes[b].h}location.hash=c};this.removeHash=function(c){for(var b=0;b<this.hashes.length;b++){if(this.hashes[b].id==c){this.hashes.splice(b,1);this.generateHash();return true}}return false};this.pushHash=function(b){var c=new Object;c.h=b;c.id=this.id;this.id++;this.hashes.push(c);this.generateHash();return c.id};this.popHash=function(){if(this.hashes.length<=0){return false}this.hashes.pop();this.generateHash();return true};this.construct=function(b){if(!e_is_null(b)){if(b){this.pfh=this.processFromHash()}}return true};this.construct(a)}var location_hash=null;function e_init_location_hash(a){if(!e_is_null(location_hash)){return false}if(e_is_null(a)){a=false}location_hash=new e_location_hash(a);window.hash_push=function(b){return location_hash.pushHash(b)};window.hash_pop=function(){return location_hash.popHash()};window.hash_remove=function(b){return location_hash.removeHash(b)};window.hash_after_load_clear=function(){return location_hash.clearHashAfterLoad()};window.hash_after_load_num=function(){return location_hash.getNumberOfHashAfterLoad()};window.hash_after_load_id_by_n=function(b){return location_hash.getHashIDAfterLoad(b)};window.hash_after_load_by_id=function(b){return location_hash.getHashAfterLoad(b)};window.hash_get=function(b){return location_hash.getHash(b)};window.hash_after_load_remove=function(b){return location_hash.removeHashAfterLoad(b)};return true};function e_main(){}e_main();