function ygAutoComplete(_1,_2,_3,_4){
if((typeof _4)=="object"){
for(var _5 in _4){
if(_5){
this[_5]=_4[_5];
}
}
this._sName=_3;
this._oTextbox=yg_getObj(_1);
this._oContainer=yg_getObj(_2);
this.oDataSource._oParent=this;
this._init();
}
}
ygAutoComplete.prototype.TYPE_STARTSWITH=0;
ygAutoComplete.prototype.TYPE_CONTAINS=1;
ygAutoComplete.prototype.oDataSource=null;
ygAutoComplete.prototype.nCacheSize=15;
ygAutoComplete.prototype.bUseSubsetCaching=false;
ygAutoComplete.prototype.tSubsetMatchType=ygAutoComplete.prototype.TYPE_CONTAINS;
ygAutoComplete.prototype.bForceSelection=true;
ygAutoComplete.prototype.sPropPrefix="ygac";
ygAutoComplete.prototype.nMinQueryLength=1;
ygAutoComplete.prototype.nMaxResults=10;
ygAutoComplete.prototype.nQueryDelay=0.2;
ygAutoComplete.prototype.sHighlightClassName="autocomphi";
ygAutoComplete.prototype.sJumpChar=null;
ygAutoComplete.prototype.bAutoFill=true;
ygAutoComplete.prototype.bHorizAnim=false;
ygAutoComplete.prototype.bVertAnim=false;
ygAutoComplete.prototype.bUseIFrame=false;
ygAutoComplete.prototype.setHeader=function(_6){
this._oHeader.innerHTML=_6;
this._oHeader.style.display="block";
};
ygAutoComplete.prototype.setFooter=function(_7){
this._oFooter.innerHTML=_7;
this._oFooter.style.display="block";
};
ygAutoComplete.prototype.itemFormatFunc=function(_8,_9,_a){
return _8[_a];
};
ygAutoComplete.prototype.onGetData=function(_b){
};
ygAutoComplete.prototype.onChange=function(_c,_d){
};
ygAutoComplete.prototype.onSelect=function(_e,_f){
};
ygAutoComplete.prototype.onExpand=function(){
};
ygAutoComplete.prototype.onCollapse=function(){
};
ygAutoComplete.prototype.onFailedForce=function(_10){
this._oTextbox.value="";
};
ygAutoComplete.prototype._sName=null;
ygAutoComplete.prototype._oTextbox=null;
ygAutoComplete.prototype._oContainer=null;
ygAutoComplete.prototype._oHeader=null;
ygAutoComplete.prototype._oFooter=null;
ygAutoComplete.prototype._oContent=null;
ygAutoComplete.prototype._oIFrame=null;
ygAutoComplete.prototype._aItems=[];
ygAutoComplete.prototype._oCurItem=null;
ygAutoComplete.prototype._nNumItems=0;
ygAutoComplete.prototype._aCache=null;
ygAutoComplete.prototype._nCacheLength=0;
ygAutoComplete.prototype._aSubsetCache=null;
ygAutoComplete.prototype._sCurQuery=null;
ygAutoComplete.prototype._nKeyCode=null;
ygAutoComplete.prototype._bOptionSelected=false;
ygAutoComplete.prototype._nDelayID=-1;
ygAutoComplete.prototype._sItemIDPrefix=null;
ygAutoComplete.prototype._bOverContainer=false;
ygAutoComplete.prototype._bFocused=true;
ygAutoComplete.prototype._bShiftHeld=false;
ygAutoComplete.prototype._bCtrlHeld=false;
ygAutoComplete.prototype._bTabHeld=false;
ygAutoComplete.prototype._bContainerOpen=false;
ygAutoComplete.prototype._init=function(){
var _11=this;
yg_addEvt(this._oTextbox,"keyup",function(v){
_11._keyUp(v);
});
yg_addEvt(this._oTextbox,"keydown",function(v){
_11._keyDown(v);
});
yg_addEvt(this._oTextbox,"focus",function(){
_11._bFocused=true;
});
yg_addEvt(this._oTextbox,"blur",function(v){
_11._blur(v);
});
yg_addEvt(this._oContainer,"mouseover",function(){
_11._bOverContainer=true;
});
yg_addEvt(this._oContainer,"mouseout",function(){
_11._bOverContainer=false;
});
this._oTextbox.setAttribute("autocomplete","off");
this._oTextbox._oParent=this;
this._oContainer._oParent=this;
if(this.nCacheSize<0){
this.nCacheSize=0;
}
if(this.nMaxResults<1){
this.nMaxResults=10;
}
if(this.nMinQueryLength<1){
this.nMinQueryLength=1;
}
if(this.nQueryDelay<0){
this.nQueryDelay=0.5;
}
if(this.nCacheSize>0){
this._aCache=new Object();
}
if(this.bUseSubsetCaching){
this._aSubsetCache=new Object();
}
this._initContainer();
};
ygAutoComplete.prototype._initContainer=function(){
this._sItemIDPrefix=this.sPropPrefix+this._sName+"item";
var _15=[];
for(var i=0;i<this.nMaxResults;i++){
var _17=this._sItemIDPrefix+i;
this._aItems[i]=_17;
_15.push("<li id='"+_17+"'></li>\n");
}
var _18="<ul id='"+this.sPropPrefix+this._sName+"list'>"+_15.join("")+"</ul>";
var _19=this.sPropPrefix+this._sName+"header";
var _1a=this.sPropPrefix+this._sName+"footer";
var _1b="<div id='"+_19+"' class='hd'></div><div class='bd'>"+_18+"</div><div id='"+_1a+"' class='ft'></div>";
if(this.bUseIFrame){
_1b="<div id='"+this.sPropPrefix+this._sName+"content'>";
_1b+="<div id='"+_19+"' class='hd'></div><div class='bd'>";
_1b+=_18;
_1b+="</div><div id='"+_1a+"' class='ft'></div>";
_1b+="</div><iframe id='"+this.sPropPrefix+this._sName+"iframe' src='about:blank' frameborder='0' scrolling='no'>"+"</iframe>";
}
this._oContainer.innerHTML=_1b;
this._oHeader=yg_getObj(_19);
this._oFooter=yg_getObj(_1a);
if(this.bUseIFrame){
this._oContent=yg_getObj(this.sPropPrefix+this._sName+"content");
this._oIFrame=yg_getObj(this.sPropPrefix+this._sName+"iframe");
this._oContent.style.position=this._oIFrame.style.position="relative";
this._oContent.style.zIndex=9050;
}
this._oContainer.style.display="none";
this._oHeader.style.display="none";
this._oFooter.style.display="none";
this._initItems();
};
ygAutoComplete.prototype._initItems=function(){
for(var i=0;i<this.nMaxResults;i++){
var _1d=yg_getObj(this._aItems[i]);
this._initItem(_1d,i);
}
};
ygAutoComplete.prototype._initItem=function(_1e,_1f){
var _20=this;
_1e.oAutoComp=this;
_1e.style.display="none";
_1e._nItemNum=_1f;
_1e.mouseover=_1e.mouseout=_1e.onclick=null;
};
ygAutoComplete.prototype._keyUp=function(v){
var e=(v)?v:event;
var _23=e.keyCode;
var _24=this._oTextbox.value.toLowerCase();
var _25=String.fromCharCode(_23).toLowerCase();
if(!this._checkKey(_23,_24,v)){
return;
}else{
if(this._oTextbox.value==""){
this._clearList();
return;
}
}
if(_24.length<this.nMinQueryLength){
return;
}
var _26=this._oTextbox.value.charAt(_24.length-1).toLowerCase();
if(_26!=_25&&_23!=8&&_23!=46){
return;
}
this._checkPropUpdates();
if(this.nQueryDelay>0){
var _27=this;
var _28=setTimeout(function(){
_27._makeRequest(_24,_23);
},(this.nQueryDelay*1000));
if(this._nDelayID!=-1){
clearTimeout(this._nDelayID);
}
this._nDelayID=_28;
}else{
this._makeRequest(_24,_23);
}
return false;
};
ygAutoComplete.prototype._checkKey=function(_29,_2a,v){
var _2c=true;
switch(_29){
case 9:
this._bTabHeld=false;
_2c=false;
break;
case 13:
if(this._oCurItem){
this._itemClicked(this._oCurItem,null);
}else{
this._toggleContainer(false);
}
_2c=false;
break;
case 16:
this._bShiftHeld=false;
_2c=false;
break;
case 17:
this._bCtrlHeld=false;
_2c=false;
break;
case 27:
this._oTextbox.value="";
this._clearList();
_2c=false;
break;
case 40:
if(!this._bContainerOpen&&this._oTextbox.value!=""){
this._makeRequest(this._oTextbox.value.toLowerCase(),_29);
}
break;
}
if(this._isIgnoreKey(_29)||_2a==this._sCurQuery){
_2c=false;
}
return _2c;
};
ygAutoComplete.prototype._isIgnoreKey=function(_2d){
if((_2d>=18&&_2d<=20)||(_2d>=33&&_2d<=34)||(_2d>=36&&_2d<=39)||(_2d>=44&&_2d<=45)){
return true;
}
return false;
};
ygAutoComplete.prototype._checkPropUpdates=function(){
if(this.nCacheSize<0){
this.nCacheSize=0;
}
if(this.nMaxResults<1){
this.nMaxResults=10;
}
if(this.nMinQueryLength<1){
this.nMinQueryLength=1;
}
if(this.nQueryDelay<0){
this.nQueryDelay=0.5;
}
if(this.nCacheSize>0&&!this._aCache){
this._aCache=new Object();
}
if(this.bUseSubsetCaching&&!this._aSubsetCache){
this._aSubsetCache=new Object();
}
if(this.nMaxResults!=this._aItems.length){
this._initContainer();
}
};
ygAutoComplete.prototype._makeRequest=function(_2e,_2f){
this._nDelayID=-1;
if(this.bUseSubsetCaching&&_2e.length>this.nMinQueryLength&&this._aSubsetCache[_2e.substr(0,this.nMinQueryLength)]!=null){
this._populateList(_2e,_2f,this._getSubsetCacheData(_2e));
return;
}else{
if(this._isQueryInCache(_2e)){
this._populateList(_2e,_2f,this._getCacheData(_2e));
return;
}
}
var _30=this.oDataSource.getResults(_2e,_2f);
if(this.oDataSource.tType==ygACDataSource.prototype.TYPE_SYNC){
this._populateList(_2e,_2f,_30);
}
};
ygAutoComplete.prototype._keyDown=function(v){
var e=(v)?v:event;
var _33=e.keyCode;
if(bDefaultTextShowing){
yspOlySearchClearDefaultText();
}
switch(_33){
case 36:
if(this._bShiftHeld){
this._oTextbox.value="";
this._clearList();
}
break;
case 9:
this._bTabHeld=true;
break;
case 16:
this._bShiftHeld=true;
break;
case 17:
this._bCtrlHeld=true;
break;
case 37:
case 39:
this._jumpSelection(_33);
break;
case 38:
case 40:
this._moveSelection(_33);
break;
}
if(_33>=37&&_33<=40){
if(v.stopPropagation){
v.stopPropagation();
}else{
v.cancelBubble=true;
}
}
return false;
};
ygAutoComplete.prototype._blur=function(v){
if(this._bTabHeld||!this._bOverContainer){
if(this.bForceSelection&&!this._bOptionSelected&&!this._textMatchesOption()){
this.onFailedForce(this._sCurQuery);
}
this._clearList();
this._bOptionSelected=false;
this._bFocused=false;
}
};
ygAutoComplete.prototype._textMatchesOption=function(){
var _35=false;
for(var i=0;i<this._nNumItems;i++){
var _37=yg_getObj(this._aItems[i]);
if(_37._sData.toLowerCase()==this._oTextbox.value.toLowerCase()){
_35=true;
}
}
return (_35);
};
ygAutoComplete.prototype._clearList=function(){
this._toggleContainer(false);
for(var i=0;i<this._aItems.length;i++){
var _39=yg_getObj(this._aItems[i]);
_39.style.display="none";
}
if(this._oCurItem){
this._toggleHighlight(this._oCurItem,"mouseout",null);
}
this._oCurItem=null;
this._nNumItems=0;
this._sCurQuery=null;
};
ygAutoComplete.prototype._populateList=function(_3a,_3b,_3c){
if(!this._bFocused){
return;
}
var _3d=this;
this._sCurQuery=_3a;
this._nKeyCode=_3b;
if(this.bUseSubsetCaching&&_3a.length==this.nMinQueryLength){
this._aSubsetCache[_3a]=_3c;
}
this._addCacheElem(_3a,_3c);
this._nNumItems=Math.min(_3c.length,this.nMaxResults);
this._oConn=null;
if(this._nNumItems>0&&_3c[0]!=""){
for(var i=0;i<this._nNumItems;i++){
var _3f=yg_getObj(this._aItems[i]);
_3f.innerHTML=this.itemFormatFunc(_3c[i],_3a,this.oDataSource.nMainValueIndex);
_3f.style.display="block";
_3f._sData=_3c[i][this.oDataSource.nMainValueIndex];
_3f._aFields=_3c[i];
}
for(var i=this._nNumItems;i<this._aItems.length;i++){
var _3f=yg_getObj(this._aItems[i]);
_3f.innerHTML=null;
_3f.style.display="none";
_3f._sData=null;
_3f._aFields=null;
}
this._toggleContainer(true);
if(this._nNumItems>0&&this._nKeyCode!=8){
var _40=yg_getObj(this._aItems[0][0]);
this._toggleHighlight(_40,"mouseover",null);
this._autoFill(_40,_3a);
}
if(this._nKeyCode==8){
this._oCurItem=null;
}
}else{
this._clearList();
}
this.onGetData(_3c);
};
ygAutoComplete.prototype._addCacheElem=function(_41,_42){
if(!this._aCache){
return;
}
if(this._nCacheLength>=this.nCacheSize&&!this._aCache[_41]){
this._removeCacheElem();
}
if(this._aCache[_41]){
this._nCacheLength--;
}
this._aCache[_41]={results:_42,date:this._getCurrentTime()};
this._nCacheLength++;
};
ygAutoComplete.prototype._getCurrentTime=function(){
var _43=new Date();
return (_43.getUTCMilliseconds()+(1000*_43.getUTCSeconds())+(60000*_43.getUTCMinutes()));
};
ygAutoComplete.prototype._removeCacheElem=function(){
if(!this._aCache){
return;
}
var _44=null;
var _45=Number.MAX_VALUE;
for(var _46 in this._aCache){
if(this._aCache[_46]&&this._aCache[_46].date<_45){
_44=_46;
_45=this._aCache[_46].date;
}
}
this._aCache[_44]=null;
};
ygAutoComplete.prototype._isQueryInCache=function(_47){
return (this._aCache&&this._aCache[_47]!=null);
};
ygAutoComplete.prototype._getCacheData=function(_48){
return (this._isQueryInCache(_48)?this._aCache[_48].results:null);
};
ygAutoComplete.prototype._getSubsetCacheData=function(_49){
if(!this.bUseSubsetCaching||!this._aSubsetCache[_49.substr(0,this.nMinQueryLength)]){
return null;
}
var _4a=this._aSubsetCache[_49.substr(0,this.nMinQueryLength)];
var _4b=[];
for(var i=0;i<_4a.length;i++){
if((this.tSubsetMatchType==this.TYPE_CONTAINS&&_4a[i][this.oDataSource.nMainValueIndex].toLowerCase().match(_49))||(this.tSubsetMatchType==this.TYPE_STARTSWITH&&_4a[i][this.oDataSource.nMainValueIndex].substr(0,_49.length).toLowerCase()==_49)){
_4b.push(_4a[i]);
}
}
return (_4b);
};
ygAutoComplete.prototype._autoFill=function(_4d,_4e){
if(!this.bAutoFill||this._oTextbox.value.toLowerCase()!=_4e){
return;
}
var _4f=this._oTextbox;
var _50=_4f.value.length;
if(_4f.setSelectionRange||_4f.createTextRange){
this._updateValue(_4d);
}
var _51=_50;
var _52=_4f.value.length;
this._selectText(_4f,_51,_52);
};
ygAutoComplete.prototype._selectText=function(_53,_54,_55){
if(_53.setSelectionRange){
_53.setSelectionRange(_54,_55);
}else{
if(_53.createTextRange){
var _56=_53.createTextRange();
_56.moveStart("character",_54);
_56.moveEnd("character",_55);
_56.select();
}
}
_53.nFillStart=_54;
_53.nFillEnd=_55;
};
ygAutoComplete.prototype._toggleContainer=function(_57){
if(_57&&this._oContent&&this._oIFrame){
var _58=this._oContainer.style.display;
this._oContainer.style.display="block";
this._oIFrame.style.width=this._oContent.offsetWidth+"px";
this._oIFrame.style.height=this._oContent.offsetHeight+"px";
this._oIFrame.style.marginTop="-"+this._oContent.offsetHeight+"px";
this._oContainer.style.display=_58;
}
if((_57&&this._bContainerOpen)||(!_57&&!this._bContainerOpen)){
return;
}
var _59=new ygAnim_Expand(this._oContainer,10,this.bHorizAnim,this.bVertAnim,_57);
if(_59.oDomRef){
_59.animate();
}
this._bContainerOpen=_57;
(_57)?this.onExpand():this.onCollapse();
};
ygAutoComplete.prototype._updateValue=function(_5a){
var _5b=_5a._sData.split("</a>");
if(_5b.length<2){
}else{
_5b=_5b[0].split(">");
this._oTextbox.value=_5b[1];
}
this._oCurItem=_5a;
};
ygAutoComplete.prototype._toggleHighlight=function(_5c,_5d,v){
_5c.className=_5c.className.replace(this.sHighlightClassName,"");
if(this._oCurItem){
this._oCurItem.className=this._oCurItem.className.replace(this.sHighlightClassName,"");
}
if(_5d=="mouseover"){
_5c.className=_5c.className+" "+this.sHighlightClassName;
this._oCurItem=_5c;
}
};
ygAutoComplete.prototype._itemClicked=function(_5f,v){
this._oTextbox.value="";
this._oTextbox.focus();
this._updateValue(_5f);
this.onSelect(_5f,_5f._aFields);
this._bOptionSelected=true;
this._clearList();
var _61=_5f._sData.split("\"");
window.location=_61[1];
};
ygAutoComplete.prototype._moveSelection=function(_62){
if(_62!=38&&_62!=40){
return;
}
var _63=this._oCurItem;
var _64=-1;
if(_63){
_64=_63._nItemNum;
}
var _65=(_62==40)?(_64+1):(_64-1);
if(_65<-2||_65>=this._nNumItems){
return;
}
if(_63){
this._toggleHighlight(_63,"mouseout",null);
}
if(_65==-1){
this._oTextbox.value=this._sCurQuery;
this._oCurItem=null;
return;
}
if(_65==-2){
this._clearList();
return;
}
var _66=yg_getObj(this._sItemIDPrefix+_65);
this._toggleHighlight(_66,"mouseover",null);
this._updateValue(_66);
this.onChange(_66,_66._aFields);
this._toggleContainer(true);
};
ygAutoComplete.prototype._jumpSelection=function(_67){
if(!this.sJumpChar||!this.bAutoFill||(_67!=37&&_67!=39)||this._bShiftHeld||this._bCtrlHeld){
return;
}
var _68=this._oTextbox.nFillStart;
var _69=this._oTextbox.value.length;
if(_67==39){
_68=this._oTextbox.value.indexOf(this.sJumpChar,_68);
}else{
_68=this._oTextbox.value.lastIndexOf(this.sJumpChar,_68-2);
}
_68++;
if(_68<=0){
if(_67==37){
this._oTextbox.value="";
this._clearList();
}else{
this._oTextbox.nFillStart=this._oTextbox.nFillEnd=_69;
}
return;
}
var _6a=this._oTextbox.value.substring(0,_68);
this._makeRequest(_6a,_67);
this._selectText(this._oTextbox,_68,_69);
};
function ygACDataSource(){
}
ygACDataSource.prototype.TYPE_ASYNC=0;
ygACDataSource.prototype.TYPE_SYNC=1;
ygACDataSource.prototype.tType=ygACDataSource.prototype.TYPE_SYNC;
ygACDataSource.prototype.nMainValueIndex=0;
ygACDataSource.prototype.getResults=function(_6b,_6c){
};
ygACDataSource.prototype._oParent=null;
ygACDataSource.prototype._init=function(_6d){
this.nMainValueIndex=_6d;
};
ygACDS_HTTPRequest.prototype=new ygACDataSource();
function ygACDS_HTTPRequest(_6e,_6f){
this._init(_6e);
for(var _70 in _6f){
if(_70){
this[_70]=_6f[_70];
}
}
}
ygACDS_HTTPRequest.prototype.tType=ygACDataSource.prototype.TYPE_ASYNC;
ygACDS_HTTPRequest.prototype.sPathToScript=null;
ygACDS_HTTPRequest.prototype.sScriptParam="query";
ygACDS_HTTPRequest.prototype.sResultsSeparator="\n";
ygACDS_HTTPRequest.prototype.sLineDelimiter="|";
ygACDS_HTTPRequest.prototype.stripAfter="\n<!--";
ygACDS_HTTPRequest.prototype.sQueryString=null;
ygACDS_HTTPRequest.prototype.getResults=function(_71,_72){
if(this._oConn!=null){
this._aConnBuffer.push([_71,_72]);
return;
}
this._oConn=ygConn.getObject();
if(this._oConn==null){
return;
}
var _73=this;
function asyncFunc(_74){
if(_74.readyState==4&&_74.status==200){
var _75=_73._parseResults(_74.responseText);
_73._oConn=null;
_73._callback(_71,_72,_75);
_73._checkBuffer();
}
}
var _76=this.sPathToScript+"?"+this.sScriptParam+"="+escape(_71)+"&"+this.sQueryString;
ygConn.http.initHeader("autocomplete","true");
ygConn.http.asyncRequest(this._oConn,"GET",_76,false,asyncFunc);
return (null);
};
ygACDS_HTTPRequest.prototype._oConn=null;
ygACDS_HTTPRequest.prototype._aConnBuffer=[];
ygACDS_HTTPRequest.prototype._parseResults=function(_77){
var _78=_77.indexOf(this.stripAfter);
if(_78!=-1){
_77=_77.substring(0,_78);
}
if(_77.substr(_77.length-this.sResultsSeparator.length)==this.sResultsSeparator){
_77=_77.substr(0,_77.length-this.sResultsSeparator.length);
}
var _79=_77.split(this.sResultsSeparator);
for(var i=0;i<_79.length;i++){
_79[i]=_79[i].split(this.sLineDelimiter);
}
return _79;
};
ygACDS_HTTPRequest.prototype._checkBuffer=function(){
if(this._aConnBuffer.length==0){
return;
}
var _7b=this._aConnBuffer.pop();
var _7c=_7b[0];
var _7d=_7b[1];
this._aConnBuffer=[];
this.getResults(_7c,_7d);
};
ygACDS_HTTPRequest.prototype._callback=function(_7e,_7f,_80){
this._oParent._populateList(_7e,_7f,_80);
};
ygACDS_JSArray.prototype=new ygACDataSource();
function ygACDS_JSArray(_81,_82){
this._init(_82);
this.aData=_81;
}
ygACDS_JSArray.prototype.TYPE_STARTSWITH=0;
ygACDS_JSArray.prototype.TYPE_CONTAINS=1;
ygACDS_JSArray.prototype.aData=null;
ygACDS_JSArray.prototype.tType=ygACDataSource.prototype.TYPE_SYNC;
ygACDS_JSArray.prototype.tSearchType=ygACDS_JSArray.prototype.TYPE_CONTAINS;
ygACDS_JSArray.prototype.getResults=function(_83,_84){
var _85=[];
for(var i=0;i<this.aData.length;i++){
if((this.tSearchType==this.TYPE_CONTAINS&&this.aData[i][this.nMainValueIndex].toLowerCase().match(_83))||(this.tSearchType==this.TYPE_STARTSWITH&&this.aData[i][this.nMainValueIndex].substr(0,_83.length).toLowerCase()==_83.toLowerCase())){
_85.push(this.aData[i]);
}
}
return (_85);
};
ygAnim_Expand.prototype=new ygAnim_Size();
function ygAnim_Expand(oEl,_88,_89,_8a,_8b){
if(!oEl||(_8b&&oEl.style.display=="block")||(!_8b&&oEl.style.display=="none")){
return;
}
var _8c=oEl.style.marginLeft;
oEl.style.marginLeft="-9000px";
oEl.style.display="block";
var _8d=[];
var _8e=(_8b)?0:1;
var _8f=(_8b)?1:0;
var _90=oEl.offsetWidth;
var _91=oEl.offsetHeight;
var _92=oEl.style.width;
var _93=oEl.style.height;
var _94=oEl.style.overflow;
_8d[_8f]=[_90,_91];
oEl.style.marginLeft=_8c;
if(!(_89||_8a)){
oEl.style.display=(_8b)?"block":"none";
return;
}else{
if(!_89&&_8a){
_8d[_8e]=[_90,1];
}else{
if(_89&&!_8a){
_8d[_8e]=[1,_91];
}else{
_8d[_8e]=[1,1];
}
}
}
oEl.style.width=_8d[0][0]+"px";
oEl.style.height=_8d[0][1]+"px";
oEl.style.overflow="hidden";
this.init(oEl,_88);
this.setFrameBased(true);
this.setSizes(_8d);
this.onComplete=function(){
if(!_8b){
oEl.style.display="none";
}
oEl.style.width=_92;
oEl.style.height=_93;
oEl.style.overflow=_94;
};
}

