var curOver=curOut=time=null;if(typeof window!="undefined"&&typeof window.nhn=="undefined"){window.nhn=new Object}nhn.DOMLoad=(function(){var c={_handler:[],done:false,attach:function(d){this._handler.push(d)},_fire:function(){this.done=true;var d=this._handler;setTimeout(function(){for(var g=0,f;f=d[g];g++){f()}},0)}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){c._fire()},false)}else{if(document.attachEvent){var a=document.createElement("document:ready");var b=setInterval(function(){try{a.doScroll("left");a=null;clearInterval(b);c._fire()}catch(d){}},10)}}return c})();function $Jindo(){var a=arguments.callee;var b=a._cached;if(b){return b}if(!(this instanceof a)){return new a()}if(!b){a._cached=this}this.version="1.2.7"}function $(m){var l=new Array;var c=null;var d=/^<([a-z]+|h[1-5])>$/i;var f=/^<([a-z]+|h[1-5])(\s+[^>]+)?>/i;for(var h=0;h<arguments.length;h++){c=arguments[h];if(typeof c=="string"){if(d.test(c)){c=document.createElement(RegExp.$1)}else{if(f.test(c)){var a={thead:"table",tbody:"table",tr:"tbody",td:"tr",dt:"dl",dd:"dl",li:"ul",legend:"fieldset"};var q=RegExp.$1.toLowerCase();var n=[];for(var g=0;q=a[q];g++){var b=document.createElement(q);if(g){b.appendChild(n[g-1])}n.push(b)}if(!n[0]){n[0]=document.createElement("div")}var k=n[0];$Element(k).html(c);for(c=k.firstChild;c;c=c.nextSibling){if(c.nodeType==1){l[l.length]=c}}}else{c=document.getElementById(c)}}}if(c){l[l.length]=c}}return l.length>1?l:(l[0]||null)}function $Class(b){function d(){var h=this;var f=[];while(typeof h.$super!="undefined"){h.$super.$this=this;if(typeof h.$super.$init=="function"){f[f.length]=h}h=h.$super}for(var g=f.length-1;g>-1;g--){f[g].$super.$init.apply(f[g].$super,arguments)}if(typeof this.$init=="function"){this.$init.apply(this,arguments)}}if(typeof b.$static!="undefined"){var c=0,a;for(a in b){a=="$static"||c++}for(a in b.$static){d[a]=b.$static[a]}if(!c){return b.$static}delete b.$static}d.prototype=b;d.prototype.constructor=d;d.extend=$Class.extend;return d}$Class.extend=function(c){this.prototype.$super=new Object;var b=function(d,f){return function(){var j=this.$this[d];var g=this.$this;var h=(g[d]=f).apply(g,arguments);g[d]=j;return h}};for(var a in c.prototype){if(typeof this.prototype[a]=="undefined"&&a!="$init"){this.prototype[a]=c.prototype[a]}if(typeof c.prototype[a]=="function"){this.prototype.$super[a]=b(a,c.prototype[a])}else{this.prototype.$super[a]=c.prototype[a]}}for(var a in c){if(a=="prototype"){continue}this[a]=c[a]}return this};function $$(j,g){if(typeof $$._compile=="undefined"){var k={_cache:[],_regex:{bparse:/([^>|\+|\s]+)\s*([>|\+]?)\s*/g,fparse:/\s*([>|\+]?)\s*([^>|\+|\s]+)/g,tag:/^([\w-]+)/,id:/#([\w-]+)/g,cls:/\.([\w-]+)/g,pseudo:/:([\w-]+(\(.*\))?)/g,pseudoparse:/([\w-]+)(\((.*)\))?/,attr:/\[([^\]]+)]/g,attrparse:/^(\[)([\w-]+)([!|\^|\$|\*]?=)(.*)(\])$/},_push:function(p,q){p[p.length]=q;return p},_next:function(p){while(p&&(p=p.nextSibling)&&p.nodeType!=1){}return p},_prev:function(p){while(p&&(p=p.previousSibling)&&p.nodeType!=1){}return p},_index:function(q){var p=1;for(var r=q.parentNode.firstChild;r&&r!=q;r=$$._next(r),p++){}return p},_pseudo:{first_child:function(p){return !($$._prev(p))},last_child:function(p){return !($$._next(p))},empty:function(p){return !(p.firstChild)},contains:function(q,p){return q.innerHTML.indexOf(p)>-1}},_filter:function(v,E){var s={};var x={},z=["true"];var p,t="";var r,D,u,B,q;if(r=v.match($$._regex.id)){if(r[1]){return false}s.id=r[0].substr(1)}D=v.match($$._regex.tag);s.tag=(D&&D[1])||"*";if(u=v.match($$._regex.cls)){for(var C,w=0;C=u[w];w++){z.push("/\\b"+C.substr(1)+"\\b/.test(o.className)")}}if(B=v.match($$._regex.pseudo)){for(var A,w=0;A=B[w];w++){A=A.substr(1).match($$._regex.pseudoparse);z.push("$$._pseudo."+A[1].replace("-","_")+'(o, "'+A[3]+'")')}}if(q=v.match($$._regex.attr)){for(var y,w=0;y=q[w];w++){y=y.match($$._regex.attrparse);p="v_"+y[2];if(!x[y[2]]){t+="var "+p+' = o.getAttribute("'+y[2]+'") || "";\n';x[y[2]]=true}switch(y[3]){case"=":z.push(p+' == "'+y[4]+'"');break;case"!=":z.push(p+' != "'+y[4]+'"');break;case"^=":z.push(p+'.indexOf("'+y[4]+'") == 0');break;case"$=":z.push(p+".substr("+p+'.length - "'+y[4]+'".length) == "'+y[4]+'"');break;case"*=":z.push(p+'.indexOf("'+y[4]+'") > -1');break;default:z.push(p+" != null")}}}if(E){if(s.tag&&s.tag!="*"){z.push('(casei ? o.tagName.toLowerCase() == "'+s.tag.toLowerCase()+'" : o.tagName == "'+s.tag+'")')}if(s.id){z.push('o.id == "'+s.id+'"')}}s.func=new Function("o","casei",t+"\nreturn ("+z.join(" && ")+")");return s},_trace:function(r,u,s,q,t){if(q==-1){return true}var p=s[q];switch(p.type){case"":for(u=u.parentNode;u!=r;u=u.parentNode){if(p.filter.func(u,t)){if($$._trace(r,u,s,q-1,t)){return true}}}break;case">":u=u.parentNode;if(u&&u!=r&&p.filter.func(u,t)){if($$._trace(r,u,s,q-1,t)){return true}}break;case"+":u=this._prev(u);if(u&&p.filter.func(u,t)){if($$._trace(r,u,s,q-1,t)){return true}}break}return false},_compile:function(t,v,s){if(!$$._cache[t]){var p={backward:[],forward:[]};v.replace($$._regex.bparse,function(y,w,x){$$._push(p.backward,{type:x,filter:$$._filter(w,true)})});var q=0,u;var r=[];s.replace($$._regex.fparse,function(y,x,w){p.forward.push({type:x,filter:$$._filter(w)});switch(x){case">":u="_getChildren";break;case"":u="_getOffspring";break;case"+":u="_getBrother";break}$$._push(r,"result = $$."+u+"(result, forward["+(q++)+"].filter, casei);")});$$._push(r,"return result;");p.filter=new Function("result","forward","casei",r.join("\n"));$$._cache[t]=p}return $$._cache[t]},_getChildren:function(u,s,r){var p=[];var v;for(var q=0,t;t=u[q];q++){for(v=t.firstChild;v;v=$$._next(v)){if(s.func(v,r)){$$._push(p,v)}}}return p},_getOffspring:function(v,p,r){var w=[];var x;for(var u=0,t;t=v[u];u++){x=t.getElementsByTagName(p.tag);for(var s=0,q;q=x[s];s++){if(p.func(q,r)){$$._push(w,q)}}}return w},_getBrother:function(u,s,r){var p=[];var v;for(var q=0,t;t=u[q];q++){if(v=$$._next(t)){if(s.func(v,r)){$$._push(p,v)}}}return p}};for(var l in k){$$[l]=k[l]}}g=$(g||document);var d=j.match(/(.*#[\w]+[^>|\+|\s]*)([>|\+|\s].*)/)||[];var a=$$._compile(j,d[1]||j,d[2]||"");var n=a.backward.length-1;var b=a.backward[n].filter;var m=[],o=[];var c=(g==document||(g.ownerDocument||g.document)==document);if(b.id){$$._push(m,document.getElementById(b.id))}else{if(b.tag=="*"){m=g.all}else{m=g.getElementsByTagName(c?b.tag.toLowerCase():b.tag)}}for(var f=0,h;h=m[f];f++){if(b.func(h,c)){if($$._trace(g,h,a.backward,n-1,c)){$$._push(o,h)}}}return a.filter(o,a.forward,c)}function $A(c){var a=arguments.callee;if(typeof c=="undefined"){c=[]}if(c instanceof a){return c}if(!(this instanceof a)){return new a(c)}this._array=[];for(var b=0;b<c.length;b++){this._array[this._array.length]=c[b]}}$A.prototype.toString=function(){return this._array.toString()};$A.prototype.length=function(a,d){if(typeof a=="number"){var b=this._array.length;this._array.length=a;if(typeof d!="undefined"){for(var c=b;c<a;c++){this._array[c]=d}}return this}else{return this._array.length}};$A.prototype.has=function(a){return(this.indexOf(a)>-1)};$A.prototype.indexOf=function(b){if(typeof this._array.indexOf!="undefined"){return this._array.indexOf(b)}for(var a=0;a<this._array.length;a++){if(this._array[a]==b){return a}}return -1};$A.prototype.$value=function(){return this._array};$A.prototype.push=function(a){return this._array.push.apply(this._array,$A(arguments).$value())};$A.prototype.pop=function(){return this._array.pop()};$A.prototype.shift=function(){return this._array.shift()};$A.prototype.unshift=function(a){this._array.unshift.apply(this._array,$A(arguments).$value());return this._array.length};$A.prototype.forEach=function(k,b){var a=this._array;var g=this.constructor.Break;var j=this.constructor.Continue;function d(l,m,f){try{k.call(b,l,m,f)}catch(n){if(!(n instanceof j)){throw n}}}if(typeof this._array.forEach=="function"){try{this._array.forEach(d)}catch(h){if(!(h instanceof g)){throw h}}return this}for(var c=0;c<a.length;c++){try{d(a[c],c,a)}catch(h){if(h instanceof g){break}throw h}}return this};$A.prototype.map=function(k,b){var a=this._array;var g=this.constructor.Break;var j=this.constructor.Continue;function d(l,m,f){try{return k.call(b,l,m,f)}catch(n){if(n instanceof j){return l}else{throw n}}}if(typeof this._array.map=="function"){try{this._array=this._array.map(d)}catch(h){if(!(h instanceof g)){throw h}}return this}for(var c=0;c<this._array.length;c++){try{a[c]=d(a[c],c,a)}catch(h){if(h instanceof g){break}throw h}}return this};$A.prototype.filter=function(c,b){var a=new Array;this.forEach(function(f,g,d){if(c.call(b,f,g,d)===true){a[a.length]=f}});return $A(a)};$A.prototype.every=function(c,b){if(typeof this._array.every!="undefined"){return this._array.every(c,b)}var a=true;this.forEach(function(f,g,d){if(c.call(b,f,g,d)===false){a=false;$A.Break()}});return a};$A.prototype.some=function(c,b){if(typeof this._array.some!="undefined"){return this._array.some(c,b)}var a=false;this.forEach(function(f,g,d){if(c.call(b,f,g,d)===true){a=true;$A.Break()}});return a};$A.prototype.refuse=function(c){var b=$A(arguments);return this.filter(function(a,d){return !b.has(a)})};$A.prototype.slice=function(d,c){var b=this._array.slice.call(this._array,d,c);return $A(b)};$A.prototype.splice=function(c,d){var b=this._array.splice.apply(this._array,arguments);return $A(b)};$A.prototype.shuffle=function(){this._array.sort(function(d,c){return Math.random()>Math.random()?1:-1});return this};$A.prototype.unique=function(){var f=this._array,c=[],d=f.length;var h,g;for(h=0;h<d;h++){for(g=0;g<c.length;g++){if(f[h]==c[g]){break}}if(g>=c.length){c[g]=f[h]}}this._array=c;return this};$A.prototype.reverse=function(){this._array.reverse();return this};$A.prototype.empty=function(){return this.length(0)};$A.Break=function(){if(!(this instanceof arguments.callee)){throw new arguments.callee}};$A.Continue=function(){if(!(this instanceof arguments.callee)){throw new arguments.callee}};function $H(c){var a=arguments.callee;if(typeof c=="undefined"){c=new Object}if(c instanceof a){return c}if(!(this instanceof a)){return new a(c)}this._table={};for(var b in c){if(this._table[b]==c[b]){continue}this._table[b]=c[b]}}$H.prototype.$value=function(){return this._table};$H.prototype.$=function(a,b){if(typeof b=="undefined"){return this._table[a]}this._table[a]=b;return this};$H.prototype.length=function(){var b=0;for(var a in this._table){if(typeof Object.prototype[a]!="undeifned"&&Object.prototype[a]===this._table[a]){continue}b++}return b};$H.prototype.forEach=function(g,b){var c=this._table;var d=this.constructor;for(var a in c){if(!c.propertyIsEnumerable(a)){continue}try{g.call(b,c[a],a,c)}catch(f){if(f instanceof d.Break){break}if(f instanceof d.Continue){continue}}}return this};$H.prototype.filter=function(c,a){var b=$H();this.forEach(function(f,d,g){if(c.call(a,f,d,g)===true){b.add(d,f)}});return b};$H.prototype.map=function(c,a){var b=this._table;this.forEach(function(f,d,g){b[d]=c.call(a,f,d,g)});return this};$H.prototype.add=function(a,b){if(this.hasKey(a)){return null}this._table[a]=b;return this};$H.prototype.remove=function(a){if(typeof this._table[a]=="undefined"){return null}var b=this._table[a];delete this._table[a];return b};$H.prototype.search=function(b){var a=false;this.forEach(function(d,c,f){if(d===b){a=c;$H.Break()}});return a};$H.prototype.hasKey=function(b){var a=false;return(typeof this._table[b]!="undefined")};$H.prototype.hasValue=function(a){return(this.search(a)!==false)};$H.prototype.sort=function(){var f=new Object;var b=this.values();var c=false;b.sort();for(var d=0;d<b.length;d++){c=this.search(b[d]);f[c]=b[d];delete this._table[c]}this._table=f;return this};$H.prototype.ksort=function(){var d=new Object;var b=this.keys();b.sort();for(var c=0;c<b.length;c++){d[b[c]]=this._table[b[c]]}this._table=d;return this};$H.prototype.keys=function(){var b=new Array;for(var a in this._table){b.push(a)}return b};$H.prototype.values=function(){var b=[];for(var a in this._table){b[b.length]=this._table[a]}return b};$H.prototype.toQueryString=function(){var c=[],d=null,a=0;for(var b in this._table){if(typeof(d=this._table[b])=="object"&&d.constructor==Array){for(i=0;i<d.length;i++){c[c.length]=encodeURIComponent(b)+"[]="+encodeURIComponent(d[i]+"")}}else{c[c.length]=encodeURIComponent(b)+"="+encodeURIComponent(this._table[b]+"")}}return c.join("&")};$H.prototype.empty=function(){var b=this.keys();for(var a=0;a<b.length;a++){delete this._table[b[a]]}return this};$H.Break=function(){if(!(this instanceof arguments.callee)){throw new arguments.callee}};$H.Continue=function(){if(!(this instanceof arguments.callee)){throw new arguments.callee}};function $Element(b){var a=arguments.callee;if(b instanceof a){return b}if(!(this instanceof a)){return new a(b)}this._element=$(b);this.tag=this._element?this._element.tagName.toLowerCase():"";this._queue=new Array}$Element.prototype.$value=function(){return this._element};$Element.prototype.visible=function(a){if(typeof a!="undefined"){this[a?"show":"hide"]();return this}return(this.css("display")!="none")};$Element.prototype.show=function(){var d=this._element.style;var a="block";var g={p:a,div:a,form:a,h1:a,h2:a,h3:a,h4:a,ol:a,ul:a,fieldset:a,td:"table-cell",th:"table-cell",li:"list-item",table:"table",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",col:"table-column",colgroup:"table-column-group",caption:"table-caption",dl:a,dt:a,dd:a};try{if(typeof g[this.tag]=="string"){d.display=g[this.tag]}else{d.display="inline"}}catch(f){d.display="block"}return this};$Element.prototype.hide=function(){this._element.style.display="none";return this};$Element.prototype.toggle=function(){this[this.visible()?"hide":"show"]();return this};$Element.prototype.opacity=function(d){var c,f=this._element,a=this.visible();d=parseFloat(d);if(!isNaN(d)){d=Math.max(Math.min(d,1),0);if(typeof f.filters!="undefined"){d=Math.ceil(d*100);if(typeof f.filters.alpha!="undefined"){f.filters.alpha.opacity=d}else{f.style.filter=(f.style.filter+" alpha(opacity="+d+")")}}else{f.style.opacity=d}return d}if(typeof f.filters!="undefined"){c=(typeof f.filters.alpha=="undefined")?(a?100:0):f.filters.alpha.opacity;c=c/100}else{c=parseFloat(f.style.opacity);if(isNaN(c)){c=a?1:0}}return c};$Element.prototype.appear=function(f,h){var a=this;var g=this.opacity();if(g==1){return this}try{clearTimeout(this._fade_timer)}catch(d){}h=h||new Function;var c=(1-g)/((f||0.3)*100);var b=function(){g+=c;a.opacity(g);if(g>=1){h(a)}else{a._fade_timer=setTimeout(b,10)}};this.show();b();return this};$Element.prototype.disappear=function(f,h){var a=this;var g=this.opacity();if(g==0){return this}try{clearTimeout(this._fade_timer)}catch(d){}h=h||new Function;var c=g/((f||0.3)*100);var b=function(){g-=c;a.opacity(g);if(g<=0){a.hide();h(a)}else{a._fade_timer=setTimeout(b,10)}};b();return this};$Element.prototype.css=function(c,m){var g=this._element;if(c=="opacity"){return typeof m=="undefined"?this.opacity():this.opacity(m)}if(typeof c=="string"){var l;if(typeof m=="string"||typeof m=="number"){var f=new Object;f[c]=m;c=f}else{if(g.currentStyle){if(c=="cssFloat"){c="styleFloat"}return g.currentStyle[c]||g.style[c]}else{if(window.getComputedStyle){if(c=="cssFloat"){c="float"}var h=g.ownerDocument||g.document||document;return h.defaultView.getComputedStyle(g,null).getPropertyValue(c.replace(/([A-Z])/g,"-$1").toLowerCase())||g.style[c]}else{if(c=="cssFloat"&&/MSIE/.test(window.navigator.userAgent)){c="styleFloat"}return g.style[c]}}return null}}if(typeof $H!="undefined"&&c instanceof $H){c=c.$value()}if(typeof c=="object"){var n,j;for(var b in c){n=c[b];j=(typeof n);if(j!="string"&&j!="number"){continue}if(b=="cssFloat"&&navigator.userAgent.indexOf("MSIE")>-1){b="styleFloat"}try{g.style[b]=n}catch(a){if(b=="cursor"&&n=="pointer"){g.style.cursor="hand"}else{if(("#top#left#right#bottom#").indexOf(b+"#")>0&&(j=="number"||!isNaN(parseInt(n)))){g.style[b]=parseInt(n)+"px"}}}}}return this};$Element.prototype.attr=function(d,f){var c=this._element;if(typeof d=="string"){if(typeof f!="undefined"){var b=new Object;b[d]=f;d=b}else{if(d=="class"||d=="className"){return c.className}return c.getAttribute(d)}}if(typeof $H!="undefined"&&d instanceof $H){d=d.$value()}if(typeof d=="object"){for(var a in d){if(typeof(f)!="undefined"&&f===null){c.removeAttribute(a)}else{c.setAttribute(a,d[a])}}}return this};$Element.prototype.offset=function(b,a){var f=this._element;var c=null;if(typeof b=="number"&&typeof a=="number"){if(isNaN(parseInt(this.css("top")))){this.css("top",0)}if(isNaN(parseInt(this.css("left")))){this.css("left",0)}var j=this.offset();var k={top:b-j.top,left:a-j.left};f.style.top=parseInt(this.css("top"))+k.top+"px";f.style.left=parseInt(this.css("left"))+k.left+"px";return this}var d=/Safari/.test(navigator.userAgent);var l=/MSIE/.test(navigator.userAgent);var g=function(n){var m={left:0,top:0};for(var p=n,o=p.offsetParent;p=p.parentNode;){if(p.offsetParent){m.left-=p.scrollLeft;m.top-=p.scrollTop}if(p==o){m.left+=n.offsetLeft+p.clientLeft;m.top+=n.offsetTop+p.clientTop;if(!p.offsetParent){m.left+=p.offsetLeft;m.top+=p.offsetTop}o=p.offsetParent;n=p}}return m};var h=function(r){var q={left:0,top:0};var n=r.ownerDocument||r.document||document;var t=n.documentElement;var p=n.body;if(r.getBoundingClientRect){if(!c){if(l&&window.external){c={left:2,top:2};oBase=null}else{c={left:0,top:0}}}var s=r.getBoundingClientRect();if(r!==t&&r!==p){q.left=s.left-c.left;q.top=s.top-c.top;q.left+=t.scrollLeft||p.scrollLeft;q.top+=t.scrollTop||p.scrollTop}}else{if(n.getBoxObjectFor){var s=n.getBoxObjectFor(r);var m=n.getBoxObjectFor(t||p);q.left=s.screenX-m.screenX;q.top=s.screenY-m.screenY}else{for(var u=r;u;u=u.offsetParent){q.left+=u.offsetLeft;q.top+=u.offsetTop}for(var u=r.parentNode;u;u=u.parentNode){if(u.tagName=="BODY"){break}if(u.tagName=="TR"){q.top+=2}q.left-=u.scrollLeft;q.top-=u.scrollTop}}}return q};return(d?g:h)(f)};$Element.prototype.width=function(a){if(typeof a=="number"){var b=this._element;b.style.width=a+"px";if(b.offsetWidth!=a){b.style.width=(a*2-b.offsetWidth)+"px"}return this}return this._element.offsetWidth};$Element.prototype.height=function(a){if(typeof a=="number"){var b=this._element;b.style.height=a+"px";if(b.offsetHeight!=a){b.style.height=(a*2-b.offsetHeight)+"px"}return this}return this._element.offsetHeight};$Element.prototype.className=function(b){var a=this._element;if(typeof b=="undefined"){return a.className}a.className=b;return this};$Element.prototype.hasClass=function(a){return(" "+this._element.className+" ").indexOf(" "+a+" ")>-1};$Element.prototype.addClass=function(b){var a=this._element;if(this.hasClass(b)){return this}a.className=(a.className+" "+b).replace(/^\s+/,"");return this};$Element.prototype.removeClass=function(b){var a=this._element;a.className=(a.className+" ").replace(b+" ","").replace(/\s+$/,"");return this};$Element.prototype.toggleClass=function(b,a){a=a||"";if(this.hasClass(b)){this.removeClass(b);if(a){this.addClass(a)}}else{this.addClass(b);if(a){this.removeClass(a)}}return this};$Element.prototype.text=function(a){var c=(typeof this._element.innerText!="undefined")?"innerText":"textContent";if(this.tag=="textarea"||this.tag=="input"){c="value"}if(typeof a=="string"){try{this._element[c]=a}catch(b){return this.html(a.replace(/&/g,"&amp;").replace(/</g,"&lt;"))}return this}return this._element[c]};$Element.prototype.html=function(d){if(typeof d=="string"){var f=this._element;var g=$Agent().navigator().ie||($Agent().navigator().firefox&&!f.parentNode);if(g){var c="R"+new Date().getTime()+parseInt(Math.random()*100000);var j=f.ownerDocument||f.document||document;var b;var a=f.tagName.toLowerCase();switch(a){case"select":case"table":b=$("<div>");b.innerHTML="<"+a+' class="'+c+'">'+d+"</"+a+">";break;case"tr":case"thead":case"tbody":b=$("<div>");b.innerHTML="<table><"+a+' class="'+c+'">'+d+"</"+a+"></table>";break;default:f.innerHTML=d;break}if(b){var h;for(h=b.firstChild;h;h=h.firstChild){if(h.className==c){break}}if(h){for(var k;k=f.firstChild;){k.removeNode(true)}for(var k=h.firstChild;k;k=h.firstChild){f.appendChild(k)}b.removeNode&&b.removeNode(true)}b=null}}else{f.innerHTML=d}return this}return this._element.innerHTML};$Element.prototype.evalScripts=function(sHTML){var aJS=[];sHTML=sHTML.replace(new RegExp("<script(\\s[^>]+)*>(.*?)<\/script>","gi"),function(_,_,sPart){aJS.push(sPart);return""});eval(aJS.join("\n"));return this};$Element.prototype.outerHTML=function(){var c=this._element;if(typeof c.outerHTML!="undefined"){return c.outerHTML}var d=$("<div>");var b=c.parentNode;b.insertBefore(d,c);d.style.display="none";d.appendChild(c);var a=d.innerHTML;b.insertBefore(c,d);b.removeChild(d);return a};$Element.prototype.toString=$Element.prototype.outerHTML;$Element.prototype.append=function(a){var b=$Element(a).$value();this._element.appendChild(b);return $Element(b)};$Element.prototype.prepend=function(a){var b=this._element;var c=$Element(a).$value();if(b.childNodes.length>0){b.insertBefore(c,b.childNodes[0])}else{b.appendChild(c)}return $Element(c)};$Element.prototype.replace=function(a){var b=this._element;var c=$Element(a).$value();b.parentNode.insertBefore(c,b);b.parentNode.removeChild(b);return $Element(c)};$Element.prototype.appendTo=function(a){var b=$Element(a).$value();b.appendChild(this._element);return this};$Element.prototype.prependTo=function(a){var b=$Element(a).$value();if(b.childNodes.length>0){b.insertBefore(this._element,b.childNodes[0])}else{b.appendChild(this._element)}return this};$Element.prototype.before=function(a){var b=$Element(a).$value();this._element.parentNode.insertBefore(b,this._element);return $Element(b)};$Element.prototype.after=function(a){var b=this.before(a);b.before(this);return b};$Element.prototype.parent=function(d,c){var g=this._element;var b=[],f=null;if(typeof d=="undefined"){return $Element(g.parentNode)}if(typeof c=="undefined"||c==0){c=-1}while(g.parentNode&&c--!=0){f=$Element(g.parentNode);if(g.parentNode==document.documentElement){break}if(!d||(d&&d(f))){b[b.length]=f}g=g.parentNode}return b};$Element.prototype.child=function(g,d){var j=this._element;var b=[],k=null,h=null;if(typeof g=="undefined"){return $A(j.childNodes).filter(function(a){return a.nodeType==1}).map(function(a){return $Element(a)}).$value()}if(typeof d=="undefined"||d==0){d=-1}(h=function(f,m){var c=null,l=null;for(var a=0;a<f.childNodes.length;a++){c=f.childNodes[a];if(c.nodeType!=1){continue}l=$Element(f.childNodes[a]);if(!g||(g&&g(l))){b[b.length]=l}if(m!=0){h(f.childNodes[a],m-1)}}})(j,d-1);return b};$Element.prototype.prev=function(f){var g=this._element;var d=[];var c=(typeof f=="undefined");if(!g){return c?$Element(null):d}do{g=g.previousSibling;if(!g||g.nodeType!=1){continue}if(c){return $Element(g)}if(!f||f(g)){d[d.length]=$Element(g)}}while(g);return c?$Element(g):d};$Element.prototype.next=function(f){var g=this._element;var d=[];var c=(typeof f=="undefined");if(!g){return c?$Element(null):d}do{g=g.nextSibling;if(!g||g.nodeType!=1){continue}if(c){return $Element(g)}if(!f||f(g)){d[d.length]=$Element(g)}}while(g);return c?$Element(g):d};$Element.prototype.first=function(){var a=this._element.firstElementChild||this._element.firstChild;if(!a){return null}while(a&&a.nodeType!=1){a=a.nextSibling}return a?$Element(a):null};$Element.prototype.last=function(){var a=this._element.lastElementChild||this._element.lastChild;if(!a){return null}while(a&&a.nodeType!=1){a=a.previousSibling}return a?$Element(a):null};$Element.prototype.isChildOf=function(a){var c=this._element;var b=$Element(a).$value();while(c&&c.parentNode){c=c.parentNode;if(c==b){return true}}return false};$Element.prototype.isParentOf=function(a){var b=$Element(a).$value();while(b&&b.parentNode){b=b.parentNode;if(this._element==b){return true}}return false};$Element.prototype.isEqual=function(a){try{return(this._element===$Element(a).$value())}catch(b){return false}};$Element.prototype.fireEvent=function(b){function c(d){d=(d+"").toLowerCase();this._element.fireEvent("on"+d);return this}function a(f){var g="HTMLEvents";f=(f+"").toLowerCase();if(f=="click"||f.indexOf("mouse")==0){g="MouseEvents";if(f=="mousewheel"){f="dommousescroll"}}else{if(f.indexOf("key")==0){g="KeyEvents"}}var d=document.createEvent(g);d.initEvent(f,true,true);this._element.dispatchEvent(d);return this}$Element.prototype.fireEvent=(typeof this._element.dispatchEvent!="undefined")?a:c;return this.fireEvent(b)};$Element.prototype.empty=function(){this.html("");return this};$Element.prototype.leave=function(){var a=this._element;if(a.parentNode){a.parentNode.removeChild(a)}return this};$Element.prototype.wrap=function(b){var a=this._element;b=$(b);if(a.parentNode){a.parentNode.insertBefore(b,a)}b.appendChild(a);return this};$Element.prototype.ellipsis=function(g){g=g||"...";var b=this.text();var a=b.length;var d=this.height();var c=0;var f=this.text("A").height();if(d<f*1.5){return this.text(b)}d=f;while(d<f*1.5){c+=Math.max(Math.ceil((a-c)/2),1);d=this.text(b.substring(0,c)+g).height()}while(d>f*1.5){c--;d=this.text(b.substring(0,c)+g).height()}};$Element.prototype.indexOf=function(d){try{var f=$Element(d).$value();var h=this._element.childNodes;var g=0;var a=h.length;for(var b=0;b<a;b++){if(h[b].nodeType!=1){continue}if(h[b]===f){return g}g++}}catch(f){}return -1};function $Fn(c,b){var a=arguments.callee;if(c instanceof a){return c}if(!(this instanceof a)){return new a(c,b)}this._events=[];this._tmpElm=null;this._key=null;if(typeof c=="function"){this._func=c;this._this=b}else{if(typeof c=="string"&&typeof b=="string"){this._func=new Function(c,b)}}}$Fn.prototype.$value=function(){return this._func};$Fn.prototype.bind=function(){var d=$A(arguments).$value();var h=this._func;var g=this._this;var c=function(){var a=$A(arguments).$value();if(d.length){a=d.concat(a)}return h.apply(g,a)};return c};$Fn.prototype.bindForEvent=function(){var g=arguments;var j=this._func;var h=this._this;var d=this._tmpElm||null;var c=function(b){var a=$A(g);if(typeof b=="undefined"){b=window.event}if(typeof b.currentTarget=="undefined"){b.currentTarget=d}a.unshift($Event(b));return j.apply(h,a.$value())};return c};$Fn.prototype.attach=function(d,j){var g=null,a,h=j,f=d,c=navigator.userAgent;if((f instanceof Array)||($A&&(f instanceof $A)&&(f=f.$value()))){for(var b=0;b<f.length;b++){this.attach(f[b],h)}return this}if(!f||!h){return this}if(typeof f.$value=="function"){f=f.$value()}f=$(f);h=h.toLowerCase();this._tmpElm=f;g=this.bindForEvent();this._tmpElm=null;if(typeof f.addEventListener!="undefined"){if(h=="domready"){h="DOMContentLoaded"}else{if(h=="mousewheel"&&c.indexOf("WebKit")<0){h="DOMMouseScroll"}}f.addEventListener(h,g,false)}else{if(typeof f.attachEvent!="undefined"){if(h=="domready"){$Fn._domready(f,g);return this}else{f.attachEvent("on"+h,g)}}}if(!this._key){this._key="$"+$Fn.gc.count++;$Fn.gc.pool[this._key]=this}this._events[this._events.length]={element:f,event:j.toLowerCase(),func:g};return this};$Fn.prototype.detach=function(d,b){var k=null,f,c=d,j=b,a=navigator.userAgent;if((c instanceof Array)||($A&&(c instanceof $A)&&(c=c.$value()))){for(var g=0;g<c.length;g++){this.detach(c[g],j)}return this}if(!c||!j){return this}if($Element&&c instanceof $Element){c=c.$value()}c=$(c);j=j.toLowerCase();var h=this._events;for(var g=0;g<h.length;g++){if(h[g].element!==c||h[g].event!==j){continue}k=h[g].func;this._events=$A(this._events).refuse(h[g]).$value();break}if(typeof c.removeEventListener!="undefined"){if(j=="domready"){j="DOMContentLoaded"}else{if(j=="mousewheel"&&a.indexOf("WebKit")<0){j="DOMMouseScroll"}}c.removeEventListener(j,k,false)}else{if(typeof c.detachEvent!="undefined"){if(j=="domready"){$Fn._domready.list=$Fn._domready.list.refuse(k);return this}else{c.detachEvent("on"+j,k)}}}return this};$Fn.prototype.delay=function(a,b){if(typeof b=="undefined"){b=[]}setTimeout(this.bind.apply(this,b),a*1000);return this};$Fn.prototype.free=function(){var a=this._events.length;while(a>0){this.detach(this._events[--a].element,this._events[a].event)}try{delete $Fn.gc.pool[this._key]}catch(b){}};$Fn._domready=function(d,b){if(typeof $Fn._domready.list=="undefined"){var c=null,a=$Fn._domready.list=$A([b]);(function(){try{d.documentElement.doScroll("left")}catch(g){setTimeout(arguments.callee,0);return}var f={type:"domready",target:d,currentTarget:d};while(c=a.shift()){c(f)}})()}else{$Fn._domready.list.push(b)}};$Fn.gc=function(){var c=$Fn.gc.pool;for(var a in c){try{c[a].free()}catch(b){}}$Fn.gc.pool=c={}};$Fn.gc.count=0;$Fn.gc.pool={};if(typeof window!="undefined"){$Fn($Fn.gc).attach(window,"unload")}function $Event(b){var a=arguments.callee;if(b instanceof a){return b}if(!(this instanceof a)){return new a(b)}if(typeof b=="undefined"){b=window.event}if(b===window.event&&document.createEventObject){b=document.createEventObject(b)}this._event=b;this._globalEvent=window.event;this.type=b.type.toLowerCase();if(this.type=="dommousescroll"){this.type="mousewheel"}else{if(this.type=="DOMContentLoaded"){this.type="domready"}}this.canceled=false;this.element=b.target||b.srcElement;this.currentElement=b.currentTarget;this.relatedElement=null;if(typeof b.relatedTarget!="undefined"){this.relatedElement=b.relatedTarget}else{if(b.fromElement&&b.toElement){this.relatedElement=b[(this.type=="mouseout")?"toElement":"fromElement"]}}}$Event.prototype.mouse=function(){var f=this._event;var g=0;var d=(f.which&&f.button==0)||!!(f.button&1);var b=(f.which&&f.button==1)||!!(f.button&4);var c=(f.which&&f.button==2)||!!(f.button&2);var a={};if(f.wheelDelta){g=f.wheelDelta/120}else{if(f.detail){g=-f.detail/3}}a={delta:g,left:d,middle:b,right:c};this.mouse=function(){return a};return a};$Event.prototype.key=function(){var c=this._event;var a=c.keyCode||c.charCode;var b={keyCode:a,alt:c.altKey,ctrl:c.ctrlKey,meta:c.metaKey,shift:c.shiftKey,up:(a==38),down:(a==40),left:(a==37),right:(a==39),enter:(a==13)};this.key=function(){return b};return b};$Event.prototype.pos=function(j){var d=this._event;var a=(this.element.ownerDocument||document).body;var h=(this.element.ownerDocument||document).documentElement;var g=[a.scrollLeft||h.scrollLeft,a.scrollTop||h.scrollTop];var c={clientX:d.clientX,clientY:d.clientY,pageX:"pageX" in d?d.pageX:d.clientX+g[0]-a.clientLeft,pageY:"pageY" in d?d.pageY:d.clientY+g[1]-a.clientTop,layerX:"offsetX" in d?d.offsetX:d.layerX-1,layerY:"offsetY" in d?d.offsetY:d.layerY-1};if(j){var f=$Element(this.element).offset();c.offsetX=c.pageX-f.left;c.offsetY=c.pageY-f.top}return c};$Event.prototype.stop=function(c){c=c||$Event.CANCEL_ALL;var f=(window.event&&window.event==this._globalEvent)?this._globalEvent:this._event;var a=!!(c&$Event.CANCEL_BUBBLE);var g=!!(c&$Event.CANCEL_DEFAULT);this.canceled=true;if(typeof f.preventDefault!="undefined"&&g){f.preventDefault()}if(typeof f.stopPropagation!="undefined"&&a){f.stopPropagation()}if(g){f.returnValue=false}if(a){f.cancelBubble=true}return this};$Event.CANCEL_BUBBLE=1;$Event.CANCEL_DEFAULT=2;$Event.CANCEL_ALL=3;function $Agent(){var a=arguments.callee;var b=a._cached;if(b){return b}if(!(this instanceof a)){return new a}if(!b){a._cached=this}}$Agent.prototype.navigator=function(){var h=new Object;var a=-1;var c=navigator.userAgent;var b=navigator.vendor||"";function d(j,f){return((f||"").indexOf(j)>-1)}h.opera=(typeof window.opera!="undefined")||d("Opera",c);h.ie=!h.opera&&d("MSIE",c);h.chrome=d("Chrome",c);h.safari=!h.chrome&&d("Apple",b);h.mozilla=d("Gecko",c)&&!h.safari&&!h.chrome;h.firefox=d("Firefox",c);h.camino=d("Camino",b);h.netscape=d("Netscape",c);h.omniweb=d("OmniWeb",c);h.icab=d("iCab",b);h.konqueror=d("KDE",b);try{if(h.ie){a=c.match(/(?:MSIE) ([0-9.]+)/)[1]}else{if(h.firefox||h.opera||h.omniweb){a=c.match(/(?:Firefox|Opera|OmniWeb)\/([0-9.]+)/)[1]}else{if(h.mozilla){a=c.match(/rv:([0-9.]+)/)[1]}else{if(h.safari){a=parseFloat(c.match(/Safari\/([0-9.]+)/)[1]);if(a==100){a=1.1}else{a=[1,1.2,-1,1.3,2,3][Math.floor(a/100)]}}else{if(h.icab){a=c.match(/iCab[ \/]([0-9.]+)/)[1]}else{if(h.chrome){a=c.match(/Chrome[ \/]([0-9.]+)/)[1]}}}}}}h.version=parseFloat(a);if(isNaN(h.version)){h.version=-1}}catch(g){h.version=-1}$Agent.prototype.navigator=function(){return h};return h};$Agent.prototype.os=function(){var d=new Object;var a=navigator.userAgent;var c=navigator.platform;var b=function(g,f){return(f.indexOf(g)>-1)};d.win=b("Win",c);d.mac=b("Mac",c);d.linux=b("Linux",c);d.win2000=d.win&&(b("NT 5.0",c)||b("2000",c));d.winxp=d.win&&(b("NT 5.1",c)||b("Win32",c));d.xpsp2=d.winxp&&(b("SV1",a)||b("MSIE 7",a));d.vista=b("NT 6.0",c);$Agent.prototype.os=function(){return d};return d};$Agent.prototype.flash=function(){var h=new Object;var g=navigator.plugins;var a=navigator.mimeTypes;var c=null;h.installed=false;h.version=-1;if(typeof g!="undefined"&&g.length){c=g["Shockwave Flash"];if(c){h.installed=true;if(c.description){h.version=parseFloat(c.description.match(/[0-9.]+/)[0])}}if(g["Shockwave Flash 2.0"]){h.installed=true;h.version=2}}else{if(typeof a!="undefined"&&a.length){c=a["application/x-shockwave-flash"];h.installed=(c&&c.enabledPlugin)}else{for(var b=10;b>1;b--){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);h.installed=true;h.version=b;break}catch(d){}}}}$Agent.prototype.info=function(){return h};return h};$Agent.prototype.silverlight=function(){var d=new Object;var c=navigator.plugins;var a=null;d.installed=false;d.version=-1;if(typeof c!="undefined"&&c.length){a=c["Silverlight Plug-In"];if(a){d.installed=true;d.version=parseInt(a.description.split(".")[0]);if(a.description=="1.0.30226.2"){d.version=2}}}else{try{a=new ActiveXObject("AgControl.AgControl");d.installed=true;if(a.isVersionSupported("2.0")){d.version=2}else{if(a.isVersionSupported("1.0")){d.version=1}}}catch(b){}}$Agent.prototype.silverlight=function(){return d};return d};function $Ajax(c,f){var a=arguments.callee;if(!(this instanceof a)){return new a(c,f)}function b(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(ActiveXObject){try{return new ActiveXObject("MSXML2.XMLHTTP")}catch(k){return new ActiveXObject("Microsoft.XMLHTTP")}return null}}}var j=location.toString();var g="";try{g=j.match(/^https?:\/\/([a-z0-9_\-\.]+)/i)[1]}catch(h){}this._url=c;this._options=new Object;this._headers=new Object;this._options={type:"xhr",method:"post",proxy:"",timeout:0,onload:function(k){},ontimeout:function(k){},jsonp_charset:"utf-8"};this.option(f);var d=this._options;d.type=d.type.toLowerCase();d.method=d.method.toLowerCase();if(typeof window.__jindo2_callback=="undefined"){window.__jindo2_callback=new Array()}switch(d.type){case"get":case"post":d.method=d.type;d.type="xhr";case"xhr":this._request=b();break;case"flash":this._request=new $Ajax.SWFRequest();break;case"jsonp":d.method="get";this._request=new $Ajax.JSONPRequest();this._request.charset=d.jsonp_charset;break;case"iframe":this._request=new $Ajax.FrameRequest();this._request._proxy=d.proxy;break}}$Ajax.prototype._onload=function(){if(this._request.readyState==4){this._options.onload($Ajax.Response(this._request))}};$Ajax.prototype.request=function(b){var n=this;var h=this._request;var c=this._options;var g,m,l=[],g="";var d=null;if(typeof b=="undefined"||!b){g=null}else{for(var f in b){m=b[f];if(typeof m=="function"){m=m()}l[l.length]=f+"="+encodeURIComponent(m)}g=l.join("&")}h.open(c.method.toUpperCase(),this._url,true);h.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");h.setRequestHeader("charset","utf-8");for(var j in this._headers){if(typeof this._headers[j]=="function"){continue}h.setRequestHeader(j,String(this._headers[j]))}if(typeof h.onload!="undefined"){h.onload=function(a){clearTimeout(d);n._onload(a)}}else{h.onreadystatechange=function(a){clearTimeout(d);n._onload(a)}}if(c.timeout>0){d=setTimeout(function(){try{h.abort()}catch(a){}c.ontimeout(h)},c.timeout*1000)}h.send(g);return this};$Ajax.prototype.abort=function(){this._request.abort();return this};$Ajax.prototype.option=function(b,c){if(typeof b=="undefined"){return""}if(typeof b=="string"){if(typeof c=="undefined"){return this._options[b]}this._options[b]=c;return this}try{for(var a in b){this._options[a]=b[a]}}catch(d){}return this};$Ajax.prototype.header=function(b,c){if(typeof b=="undefined"){return""}if(typeof b=="string"){if(typeof c=="undefined"){return this._headers[b]}this._headers[b]=c;return this}try{for(var a in b){this._headers[a]=b[a]}}catch(d){}return this};$Ajax.Response=function(a){if(this===$Ajax){return new $Ajax.Response(a)}this._response=a};$Ajax.Response.prototype.xml=function(){return this._response.responseXML};$Ajax.Response.prototype.text=function(){return this._response.responseText};$Ajax.Response.prototype.json=function(){if(this._response.responseJSON){return this._response.responseJSON}else{if(this._response.responseText){try{return eval("("+this._response.responseText+")")}catch(e){return{}}}}return{}};$Ajax.Response.prototype.header=function(a){if(typeof a=="string"){return this._response.getResponseHeader(a)}return this._response.getAllResponseHeaders()};$Ajax.RequestBase=$Class({_headers:{},_respHeaders:{},_respHeaderString:"",responseXML:null,responseJSON:null,responseText:"",$init:function(){},onload:function(){},abort:function(){},open:function(){},send:function(){},setRequestHeader:function(a,b){this._headers[a]=b},getResponseHeader:function(a){return this._respHeaders[a]||""},getAllResponseHeaders:function(){return this._respHeaderString},_getCallbackInfo:function(){var a="";do{a="$"+Math.floor(Math.random()*10000)}while(window.__jindo2_callback[a]);return{id:a,name:"window.__jindo2_callback."+a}}});$Ajax.JSONPRequest=$Class({charset:"utf-8",_script:null,_callback:function(b){var a=this;this.readyState=4;this.responseJSON=b;this.onload(this);setTimeout(function(){a.abort()},10)},abort:function(){if(this._script){try{this._script.parentNode.removeChild(this._script)}catch(a){}}},open:function(b,a){this.responseJSON=null;this._url=a},send:function(c){var b=this;var d=this._getCallbackInfo();var a=document.getElementsByTagName("head")[0];this._script=$("<script>");this._script.type="text/javascript";this._script.charset=this.charset;if(a){a.appendChild(this._script)}else{if(document.body){document.body.appendChild(this._script)}}window.__jindo2_callback[d.id]=function(f){try{b._callback(f)}finally{delete window.__jindo2_callback[d.id]}};this._script.src=this._url+"?_callback="+d.name+"&"+c}}).extend($Ajax.RequestBase);$Ajax.SWFRequest=$Class({_callback:function(c,a){this.readyState=4;if(c){if(typeof a=="string"){try{this.responseText=decodeURIComponent(a)}catch(b){}}this.onload(this)}},open:function(c,a){var b=/https?:\/\/([a-z0-9_\-\.]+)/i;this._url=a;this._method=c},send:function(h){this.responseXML=false;this.responseText="";var b=this;var g={};var j=this._getCallbackInfo();var c=window.document[$Ajax.SWFRequest._tmpId];var k=[];function d(m){switch(typeof m){case"string":return'"'+m.replace(/\"/g,'\\"')+'"';break;case"number":return m;break;case"object":var n="",l=[];if(m instanceof Array){for(var o=0;o<m.length;o++){l[o]=d(m[o])}n="["+l.join(",")+"]"}else{for(var f in m){l[l.length]=d(f)+":"+d(m[f])}n="{"+l.join(",")+"}"}return n;default:return'""'}}h=(h||"").split("&");for(var a=0;a<h.length;a++){pos=h[a].indexOf("=");key=h[a].substring(0,pos);val=h[a].substring(pos+1);g[key]=decodeURIComponent(val)}window.__jindo2_callback[j.id]=function(l,f){try{b._callback(l,f)}finally{delete window.__jindo2_callback[j.id]}};c.requestViaFlash(d({url:this._url,type:this._method,data:g,charset:"UTF-8",callback:j.name,headers_json:this._headers}))}}).extend($Ajax.RequestBase);$Ajax.SWFRequest.write=function(a){if(typeof a=="undefined"){a="./ajax.swf"}$Ajax.SWFRequest._tmpId="tmpSwf"+(new Date).getMilliseconds()+Math.floor(Math.random()*100000);document.write('<div style="position:absolute;top:-1000px;left:-1000px"><object id="'+$Ajax.SWFRequest._tmpId+'" width="1" height="1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"><param name="movie" value="'+a+'"><param name = "allowScriptAccess" value = "always" /><embed name="'+$Ajax.SWFRequest._tmpId+'" src="'+a+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="1" height="1" allowScriptAccess="always" swLiveConnect="true"></embed></object></div>')};$Ajax.FrameRequest=$Class({_frame:null,_proxy:"",_domain:"",_callback:function(d,b,c){var a=this;this.readyState=4;this.responseText=b;this._respHeaderString=c;c.replace(/^([\w\-]+)\s*:\s*(.+)$/m,function(g,f,h){a._respHeaders[f]=h});this.onload(this);setTimeout(function(){a.abort()},10)},abort:function(){if(this._frame){try{this._frame.parentNode.removeChild(this._frame)}catch(a){}}},open:function(d,a){var b=/https?:\/\/([a-z0-9_\-\.]+)/i;var c=document.location.toString().match(b);this._method=d;this._url=a;this._remote=String(a).match(/(https?:\/\/[a-z0-9_\-\.]+)(:[0-9]+)?/i)[0];this._frame=null;this._domain=(c[1]!=document.domain)?document.domain:""},send:function(c){this.responseXML="";this.responseText="";var k=this;var j=/https?:\/\/([a-z0-9_\-\.]+)/i;var b=this._getCallbackInfo();var a=this._remote+"/ajax_remote_callback.html?method="+this._method;var d=new Array;window.__jindo2_callback[b.id]=function(n,l,m){try{k._callback(n,l,m)}finally{delete window.__jindo2_callback[b.id]}};for(var h in this._headers){d[d.length]="'"+h+"':'"+this._headers[h]+"'"}d="{"+d.join(",")+"}";a+="&id="+b.id;a+="&header="+encodeURIComponent(d);a+="&proxy="+encodeURIComponent(this._proxy);a+="&domain="+this._domain;a+="&url="+encodeURIComponent(this._url.replace(j,""));a+="#"+encodeURIComponent(c);var g=this._frame=$("<iframe>");g.style.position="absolute";g.style.visibility="hidden";g.style.width="1px";g.style.height="1px";var f=document.body||document.documentElement;if(f.firstChild){f.insertBefore(g,f.firstChild)}else{f.appendChild(g)}g.src=a}}).extend($Ajax.RequestBase);function $Json(sObject){var cl=arguments.callee;if(typeof sObject=="undefined"){sObject=new Object}if(sObject instanceof cl){return sObject}if(!(this instanceof cl)){return new cl(sObject)}if(typeof sObject=="string"){try{sObject=eval("("+sObject+")")}catch(e){sObject=new Object}}this._object=sObject}$Json.fromXML=function(a){var d=new Object;var l=/\s*<(\/?[\w:\-]+)((?:\s+[\w:\-]+\s*=\s*"[^"]*")*)\s*>(?:(<\/\1>)|\s*)|\s*<!\[CDATA\[([\w\W]*?)\]\]>\s*|\s*([^<]*)\s*/ig;var h=/^[0-9]+(?:\.[0-9]+)?$/;var j={"&amp;":"&","&nbsp;":" ","&quot;":'"',"&lt;":"<","&gt;":">"};var b={tags:["/"],stack:[d]};var k=function(m){return m.replace(/&[a-z]+;/g,function(n){return(typeof j[n]=="string")?j[n]:n})};var f=function(m,n){m.replace(/([\w\:\-]+)\s*=\s*"([^"]*)"/g,function(p,o,q){n[o]=k(q)})};var c=function(n){for(var m in n){if(Object.prototype[m]){continue}return false}return true};var g=function(u,t,r,q,p,n){var B,A="";var z=b.stack.length-1;if(typeof t=="string"&&t){if(t.substr(0,1)!="/"){var y=(typeof r=="string"&&r);var w=(typeof q=="string"&&q);var s=(!y&&w)?"":{};B=b.stack[z];if(typeof B[t]=="undefined"){B[t]=s;B=b.stack[z+1]=B[t]}else{if(B[t] instanceof Array){var v=B[t].length;B[t][v]=s;B=b.stack[z+1]=B[t][v]}else{B[t]=[B[t],s];B=b.stack[z+1]=B[t][1]}}if(y){f(r,B)}b.tags[z+1]=t;if(w){b.tags.length--;b.stack.length--}}else{b.tags.length--;b.stack.length--}}else{if(typeof p=="string"&&p){A=p}else{if(typeof n=="string"&&n){A=k(n)}}}if(A.length>0){var x=b.stack[z-1];var C=b.tags[z];if(h.test(A)){A=parseFloat(A)}else{if(A=="true"||A=="false"){A=new Boolean(A)}}if(x[C] instanceof Array){var m=x[C];if(typeof m[m.length-1]=="object"&&!c(m[m.length-1])){m[m.length-1].$cdata=A;m[m.length-1].toString=function(){return A}}else{m[m.length-1]=A}}else{if(typeof x[C]=="object"&&!c(x[C])){x[C].$cdata=A;x[C].toString=function(){return A}}else{x[C]=A}}}};a=a.replace(/<(\?|\!-)[^>]*>/g,"");a.replace(l,g);return $Json(d)};$Json.prototype.get=function(f){var c=this._object;var a=f.split("/");var r=/^([\w:\-]+)\[([0-9]+)\]$/;var m=[[c]],q=m[0];var k=a.length,d,n,b,g,l;for(var h=0;h<k;h++){if(a[h]=="."||a[h]==""){continue}if(a[h]==".."){m.length--}else{b=[];n=-1;d=q.length;if(d==0){return[]}if(r.test(a[h])){n=+RegExp.$2}for(g=0;g<d;g++){l=q[g][a[h]];if(typeof l=="undefined"){continue}if(l instanceof Array){if(n>-1){if(n<l.length){b[b.length]=l[n]}}else{b=b.concat(l)}}else{if(n==-1){b[b.length]=l}}}m[m.length]=b}q=m[m.length-1]}return q};$Json.prototype.toString=function(){var a={$:function(b){if(typeof b=="undefined"){return'""'}if(typeof b=="boolean"){return b?"true":"false"}if(typeof b=="string"){return this.s(b)}if(typeof b=="number"){return b}if(b instanceof Array){return this.a(b)}if(b instanceof Object){return this.o(b)}},s:function(b){var d={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r","\t":"\\t"};var f=function(c){return(typeof d[c]!="undefined")?d[c]:c};return'"'+b.replace(/[\\"'\n\r\t]/g,f)+'"'},a:function(b){var f="[",h="",g=b.length;for(var d=0;d<g;d++){if(typeof b[d]=="function"){continue}f+=h+this.$(b[d]);if(!h){h=","}}return f+"]"},o:function(f){var d="{",g="";for(var b in f){if(typeof f[b]=="function"){continue}d+=g+this.s(b)+":"+this.$(f[b]);if(!g){g=","}}return d+"}"}};return a.$(this._object)};$Json.prototype.toXML=function(){var a=function(k,f){var j=function(m,l){return"<"+f+(l||"")+">"+m+"</"+f+">"};switch(typeof k){case"undefined":case"null":return j("");case"number":return j(k);case"string":if(k.indexOf("<")<0){return j(k.replace(/&/g,"&amp;"))}else{return j("<![CDATA["+k+"]]>")}case"boolean":return j(String(k));case"object":var g="";if(k instanceof Array){var d=k.length;for(var h=0;h<d;h++){g+=a(k[h],f)}}else{var c="";for(var b in k){if(b=="$cdata"||typeof k[b]=="function"){continue}g+=a(k[b],b)}if(f){g=j(g,c)}}return g}};return a(this._object,"")};$Json.prototype.toObject=function(){return this._object};$Json.prototype.$value=$Json.prototype.toObject;function $Template(d){var c=null,a="";var b=arguments.callee;if(d instanceof b){return d}if(!(this instanceof b)){return new b(d)}if(typeof d=="undefined"){d=""}else{if((c=$(d))&&(a=c.tagName.toUpperCase())&&(a=="TEXTAREA"||(a=="SCRIPT"&&c.getAttribute("type")=="text/template"))){d=(c.value||c.innerHTML).replace(/^\s+|\s+$/g,"")}}this._str=d+""}$Template.splitter=/(?!\\)[\{\}]/g;$Template.pattern=/^(?:if (.+)|elseif (.+)|for (?:(.+)\:)?(.+) in (.+)|(else)|\/(if|for)|=(.+))$/;$Template.prototype.process=function(f){var j="\x01";var h=(" "+this._str+" ").replace(/(?!\\)\}\{/g,"}"+j+"{").split($Template.splitter),g=h.length;var a={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r","\t":"\\t","\f":"\\f"};var b=[/("(?:(?:\\.)+|[^\\"]+)*"|[a-zA-Z_][\w\.]*)/g,/[\n\r\t\f"\\]/g,/^\s+/,/\s+$/,/#/g];var d=[function(l){return(l.substring(0,1)=='"')?l:"d."+l},function(l){return a[l]||l},"",""];var k=[];var c=0;h[0]=h[0].substr(1);h[g-1]=h[g-1].substr(0,h[g-1].length-1);if(g<2){return h}while(g--){if(g%2){h[g]=h[g].replace($Template.pattern,function(){var l=arguments;if(l[8]){return"s[i++]=d."+l[8]+";"}if(l[1]){return"if("+l[1].replace(b[0],d[0])+"){"}if(l[2]){return"}else if("+l[2].replace(b[0],d[0])+"){"}if(l[5]){return("var t#=d."+l[5]+"||{},p#=isArray(t#),i#=0;for(var x# in t#){	if( (p# && isNaN(i#=parseInt(x#))) || (!p# && !t#.propertyIsEnumerable(x#)) ) continue;	d."+l[4]+"=t#[x#];"+(l[3]?"d."+l[3]+"=p#?i#:x#;":"")).replace(b[4],c++)}if(l[6]){return"}else{"}if(l[7]){return"};"}return l[0]})}else{if(h[g]==j){h[g]=""}else{if(h[g]){h[g]='s[i++]="'+h[g].replace(b[1],d[1])+'";'}}}}h=(new Function("d",'var s=[],i=0;function isArray(o){ return Object.prototype.toString.call(o) == "[object Array]" };'+h.join("")+'return s.join("");'))(f);return h};function $Document(b){var a=arguments.callee;if(b instanceof a){return b}if(!(this instanceof a)){return new a(b)}this._doc=b||document;this._docKey=this.renderingMode()=="Standards"?"documentElement":"body"}$Document.prototype.$value=function(){return this._document};$Document.prototype.scrollSize=function(){var a=this._doc[this._docKey];return{width:Math.max(a.scrollWidth,a.clientWidth),height:Math.max(a.scrollHeight,a.clientHeight)}};$Document.prototype.clientSize=function(){var a=this._doc[this._docKey];return{width:a.clientWidth,height:a.clientHeight}};$Document.prototype.renderingMode=function(){var a=$Agent().navigator();var b;if("compatMode" in this._doc){b=this._doc.compatMode=="CSS1Compat"?"Standards":(a.ie?"Quirks":"Almost")}else{b=a.safari?"Standards":"Quirks"}return b};function $Date(f){var c=arguments,d="";var b=arguments.callee;if(f&&f instanceof b){return f}if(!(this instanceof b)){return new b(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}if((d=typeof f)=="string"){this._date=b.parse(f).$value()}else{if(d=="number"){if(typeof c[1]=="undefined"){this._date=new Date(f)}else{this._date=new Date(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}}else{if(d=="object"&&f.constructor==Date){(this._date=new Date).setTime(f.getTime());this._date.setMilliseconds(f.getMilliseconds())}else{this._date=new Date}}}}$Date.names={month:["January","Febrary","March","April","May","June","July","August","September","October","Novermber","December"],s_month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s_day:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ampm:["AM","PM"]};$Date.now=function(){return Date.now()};$Date.parse=function(a){return Date.parse(a)};$Date.prototype.$value=function(){return this._date};$Date.prototype.format=function(a){var c={};var b=this._date;return(a||"").replace(/[a-z]/ig,function f(d){if(typeof c[d]!="undefined"){return c[d]}switch(d){case"d":case"j":c.j=b.getDate();c.d=(c.j>9?"":"0")+c.j;return c[d];case"l":case"D":case"w":case"N":c.w=b.getDay();c.N=c.w?c.w:7;c.D=$Date.names.s_day[c.w];c.j=$Date.names.day[c.w];return c[d];case"S":return(!!(c.S=["st","nd","rd"][b.getDate()]))?c.S:(c.S="th");case"z":c.z=Math.floor((b.getTime()-(new Date(b.getFullYear(),0,1)).getTime())/(3600*24*1000));return c.z;case"m":case"n":c.n=b.getMonth()+1;c.m=(c.n>9?"":"0")+c.n;return c[d];case"L":c.L=this.isLeapYear();return c.L;case"o":case"Y":case"y":c.o=c.Y=b.getFullYear();c.y=(c.o+"").substr(2);return c[d];case"a":case"A":case"g":case"G":case"h":case"H":c.G=b.getHours();c.g=(c.g=c.G%12)?c.g:12;c.A=c.G<12?$Date.names.ampm[0]:$Date.names.ampm[1];c.a=c.A.toLowerCase();c.H=(c.G>9?"":"0")+c.G;c.h=(c.g>9?"":"0")+c.g;return c[d];case"i":c.i=(((c.i=b.getMinutes())>9)?"":"0")+c.i;return c.i;case"s":c.s=(((c.s=b.getSeconds())>9)?"":"0")+c.i;return c.s;case"u":c.u=b.getMilliseconds();return c.u;case"U":c.U=this.time();return c.U;default:return d}})};$Date.prototype.time=function(a){if(typeof a=="number"){this._date.setTime(a);return this}return this._date.getTime()};$Date.prototype.year=function(a){if(typeof a=="number"){this._date.setFullYear(a);return this}return this._date.getFullYear()};$Date.prototype.month=function(a){if(typeof a=="number"){this._date.setMonth(a);return this}return this._date.getMonth()};$Date.prototype.date=function(a){if(typeof a=="number"){this._date.setDate(a);return this}return this._date.getDate()};$Date.prototype.day=function(){return this._date.getDay()};$Date.prototype.hours=function(a){if(typeof a=="number"){this._date.setHours(a);return this}return this._date.getHours()};$Date.prototype.seconds=function(a){if(typeof a=="number"){this._date.setSeconds(a);return this}return this._date.getSeconds()};$Date.prototype.minutes=function(a){if(typeof a=="number"){this._date.setMinutes(a);return this}return this._date.getMinutes()};$Date.prototype.isLeapYear=function(){var a=this._date.getFullYear();return !(a%4)&&!!(a%100)||!(a%400)};function $Selection(){}$Selection.prototype.range=function(a){};function $Range(){}$Range.prototype.getHTML=function(){};$Range.prototype.setHTML=function(){};function $Cookie(){var a=arguments.callee;var b=a._cached;if(a._cached){return a._cached}if(!(this instanceof a)){return new a}if(typeof a._cached=="undefined"){a._cached=this}}$Cookie.prototype.keys=function(){var c=document.cookie.split(";");var f=/^\s+|\s+$/g;var b=new Array;for(var d=0;d<c.length;d++){b[b.length]=c[d].substr(0,c[d].indexOf("=")).replace(f,"")}return b};$Cookie.prototype.get=function(d){var a=document.cookie.split(/\s*;\s*/);var c=new RegExp("^(\\s*"+d+"\\s*=)");for(var b=0;b<a.length;b++){if(c.test(a[b])){return unescape(a[b].substr(RegExp.$1.length))}}return null};$Cookie.prototype.set=function(d,f,c,a){var b="";if(typeof c=="number"){b=";expires="+(new Date((new Date()).getTime()+c*1000*60*60*24)).toGMTString()}if(typeof a=="undefined"){a=""}document.cookie=d+"="+escape(f)+b+"; path=/"+(a?"; domain="+a:"");return this};$Cookie.prototype.remove=function(a){if(this.get(a)!=null){this.set(a,"",-1)}return this};function $Form(b){var a=arguments.callee;if(b instanceof a){return b}if(!(this instanceof a)){return new a(b)}b=$(b);if(!b.tagName||b.tagName.toUpperCase()!="FORM"){throw new Error("The element should be a FORM element")}this._form=b}$Form.prototype.$value=function(){return this._form};$Form.prototype.serialize=function(){var a=this;var d={};var c=arguments.length;var f=function(h){var g=a.value(h);if(typeof g!="undefined"){d[h]=g}};if(c==0){$A(this.element()).forEach(function(g){if(g.name){f(g.name)}})}else{for(var b=0;b<c;b++){f(arguments[b])}}return $H(d).toQueryString()};$Form.prototype.element=function(a){if(arguments.length>0){return this._form[a]}return this._form.elements};$Form.prototype.enable=function(){var f=arguments[0];if(typeof f=="object"){var a=this;$H(f).forEach(function(g,h){a.enable(h,g)});return this}var c=this.element(f);if(!c){return this}c=c.nodeType==1?[c]:c;if(arguments.length<2){var d=true;$A(c).forEach(function(g){if(g.disabled){d=false;$A.Break()}});return d}else{var b=arguments[1];$A(c).forEach(function(g){g.disabled=!b});return this}};$Form.prototype.value=function(f){if(typeof f=="object"){var b=this;$H(f).forEach(function(g,h){b.value(h,g)});return this}var d=this.element(f);if(!d){throw new Error("The element is not exist")}d=d.nodeType==1?[d]:d;if(arguments.length>1){var a=arguments[1];$A(d).forEach(function(k){switch(k.type){case"radio":case"checkbox":k.checked=(k.value==a);break;case"select-one":var h=-1;for(var j=0,g=k.options.length;j<g;j++){if(k.options[j].value==a){h=j}}k.selectedIndex=h;break;default:k.value=a;break}});return this}var c=[];$A(d).forEach(function(g){switch(g.type){case"radio":case"checkbox":if(g.checked){c.push(g.value)}break;case"select-one":if(g.selectedIndex!=-1){c.push(g.options[g.selectedIndex].value)}break;default:c.push(g.value);break}});return c.length>1?c:c[0]};$Form.prototype.submit=function(a){var b=null;if(typeof a!="undefined"){b=this._form.target;this._form.target=a}this._form.submit();if(b!==null){this._form.target=b}return this};$Form.prototype.reset=function(){this._form.reset();return this};function $S(b){var a=arguments.callee;if(typeof b=="undefined"){b=""}if(b instanceof a){return b}if(!(this instanceof a)){return new a(b)}this._str=b+""}$S.prototype.$value=function(){return this._str};$S.prototype.toString=$S.prototype.$value;$S.prototype.trim=function(){return $S(this._str.replace(/^\s+|\s+$/g,""))};$S.prototype.escapeHTML=function(){var b={'"':"quot","&":"amp","<":"lt",">":"gt"};var a=this._str.replace(/[<>&"]/g,function(c){return b[c]?"&"+b[c]+";":c});return $S(a)};$S.prototype.stripTags=function(){return $S(this._str.replace(/<\/?(?:h[1-5]|[a-z]+(?:\:[a-z]+)?)[^>]*>/ig,""))};$S.prototype.times=function(c){var a=[];for(var b=0;b<c;b++){a[a.length]=this._str}return $S(a.join(""))};$S.prototype.unescapeHTML=function(){var b={quot:'"',amp:"&",lt:"<",gt:">"};var a=this._str.replace(/&([a-z]+);/g,function(d,c){return b[c]?b[c]:d});return $S(a)};$S.prototype.escape=function(){var a=this._str.replace(/([\u0080-\uFFFF]+)|[\n\r\t"'\\]/g,function(d,c,b){if(c){return escape(c).replace(/%/g,"\\")}return(b={"\n":"\\n","\r":"\\r","\t":"\\t"})[d]?b[d]:"\\"+d});return $S(a)};$S.prototype.bytes=function(g){var d=0,b=0,c=0,a=this._str.length;var h=((document.charset||document.characterSet||document.defaultCharset)+"").toLowerCase();var f=(typeof g=="number");if(h=="utf-8"){for(c=0;c<a;c++){d=this._str.charCodeAt(c);if(d<128){b+=1}else{if(d<2048){b+=2}else{if(d<65536){b+=3}else{b+=4}}}if(f&&b>g){this._str=this._str.substr(0,c);break}}}else{for(c=0;c<a;c++){b+=(this._str.charCodeAt(c)>128)?2:1;if(f&&b>g){this._str=this._str.substr(0,c);break}}}return f?this:b};$S.prototype.parseString=function(){var f=this._str.split(/&/g),g,c,d,a={};for(var b=0;b<f.length;b++){c=f[b].substring(0,g=f[b].indexOf("="));d=decodeURIComponent(f[b].substring(g+1));if(c.substr(c.length-2,2)=="[]"){c=c.substring(0,c.length-2);if(typeof a[c]=="undefined"){a[c]=[]}a[c][a[c].length]=d}else{a[c]=d}}return a};$S.prototype.escapeRegex=function(){var a=this._str;var b=/([\?\.\*\+\-\/\(\)\{\}\[\]\:\!\^\$\\\|])/g;return $S(a.replace(b,"\\$1"))};$S.prototype.format=function(){var b=arguments;var a=0;var c=this._str.replace(/%([ 0])?(-)?([1-9][0-9]*)?([bcdsoxX])/g,function(l,k,h,g,d){var f=b[a++];var j="",m="";g=g?+g:0;if(d=="s"){j=f+""}else{if(" bcdoxX".indexOf(d)>0){if(typeof f!="number"){return""}j=(d=="c")?String.fromCharCode(f):f.toString(({b:2,d:10,o:8,x:16,X:16})[d]);if(" X".indexOf(d)>0){j=j.toUpperCase()}}}if(j.length<g){m=$S(k||" ").times(g-j.length).toString()}(h=="-")?(j+=m):(j=m+j);return j});return $S(c)};function $ElementList(b){var a=arguments.callee;if(b instanceof a){return b}if(!(this instanceof a)){return new a(b)}if(b instanceof Array||($A&&b instanceof $A)){b=$A(b)}else{if(typeof b=="string"&&cssquery){b=$A(cssquery(b))}else{b=$A()}}this._elements=b.map(function(d,f,c){return $Element(d)})}$ElementList.prototype.get=function(a){return this._elements.$value()[a]};$ElementList.prototype.getFirst=function(){return this.get(0)};$ElementList.prototype.getLast=function(){return this.get(Math.Max(this._elements.length-1,0))};(function(b){var a="show,hide,toggle,addClass,removeClass,toggleClass,fireEvent,leave,";a+="empty,appear,disappear,className,width,height,text,html,css,attr";$A(a.split(",")).forEach(function(c){b[c]=function(){var d=$A(arguments).$value();this._elements.forEach(function(f){f[c].apply(f,d)});return this}});$A(["appear","disapeear"]).forEach(function(c){b[c]=function(g,h){var d=this._elements.length;var f=this;this._elements.forEach(function(k,j){if(j==d-1){k[c](g,function(){h(f)})}else{k[c](g)}})}})})($ElementList.prototype);function $Window(b){var a=arguments.callee;if(b instanceof a){return b}if(!(this instanceof a)){return new a(b)}this._win=b||window}$Window.prototype.$value=function(){return this._win};$Window.prototype.resizeTo=function(b,a){this._win.resizeTo(b,a);return this};$Window.prototype.resizeBy=function(b,a){this._win.resizeBy(b,a);return this};$Window.prototype.moveTo=function(b,a){this._win.moveTo(b,a);return this};$Window.prototype.moveBy=function(b,a){this._win.moveBy(b,a);return this};$Window.prototype.sizeToContent=function(){if(typeof this._win.sizeToContent=="function"){this._win.sizeToContent()}else{var c=$Document(this._win.document);var b=c.clientSize();var a=c.scrollSize();this.resizeBy(a.width-b.width,a.height-b.height)}return this};var SPS={__inst:{}};SPS.debugMode=true;SPS.learningLang="";SPS.autoCompleteURL="http://devac.nciku.com:8080";SPS.text=function(d){var b=SPS.text[d];b=b||"The language file is not included";for(var c=1,a;a=arguments[c];c++){b=b.replace("%"+c,a)}return b.replace(/^(.)/,function(f){return f.toUpperCase()})};SPS.text.set=function(b){for(var a in b){SPS.text[a]=b[a]}};(function(){var fc_isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var fc_isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var fc_isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;window.checkFlashPlayerVersion=function(){var _version;var _e;try{var _axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.5");_version=_axo.GetVariable("$version")}catch(_e){_version=-1}return _version};window.showFlash=function(_swfURL_,_flashID_,_width_,_height_,_wmode_,_flashVars_,_bgColor_){_wmode_=(_wmode_==undefined)?"transparent":_wmode_;_bgColor_=(_bgColor_==undefined)?"#FFFFFF":_bgColor_;if(fc_isIE&&fc_isWin&&!fc_isOpera){_object_='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+_width_+'" height="'+_height_+'" id="'+_flashID_+'" align="middle">';_object_+='<param name="allowScriptAccess" value="always" />';_object_+='<param name="quality" value="high" />';_object_+='<param name="movie" value="'+_swfURL_+'" />';_object_+='<param name="wmode" value="'+_wmode_+'" />';_object_+='<param name="bgcolor" value="'+_bgColor_+'" />';_object_+='<param name="FlashVars" value="'+_flashVars_+'">';_object_+="</object>"}else{_object_='<embed src="'+_swfURL_+'" quality="high" wmode="'+_wmode_+'" FlashVars="'+_flashVars_+'" bgcolor="'+_bgColor_+'" width="'+_width_+'" height="'+_height_+'" name="'+_flashID_+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'}document.write(_object_)};window.findFlashObj=function(_flashID_){var tarObj=fc_isIE?document.all[_flashID_]:document[_flashID_];return tarObj};window.flashExternalCleanup=function(){__flash_unloadHandler=function(){externalProbSet=true;obj=document.getElementsByTagName("OBJECT");for(i=0;i<obj.length;i++){var theObj=eval(obj[i]);theObj.style.display="none";for(var prop in theObj){if(typeof(theObj[prop])=="function"){try{theObj[prop]=null}catch(e){}}}}};if(window.onunload!=__flash_unloadHandler){__flash_savedUnloadHandler=window.onunload;window.onunload=__flash_unloadHandler}};window.onbeforeunload=flashExternalCleanup})();(function(){String.prototype.toHTML=function(){return this.replace(/</g,"&lt;").replace(/>/g,"&gt;")};String.prototype.toValue=function(){return this.replace(/&lt;/g,"<").replace(/&gt;/g,">")};String.prototype.repeat=function(c){var b="";for(var a=0;a<c;a++){b+=this}return b};String.prototype.stripTags=function(){return this.replace(/<[^>]*>/g,"")};String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")};String.prototype.bytesLength=function(){var c=0;for(var a=0,b=this.length;a<b;a++){c+=this.charCodeAt(a)>128?2:1}return c};String.prototype.bytesCut=function(a){var f=0;for(var b=0,d=this.length;b<d;b++){var c=this.charCodeAt(b)>128?2:1;if(a<f+c){return this.substr(0,b)}f+=c}return this};String.prototype.hasFinalConsonant=function(){var a="가나다라마바사아자차카타파하";var f,d;var c=this.charCodeAt(this.length-1);for(var b=0;b<a.length;b++){f=a.charCodeAt(b);d=f+560;if(c>=f&&c<=d&&(c-f)%14==0){return false}}return true};String.prototype.addPostword=function(a){var c,b;switch(a){case"를":case"을":c="를";b="을";break;case"가":case"이":c="가";b="이";break;case"는":case"은":c="는";b="은";break;case"와":case"과":c="와";b="과";break;default:c=b=what}return this+(this.hasFinalConsonant()?b:c)};$Element.prototype.has=function(a){var c=this.$value();var b=$Element(a).$value();for(;b;b=b.parentNode){if(b==c){return true}}return false};$Element.prototype.findElement=function(b,d,c){var a=this.$value();d=d||function(f){return true};if(!c){a=a[b]}for(;a;a=a[b]){if(a.nodeType==1&&d(a)){return $Element(a)}}return null};$Event.prototype.getRelatedElement=function(){var a=this._event;return a.relatedTarget||(a.type=="mouseover"?a.fromElement:a.toElement)};$Event.prototype.of=function(d){var c;var b=true;var a=this._event.type=="mouseover"||this._event.type=="mouseout";if(c=this.element){b&=$Element(d).has(c)}if(c=this.getRelatedElement()){b&=$Element(d).has(c)}else{if(a){b=false}}return b};$Fn.prototype.owner=function(a){var b=this.$value();return $Fn(function(){return b.apply(a,arguments)})};$Element.prototype._orgOffset=$Element.prototype.offset;$Element.prototype.offset=function(g,f){var d=this._element;var c=0,a=0;if(typeof g=="number"&&typeof f=="number"){return this._orgOffset(g,f)}while(typeof d!="undefined"&&d!=null){c+=d.offsetTop;a+=d.offsetLeft;d=d.offsetParent;if(d&&d.tagName){var b=d.tagName.toUpperCase();if(b!="BODY"&&b!="HTML"){c-=d.scrollTop;a-=d.scrollLeft}}}return{top:c,left:a}}})();(function(){SPS.uniqid=function(){return(new Date().getTime()%31536000000)*100+parseInt(Math.random()*100)};SPS.dirname=function(a){var b=a.lastIndexOf("/");if(b==-1){return""}return a.substr(0,b+1)};SPS.setCookie=function(g,h,d,c,a){var b="";c=c||"/";if(typeof d!="undefined"){var f=new Date();f.setDate(f.getDate()+d);b+=";expires="+f.toGMTString()}if(typeof c!="undefined"){b+=";path="+c}if(typeof a!="undefined"){b+=";domain="+a}document.cookie=g+"="+escape(h)+b};SPS.getCookie=function(c){var d=document.cookie;if(d.length<1){return}var a=new RegExp("\\b"+c+"=([^;]*)(;|$)");var b=d.match(a);return b&&b[1]};SPS.borderNoneSafari=function(b){if(!$Agent().navigator().safari){return}var a;var c=$Element(b);if(c.hasClass("_border_none_safari")){a=$Element(b.parentNode)}else{a=$Element($("<div>"));c.addClass("_border_none_safari");c.before(a);c.css({margin:"0px",position:"relative",left:"-1px",top:"-2px"});a.append(c)}a.css({width:b.offsetWidth-6+"px",height:b.offsetHeight-5+"px",padding:"0",margin:"0",overflow:"hidden",display:"inline-block","float":"left"});return a};SPS.getParentForm=function(a){for(;a;a=a.parentNode){if(a.tagName&&a.tagName.toUpperCase()=="FORM"){return a}}return a};SPS.setBeforeSubmit=function(f,c,a){a=a||function(){return true};var b=$$(c,f)[0];var d=function(g){if(!a()){g.stop();return false}SPS.protectLossData.setChanged(false);return true};$Fn(d).attach(f,"submit");$Fn(function(g){if(d(g)){f.submit()}g.stop()}).attach(b,"click")};SPS.getJsonList=function(h,b){var d=[];var a=null;var j=typeof b=="string";for(var f=0,c;c=h[f];f++){var g=c.name;if(c.type=="radio"&&!c.checked){continue}if(g&&(/\[[0-9]*\]$/).test(g)){g=g.replace(/\[[0-9]*\]$/,"");if(j){if(b!=g){continue}d.push(c.value)}else{if($A(b).indexOf(g)<0){continue}if(!a){a={}}if(typeof a[g]!="undefined"){d.push(a);a={}}a[g]=c.value}}}if(!j){d.push(a)}return $Json(d).toString()};SPS.moveLocationToValue=function(b){var a=SPS.getFormValue(b);if(a){location.href=a}};SPS.autoPosition=function(f,a,b,d){b=b||[0,0];var c=$Element(f).offset();var g=d?-(a.offsetHeight+b[1]):f.offsetHeight+b[1];$Element(a).css({left:c.left+b[0]+"px",top:c.top+g+"px"})};SPS.parseQueryString=function(h){var c=h.split("&");var a={};for(var b=0,d=c.length;b<d;b++){var g=c[b].split("=",2);try{g[0]=decodeURIComponent(g[0])}catch(f){}try{g[1]=decodeURIComponent(g[1])}catch(f){}a[g[0]]=g[1]}return a};SPS.makeQueryString=function(a){var b=[];$H(a).forEach(function(d,c){b.push(encodeURIComponent(c)+"="+encodeURIComponent(d))});return b.join("&")};SPS.query=SPS.parseQueryString(location.search.substr(1));SPS.debugMode=SPS.debugMode?SPS.query.debug=="true":false;SPS.decToHex=function(d){var b="";var a=["A","B","C","D","E","F"];do{var c=d%16;b=(c>=10?a[c-10]:String(c))+b;d=parseInt(d/16)}while(d);return b};SPS.isCharCode=function(a){if((a>=8&&a<=46)||(a>=91&&a<=105)||(a==110)||(a>=112&&a<=123)||(a==144)){return false}return true};SPS.getParentByClassName=function(b,a){var c=$Element(b);c=c.hasClass(a)?c:c.findElement("parentNode",function(d){return $Element(d).hasClass(a)});return c};SPS.addOption=function(a,b,d){var c=$("<option>");c.innerHTML=b.toHTML();c.value=d;a.appendChild(c);return a.length-1};SPS.extend=function(a,b){$H(b).forEach(function(c,d){a[d]=c});return a};SPS.ajaxSubmit=function(f,c){c=c||function(){};var d=f.action;var h=$Ajax(d,{type:f.method||"get",onload:c});var g={};var a;for(var b=0,a;a=f[b];b++){if(!a.name){continue}g[a.name]=a.value}h.request(g)};SPS.getFormValue=function(c){var j=null;var b=c.tagName.toUpperCase();if(b!="INPUT"&&b!="TEXTAREA"&&b!="SELECT"){return null}if(b=="SELECT"&&c.selectedIndex>-1){j=c.options[c.selectedIndex].getAttribute("value")||null}else{var h=c.type.toUpperCase();if(h=="CHECKBOX"){j=c.checked?c.value:null}else{if(h=="RADIO"){var a=c.ownerDocument||document;var f=a.getElementsByName(c.name);for(var d=0,g;g=f[d];d++){if(g.checked){j=g.value}}}else{j=c.value}}}return j};SPS.login=function(a,c,b){var d=document.location.href;var g=new String();var f=new String();switch(a){case true:sGentLocation=b+encodeURIComponent(d);break;case false:sGentLocation=b;break}sGentLocation=encodeURIComponent(sGentLocation);f=c+"?go="+sGentLocation;document.location.href=f}})();(function(){SPS.validator={_prefix:"-",_rules:"notnull,notspace,length,group,only,deny,any,number,integer,callback".split(","),_defaultOnInvalid:function(f,a,d,h,b){if(h){switch(a){case"integer":if(h=="INTEGER_TEST"){if(b.value<1||isNaN(b.value)){h="INTEGER_TEST_NONZERO"}}alert(SPS.text(h,d,b.from,b.to));break;case"length":alert(SPS.text(h,d,b.from,b.to));break;default:alert(SPS.text(h,d));break}}else{switch(a){case"notnull":case"notspace":alert(SPS.text("NOTNULL",d));break;case"integer":alert(SPS.text("INTEGER",d,b.from,b.to));break;case"length":alert(SPS.text("LENGTH",d,parseInt(b.to/2),b.to));break;case"any":var c=SPS.validator;var k=SPS.getFormValue(f);var j=new RegExp("("+c._filters.chinese+"|"+c._filters.english+")");if(b["catch"]=="english"){if(k.search(j)==-1){return true}alert(SPS.text("ANY_ENGLISH",d));break}else{if(b["catch"]=="chinese"){if(k.search(j)==-1){return true}alert(SPS.text("ANY_CHINESE",d));break}}default:alert(SPS.text("OTHER",d))}}try{f.focus();f.select()}catch(g){}return false},_getRange:function(b,c){var a=b.split("~");if(c){a=[parseFloat(a[0]),parseFloat(a[1])]}else{a=[parseInt(a[0],10),parseInt(a[1],10)]}if(isNaN(a[0])){a[0]=-Infinity}if(isNaN(a[1])){a[1]=Infinity}return a},_filters:{chinese:"[一-龥]",korean:"[ㄱ-힣]",english:"[A-Z|a-z]",number:"[0-9]",url:"(http|https|ftp)://\\w+(.\\w+)+(/.*)?"},_functions:{notnull:function(a,b){return(typeof b=="string"&&b.length>0)?false:{}},notspace:function(a,b){return(typeof b=="string"&&b.trim().length>0)?false:{}},length:function(c,f,b){var a=SPS.validator._getRange(b);var d=f.bytesLength();return(a[0]<=d&&d<=a[1])?false:{from:a[0],to:a[1]}},only:function(d,g,c){var b=c.split(",");var a=[];$A(b).forEach(function(h){a.push(SPS.validator._filters[h])});var f=new RegExp("^("+a.join("|")+")*$");return(f.test(g))?false:{types:b}},deny:function(d,j,c){var b=c.split(",");var h=true;var g;var a="";var f;$A(b).forEach(function(k){g=new RegExp(SPS.validator._filters[k]);f=(j.search(g)>-1?false:true);h=h&&f;if(!f){a=k;$A.Break()}});return h?false:{type:b,"catch":a}},any:function(d,h,c){var b=c.split(",");var g=true;var f;var a="";$A(b).forEach(function(j){f=new RegExp(SPS.validator._filters[j]);if(h.search(f)==-1){g=false;a=j;$A.Break()}});return g?false:{type:b,"catch":a}},number:function(c,g,b){var f=/^[-+]?[0-9]+(\.[0-9]+)?$/;if(!f.test(g)){g="NaN"}var d=parseFloat(g);if(typeof b!="undefined"){var a=SPS.validator._getRange(b,true);return(!isNaN(d)&&a[0]<=d&&d<=a[1])?false:{value:d,from:a[0],to:a[1]}}return false},integer:function(c,g,b){var f=/^[-+]?[0-9]+(\.[0-9]+)?$/;if(!f.test(g)){g="NaN"}var d=parseInt(g,10);if(typeof b!="undefined"){var a=SPS.validator._getRange(b);return(!isNaN(d)&&a[0]<=d&&d<=a[1])?false:{value:d,from:a[0],to:a[1]}}return false},group:function(f,j,d,a){if(a.oGroups[d]){return false}a.oGroups[d]=true;var b=true;var h=new RegExp("\\bgroup\\("+d+"\\)(\\s|$)");for(var g=0,c;c=a.aEls[g];g++){if(c.nodeType!=1||f===c){continue}if(h.test(c.className)){if(f.value!=c.value){b=false}}}return b?false:{}}},_fireEvent:function(d,h,a,k,c){var j;var f=h.className;var b=f.match(/\bname\(([^)]*)\)(\s|$)/);var g=b?b[1]:"undefined";d=d||this._defaultOnInvalid;return d(h,a,g,k,c)},validate:function(j,h){var k=true;if(j instanceof Array){for(var c=0,g=j.length;c<g;c++){if(!this.validate(j[c],h)){return false}}return true}var a=j.all||j.getElementsByTagName("*");h=h||{};var b={aEls:a,oGroups:{},oRadios:{}};a[a.length]=j;for(var c=0,d;d=a[c];c++){if(d.nodeType!=1){continue}var f=this._validateElement(d,h,b);k&=f;if(f===null){return k}}return k},_validateElement:function(j,n,f){var c=j.tagName.toUpperCase();if(c!="INPUT"&&c!="TEXTAREA"&&c!="SELECT"){return true}var q=true;var o=SPS.getFormValue(j);var d=j.className;if(c=="INPUT"&&j.type.toUpperCase()=="RADIO"){var h=j.name;if(f.oRadios[h]){return true}f.oRadios[h]=true}for(var g=0,p;p=this._rules[g];g++){var l=new RegExp("\\b("+p+")(\\((([^:)]+):)?([^)]*)\\))?(\\s|$)");var a=d.match(l);if(!a){continue}var b;var m=this._functions[a[1]];if(typeof m=="function"){b=m(j,o,a[5],f);var k=b?false:true;if(!k){if(!this._fireEvent(n.onInvalid,j,a[1],a[4],b)){return null}else{k=true}}q&=k}}return q}}})();SPS.protectLossData=function(d,f){if(typeof SPS.protectLossData._changed=="undefined"){SPS.protectLossData._changed=false;SPS.protectLossData._message=f||"Warning!"}d=d||document;var h=d.getElementsByTagName("input");var c=d.getElementsByTagName("textarea");var g=d.getElementsByTagName("select");var b=$Fn(function(){SPS.protectLossData.setChanged(true)});var a=function(j){$A(j).forEach(function(k){var l=$Element(k);if(l.hasClass("_protect_loss")){return}b.attach(k,"change");l.addClass("_protect_loss")})};a(h);a(c);a(g)};SPS.protectLossData.setChanged=function(a){SPS.protectLossData._changed=a;if(a){window.onbeforeunload=function(){return SPS.protectLossData._message}}else{window.onbeforeunload=null}};SPS.timer=$Class({_bInterval:false,_oInstance:null,$init:function(a){this._bInterval=a.toLowerCase()=="interval"},start:function(b,c){this.stop();if(this._bInterval){this._oInstance=window.setInterval(c,b)}else{var a=this;this._oInstance=window.setTimeout(function(){c();a.stop()},b)}},stop:function(){var a=window[this._bInterval?"clearInterval":"clearTimeout"];if(this._oInstance){a(this._oInstance)}this._oInstance=null}});SPS.delayedRequest=$Class({_timer:null,_delay:null,_count:null,_remained:null,$init:function(a,b){this._timer=new SPS.timer("timeout");this._delay=a;this._count=b;this._remained=this._count},request:function(f,c){var d=[];for(var b=2,a=arguments.length;b<a;b++){d.push(arguments[b])}if(this._remained--<1){this._remained=this._count;this._timer.stop();return f.apply(c,d)}this._timer.start(this._delay,function(){f.apply(c,d)})},stop:function(){this._timer.stop()}});function thisMovie(a){if(navigator.appName.indexOf("Microsoft")!=-1){return window[a]}else{return document[a]}}SPS.tts=$Class({_sUniq:null,_oFrame:null,_oOptions:null,_oTimer:null,_sOrgUrl:null,$init:function(a){this._sUniq="TTS"+parseInt(Math.random()*10000000);SPS.tts._instances[this._sUniq]=this;this._oOptions=a||{}},_execute:function(a){var g=[];for(var b=1,c=arguments.length;b<c;b++){g.push(arguments[b])}var f=this._oFrame.contentWindow;try{return f[a].apply(f,g)}catch(d){}},_sReservedUrl:null,playDictation:function(b,c,a){if(!SPS.tts._ttsEnable){alert(SPS.text("TTS_NOT_SUPPORTED"));return}this.play(SPS.tts.textToUrl(b,c),false,a)},_status:null,play:function(sUrl,bSuspend,nCount){if(!nCount){nCount=3}if(sUrl){this._sReservedUrl=sUrl}if(!bSuspend){var oBody=document.body;try{thisMovie("nciku_mp3_flash_player").stopTTS()}catch(e){}var oElem=document.getElementById(this._sUniq);if(oElem&&oElem.parentNode&&oElem.parentNode.removeChild){try{oElem.parentNode.removeChild(oElem)}catch(e){}}else{}var ttsSpan=$("<span>");ttsSpan.id=this._sUniq;with(ttsSpan.style){position="absolute";if(SPS.debugMode){right="0";top="0";position="fixed";width="400px";height="400px"}else{left="-999999px";top="-999999px";width="0px";height="0px"}}oBody.insertBefore(ttsSpan,oBody.firstChild);var fo=new FlashObject("/flash/musicplayer.swf","nciku_mp3_flash_player","0","0","0","#FFFFFF");fo.addVariable("song_url",this._sReservedUrl);fo.addVariable("song_title","nciku");fo.addVariable("autostart","1");fo.addVariable("autoplay","true");fo.addVariable("repeatCount",nCount);fo.addVariable("repeat","false");fo.write(this._sUniq);this._status="play"}},stop:function(){if(this._status=="stop"){return}try{thisMovie("nciku_mp3_flash_player").stopTTS()}catch(a){}var b=document.getElementById(this._sUniq);if(b&&b.parentNode&&b.parentNode.removeChild){try{b.parentNode.removeChild(b)}catch(a){}}else{}this._status="stop"}});SPS.tts.textToUrl=function(c,f){var b=function(o){var n="";var m=0;var l=o.length;var j;var k;for(i=0;i<l;i++){j=o.charCodeAt(i);if((j>=0)&&(j<=127)){k="0"+j.toString(16);n+="%"+k.substr(k.length-2)}else{if(j>2097151){n+="%"+(oxf0+((j&1835008)>>18)).toString(16);n+="%"+(128+((j&258048)>>12)).toString(16);n+="%"+(128+((j&4032)>>6)).toString(16);n+="%"+(128+(j&63)).toString(16)}else{if(j>2047){n+="%"+(224+((j&61440)>>12)).toString(16);n+="%"+(128+((j&4032)>>6)).toString(16);n+="%"+(128+(j&63)).toString(16)}else{n+="%"+(192+((j&1984)>>6)).toString(16);n+="%"+(128+(j&63)).toString(16)}}}}return n};var a=f?100:250;var h=b(c.trim());var d=100;var g="";if(a==100){g="http://tts.nciku.com/tts/mp3tts.cgi?text="+h+"&spk_id="+a+"&text_fmt=0&pitch=100&volume=100&speed="+d+"&wrapper=0&enc=0&lb_ip=218.240.10.38&lb_port=80"}else{g="http://tts.nciku.com/tts/mp3tts2.cgi?domain_id=15&url=chinese.nciku.com&text="+h+"&spk_id="+a+"&text_fmt=0&pitch=100&volume=100&speed=65&wrapper=0&enc=0&lb_ip=218.240.10.38&lb_port=80"}return g};SPS.tts._ttsEnable=true;if($Agent().navigator().ie){try{new ActiveXObject("WMPlayer.OCX")}catch(e){SPS.tts._ttsEnable=false}}SPS.tts._instances=[];SPS.tts._getInstance=function(a){return this._instances[a]};SPS.tab=function(g,c,f){g=$(g);f=f||{};var a=[];if(g.tagName.toUpperCase()=="UL"){for(var d=g.firstChild;d;d=d.nextSibling){if(d.tagName&&d.tagName.toUpperCase()=="LI"){a.push(d)}}}else{a=$$("ul>li",g)}var b=[];var h=0;$A(c).forEach(function(k){b.push($Element($(k)))});var j=function(l){var k={tab:null,panel:null};$A(b).forEach(function(n,m){if(m==l){k.tab=a[m];k.panel=n.$value();n.show();if($Agent().navigator().ie){n.css("zoom","1");setTimeout(function(){n.css("zoom","")},0)}Element.addClass(a[m],"selected")}else{n.hide();Element.removeClass(a[m],"selected")}});return k};$A(a).forEach(function(l,k){if(Element.hasClass(l,"selected")){h=k}$Fn(function(m){var n=j(this);if(typeof f.onChange=="function"){f.onChange(n.tab,n.panel)}m.stop()}).owner(k).attach(l,"click")});j(h)};SPS.selectbox=$Class({_agent:$Agent().navigator(),_o:null,_timer:null,_options:null,$init:function(b,a){var c=this._o={wrap:b,label:$$("p",b)[0],layer:$$("ul",b)[0],list:$$("ul",b)[0],button:$$(".btn",b)[0]};var d=$Element(c.wrap).findElement("nextSibling",function(f){return f.tagName&&f.tagName.toUpperCase()=="SELECT"});if(!d){return}$Element(b).addClass("selectbox-skip");SPS.selectbox._instances.push(this);c.resource=d.$value();d.css({position:"absolute",left:"-999999px"});c.button.removeAttribute("href");c.wrap.style.display="block";c.list.style.display="none";this._options=a||{showNULL:true};this._timer=new SPS.timer("timeout");this._bindEvents();this._touchLabel()},_findAbove:function(a){var b=this._o;for(;a>-1;a--){if(b.resource.options[a].getAttribute("value")){return a}}return -1},_findBelow:function(a){var c=this._o;var b=c.resource.options.length;for(;a<b;a++){if(c.resource.options[a].getAttribute("value")){return a}}return -1},_showList:function(c){var d=this._o;if(d.resource.selectedIndex==-1){return}var b=c?"show":"hide";if(typeof c=="undefined"){b="toggle"}var f=$Element(d.layer);f[b]();var a=f.visible();if(a){this._touchList()}},_fireOnChangeEvent:function(){var b=this._o;if(document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent("change",true,true);b.resource.dispatchEvent(a)}else{var a=document.createEventObject();b.resource.fireEvent("onchange",a)}},_bindEvents:function(){var a=this._o;$Fn(function(b){var c=b.mouse().delta;a.list.scrollTop-=c*15;b.stop()}).owner(this).attach(a.resource,"mousewheel");$Fn(function(b){var c=$Element(a.wrap);if(!c.hasClass("selectbox-focus")){c.addClass("selectbox-focus")}this._timer.stop()}).owner(this).attach(a.resource,"focus");$Fn(function(c){var d=$Element(a.wrap);var b=this;this._timer.start(50,function(){if(d.hasClass("selectbox-focus")){d.removeClass("selectbox-focus")}b._showList(false)})}).owner(this).attach(a.resource,"blur");$Fn(function(c){var b=this;var f=c.key().keyCode;var d=this._getSelectedIndex();switch(f){case 33,36,37,38:case 34,39,40,45:break;case 32:this._showList();c.stop();return}setTimeout(function(){if(!b._options.showNULL){var g=b._getSelectedIndex();var j=a.resource.options[g].getAttribute("value")?false:true;if(g>d){var h=a.resource.options.length;g=b._findBelow(g);if(g==-1){g=b._findAbove(h-1)}}else{g=b._findAbove(g);if(g==-1){g=b._findBelow(0)}}if(b._agent.firefox||b._agent.safari){j=true}if(g!=-1){a.resource.selectedIndex=g;if(g!=d&&j){b._fireOnChangeEvent()}}}b._touchLabel()},0)}).owner(this).attach(a.resource,this._agent.opera?"keypress":"keydown");$Fn(function(c){var b=this;setTimeout(function(){b._showList();a.resource.focus()},1)}).owner(this).attach(a.wrap,"mousedown");$Fn(function(b){var c=$Element(b.element).findElement("parentNode",function(d){return $Element(d).hasClass("item")},true);if(!c){return}this._setHighlight(c)}).owner(this).attach(a.list,"mouseover");$Fn(function(d){var c=this;var f=$Element(d.element).findElement("parentNode",function(h){return $Element(h).hasClass("item")},true);if(!f){SPS.debug("FOO");setTimeout(function(){c._timer.stop();a.resource.focus()},1);d.stop();return}var g=f.$value();var b=parseInt(g.className.match(/__au_index_([0-9]+)/)[1]);a.resource.selectedIndex=b;this._setSelect(f);this._touchLabel();if(this._agent.firefox||this._agent.ie){c._fireOnChangeEvent()}setTimeout(function(){c._showList(false)},50)}).owner(this).attach(a.list,"mousedown")},_setHighlight:function(b){if(this._highlighted){this._highlighted.removeClass("item-highlight")}b.addClass("item-highlight");this._highlighted=b;var d=b.$value();var f=this._o.list;var a=d.offsetTop;if(f.scrollTop>a){f.scrollTop=a}var c=a+d.offsetHeight;if(f.scrollTop+f.clientHeight<c){f.scrollTop=c-f.clientHeight}},_setSelect:function(b){var f=this._o.wrap,h=this._o.list,d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=document.documentElement.scrollTop||document.body.scrollTop,a,g=h.offsetHeight;if(c===0){a=d-f.offsetTop-f.offsetHeight}else{a=Math.abs(d-(f.offsetTop-c)-f.offsetHeight)}if(a<g){h.style.top=-g+"px"}else{h.style.top=20+"px"}if(this._selected){this._selected.removeClass("item-select")}b.addClass("item-select");this._selected=b;this._setHighlight(b)},_highlighted:null,_selected:null,_getSelectedIndex:function(){var b=this._o;var a=b.resource&&b.resource.selectedIndex;if(a>-1){return a}return -1},_touchLabel:function(){var d=this._o;var a=this._getSelectedIndex();if(a==-1){d.label.innerHTML="";return}var b=d.resource.options[a].text;d.label.innerHTML=b;var c=$$(".__au_index_"+a,d.list)[0];if(c){this._setSelect($Element(c))}},_touchList:function(){var g=this._o;var d=g.resource.options;var f;var b,h;g.list.innerHTML="";this._highlighted=null;this._selected=null;for(var a=0,c=d.length;a<c;a++){b=d[a].text;h=d[a].getAttribute("value");if(this._options.showNULL||h){f=$("<li>");f.className="item __au_index_"+a;f.innerHTML=d[a].text;g.list.appendChild(f)}}this._touchLabel()},touch:function(){this._touchLabel()}});SPS.selectbox._version=3;SPS.selectbox._instances=[];SPS.selectbox.touchAll=function(b,a){if(!b){$A(this._instances).forEach(function(d){d.touch()});return}var c=$$("."+b,a||document);$A(c).forEach(function(d){if($Element(d).hasClass("selectbox-skip")){return}var f=new SPS.selectbox(d)})};SPS.newWin=function(c,d){var b=[];b.push("chanellmode=1");b.push("directories=1");b.push("fullscreen=0");b.push("location=1");b.push("menubar=1");b.push("scrollbars=1");b.push("status=1");b.push("toolbar=1");b.push("resizable=1");return window.open(c,d||SPS.uniqid(),b.join(","),false)};SPS.popup=function(j,f,d,g){f=f||300;d=d||200;g=g||{};g.canResize=g.canResize||false;g.canScroll=g.canScroll||false;g.name=g.name||"sps_popup";g.center=g.center||false;var c=[];c.push("chanellmode=0");c.push("directories=0");c.push("fullscreen=0");c.push("location=0");c.push("menubar=0");c.push("scrollbars="+(g.canScroll?"1":"0"));c.push("status=0");c.push("toolbar=0");c.push("resizable="+(g.canResize?"1":"0"));c.push("width="+f);c.push("height="+d);var h=[window.screen.availWidth,window.screen.availHeight];var b=[parseInt((h[0]-f)/2),parseInt((h[1]-d)/2)];c.push("left="+b[0]);c.push("top="+b[1]);return window.open(j,g.name,c.join(","),false)};SPS.popup.image=function(d,b,a,c){if(typeof d=="object"){d=d.getAttribute("src")}b=b||30;a=a||30;return SPS.popup("/html/popup.htm?img="+encodeURIComponent(d),b,a,{canResize:true,name:"image_pop"})};SPS.popup.mini=function(d){var b=$Agent().navigator();var c=450;var a=570;if(b.ie){c+=5}else{if(b.firefox||b.safari){a+=20}}return SPS.popup(d.href,c,a,{canResize:false,canScroll:false,name:"mini_pop",center:true})};SPS.popup.stroke=function(a){return SPS.popup(a.href,350,360,{canResize:false,canScroll:false,name:"stroke_pop",center:true})};SPS.hideOne={_beforeEl:null,hide:function(b,a){var c=null;if(a){c=SPS.getParentByClassName(b,a)}else{c=$Element(b)}if(!c){return}this.show();c.hide();this._beforeEl=c},show:function(){if(this._beforeEl){this._beforeEl.show()}this._beforeEl=null}};SPS.showOne={_beforeEl:null,show:function(b,a){var c=null;if(a){c=SPS.getParentByClassName(b,a)}else{c=$Element(b)}if(!c){return}this.hide();c.show();this._beforeEl=c},hide:function(){if(this._beforeEl){this._beforeEl.hide()}this._beforeEl=null}};SPS.data={setValue:function(a,c,d,b){$H(d).forEach(function(j,h){var g=$$(a+h,c)[0];var f=g.tagName.toUpperCase();if(f=="INPUT"||f=="TEXTAREA"||f=="SELECT"){g.value=j}else{g.innerHTML=b?j:new String(j).toHTML()}})},getValue:function(a,f,b,c){var d={};$A(b).forEach(function(j){var h=$$(a+j,f)[0];var g=h.tagName.toUpperCase();if(g=="INPUT"||g=="TEXTAREA"||g=="SELECT"){d[j]=SPS.getFormValue(h)}else{d[j]=c?(h.innerText||h.textContent):h.innerHTML}});return d}};SPS.layer={oLayer:null,oBlind:null,eBlind:null,bPoped:false,bCenter:false,orgPopup:null,orgZIndex:null,createBlind:function(){if(this.oBlind){return}var a=$Agent().navigator();var b=a.ie&&a.version<6;var c=a.ie&&a.version<7;var d=a.firefox;if(b){this.oBlind=document.createElement('<table border="0" cellpadding="0" cellspacing="0"></table>');this.oBlind.insertRow(0).insertCell(0).innerHTML="&nbsp;"}else{this.oBlind=$("<div>")}this.eBlind=$Element(this.oBlind);document.body.insertBefore(this.oBlind,document.body.firstChild);this.eBlind.css({position:"fixed",background:"#000",left:(b?0:-0)+"px",top:(b?0:-0)+"px",width:"100%",height:"100%",display:"none",zIndex:999});if(c||d){this.eBlind.css("position","absolute");if(b){$Fn(this.fitBlindSize).owner(this).attach(window,"scroll")}$Fn(this.fitBlindSize).owner(this).attach(window,"resize")}$Fn(this.moveToCenter).owner(this).attach(window,"scroll");$Fn(this.moveToCenter).owner(this).attach(window,"resize");this.eBlind.opacity(0.3)},fitBlindSize:function(){if(!this.bPoped){return}var b=$Agent().navigator();var d=b.ie&&b.version<6;var f=b.ie&&b.version<7;var g=this.getClientSize();if(d){var a=document.body;this.eBlind.css({width:g[0]+"px",height:g[1]+"px",left:a.scrollLeft+"px",top:a.scrollTop+"px"})}else{this.eBlind.css({width:"0px",height:"0px"});var c=this;var a=document.documentElement||document;setTimeout(function(){var j=[a.scrollWidth,a.scrollHeight];var h=[Math.max(j[0],g[0]),Math.max(j[1],g[1])];c.eBlind.css({width:h[0]+"px",height:h[1]+"px"})},1)}},getClientSize:function(){var b=$Agent().navigator();var c=b.ie&&b.version<6;var a=document.documentElement||document;if(c){a=document.body}return[a.clientWidth,a.clientHeight]},moveToCenter:function(){if(!this.bCenter){return}var c=this.getClientSize();var d=[this.orgPopup.width(),this.orgPopup.height()];var b=[parseInt((c[0]-d[0])/2),parseInt((c[1]-d[1])/2)];var a=document.documentElement||document;this.orgPopup.css({left:b[0]+a.scrollLeft+"px",top:b[1]+a.scrollTop+"px"})},pop:function(a){this.createBlind();this.bPoped=true;this.fitBlindSize();if(this.orgPopup){this.orgPopup.css("zIndex",this.orgZIndex)}this.orgPopup=$Element(a);this.orgZIndex=this.orgPopup.css("zIndex");var b=this.orgPopup.css("position");if(b!="absolute"&&b!="relative"){this.orgPopup.css("position","relative")}this.orgPopup.css("zIndex",1000)},unpop:function(){this.bPoped=false;if(this.orgPopup){if(this.orgZIndex!==null){this.orgPopup.css("zIndex",this.orgZIndex)}this.orgPopup=null;this.orgZIndex=null}},show:function(d,c,b){var a=this.oLayer=d;var h=$Element(a);h.show();this.pop(a);if(!b){this.eBlind.show()}var g=h.css("position");var f=$Agent().navigator();if(f.ie&&f.version<7){h.css("position","static");h.css("position",g)}if(g=="absolute"){this.bCenter=c;this.moveToCenter()}},hide:function(a){if(!this.oLayer){return}this.bCenter=null;this.unpop();this.eBlind.hide();$Element(this.oLayer).hide();this.oLayer=null;if(a){SPS.hideOne.show()}}};SPS.fontSize=$Class({_o:null,_size:0,_dragging:false,$init:function(d){var b=$(d);var a=$$(".txtsize_ctr a",b);var c=this._o={smaller:a[0],bigger:a[1],track:$$(".txtsize_slide",b)[0],grap:$$(".move",b)[0]};$Fn(function(){c.panels=$$(".font_reslzable");this._setSize(1);this._bindEvents()}).owner(this).attach(window,"load")},_setSize:function(a){var b=this._o;this._size=a;if(this._size>2){this._size=2}if(this._size<0){this._size=0}this._applySize()},_applySize:function(){var c=this._o;var b=this._size*15;var a=this._size*3+12;$Element(c.grap).css({left:b+"px",display:"block"});$A(c.panels).forEach(function(d){d.style.fontSize=a+"px"})},_handlerDrag:function(a){var d=this._o;if(!this._dragging){return}var b=$Element(d.track).offset();var c=a.pos().pageX-b.left;this._setSize(parseInt((c+6)/16))},_bindEvents:function(){var a=this._o;$Fn(function(b){this._setSize(this._size-1);b.stop()}).owner(this).attach(a.smaller,"click");$Fn(function(b){this._setSize(this._size+1);b.stop()}).owner(this).attach(a.bigger,"click");$Fn(function(b){this._dragging=true;this._handlerDrag(b);b.stop()}).owner(this).attach(a.track,"mousedown");$Fn(function(b){b.stop()}).owner(this).attach(a.track,"dragstart");$Fn(function(b){b.stop()}).owner(this).attach(a.track,"selectstart");$Fn(this._handlerDrag).owner(this).attach(document,"mousemove");$Fn(function(b){this._dragging=false}).owner(this).attach(document,"mouseup")}});SPS.selection={_holded:false,block:function(){if(this._holded){return}document.body.onselectstart=function(){return false}},allow:function(){if(this._holded){return}document.body.onselectstart=null},hold:function(a){this._holded=a}};SPS.Include=function(){var a=this;this._uniqID=SPS.uniqid();this._requests={};if(!SPS.Include._instance){SPS.Include._instance={}}SPS.Include._instance[this._uniqID]=this;this._gcTimer=setInterval(function(){a._gc()},this._gcInterval)};SPS.Include.prototype={_uniqID:null,_requests:null,_trID:null,_callback:null,_gcTimer:null,_gcInterval:30000,_head:null,request:function(c,a){var d=SPS.uniqid();var b="SPS.Include._response("+this._uniqID+", "+d+")";if(c.indexOf("?")==-1){c+="?"}c+="&callback="+encodeURIComponent(b);this._trID=d;this._callback=a;if(SPS.debugMode){window.console.debug(c)}this._createScript(d,c)},abort:function(){this._trID=null},_createScript:function(nTrID,sUrl){if(!this._head){this._head=document.getElementsByTagName("head")[0]}var oScript=document.createElement("script");var nTime=SPS.uniqid();with(oScript){src=sUrl;id=nTime;language="javascript";type="text/javascript"}this._requests[nTrID]=oScript;this._head.appendChild(oScript);return oScript},_destroyScript:function(d,a,f){var c=this._requests[d];if(a){f=f||new Date().getTime();if(parseInt(c.id)>f-a){return}}var b=this;setTimeout(function(){b._head.removeChild(c)},10);delete this._requests[d]},_gc:function(){var b=new Date().getTime();for(var a in this._requests){this._destroyScript(a,this._gcInterval,b)}}};SPS.Include._response=function(f,c){var b=function(){};var d=this._instance[f];if(!d){return b}d._destroyScript(c);if(d._trID!=c){return b}var a=d._callback;return function(g){return a(g)}};SPS.findDo=function(f,c,j,d){var b=$Event(c);var a=b.element;var h=SPS.getParentByClassName(a,"tts_button");if(h){return}if(typeof j=="string"){j=SPS.findDo[j]}var g=j(f);if(g){return g[d]()}};SPS.findDo.translation=function(a){var b=$Element(a.parentNode).findElement("nextSibling",function(c){return c.tagName.toUpperCase()=="TR"});if(b){b.toggle()}};SPS.autohide=$Class({_panel:null,_areas:null,_options:null,$init:function(c,a,b){this._panel=c;this._areas=a||[];this._options=b||{};this._bindEvents()},_bindEvents:function(){$Fn(function(a){var c=a.element;if(this._panel&&a.of(this._panel)){return}for(var b=0,d;d=this._areas[b];b++){if(d&&a.of(d)){return}}if(this._panel){$Element(this._panel).hide()}var f=this._areas[0].parentNode;if(f.className.indexOf("handwrite")!=-1){f.className="handwrite"}}).owner(this).attach(document,"click")},toggle:function(){var a=$Element(this._panel).visible();this[a?"hide":"show"]();var b=this._areas[0].parentNode;if(b.className!="inputbox_style"){if(a){b.className="handwrite"}else{b.className="handwrite open"}}},show:function(){$Element(this._panel).show();if(typeof this._options.onShow=="function"){this._options.onShow()}},hide:function(){$Element(this._panel).hide();if(typeof this._options.onHide=="function"){this._options.onHide()}}});SPS.debug=function(a){if(!SPS.debugMode){return}if(!this._wnd){this._wnd=$Element($("<ul>"));this._wnd.css({position:"absolute",right:"10px",bottom:"10px",border:"5px solid #f00",padding:"10px",background:"#fff"});document.body.insertBefore(this._wnd.$value(),document.body.firstChild)}var b=$("<li>");b.innerHTML=a;this._wnd.append(b)};SPS.sortTable=function(j){var m=$Element(j).findElement("parentNode",function(v){var u=v.tagName.toUpperCase();return(u=="TD"||u=="TH")},true);var n=m.findElement("parentNode",function(t){return t.tagName.toUpperCase()=="TABLE"});var p=n.$value();var o=m.$value();var d=o.cellIndex;var h=$$(".sortable",p);var b=[];var a=$$("img.sorting",o)[0];var q=a.src;var f=q.indexOf("btn_usorting.gif")==-1;var l=function(u,w){var u=new String(u);for(var v=0,t=u.length;v<w-t;v++){u="0"+u}return u};$A(h).forEach(function(w){var y=w.cells[d];var u=y.className.match(/\bsortkey\((\w+)\)(\b|$)/);if(u&&u[1]){var x=u[1].split("_");var u="";for(var v=0,t=x.length;v<t;v++){u+=l(x[v],15)+"_"}}else{u=(y.innerText||y.textContent).trim()}b.push({key:u,object:w})});if(f){q=q.replace("btn_sorting.gif","btn_usorting.gif")}else{q=q.replace("btn_usorting.gif","btn_sorting.gif")}a.src=q;$A($$("img.sorting",p)).forEach(function(t){if(t==a){return}if(f){t.src=t.src.replace("btn_sorting.gif","btn_usorting.gif")}else{t.src=t.src.replace("btn_usorting.gif","btn_sorting.gif")}});var k=function(u,t){return u.key<t.key?-1:(u.key==t.key?0:1)};var c=function(u,t){return u.key<t.key?1:(u.key==t.key?0:-1)};b.sort(!f?c:k);for(var g=0;oData=b[g];g++){var s=oData.object.cloneNode(true);var r=h[g];r.parentNode.insertBefore(s,r);r.parentNode.removeChild(r)}};SPS.switchMemorized=function(oEl){var sTrID=SPS.uniqid();SPS.switchMemorized.trID=sTrID;var oAjax=$Ajax(oEl.href,{onload:function(oRes){var oData=null;try{eval("oData = "+oRes.text()+";")}catch(e){}if(!oData){return}var oEl;location.reload();return;oEl=$("SM"+oData.trID);if(oEl){oEl.innerHTML=oData.text}if(oData.trID!=SPS.switchMemorized.trID){return}var eAnchor;oEl=$$(".mem_percentage")[0];oEl.innerHTML=oData.percentage+"%";oEl=$$(".mem_memorized")[0];if(oEl){if(oEl){oEl.innerHTML=oData.memorizedCount}eAnchor=$Element(oEl).findElement("parentNode",function(o){return o.tagName.toUpperCase()=="A"});if(eAnchor){var bNoLink=oData.memorizedCount=="0";var oAnchor=eAnchor.$value();eAnchor[bNoLink?"addClass":"removeClass"]("nolink");if(bNoLink){oAnchor.setAttribute("_href",oAnchor.href);oAnchor.removeAttribute("href")}else{oAnchor.href=oAnchor.getAttribute("_href")}}}oEl=$$(".mem_notmemorized")[0];if(oEl){if(oEl){oEl.innerHTML=oData.notMemorizedCount}eAnchor=$Element(oEl).findElement("parentNode",function(o){return o.tagName.toUpperCase()=="A"});if(eAnchor){var bNoLink=oData.notMemorizedCount=="0";var oAnchor=eAnchor.$value();eAnchor[bNoLink?"addClass":"removeClass"]("nolink");if(bNoLink){oAnchor.setAttribute("_href",oAnchor.href);oAnchor.removeAttribute("href")}else{oAnchor.href=oAnchor.getAttribute("_href")}}}}});oEl.id="SM"+sTrID;oAjax.request({trID:sTrID})};SPS.DomLoaded={_callbacks:[],_loaded:false,_onLoaded:function(){var b=SPS.DomLoaded;for(var c=0,a;a=b._callbacks[c];c++){a()}},_monitorInterval:function(){var a=SPS.DomLoaded;if(a._loaded){return}if(document.readyState=="loaded"||document.readyState=="complete"){a._onLoaded();a._loaded=true}else{setTimeout(a._monitorInterval,100)}},addCallback:function(a){this._callbacks.push(a)},monitor:function(){if(document.addEventListener&&!$Agent().navigator().safari){document.addEventListener("DOMContentLoaded",SPS.DomLoaded._onLoaded,false)}else{setTimeout(this._monitorInterval,100)}}};SPS.DomLoaded.monitor();SPS.banWords="";SPS.checkBanWords=$Fn(function(b){var d=b.element;var a=(d.tagName||"").toUpperCase();if(a!="INPUT"&&a!="TEXTAREA"){return}if($Element(d).hasClass("skip_banword")){return}var h=d.value;var c=false;for(var f=0;f<SPS.banWords.length;f++){var g=Base64.decode(SPS.banWords[f]);if(g==""||h.indexOf(g)==-1){continue}c=true;h=h.replace(new RegExp(g,"gi"),"")}if(c){d.value=h;alert(SPS.text("BANWORDS"))}});SPS.checkBanWords.attach(document,"keyup");SPS.checkBanWords.attach(document,"blur");SPS.transition=function(g,c,f,a,b,j){var h=0;var l=1/c;var k=[parseInt(g.style.left),parseInt(g.style.top)];var d=function(){h+=l;var n=(function(o){var o=Math.sin(o*(Math.PI/2));return o*o})(h);var m=[(a-k[0])*n+k[0],(b-k[1])*n+k[1]];g.style.left=m[0]+"px";g.style.top=m[1]+"px";c--;if(c>0){setTimeout(d,f)}else{if(j.onEnd){j.onEnd()}}};d()};eval(function(h,b,j,d,g,f){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(j--){f[g(j)]=d[j]||g(j)}d=[function(a){return f[a]}];g=function(){return"\\w+"};j=1}while(j--){if(d[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),d[j])}}return h}("7 22={3b:8(10){7 m=X 10.1k;q(7 x 24 10)m[x]=10[x];9 m},1t:8(10,1s){7 m=10;q(7 x 24 1s)m[x]=1s[x];9 m}};7 1P=8(){7 1k=8(){a(d.2j)d.2j.2T(d,O)};a(O[0])1k.1A=O[0];9 1k};1P.1t=8(26){7 m=1P();m.1A=X 26;q(7 i=1;i<O.1g;i++){a(O[i])22.1t(m.1A,O[i])}9 m};7 u={1W:/^(2z|p|3a|38|36|33|2Z|2Y|2X|2W|2S|h[1-6]|2N|2K|2I|2G)$/i,28:8(){[].1z(O).1n(8(v){v=$(v);a(!u.1x(v))v.1h.1w=u.1W.20(v.1v)?'2B':'2A'})},1V:8(){[].1z(O).1n(8(v){$(v).1h.1w='1U'})},2y:8(){[].1z(O).1n(8(v){u[u.1x(v)?'1V':'28'](v)})},1x:8(5){9(d.1S($(5),'1w')!='1U')},2v:8(2s,1d){q(;1d;1d=1d.1b)a(1d==2s)9 J;9 11},2p:8(5){a(5.2o){7 p=d.2p(5.2o);9{1L:5.2l+p.1L,1I:5.2k+p.1I}}1F{9{1L:5.2l,1I:5.2k}}},1S:8(5,S){7 1D;2V{a(5.1u&&(1D=5.1u.2R)){S=S.Y(/([A-Z])/g,8(s){9\"-\"+s.1i()});9 1D.2L(5,2c).2J(S)}1F a(5.2a)9 5.2a[S]}2H(e){}9 u.29(5,S)},2F:8(5,27){$H(27).1n(8(25,23){5.1h[23]=25})},1y:8(5,B){9(X 21(\"\\\\b\"+B+\"\\\\b\")).20(5.B)},2D:8(5,B){a(!d.1y(5,B))$(5).B=($(5).B+' '+B).Y(/^\\s+/,'')},2C:8(5,B){q(7 i=1,B;B=O[i];i++)$(5).B=$(5).B.Y(X 21('\\\\b'+B+'(\\\\s+|$)','g'),'')},29:8(5,S){9 5.1h[S]},14:8(5){q(5=5.14;5&&5.13!=1;5=5.19);9 5},1l:8(5){q(5=5.1l;5&&5.13!=1;5=5.1l);9 5},19:8(5){q(5=5.19;5&&5.13!=1;5=5.19);9 5},1o:{},M:{1Y:/([^>|\\+|\\s]+)\\s*([>|\\+]?)\\s*/g,1X:/\\s*([>|\\+]?)\\s*([^>|\\+|\\s]+)/g,y:/^([\\w-]+)/,D:/#([\\w-]+)/g,12:/\\.([\\w-]+)/g,R:/:([\\w-]+(\\(.*\\))?)/g,1Z:/([\\w-]+)(\\((.*)\\))?/,r:/\\[([^\\]]+)]/g,1T:/^(\\[)([\\w-]+)([!|\\^|\\$|\\*]?=)(.*)(\\])$/},1r:$2x().2w(),1q:8(5,1R){a(d.1r.2u&&d.1r.2t<6&&1R==\"*\")9 5.1Q;9 5.39(1R)},1O:8(o){2r(o&&(o=o.1l)&&o.13!=1);9 o},17:8(o){2r(o&&(o=o.19)&&o.13!=1);9 o},37:8(o){7 C=1;q(7 k=o.1b.14;k&&k!=o;k=d.17(k),C++);9 C},2q:{35:8(o){9 u.1O(o)?11:J},34:8(o){9 u.17(o)?11:J},32:8(o){9 o.14?11:J},31:8(o,2n){9 o.30.1J(2n)>-1}},1H:8(t,U){7 c={};7 1G={},E=['J'];7 L,I='';7 D,y,1E,1p,1C;a(D=t.Q(d.M.D)){a(D[1])9 11;c.D=D[0].1f(1)}y=t.Q(d.M.y);c.y=(y&&y[1])||'*';a(1E=t.Q(d.M.12)){q(7 12,i=0;12=1E[i];i++)E.l('u.1y(o,\"'+12.1f(1)+'\")')}a(1p=t.Q(d.M.R)){q(7 R,i=0;R=1p[i];i++){R=R.1f(1).Q(d.M.1Z);E.l('u.2q.'+R[1].Y('-','2U')+'(o, \"'+R[3]+'\")')}}a(1C=t.Q(d.M.r)){q(7 r,i=0;r=1C[i];i++){r=r.Q(d.M.1T);L='2Q'+r[2];a(!1G[r[2]]){I+='7 '+L+' = o.2P(\"'+r[2]+'\") || \"\";\\n';1G[r[2]]=J}1B(r[3]){G'=':E.l(L+' == \"'+r[4]+'\"');F;G'!=':E.l(L+' != \"'+r[4]+'\"');F;G'^=':E.l(L+'.1J(\"'+r[4]+'\") == 0');F;G'$=':E.l(L+'.1f('+L+'.1g - \"'+r[4]+'\".1g) == \"'+r[4]+'\"');F;G'*=':E.l(L+'.1J(\"'+r[4]+'\") > -1');F;2O:E.l(L+' != 2c')}}}a(U){a(c.y&&c.y!='*')E.l('(f ? o.1v.1i() == \"'+c.y.1i()+'\" : o.1v == \"'+c.y+'\")');a(c.D)E.l('o.D == \"'+c.D+'\"')}c.I=X 2e('o','f',I+'\\2M ('+E.2d(\" && \")+')');9 c},16:8(z,o,15,C,f){a(C==-1)9 J;7 t=15[C];1B(t.T){G'':q(o=o.1b;o!=z;o=o.1b)a(t.c.I(o,f))a(d.16(z,o,15,C-1,f))9 J;F;G'>':o=o.1b;a(o&&o!=z&&t.c.I(o,f))a(d.16(z,o,15,C-1,f))9 J;F;G'+':o=d.1O(o);a(o&&t.c.I(o,f))a(d.16(z,o,15,C-1,f))9 J;F}9 11},2b:8(N,2f,2g){a(!d.1o[N]){7 K={U:[],1e:[]};7 1K=d;2f.Y(d.M.1Y,8(1Q,t,T){K.U.l({'T':T,'c':1K.1H(t,J)})});7 i=0,18;7 1j=[];2g.Y(d.M.1X,8(1Q,T,t){K.1e.l({'T':T,'c':1K.1H(t)});1B(T){G'>':18=\"2h\";F;G'':18=\"2i\";F;G'+':18=\"2m\";F}1j.l('V = u.'+18+'(V, 1e['+(i++)+'].c, f);')});1j.l('9 V;');K.c=X 2e('V','1e','f',1j.2d('\\n'));d.1o[N]=K}9 d.1o[N]},2h:8(W,c,f){7 P=[];7 k;q(7 i=0,m;m=W[i];i++){q(k=m.14;k;k=d.17(k))a(c.I(k,f))P.l(k)}9 P},2i:8(W,c,f){7 P=[];7 1M;q(7 i=0,m;m=W[i];i++){1M=d.1q(m,c.y);q(7 j=0,k;k=1M[j];j++)a(c.I(k,f))P.l(k)}9 P},2m:8(W,c,f){7 P=[];7 k;q(7 i=0,m;m=W[i];i++){a(k=d.17(m))a(c.I(k,f))P.l(k)}9 P},N:8(N,z){z=z||1a;7 1N=N.Q(/(.*#[\\w]+[^>|\\+|\\s]*)([>|\\+|\\s].*)/)||[];7 K=u.2b(N,1N[1]||N,1N[2]||'');7 C=K.U.1g-1;7 c=K.U[C].c;7 1m=[];7 V=[];7 f=(z==1a||(z.1u||z.1a)==1a);a(c.D)1m.l(1a.2E(c.D));1F 1m=u.1q(z,f?c.y.1i():c.y);q(7 i=0,1c;1c=1m[i];i++){a(c.I(1c,f))a(u.16(z,1c,K.U,C-1,f))V.l(1c)}9 K.c(V,K.1e,f)}};$$=u.N;",62,198,"|||||oEl||var|function|return|if||filter|this||casei|||||child|push|obj||||for|attr||selector|Element||||tag|root||className|idx|id|cond|break|case||func|true|cache|varname|_regexp|query|arguments|ret|match|pseudo|name|type|backward|result|objs|new|replace||source|false|cls|nodeType|firstChild|selectors|_traceNode|_nextNode|method|nextSibling|document|parentNode|sand|oChild|forward|substr|length|style|toLowerCase|code|constructor|previousSibling|sands|each|_cache|pseudoes|_getElementsByTagName|_agent|append|extend|ownerDocument|tagName|display|visible|hasClass|load|prototype|switch|attres|view|classes|else|declare|_filter|left|indexOf|self|top|childs|parts|_previousNode|Class|all|sTagName|getCSS|attrparse|none|hide|_blockTags|fparse|bparse|pseudoparse|test|RegExp|JINDO|key|in|val|superClass|css|show|getInlineCSS|currentStyle|_compile|null|join|Function|bquery|fquery|_getChildren|_getOffspring|__init|offsetLeft|offsetTop|_getBrother|arg|offsetParent|realPos|_pseudo|while|oParent|version|ie|has|navigator|Agent|toggle|div|inline|block|removeClass|addClass|getElementById|setCSS|dd|catch|dt|getPropertyValue|dl|getComputedStyle|nreturn|fieldset|default|getAttribute|v_|defaultView|br|apply|_|try|center|blockquote|hr|xmp|innerHTML|contains|empty|pre|last_child|first_child|li|_nodeIndex|ol|getElementsByTagName|ul|clone".split("|"),0,{}));(function(a){SPS[a]=$Class({_o:null,$init:function(c){var b=$(c);this._o={miniBtn:$$(".nciku_mini_pop",b)[0]};this._bindEvents()},_bindEvents:function(){var b=this._o;if(b.miniBtn){$Fn(function(c){if(!b.miniBtn){return}SPS.popup.mini(b.miniBtn);c.stop()}).attach(b.miniBtn,"click")}}})})("cm_hmenu03");(function(a){SPS[a]=$Class({_instance:null,_o:null,_layers:null,_befChar:null,_hwData:null,_curPage:1,_totalPage:0,_axis:null,_drawingData:null,_ajax:null,_ffTimer:null,_autohideAC:null,_autohideHW:null,_orgTitle:null,_bLockedList:false,_sDefaultQuery:"",$init:function(j,f){var c=this;this._instance="SPS.__inst."+j;var d=$(j);var h=this._o={wrap:d,bChanged:false,form:$$("form",d)[0],inputbox:$$("input[type=text]",d)[0],handWriteBtn:$$(".hand",d)[0],handWrite:$$(".handwrite_layer",d)[0],close:$$(".txtbtn01",d)[0],areaNoList:$$(".area_nolist",d)[0],chars:$$(".area_list",d)[0],overlayer:$$(".overlayer",d)[0],pinyin:$$(".pinyin",d)[0],zoom:$$(".zoom td",d)[0],paging:$$(".paging",d)[0],suggestionBtn:$$(".down",d)[0],suggestion:$$(".auto_complete_layer",d)[0],listPinyin:$$(".lst_pinyin",d)[0],listEnglish:$$(".lst_english",d)[0],listPrefix:$$(".lst_prefix",d)[0],listPostfix:$$(".lst_postfix",d)[0],areaPinyin:$$(".pinyin_area",d)[0],areaEnglish:$$(".english_area",d)[0],areaPrefix:$$(".prefix_area",d)[0],areaPostfix:$$(".postfix_area",d)[0],seperator:$$(".dot",d)[0],viewOthers:$$(".viewother",d),enableLink:$$(".enable_link",d)[0],disableLink:$$(".disable_link",d)[0],searchButton:$$(".inputbox a",d)[0]};if(h.chars){h.charsTable=$$("table",h.chars)[0]}this._showHandwriteStep2(true);if(h.paging){h.curPage=$$(".curpage",h.paging)[0];h.totalPage=$$(".totalpage",h.paging)[0];h.prev=$$(".prev",h.paging)[0];h.next=$$(".next",h.paging)[0]}this._orgTitle=document.title;this._ffTimer=new SPS.timer("interval");this._ajax=new SPS.Include();var c=this;if(h.handWriteBtn){this._autohideHW=new SPS.autohide(h.handWrite,[h.handWriteBtn],{onShow:function(){c._setHandwriteData([]);c._showHandwritePage(1);c._showHandwriteStep2(true);try{findFlashObj("hanja_encoder_new").clearData()}catch(k){}}});h.handWriteBtn.onclick=function(){c._autohideHW.toggle();return false}}if(h.suggestionBtn){this._autohideAC=new SPS.autohide(h.suggestion,[h.suggestionBtn,h.inputbox],{onHide:function(){}});h.suggestionBtn.onclick=function(){var k=$Element(h.suggestion);k.addClass("message");c._requestedValue=null;c._autohideAC.toggle();return false}}try{this._hideOverLayer()}catch(g){}this._bindEvents();this._setInputBoxForSafari();$Fn(function(){this._setInputBoxForSafari()}).owner(this).attach(window,"load");if(!window.hanja_encoder_showHanja){window.hanja_encoder_showHanja=function(k){c._requestHandwrite(k)}}if(!window.hanja_encoder_clearHanja){window.hanja_encoder_clearHanja=function(k){c._requestHandwrite("=R 0")}}this._setEnable(this._getEnable(),true);var b=$$(".learn",h.wrap)[0]?true:false;if(SPS.learningLang=="zh"&&b&&this._autohideHW){this._autohideHW.show()}if(($Element(h.inputbox).hasClass("needfocus")&&c._getInputValue().length>0)||$Element(h.inputbox).hasClass("mustfocus")){c._bLockedList=true;h.inputbox.focus();setTimeout(function(){h.inputbox.value=h.inputbox.defaultValue;h.inputbox.select();c._bLockedList=true},500);document.ondblclick=function(){h.inputbox.select()};h.inputbox.onmousedown=function(){if(!h.bChanged){h.bChanged=true;h.inputbox.style.color=""}h.suggestion.style.display="none"};c._sDefaultQuery=c._getInputValue().replace("?","")}},_getInputValue:function(){return this._o.inputbox.value.replace(/\u3000/g,"")},_setInputBoxForSafari:function(){var c=this._o;var b=SPS.borderNoneSafari(c.inputbox);if(b){b.css("margin","6px 0 0 6px")}},_showHandwriteStep2:function(b){var c=this._o;if(c.chars){$Element(c.chars)[b?"hide":"show"]()}if(c.areaNoList){$Element(c.areaNoList)[b?"show":"hide"]()}},_aItemList:null,_eBefItem:null,_curIndex:null,_makeSuggestionList:function(h,g){var f=this._o;var c=this;var d="";var b=this._getInputValue().toHTML();$A(h).forEach(function(k){if(--g<0){return}var n=rPrefix_bak=[];for(var l=0,j=b.length;l<j;l++){n[l]=b.charAt(l);rPrefix_bak[l]=b.charAt(l)}try{n=new RegExp("("+n.join("\\s*").replace("[","\\[").replace("]","\\]")+")","i")}catch(m){return}k=k.replace(n,'<span class="tc_point02">$1</span>');d+='<li><a href="#" onmouseover="'+c._instance+'._selectSuggestItem(this);" onclick="'+c._instance+'._inputSuggestionItem(this); return false;">'+k+"</a></li>\n"});return d},_setEnable:function(b,c){var f=this._o;var d=b?["addClass","removeClass"]:["removeClass","addClass"];if(!f.enableLink||!f.disableLink){return}$Element(f.enableLink)[d[0]]("tc_sub");$Element(f.disableLink)[d[1]]("tc_sub");SPS.setCookie("_nciku_ac_disable",!b);$Element(f.suggestion).hide();$Element(f.suggestion)[d[1]]("ac_off");if(!c){f.inputbox.focus();f.inputbox.select()}if(!b){this._suggestionData=null}},_getEnable:function(){return(SPS.getCookie("_nciku_ac_disable")!="true")},_viewPinyinOnly:function(){var b=this._o;var c=this._suggestionData;this._setSuggestionHTML([c.py_list]);b.inputbox.focus()},_viewEnglishOnly:function(){var b=this._o;var c=this._suggestionData;this._setSuggestionHTML([null,c.en_list]);b.inputbox.focus()},_viewAll:function(j){var g=this._o;var h=this._suggestionData;var d=$A(h.pr_list);var f=[];for(var c=0,b;b=h.su_list[c];c++){if(d.indexOf(b)==-1){f.push(b)}}this._setSuggestionHTML([h.py_list,h.en_list,h.pr_list,f],j);g.inputbox.focus()},_getItems:function(){var b=this._o;this._aItemList=$$("div ul a",b.suggestion);this._eBefItem=null;this._curIndex=null},_setSuggestionData:function(g){if(SPS.debugMode){window.console.debug("AC response : "+g.q+" "+"-".repeat(50))}if(!this._getEnable()){return}var c=this;var d=this._o;var f=$Element(d.suggestion);f.removeClass("message");var b=this._getInputValue();if(b.length==0){$Element(d.suggestion).hide();return}this._suggestionData=g;if(g.q!=b.replace(/\s/g,"")){return}this._viewAll(true)},_setSuggestionHTML:function(m,f){var b=this._o;var c=$Element(b.suggestion);var k={pinyin:m[0]||[],english:m[1]||[],prefix:m[2]||[],postfix:m[3]||[]};if(SPS.learningLang=="en"){k.pinyin=[]}var d={"true":"addClass","false":"removeClass"};var h={pinyin:k.pinyin.length>0,english:k.english.length>0,prefix:k.prefix.length>0,postfix:k.postfix.length>0};var j=h.pinyin||h.english||h.prefix||h.postfix;var g=1==((h.pinyin?1:0)+(h.english?1:0)+(h.prefix?1:0)+(h.postfix?1:0));var l=g?10:5;b.listPinyin.innerHTML=this._makeSuggestionList(k.pinyin,l);b.listEnglish.innerHTML=this._makeSuggestionList(k.english,l);b.listPrefix.innerHTML=this._makeSuggestionList(k.prefix,l);b.listPostfix.innerHTML=this._makeSuggestionList(k.postfix,l);$Element(b.suggestion)[d[h.pinyin]]("pinyin");$Element(b.suggestion)[d[h.english]]("english");$Element(b.suggestion)[d[h.prefix]]("prefix");$Element(b.suggestion)[d[h.postfix]]("postfix");$Element(b.suggestion)[d[g]]("show_one");if(f){$Element(b.suggestion)[d[g]]("only_one")}if(j){if(!this._bLockedList){c.show()}}else{c.hide();c.addClass("message")}this._getItems()},_deEscapeSuggestItemValue:function(b){b=b.replace("&amp;","&");b=b.replace("&lt;","<");b=b.replace("&gt;",">");b=b.replace("&apos;","'");b=b.replace("&quot;",'"');return b},_selectSuggestItem:function(d,g){if(!this._aItemList||!this._aItemList.length){return}var c=this._aItemList.length;if(typeof d!="number"){d=$A(this._aItemList).indexOf(d)}if(d<0){d=c+d}d=d%c;var b=this._aItemList[d];if(this._eBefItem){this._eBefItem.removeClass("selected")}var f=this._eBefItem=$Element(b);f.addClass("selected");this._curIndex=d;if(g){this._o.inputbox.value=this._deEscapeSuggestItemValue(b.innerHTML.stripTags())}},_onKeyUp:function(b){if(b.keyCode==38||b.keyCode==40){return}},_onKeyDown:function(c){var b=this;if(c.keyCode==38||c.keyCode==40){var d=c.keyCode-39;this._selectSuggestItem(this._curIndex===null?0:this._curIndex+d,true);this._requestedValue=this._getInputValue();$Event(c).stop();return}else{if(c.keyCode==13){this._requestSearch();$Event(c).stop();return}}setTimeout(function(){b._requestSuggestion(b._getInputValue())},1)},_inputSuggestionItem:function(b){this._selectSuggestItem(b,true);this._requestSearch()},_requestedValue:null,_requestSuggestion:function(h){var b=this;var g=this._o;if(!this._getEnable()){return}if(!g.listPinyin){return}var c="S"+parseInt(Math.random()*100000000);if(h==this._requestedValue){return}this._requestedValue=h;if(h.length){var f=SPS.autoCompleteURL+"/autocompl_ngd?m=s&q="+encodeURIComponent(h);if(SPS.debugMode){window.console.debug("AC request : "+h)}this._ajax.request(f,function(j){b._setSuggestionData(j)})}else{var d=this._suggestionData?true:false;this._ajax.abort();this._suggestionData=null;if(d){$Element(g.suggestion).hide()}}},_trID_hw:null,_requestHandwrite:function(d){var b=this;if(d!="=R 0"){this._drawingData=d}document.title=this._orgTitle;var c=$Ajax("/proxy.nhn",{onload:function(g){var f=[];var h=g.text().split(";");if(h[0]!=b._trID_hw){return}$A(h).forEach(function(k,j){if(j&&k.indexOf(",")>-1){f.push(k.split(","))}});b._showHandwriteStep2(false);b._setHandwriteData(f);b._showHandwritePage(1)}});this._trID_hw=SPS.uniqid();c.request({ReqNum:this._trID_hw,InputStr:d,auto:1,charset:3})},_requestSearch:function(){var j=this._o;var k=this._getInputValue();var f=$Element(j.inputbox);if(f.hasClass("regard_null")){k=""}if(!f.hasClass("skip_nullcheck")&&k.length==0){alert(SPS.text("FILL_SEARCHQUERY"));j.inputbox.focus();return}var c=j.searchButton;if(c.href.match("detailpageEn.nhn")){document.location.href=c.href+"/"+encodeURIComponent(k)}else{var h="";var b=document.getElementsByName("search_range");for(var g=0;g<b.length;g++){var d=b[g];if(d.checked){h=d.value==""?"":"/"+d.value;break}}document.location.href=c.href+h+"/"+encodeURIComponent(k)}},_setHandwriteData:function(b){this._hideOverLayer();this._hwData=b},_getHandwriteData:function(c){var b=null;$A(this._hwData).forEach(function(d){if(d[0]==c){b=d}});return b},_showHandwritePage:function(j){var b=this._o;if(!b.charsTable){return}var k=$$("a",b.charsTable);var c=(j-1)*25;var p=this;$A(k).forEach(function(o){var q=p._hwData[c]&&p._hwData[c][0]?true:false;o.innerHTML=q?p._hwData[c][0]:"";$Element(o).css("cursor",q?"pointer":"default");c++});var h=b.curPage;var g=b.totalPage;var f=$Element(h);var d=$Element(g);var m=this._hwData.length;var l=j;var n=parseInt((m-1)/25)+1;if(n<1){n=1}this._curPage=l;this._totalPage=n;f.text(l+"");d.text(n+"");d[l==n?"addClass":"removeClass"]("tc_point01")},_hideOverLayer:function(){var b=this._o;this._befChar=null;$Element(b.overlayer).hide()},_bindEvents:function(){var b=this;var c=this._o;$Fn(function(){if($Agent().navigator().firefox){b._ffTimer.start(100,function(){b._requestSuggestion(b._getInputValue())})}var d=c.inputbox;if(!$Element(d).hasClass("cleared")){d.value="";$Element(d).addClass("cleared");$Element(d).removeClass("regard_null")}b._requestSuggestion(b._getInputValue())}).attach(c.inputbox,"focus");$Fn(function(){b._bLockedList=false;b._requestSuggestion(b._getInputValue())}).attach(c.inputbox,"click");$Fn(function(){b._bLockedList=false}).attach(c.inputbox,"keydown");$Fn(function(){b._bLockedList=false;b._ffTimer.stop()}).attach(c.inputbox,"blur");$Fn(function(){if(!c.suggestion){return}b._bLockedList=false;var f=$Element(c.suggestion);var d=f.visible()?"hide":"show";if(d=="show"&&!b._suggestionData){f.addClass("message")}f[d]()}).attach(c.inputbox,"mousedown");if(c.close){$Fn(function(d){if(!c.handWrite){return}$Element(c.handWrite).hide();d.stop()}).attach(c.close,"click")}if(c.chars){$Fn(function(p){if(!this._hwData){return}var n=p.pos();var o=$Element(c.chars).offset();var l={col:n.pageX-o.left,row:n.pageY-o.top};l.col=parseInt(l.col/25);l.row=parseInt(l.row/25);this._axis=l;var m=c.charsTable;var j=null;try{j=m.rows[l.row].cells[l.col]}catch(k){}if(!j){this._hideOverLayer()}if(!j||j==this._befChar){return}var h=$Element(j);var f=$Element(c.handWrite);var g=h.text().replace(/(^\s+|\s+$)/g,"");if(!g){this._hideOverLayer();return}this._befChar=j;var d=this._getHandwriteData(g).join("<br />");d=d.replace(/^.<br\s?\/>/,"");c.pinyin.style.display="none";$Element(c.overlayer)[j?"show":"hide"]();if(d){$$(".text",c.pinyin)[0].innerHTML=d;c.zoom.innerHTML=g;var n=h.offset();var o=f.offset();$Element(c.overlayer).css({left:(n.left-o.left-3)+"px",top:(n.top-o.top-c.overlayer.offsetHeight-10)+"px"})}$Element(c.overlayer)[d?"show":"hide"]()}).owner(this).attach(c.chars,"mousemove");$Fn(function(d){if(d.of(c.chars)){return}this._hideOverLayer()}).owner(this).attach(c.chars,"mouseout");$Fn(function(g){var d="/handWriteTrack.gif?drawing="+this._drawingData+"&page="+this._curPage+"&col="+this._axis.col+"&row="+this._axis.row;var l=this._o;var f=this;if(!$Element(l.overlayer).visible()){return}var k=$Element(l.zoom).text();l.inputbox.focus();try{findFlashObj("hanja_encoder_new").clearData()}catch(j){}f._setHandwriteData([]);f._showHandwritePage(1);setTimeout(function(){var m=l.inputbox.defaultValue;if(l.inputbox.value==m&&!l.bChanged){l.inputbox.value=k;l.bChanged=true}else{l.inputbox.value+=k}f._requestSuggestion(f._getInputValue())},10);var h=$Ajax(d,{onload:function(m){}});h.request({tracker:"nciku"});g.stop()}).owner(this).attach(c.chars,"click")}if(c.paging){$Fn(function(d){if(this._curPage>1){this._showHandwritePage(this._curPage-1)}d.stop()}).owner(this).attach(c.prev,"click");$Fn(function(d){if(this._curPage<this._totalPage){this._showHandwritePage(this._curPage+1)}d.stop()}).owner(this).attach(c.next,"click")}}})})("cm_search01");SPS.commonLayer={_o:null,_tts:null,_pinyinTimer:null,_ttsTimer:null,_infoTimer:null,_userTimer:null,_init:function(b){if(this._o){return}var d=this._o={cn_tts:{layer:$$("#layer_tip_cn_tts",b)[0],pinyin:$$(".txt_pinyin",b)[0],chinese:$$(".txt_chinese",b)[0],status:$$("img.cn_status",b)[0],autoplay:$$("#layer_tip_cn_tts input",b)[0],autoplayArea:$$(".autoplay",b)[0]},en_tts:{layer:$$("#layer_tip_en_tts",b)[0],status:$$("img.en_status",b)[0],autoplay:$$("#layer_tip_en_tts input",b)[0]},info:{layer:$$("#layer_tip_wordinfo",b)[0],content:$$(".has",b)[0]},userinfo:{layer:$$("#layer_tip_userinfo",b)[0],links:$$(".userlink",b),theirNciku:$$(".their_nciku",b)[0],myNciku:$$(".my_nciku",b)[0]}};var a=document.body;a.insertBefore(d.cn_tts.layer,a.firstChild);a.insertBefore(d.en_tts.layer,a.firstChild);a.insertBefore(d.info.layer,a.firstChild);a.insertBefore(d.userinfo.layer,a.firstChild);var c={frameSrc:"/html/tts.html",onStateChange:function(g){var f;switch(g){case 0:f="tts_autoplay1_off.gif";break;case 2:f="tts_autoplay1.gif";break;case 3:f="tts_autoplayload1.gif";break}if(f){d.cn_tts.status.src=SPS.dirname(d.cn_tts.status.src)+f;d.en_tts.status.src=SPS.dirname(d.en_tts.status.src)+f.replace("1","2")}}};this._tts=new SPS.tts(c);this._pinyinTimer=new SPS.timer("timeout");this._ttsTimer=new SPS.timer("timeout");this._infoTimer=new SPS.timer("timeout");this._userTimer=new SPS.timer("timeout");$Element(d.cn_tts.layer).css({position:"absolute",left:"-99999px"});$Element(d.en_tts.layer).css({position:"absolute",left:"-99999px"});$Element(d.cn_tts.layer).show();$Element(d.en_tts.layer).show();$Element(d.info.layer).css({position:"absolute",left:"-99999px"});$Element(d.userinfo.layer).css("left","-99999px");$Element(d.userinfo.layer).css("top","-99999px");this._bindEvents()},_bindEvents:function(){var b=this._o;$Fn(function(){SPS.setCookie("autoPlayFlag",this.checked)}).owner(b.cn_tts.autoplay).attach(b.cn_tts.autoplay,"click");$Fn(function(){SPS.setCookie("autoPlayFlag",this.checked)}).owner(b.en_tts.autoplay).attach(b.en_tts.autoplay,"click");var a=this;b.userinfo.layer.onmouseover=function(){a._userTimer.stop()};b.userinfo.layer.onmouseout=function(){a._hideUser()};this._bindTTSEvent()},_buttonClick:function(c){var d=$$("img",c)[0];var a=d.src;var f=a.match(/\/(\w+)\.gif/)[1];var b=f.search(/tts_autoplay[0-9]_off/)>-1?"play":"stop";this._tts[b]()},_ucssafeutf8:function(g){var f="";var d=0;var c=g.length;var a;var b;for(i=0;i<c;i++){a=g.charCodeAt(i);if((a>=0)&&(a<=127)){b="0"+a.toString(16);f+="%"+b.substr(b.length-2)}else{if(a>2097151){f+="%"+(oxf0+((a&1835008)>>18)).toString(16);f+="%"+(128+((a&258048)>>12)).toString(16);f+="%"+(128+((a&4032)>>6)).toString(16);f+="%"+(128+(a&63)).toString(16)}else{if(a>2047){f+="%"+(224+((a&61440)>>12)).toString(16);f+="%"+(128+((a&4032)>>6)).toString(16);f+="%"+(128+(a&63)).toString(16)}else{f+="%"+(192+((a&1984)>>6)).toString(16);f+="%"+(128+(a&63)).toString(16)}}}}return f},_oWord:null,_oLayer:null,_onlyPinyin:false,info:function(d,c){var f=this._o;var g=$Element(d);var b=g.offset();var a=f.info.layer;f.info.content.innerHTML=c;this._infoTimer.start(200,function(){if($Agent().navigator().ie){a.style.left=b.left+"px";a.style.top=b.top-a.offsetHeight+"px"}else{a.style.top=b.top-a.offsetHeight+"px";a.style.left=b.left+"px"}});if(!g.hasClass("__info")){$Fn(function(h){if(h.of(d)){return}this._hideInfo()}).owner(this).attach(d,"mouseout");g.addClass("__info")}},_hideInfo:function(){var b=this._o;var a=b.info.layer;this._infoTimer.start(100,function(){a.style.left="-99999px"})},tts:function(k,f,j,a){var p=this;if(!f&&!j&&!a){return}var c=this._o;var d=$Element(k);var b="";var m=false;var l=typeof j=="undefined"&&typeof a=="undefined";var n=a?"cn_tts":"en_tts";var b=SPS.tts.textToUrl(f,l);var c=this._o;var m=(SPS.getCookie("autoPlayFlag")!="false");c[n].autoplay.checked=m?true:false;if(!l){SPS.data.setValue(".txt_",c[n].layer,{chinese:j,pinyin:a},true)}this._onlyPinyin=!f&&!j&&a;if(l||j){$Element(c.cn_tts.chinese).show();$Element(c.cn_tts.autoplayArea).show()}else{$Element(c.cn_tts.chinese).hide();$Element(c.cn_tts.autoplayArea).hide()}var h=c[n].layer;var g=$Element(h);if(!d.hasClass("__tts")){$Fn(function(o){if(o.of(k)){return}this._hide()}).owner(this).attach(k,"mouseout");d.addClass("__tts")}this._show(d,g,b,!m)},_show:function(g,f,b,d){var a=this;try{if(g.$value()==this._oWord.$value()){g=null}}catch(c){}if(!g){this._pinyinTimer.stop();return}this._hide(true);this._oWord=g;this._oWord.addClass("tts_on");this._oLayer=f;this._pinyinTimer.start(500,function(){var j=g.offset();var h=a._oLayer.$value();if($Agent().navigator().ie){h.style.left=j.left+"px";h.style.top=j.top-h.offsetHeight+"px"}else{h.style.top=j.top-h.offsetHeight+"px";h.style.left=j.left+"px"}if(!a._onlyPinyin){a._tts.play(b,d)}})},_hide:function(c){var a=this;var b=function(){if(a._oWord){a._oWord.removeClass("tts_on")}a._oWord=null;if(a._oLayer){a._oLayer.css("left","-99999px")}a._oLayer=null;if(!a._onlyPinyin){a._tts.stop()}};this._pinyinTimer.stop();if(c){b()}else{this._pinyinTimer.start(500,b)}},_currentUser:null,_user:function(oEl,aLinks,sTarget){var o=this._o;var eEl=$Element(oEl);var oOffset=eEl.offset();var oLayer=o.userinfo.layer;var eLayer=$Element(oLayer);var aPos=[oOffset.left+parseInt(oEl.offsetWidth/2)-14,oOffset.top-oLayer.offsetHeight-1];var sTop=document.documentElement.scrollTop||document.body.scrollTop;var sTop=document.documentElement.scrollTop||document.body.scrollTop;var diffValue=oOffset.top-sTop;var hLayer=oLayer.offsetHeight;this._currentUser=oEl;this._userTimer.stop();var aClientSize=SPS.layer.getClientSize();if(aClientSize[0]<aPos[0]+110){aPos[0]=aClientSize[0]-110}eLayer.css("left",aPos[0]+"px");if(hLayer<diffValue){eLayer.removeClass("tip_layer2");eLayer.addClass("tip_layer");eLayer.css("top",aPos[1]+"px")}else{eLayer.removeClass("tip_layer");eLayer.addClass("tip_layer2");eLayer.css("top",oOffset.top+oEl.offsetHeight+1+"px")}if(!eEl.hasClass("__user")){$Fn(function(oEvent){if(oEvent.of(oEl)){return}this._hideUser()}).owner(this).attach(oEl,"mouseout");$Fn(function(oEvent){if(oEvent.of(oEl)){return}if(oEl!=this._currentUser){return}this._userTimer.stop()}).owner(this).attach(oEl,"mouseover");eEl.addClass("__user")}var oLinks=$$("a.userlink",oLayer);$A(oLinks).forEach(function(oLink,nIdx){if(aLinks[nIdx]){oLink.href=aLinks[nIdx];if(sTarget){oLink.onclick=function(){if(sTarget.indexOf("_")==0){if(sTarget=="_new"){SPS.newWin(this.href)}else{window.open(this.href,sTarget)}return false}else{var oWnd=null;try{oWnd=eval(sTarget)}catch(e){}if(oWnd){oWnd.location.href=this.href;eLayer.css("left","-99999px");eLayer.css("top","-99999px");return false}}return true}}else{oLink.onclick=null}}})},user:function(c,b,a){var d=this._o;$Element(d.userinfo.theirNciku).show();$Element(d.userinfo.myNciku).hide();return this._user(c,b,a)},myself:function(c,b,a){var d=this._o;$Element(d.userinfo.theirNciku).hide();$Element(d.userinfo.myNciku).show();return this._user(c,b,a)},_hideUser:function(){var b=this._o;var a=b.userinfo.layer;this._userTimer.start(100,function(){a.style.left="-999999px"})},_ttsElement:null,_ttsLayer:null,_ttsShow:function(d,a){this._ttsHide();if(curOver){try{var h=curOver._event.target||curOver._event.srcElement;if(h.tagName.toLowerCase()=="a"||h.tagName.toLowerCase()=="span"){clearTimeout(time)}}catch(g){clearTimeout(time)}}this._ttsElement=d;this._ttsLayer=a;a.style.width="auto";if(a.offsetWidth>880){a.style.width="880px"}var c=$Element(d).offset();var b=c.left+a.offsetWidth;var f=SPS.layer.getClientSize();if(f[0]<b){c.left=f[0]-a.offsetWidth}if($Agent().navigator().ie){a.style.left=c.left+"px";a.style.top=c.top-a.offsetHeight+"px"}else{a.style.top=c.top-a.offsetHeight+"px";a.style.left=c.left+"px"}if($Element(d).hasClass("tts_button")){d=d.parentNode}$Element(d).addClass("tts_on")},_ttsHide:function(a){var b=this;if(a){this._ttsTimer.start(100,function(){b._ttsHide()});return}if(this._ttsElement){var c=this._ttsElement;if($Element(c).hasClass("tts_button")){c=c.parentNode}$Element(c).removeClass("tts_on");this._ttsElement=null}if(this._ttsLayer){$Element(this._ttsLayer).css("left","-9999999px")}this._ttsLayer=null;this._ttsTimer.stop();this._tts.stop()},_bindTTSEvent:function(){var a=this;var b=this._o;$Fn(function(c){a._ttsTimer.stop()}).attach(b.cn_tts.layer,"mouseover");$Fn(function(c){a._ttsTimer.stop()}).attach(b.en_tts.layer,"mouseover");$Fn(function(c){a._ttsHide(true)}).attach(b.cn_tts.layer,"mouseout");$Fn(function(c){a._ttsHide(true)}).attach(b.en_tts.layer,"mouseout")},pinyin:function(a,b){if(this._oldPinyin!=b){this._ttsHide()}this._oldPinyin=b;this.newTTS(a,"",b,0)},newTTS:function(j,f,a,p){if(!SPS.tts._ttsEnable){alert(SPS.text("TTS_NOT_SUPPORTED"));return}var n=this;if(!f&&!a){return}p=p||0;var c=this._o;var d=$Element(j);var m=a?"cn_tts":"en_tts";if(f){var g=f.search(/[\u4E00-\u9FFF]/)>-1;var b=SPS.tts.textToUrl(f,!g);var l=(SPS.getCookie("autoPlayFlag")!="false");c[m].autoplay.checked=l?true:false}if(a){SPS.data.setValue(".txt_",c[m].layer,{chinese:f,pinyin:a},true)}if(f){$Element(c.cn_tts.chinese).show();$Element(c.cn_tts.autoplayArea).show()}else{$Element(c.cn_tts.chinese).hide();$Element(c.cn_tts.autoplayArea).hide()}var h=c[m].layer;var k=function(o){var q=$Element(o);if(q.hasClass("__tts")){return}q.addClass("__tts");$Fn(function(r){curOver=r;if(o!=n._ttsElement){return}n._ttsTimer.stop()}).attach(o,"mouseover");$Fn(function(r){if(r.of(o)){return}curOut=r;n._ttsHide(true)}).attach(o,"mouseout")};k(j);this._ttsTimer.start(p,function(){n._ttsShow(j,h);if(f){n._tts.play(b,!l)}})}};(function(a){SPS[a]=$Class({$init:function(b){SPS.commonLayer._init($(b))}})})("cm_layer");if(typeof com=="undefined"){var com=new Object()}if(typeof com.deconcept=="undefined"){com.deconcept=new Object()}if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object()}if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object()}com.deconcept.FlashObject=function(g,d,p,j,l,o,n,r,k,a,f){if(!document.createElement||!document.getElementById){return}this.DETECT_KEY=f?f:"detectflash";this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();this.useExpressInstall=n;if(g){this.setAttribute("swf",g)}if(d){this.setAttribute("id",d)}if(p){this.setAttribute("width",p)}if(j){this.setAttribute("height",j)}if(l){this.setAttribute("version",new com.deconcept.PlayerVersion(l.toString().split(".")))}this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),n);if(o){this.addParam("bgcolor",o)}var b=r?r:"high";this.addParam("quality",b);var m=(k)?k:window.location;this.setAttribute("xiRedirectUrl",m);this.setAttribute("redirectUrl","");if(a){this.setAttribute("redirectUrl",a)}};com.deconcept.FlashObject.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){if(a=="url"){alert(encodeURIComponent(b))}this.variables[a]=encodeURIComponent(b)},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},createParamTag:function(c,a){var b=document.createElement("param");b.setAttribute("name",c);b.setAttribute("value",a);return b},getVariablePairs:function(){var a=new Array();var b;var c=this.getVariables();for(b in c){a.push(b+"="+c[b])}return a},getFlashHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var d=this.getParams();for(var a in d){c+=[a]+'="'+d[a]+'" '}var b=this.getVariablePairs().join("&");if(b.length>0){c+='flashvars="'+b+'"'}c+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />"';var d=this.getParams();for(var a in d){c+='<param name="'+a+'" value="'+d[a]+'">'}var b=this.getVariablePairs().join("&");if(b.length>0){c+='<param name="flashvars" value="'+b+'">'}}return c},write:function(a){if(this.useExpressInstall){var b=new com.deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}else{this.setAttribute("doExpressInstall",false)}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof a=="string")?document.getElementById(a):a;c.innerHTML=this.getFlashHTML()}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}}};com.deconcept.FlashObjectUtil.getPlayerVersion=function(h,f){var b=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){b=new com.deconcept.PlayerVersion(a.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var c=3;d!=null;c++){d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);b=new com.deconcept.PlayerVersion([c,0,0])}}catch(g){}if(h&&h.major>b.major){return b}if(!h||((h.minor!=0||h.rev!=0)&&b.major==h.major)||b.major!=6||f){try{b=new com.deconcept.PlayerVersion(d.GetVariable("$version").split(" ")[1].split(","))}catch(g){}}}return b};com.deconcept.PlayerVersion=function(a){this.major=parseInt(a[0])||0;this.minor=parseInt(a[1])||0;this.rev=parseInt(a[2])||0};com.deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};com.deconcept.util={getRequestParameter:function(d){var b=document.location.search||document.location.href.hash;if(b){var c=b.indexOf(d+"=");var a=(b.indexOf("&",c)>-1)?b.indexOf("&",c):b.length;if(b.length>1&&c>-1){return b.substring(b.indexOf("=",c)+1,a)}}return""},removeChildren:function(a){while(a.hasChildNodes()){a.removeChild(a.firstChild)}}};if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}var getQueryParamValue=com.deconcept.util.getRequestParameter;var FlashObject=com.deconcept.FlashObject;