
/*@cc_on@*/
/*@if(@_jscript_version>=5)@*/
var KK="$rev,1.123m18$";function ramac_install(Z,P,W){if(!AA()){return}
var w=new x(Z,P,W||{});k(Z,'keydown',function(z){w.Jj(z)});k(Z,'keyup',function(z){w.kk(z)});k(Z,'keypress',function(z){w.Gg(z)});k(Z,'blur',function(){w.g7()});k(Z,'focus',function(){w.jj()});Aa(w)}
function k(I,cC,BB){if(I.attachEvent){I.attachEvent('on'+cC,BB)}else if(I.addEventListener){I.addEventListener(cC,BB,0)}else{I['on'+cC]=BB}}
function E(z){return(z)?z:((window.event)?event:null)}
x.prototype.Jj=function(z){z=E(z);if(z&&dd(z)){this.DD(z)}}
x.prototype.Gg=function(z){z=E(z);if(z){if((dd(z)&&z.keyCode!=27)||(!this.DD(z))){this.q=this.Cc();this.q+=String.fromCharCode(z.charCode||z.keyCode);this.ff=1;if(this.A()){l(z)}}}}
function dd(z){return typeof z.reason!='undefined'}
x.prototype.DD=function(z){if(!this.p){switch(z.keyCode){case 40:this.Q(this.s+1);this.M();break;case 38:if(this.s==0){this.r(this.q);this.Q(-1)}else{this.Q(this.s-1);this.M()}
break;case 34:this.Q(this.y.H);this.M();l(z);break;case 33:this.Q(0);this.M();l(z);break;case 13:case 3:this.FF();l(z);break;case 27:this.r(this.q);this.m(1);break;case 37:case 36:this.D=this.q=this.r();this.Q(-1);break;default:return z.charCode==0}
return 1}else{if(z.keyCode==39){if(this.O&&this.c&&this.EE()==this.Z.value.length){this.Ff(1);this.A();l(z)}
	return 1}
	return 0}}
x.prototype.kk=function(z){z=E(z);if(z){switch(z.keyCode){case 8:case 46:this.q=this.Cc();this.Q(-1);this.ff=0}}}
function l(z){z.returnValue=0;z.cancelBubble=1;if(z.preventDefault){z.preventDefault()}
if(z.stopPropagation){z.stopPropagation()}}
x.prototype.A=function(){if(!this.p&&this.ff){var ee=this.hH();this.Q(ee);if(ee!=-1){this.M(1);return 1}}
return 0}
x.prototype.g7=function(){if(!this.aA){if(!this.p){this.m()}
clearTimeout(this.kK);this.dD=0;this.a()}}
x.prototype.jj=function(){if(!this.aA){this.dD=1;Aa(this)}else{this.aA=0}}
x.prototype.FF=function(){if(this.d7){	var y=this.y,Y=this.s,a7=[y[Y]];	if(y.n){	for(var b7=0;b7<y.n.length;++b7)		a7[a7.length]=y.n[b7][Y];	}
this.d7.apply(this,a7)}
this.M();if(this.v)this.r(this.r()+this.v);this.C();this.D=this.q=this.r();this.m(1);if(this.CC){var P=this.eE+c7('\1'+this.D);var X;if(X=AA()){X.open('GET',P,1);X.send(null)}
this.CC.submit()}}
x.prototype.K=function(){var T=this.Z.value.lastIndexOf(this.ii,this.EE()-1)+1;while(this.Z.value.charAt(T)==' '){++T}
return T}
x.prototype.r=function(L){var value=this.Z.value;var T=this.K();if(typeof L=='undefined'){return value.substring(T)}else{this.Z.value=value.substring(0,T)+L;this.C()}}
var jJ=function(){return 0}
var gg=function(L){if(typeof L=='undefined'){return this.Z.value}else{this.Z.value=L;this.C();return this.Z.value}}
x.prototype.M=function(iI){if(this.s<0){return}
var T=this.q.length;this.r(this.y[this.s]);if(iI){this.Kk(T)}}
x.prototype.EE=function(){var F=this.Z.value.length;if(this.Z.setSelectionRange){F=this.Z.selectionStart}else if(this.Z.createTextRange){var U=document.selection.createRange();var g=this.Z.createTextRange();if(g.inRange(U)){if(g.boundingLeft==U.boundingLeft){F=0}else{var e7=g.text;var Y=1;while(Y<e7.length){g.findText(e7.substring(Y));if(g.boundingLeft==U.boundingLeft)break;Y++}
F=Y}}}
return F}
x.prototype.Cc=function(){var aa=this.Z.value.length;if(this.Z.setSelectionRange){aa=this.Z.value.length-
(this.Z.selectionEnd-this.Z.selectionStart)}else if(document.selection){var U=document.selection.createRange();aa=this.Z.value.length-U.text.length}
return this.Z.value.substring(this.K(),aa)}
x.prototype.Kk=function(T){T+=this.K();var end=this.K()+this.r().length;if(this.Z.createTextRange){var U=this.Z.createTextRange();U.moveStart('character',T);U.moveEnd('character',end);U.select()}else if(this.Z.setSelectionRange){this.Z.setSelectionRange(T,end)}}
x.prototype.C=function(){if(this.Z.createTextRange){var U=this.Z.createTextRange();U.collapse(0);U.select()}else if(this.Z.setSelectionRange){this.Z.setSelectionRange(this.Z.value.length,this.Z.value.length)}}
x.prototype.Q=function(Y){if(Y>this.y.H){Y=this.y.H}
if(Y<-1){Y=-1}
if(Y!=this.s){if(this.s!=-1){this.u.childNodes[this.s].className=''}
if(Y!=-1){this.u.childNodes[Y].className='ramac_selected'}
this.s=Y}}
var B=
navigator&&navigator.userAgent.toLowerCase().indexOf('msie')!=-1;function x(Z,P,W){this.u=document.createElement('div');(W["div_container"]||document.body).appendChild(this.u);this.y=[];this.y.H=-1;this.s=-1;this.c=0;this.bb=0;this.W=W;this.m();this.u.className='ramac_popup';var S=this.u.style;S.border='black 1px solid';S.zIndex=1;S.padding=0;S.overflow='hidden';this.Z=Z;this.eE=P;this.G={};S.height='0px';this.fF();this.i=W["item_height"];this.CC=W["auto_submit"]?Z.form:null;if(W["bulb"]){this.O=document.getElementById(W["bulb"])}else{this.c=1;this.cc(1)}
if(!W["delim"]){this.K=jJ;this.r=gg}else{var v=W["delim"];this.v=v;while(v.charAt(0)==' ')v=v.substring(1,v.length);while(v.charAt(v.length-1)==' ')v=v.substring(0,v.length-1);this.ii=v}
this.d7=W["on_confirm"];this.i7=W["force_single"]}
x.prototype.Ii=function(){if(this.O){this.O.innerHTML='&rarr;';this.c=1}}
x.prototype.a=function(){if(this.O){this.O.innerHTML='&nbsp;';	this.c=0}}
x.prototype.cc=function(gG,II){if(gG){this.Z.setAttribute('autocomplete','off');if(II){this.aA=1;this.Z.blur();this.Z.focus()}
this.bb=1}else{this.Z.setAttribute('autocomplete','on');this.bb=0}}
x.prototype.Ff=function(h7){if(this.p){if(h7){this.cc(1,1)}
this.fF();this.u.style.display='block';this.p=0}}
x.prototype.m=function(hh){if(!this.p){this.u.style.display='none';this.p=1;if(this.O&&hh){this.cc(0)}}}
x.prototype.fF=function(){var S=this.u.style;var h=this.Z,f=0,J=0,e=0;while(h){f+=h.offsetTop;J+=h.offsetLeft;h=h.offsetParent}
if(navigator.userAgent.indexOf('Mac')!=-1&&typeof document.body.leftMargin!='undefined'){f+=document.body.topMargin;J+=document.body.leftMargin}
e=this.Z.offsetWidth-(!B?2:0);if(navigator.userAgent.indexOf('Opera 9')!=-1){J+=3;e-=8;f-=2}
if(this.W["width"]){S.width=this.W["width"]+ 'px';if(this.W["align"]=='right'){J-=this.W["width"]-e}}else{S.width=e+'px'}
S.left=J+'px';S.position='absolute';S.top=(f+this.Z.offsetHeight-1)+ 'px'}
x.prototype.Hh=function(){while(this.u.hasChildNodes()){this.u.removeChild(this.u.firstChild)}
this.s=-1;var i=this.i||16;this.u.style.height=(this.y.length*(i+1)+ (B?2:0))+ 'px';for(var Y=0;Y<this.y.length;++Y){var t=document.createElement('div');t.style.height=(B&&navigator.userAgent.indexOf('Opera 9')==-1?i+1:i)+ 'px';t.style.paddingLeft='2px';t.style.paddingRight='2px';t.style.paddingBottom='1px';t.style.cursor='default';t.style.whiteSpace='nowrap';t.style.overflow='hidden';t.onmouseover=function(w,Y){return function(){w.Q(Y)}}(this,Y);t.onmousedown=function(w){return function(z){z=E(z);w.FF();l(z);setTimeout(function(){w.Z.focus();w.C()},10)}}(this);var R=document.createElement('span');R.className='ramac_left_col';R.style.cssFloat='left';R.style.textAlign='left';R.style.overflow='hidden';R.appendChild(document.createTextNode(this.y[Y]));t.appendChild(R);if(!this.i7&&this.y.n&&this.y.n[0]){R.style.overflow='visible';R.style.width='50%';var o=document.createElement('span');o.className='ramac_right_col';o.style.cssFloat='right';o.style.textAlign='right';o.style.overflow='hidden';o.style.width='49%';o.innerHTML=this.y.n[0][Y];t.appendChild(o)}
if(this.y[Y].substring(0,1)==' '){this.y.H=Y-1;R.style.k7='80%'}
this.u.appendChild(t)}}
function Aa(w){w.f7();if(w.dD)w.kK=setTimeout(function(){Aa(w)},300)}
x.prototype.f7=function(){var text=this.q;if(text==this.D){return}
if(this.r()==''){this.a();this.m()}else{var y=this.JJ(text);if(y&&y.length>0){if(y[0]=='EAGAIN'){return}
this.y=y;this.Hh();this.Ii();if(this.bb)this.Ff();if(!this.p)this.A()}else{this.a();this.m()}}
this.D=text}
x.prototype.hH=function(){var y=this.y;var d=-1;if(!y||y.length==0){return-1}
var V=this.q.toLowerCase();var N=0,Bb=y.length-1,j;var b;while(N<=Bb){j=(N+Bb)>>1;b=y[j].toLowerCase();if(b==V){d=j;break}else if(b>V){Bb=j-1}else{N=j+1}}
if(d==-1&&y[N]&&y[N].toLowerCase().indexOf(V)==0){d=N}
return d}
x.prototype.JJ=function(V){V=V.toLowerCase();var y=this.G[V];if(y){return y}else{this.j7(V);return this.G[V]}}
x.prototype.j7=function(V){var P=this.eE+c7(V);this.G[V]= ['EAGAIN'];var X;if(X=AA()){X.onreadystatechange=function(w){return function(){GG(X,w.G[V])}}(this);X.open('GET',P,1);X.send(null)}}
function AA(){var X=null;var Dd=['MSXML2.XmlHttp.4.0','MSXML2.XmlHttp','Microsoft.XmlHttp'];/*@if(@_jscript_version>=5)for(Y=0;Y<Dd.length;++Y){try{X=new ActiveXObject(Dd[Y]);break}catch(Ee){X=null}}
@else@*/
X=null;/*@end@*/
if(!X&&window.XMLHttpRequest){X=new XMLHttpRequest()}
return X}
function GG(X,y){if(X.readyState==4){try{if(X.status!=200){throw(X.statusText)}
var res;try{eval('res=' +X.responseText+';')}catch(Ee){}
y.length=0;if(res&&res.length>0){if(typeof res[0]=='object'){y.n=res.slice(1);res=res[0]}
for(var Y=0;Y<res.length;++Y){y[Y]=res[Y]}}
y.H=y.length-1}catch(Ee){y.length=0;}
delete X.onreadystatechange}}
var HH=new RegExp("\\+","g");var c7=typeof encodeURIComponent=='function'
?function(bB){return encodeURIComponent(bB)}
:function(bB){return escape(bB).replace(HH,'%2B')};/*@else
function ramac_install(){}
@end@*/

