
vjo.ctype("vjo.dsf.document.Form").props({get:function(_1){var f=document.forms[_1];return f?f:null;},getElem:function(_3,_4){var f=this.get(_3),e;if(f){e=f.elements[_4];}
return e?e:null;},submit:function(_6){var f=this.get(_6);if(f){f.submit();}},setAction:function(_8,_9){this.setAttr(_8,"action",_9);},getAction:function(_a){return this.getAttr(_a,"action");},setTarget:function(_b,_c){this.setAttr(_b,"target",_c);},getTarget:function(_d){return this.getAttr(_d,"target");},setAttr:function(_e,_f,_10){var f=this.get(_e);if(f){eval("f."+_f.toLowerCase()+"=psAttrValue;");}},getAttr:function(_12,_13){var f=this.get(_12),v=null;if(f){v=eval("f."+_13.toLowerCase());}
return v;}}).endType();
vjo.ctype("vjo.dsf.utils.Html").needs("vjo.dsf.typeextensions.string.Comparison").props({encode:function(_1){var v=new String(_1);if(v.hasAny("<",">")){var re=new RegExp("<","gi");v=v.replace(re,"&lt;");re=new RegExp(">","gi");v=v.replace(re,"&gt;");}
return v;},strip:function(_4){var s=_4.replace(/(<([^>]+)>)/ig,"");s=s.replace(/\r\n/g," ");s=s.replace(/\n/g," ");s=s.replace(/\r/g," ");return s;}}).endType();
vjo.ctype("vjo.darwin.core.editor.VjEditorUtils").needs(["vjo.dsf.Element","vjo.dsf.utils.Html"]).props({writeFrameHTML:function(_1,_2){_1.open();_1.write(_2);_1.close();},disableElements:function(_3,_4){var _5=_3.length,element;for(i=0;i<_5;i++){if(document.getElementById(_3[i])){element=vjo.dsf.Element.get(_3[i]);}
element.disabled=_4;}},stripHTML:function(_6){var _7=vjo.dsf.utils.Html.strip(_6);_7=trim(_7);return _7;},trim:function(_8){if(typeof _8!="string"){return _8;}
var _9=_8;var ch=_9.substring(0,1);while(ch==" "){_9=_9.substring(1,_9.length);ch=_9.substring(0,1);}
ch=_9.substring(_9.length-1,_9.length);while(ch==" "){_9=_9.substring(0,_9.length-1);ch=_9.substring(_9.length-1,_9.length);}
while(_9.indexOf("  ")!=-1){_9=_9.substring(0,_9.indexOf("  "))+_9.substring(_9.indexOf("  ")+1,_9.length);}
return _9;}}).endType();
vjo.ctype("vjo.darwin.domain.finding.advsearch.FindingAdvSearchForm").needs(["vjo.dsf.document.Form","vjo.darwin.core.editor.VjEditorUtils"]).props({onFormKeyUp:function(_1,_2,_3,_4){this.FINDTYPE_ITEM="0";this.FINDTYPE_SELLER="2";this.FINDTYPE_BIDDER="3";this.FINDTYPE_ITEM_NUMBER="4";this.FINDTYPE_STORE_NAME="7";this.FINDTYPE_CONTACT="9";this.FINDTYPE_ITEM_SPECIFICS="21";this.FINDTYPE_INTEGRATED="25";this.FINDTYPE_TRADING_ASSISTANT="27";this.vE=vjo.dsf.Element;this.type=_3.type;this.eForm=this.vE.get(_2);this.searchStoreParamName=_3.searchStoreParamName;this.searchStoreNameURL=_3.searchStoreNameURL;this.searchStoreMatchingItemURL=_3.searchStoreMatchingItemURL;this.isNewSEO=_3.newSEOUsed;var _5=false;_5=_4;if(typeof(_2)!="undefined"&&(_1.nativeEvent.keyCode==13||_5||_1.nativeEvent.type=="submit")){this.doAdvSearchFormSubmit(_3);this.setHiddenInputValues(_3);vjo.dsf.document.Form.submit(_2);return false;}},setHiddenInputValues:function(_6){var kw=this.vE.get(_6.kwId);var _8=this.vE.get(_6.exKwId);var _9=this.vE.get(_6.orignalKwId);var _a=this.vE.get(_6.orignalExKwId);if(null!=_9){_9.value=kw.value;}
if(null!=_a){_a.value=_8.value;}},doAdvSearchFormSubmit:function(_b){var t=this;if(t.type==t.FINDTYPE_STORE_NAME&&typeof(t.eForm.elements[t.searchStoreParamName])!="undefined"){if(t.eForm.elements[t.searchStoreParamName][0].checked){t.eForm.action=t.searchStoreMatchingItemURL;}else{t.eForm.action=t.searchStoreNameURL;}}else{if(t.isNewSEO){var _d=document.getElementById(_b.kwId);if(_d&&_d.value&&_d.value.trim()!=""){var _e=t.eForm.action;var _f="/items/";var _10="/stores/";var idx;if(_e.indexOf(_f)!=-1){idx=_e.indexOf(_f)+_f.length;}else{if(_e.indexOf(_10)!=-1){idx=_e.indexOf(_10)+_10.length;}}
if(idx){_e=_e.substring(0,idx)+encodeURIComponent(_d)+_e.substr(idx);}
t.eForm.action=_e;}}}},doLeftNavLinkClicked:function(_12,_13,_14,_15){var eD=vjo.dsf.EventDispatcher;var vE=vjo.dsf.Element;var _18=vE.get(_14);var _19=vE.get(_13);var _1a="";var _1b="";if(null!=_15){_1a=_15.siteId;_1b=_15.type;}
var _1c=(_1a=="223"||_1a=="196"||_1a=="201");var _1d=(_1b=="4");var _1e=_12;if(!(_1c&&_1d)){_1e=this.appendFormParam(_12,_18);}
_19.href=_1e;return true;},appendFormParam:function(_1f,_20){var _21=this.buildFormElementArray(_20);var _22=this.buildShortQuery(_21,_1f);return _22;},buildFormElementArray:function(_23){var _24=new Array();var _25=_23.elements.length;for(var i=0;i<_25;i++){var _27=_23.elements[i];if(this.isSplitable(_27)){_24=this.splitOverloadedParams(_27,_24);}else{_24[_24.length]=_27;}}
_24=this.removeUnwantedParams(_24);return _24;},removeUnwantedParams:function(_28){var _29=new Array();var _2a=_28.length;for(var i=0;i<_2a;i++){var _2c=_28[i];if((_2c.name=="_frompage")||(_2c.name=="_tokentext")||(_2c.name=="_tokenstring")||(_2c.name=="_ec")||(_2c.name=="LH_SellerWithStore")){continue;}else{if(""==vjo.darwin.core.editor.VjEditorUtils.trim(_2c.name)){continue;}else{if(_2c.type=="checkbox"||_2c.type=="radio"){}}}
_29[_29.length]=_2c;}
return _29;},isSplitable:function(_2d){switch(_2d.type){case"text":return false;case"checkbox":case"radio":return _2d.checked;case"select-one":case"select-multiple":return(_2d.selectedIndex>-1);default:return false;}},splitOverloadedParams:function(_2e,_2f){var _30=_2f;var _31=_2e.name+"="+_2e.value;var _32=_31.split("&");if(_32.length<=1){_30[_30.length]=_2e;}else{var _33=_32.length;for(var i=0;(i<_33);i++){var _35=_32[i].split("=");var _36=(i==0)?"text":"hidden";_30[_30.length]={type:_36,name:_35[0],value:_35[1]};if(i==0&&_2e.disabled){break;}}}
return _30;},buildShortQuery:function(_37,_38){var url=_38;if(-1==url.indexOf("?")){url+="?";}
var _3a=_37.length;for(var i=0;i<_3a;i++){var obj=_37[i];var _3d="";if((this.isArray(obj)&&(typeof obj.type=="undefined"))){var _3e=obj.length;for(var j=0;j<_3e;j++){_3d=this.concatShortQuery(obj[j].name,this.getElementValue(obj[j]),i+j);url+=_3d;}}else{if(typeof obj.type!="undefined"){if(obj.type=="select-multiple"){var _40=this.getElementValue(obj);var _41=_40.split(",");var _3e=_41.length;for(var k=0;k<_3e;k++){_3d=this.concatShortQuery(obj.name,_41[k],i);url+=_3d;}}else{_3d=this.concatShortQuery(obj.name,this.getElementValue(obj),i);url+=_3d;}}}}
return url;},getElementValue:function(_43){switch(_43.type){case"button":return null;case"submit":return null;case"reset":return null;case"text":return(""==_43.value)?null:_43.value;case"textarea":return(_43.value=="")?null:_43.value;case"hidden":return(_43.value=="")?null:_43.value;case"file":return _43.value;case"checkbox":return(_43.checked)?_43.value:null;case"radio":if(_43.checked){return _43.value;}else{return null;}
case"select-one":if(_43.selectedIndex<0){return null;}else{var _44=_43.options[_43.selectedIndex].value;var _45=_44.indexOf("&");if(_45!=-1){_44=_44.substring(0,_45);}
return _43.options[_43.selectedIndex].value;}
case"select-multiple":var _46=new Array();var _47=_43.options.length;for(var i=0;i<_47;i++){if(_43.options[i].selected){_46[_46.length]=_43.options[i].value;}}
return _46.join(",");}},concatShortQuery:function(_49,_4a,_4b){var _4c="";if(_4a!=null&&_4a.length>0&&typeof _4a!="undefined"){if(_4b>0){_4c+="&";}
_4c+=_49+"="+this.escapeVal(_4a);}
return _4c;},escapeVal:function(v){var re=new RegExp("[']","g");v=v.toString();v=v.replace(re,"\\'");return v;},isArray:function(_4f){if(typeof _4f=="object"){return(typeof _4f.length=="undefined")?false:true;}else{return false;}}}).endType();
vjo.ctype("vjo.darwin.component.common.actbutton.ActionButtonImgPreloader").needs("vjo.dsf.client.Browser").needs("vjo.dsf.EventDispatcher").props({preload:function(_1){if(!_1||!_1.length){return;}
var i=0;for(;i<_1.length;i++){if(!this.aLoaded[_1[i]]){if(!this.bPageLoaded){this.aLoaded[_1[i]]=true;}else{this.checkAndPreload(_1[i]);this.aLoaded[_1[i]]=true;}}}},preloadAll:function(){this.bPageLoaded=true;for(var _3 in this.aLoaded){this.checkAndPreload(_3);}},checkAndPreload:function(_4){if(typeof(_4)=="string"&&_4.match(/http.+/)){var _5=new Image();_5.src=_4;}},fixIE6ImgCaching:function(){var br=vjo.dsf.client.Browser;if(br.bIE&&br.iVer<7){var _7=function(){try{document.execCommand("BackgroundImageCache",false,true);}
catch(err){}};vjo.dsf.EventDispatcher.add("body","load",_7);}}}).inits(function(){this.aLoaded=[];this.bPageLoaded=false;var _8=vjo.hitch(this,this.preloadAll);vjo.dsf.EventDispatcher.add("body","load",_8);this.fixIE6ImgCaching();}).endType();
vjo.ctype("vjo.darwin.component.common.actbutton.ActionButton").needs("vjo.dsf.utils.Handlers").needs("vjo.dsf.Element").needs("vjo.dsf.document.Form").needs("vjo.darwin.component.common.actbutton.ActionButtonImgPreloader").protos({constructs:function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a){var t=this;t.E=vjo.dsf.Element;t.H=vjo.dsf.utils.Handlers;t.sCompId=_1+"Anc";t.sAncId=_1+"Lnk";t.sSubId=_1+"Sub";t.sNoScriptId=_1+"NoScript";t.sFormName=_2;t.bAnonymousForm=_3;t.sUrl=_4;t.iState=_5;t.bShowClicked=_6;t.aStateClzes=_7;t.bForceSubmit=_9;t.fMouseMoveEvtHandler="undefined";if(t.bShowClicked){vjo.darwin.component.common.actbutton.ActionButtonImgPreloader.preload(_8);}
t.initMe(_a);},initMe:function(_c){var t=this,ancBtn=t.E.get(t.sCompId),noScript=t.E.get(t.sNoScriptId);if(noScript&&noScript.style){noScript.style.display="none";}
if(ancBtn){t.switchClz();}
if(_c){var _e=t.E.get(t.sAncId);if(t.bShowClicked){t.H.attachEvt(_e,"mousedown",t.onClick,t);t.H.attachEvt(_e,"mouseup",t.clicked,t);t.H.attachEvt(_e,"keypress",t.onEnter,t);}else{t.H.attachEvt(_e,"click",t.clicked,t);}}},enable:function(_f){this.iState=0;this.switchClz();return false;},monitorMouseOut:function(_10){var t=this;if(2!=t.iState){var _12={x:t.eventLeft(_10),y:t.eventTop(_10)};var _13=t.getAncPos(t.sAncId);var _14={x:_13.x+t.E.get(t.sAncId).offsetWidth,y:_13.y+t.E.get(t.sAncId).offsetHeight};if(_12.x<_13.x||_12.x>_14.x||_12.y<_13.y||_12.y>_14.y){t.iState=0;t.switchClz();t.H.detachEvt(document.body,"mousemove",t.fMouseMoveEvtHandler);}
return false;}},isLeftClick:function(_15){if(window.event){if(window.event.button>1){return false;}}else{if(_15.nativeEvent){if(_15.nativeEvent.button>=1){return false;}}}
return true;},getAncPos:function(_16){var e=vjo.dsf.Element.get(_16),l=t=0;while(e){l+=e.offsetLeft;t+=e.offsetTop;e=e.offsetParent;}
return{x:l,y:t};},eventTop:function(_18){if(_18.pageY!=null){return _18.pageY;}else{if(document.documentElement&&document.documentElement.scrollTop){return _18.clientY+Math.max(document.documentElement.scrollTop,document.body.scrollTop);}else{return _18.clientY+document.body.scrollTop;}}},eventLeft:function(_19){if(_19.pageX!=null){return _19.pageX;}else{if(document.documentElement&&document.documentElement.scrollLeft){return _19.clientX+Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);}else{return _19.clientX+document.body.scrollLeft;}}},onEnter:function(_1a){if(2!=this.iState){if(_1a.nativeEvent){if(_1a.nativeEvent.keyCode==13){this.onClick(_1a);return this.clicked(_1a);}}}},onClick:function(_1b){var t=this;if(!t.isLeftClick(_1b)){return false;}
if(2!=t.iState){t.iState=1;if(t.bShowClicked){t.switchClz();t.fMouseMoveEvtHandler=t.H.attachEvt(document.body,"mousemove",t.monitorMouseOut,t);}}
return false;},clicked:function(_1d){var t=this;if(!t.isLeftClick(_1d)){return false;}
if(2!=t.iState&&t.bForceSubmit){t.iState=0;t.switchClz();if(t.bShowClicked){t.H.detachEvt(document.body,"mousemove",t.fMouseMoveEvtHandler);}
if(t.bAnonymousForm){var _1f=t.E.get(t.sSubId);if(_1f){_1f.click();}}else{if(t.sFormName!="undefined"){var _20=t.E.get(t.sFormName);if(typeof(window.external)!="undefined"&&typeof(window.external)!="unknown"&&window.external!=null&&typeof(window.external.AutoCompleteSaveForm)!="undefined"&&typeof(window.external.AutoCompleteSaveForm)!="unknown"){window.external.AutoCompleteSaveForm(_20);}
vjo.dsf.document.Form.submit(t.sFormName);}else{if(t.sUrl){window.location=t.sUrl;}}}}
return false;},disable:function(_21){if(2!=this.iState){this.iState=2;this.switchClz();}
return false;},switchClz:function(){var dom=vjo.dsf.Element;var _23=dom.get(this.sCompId);if(_23){_23.className=this.aStateClzes[this.iState];this.displayCursor(dom.get(this.sAncId),"btnPointerCur");if(this.iState==0){_23.style.opacity="";_23.style.filter="";_23.style.zoom="1";if(this.sFormName){}else{var anc=dom.get(this.sAncId);anc.href=this.sUrl;}}else{if(this.iState==2){_23.style.opacity=".5";_23.style.filter="alpha(opacity=50)";_23.style.zoom="1";this.displayCursor(dom.get(this.sAncId),"btnDefCur");var btn=vjo.dsf.Element.get(this.sAncId);if(btn.tagName=="BUTTON"){btn.style.cursor="default";}
if(this.sFormName){}else{var anc=dom.get(this.sAncId);anc.href="#";}}}}},displayCursor:function(anc,_27){if(anc!==null){anc.className=_27;}}}).endType();
vjo.ctype("vjo.darwin.domain.finding.advsearchform.AdvSearchForm").needs(["vjo.dsf.document.Form","vjo.dsf.window.utils.VjWindowUtils","vjo.dsf.window.utils.VjWindow"]).props({onFormKeyUp:function(_1,_2){if(typeof(_2)!="undefined"&&_1.nativeEvent.keyCode==13){vjo.dsf.document.Form.submit(_2);}},openContextualHelpWindow:function(_3,_4,_5,_6,_7,_8,_9){var _a=vjo.dsf.window.utils.VjWindowUtils;var _b=_a.getBrowserWindowWidth();var _c=_a.getBrowserWindowHeight();var _d=parseInt(_b-_8);var _e=_9;var w=_6;var h=_7;_5=_5+",left="+_d+",top="+_e;return vjo.dsf.window.utils.VjWindow.open(_3,_4,_5,false,false,w,h);}}).endType();
vjo.ctype("vjo.darwin.core.searchbox.EbaySearchBox").needs("vjo.dsf.Element").needs("vjo.dsf.utils.Timer").protos({textBoxId:null,buttonId:null,buttonInitiallyDisabled:false,constructs:function(_1,_2,_3){this.textBoxId=_1;this.buttonId=_2;this.buttonInitiallyDisabled=_3;if(this.buttonInitiallyDisabled){this.updateButton();}
return this;},clearTextBox:function(){var _4=vjo.dsf.Element.get(this.textBoxId);var _5=vjo.dsf.Element.get(this.buttonId);if(_4.defaultValue==_4.value){_4.value="";}},updateButton:function(){var _6=vjo.dsf.Element.get(this.buttonId);var _7=vjo.dsf.Element.get(this.textBoxId);if(_6!==null&&_7!==null){if(this.buttonInitiallyDisabled&&(_7.defaultValue==_7.value)){_6.disabled=true;}else{_6.disabled=(_7.value.replace(/\s/g,"").length<1);}}}}).endType();
vjo.ctype("vjo.darwin.core.togglemoreresults.ToggleMoreResults").needs(["vjo.dsf.Element","vjo.dsf.EventDispatcher"]).protos({sShowDivId:null,sHideDivId:null,sToggleDiv:null,bIsToggleDivVisible:false,bIsScrolling:false,sShowAnchorId:null,sHideAnchorId:null,constructs:function(_1,_2,_3,_4,_5,_6,_7){this.sShowDivId=_1;this.sHideDivId=_2;this.sToggleDiv=_3;this.bIsToggleDivVisible=_4;this.bIsScrolling=_5;this.sShowAnchorId=_6;this.sHideAnchorId=_7;},bind:function(){var _8=this;var eD=vjo.dsf.EventDispatcher;var _a={};_a.handle=function(){_8.onclick();};if(this.sShowAnchorId){eD.detachHandlers(this.sShowAnchorId,"click");eD.add(this.sShowAnchorId,"click",_a);}
if(this.sHideAnchorId){eD.detachHandlers(this.sHideAnchorId,"click");eD.add(this.sHideAnchorId,"click",_a);}},onclick:function(){var _b=vjo.dsf.Element;var _c=_b.get(this.sShowDivId);var _d=_b.get(this.sHideDivId);var _e=_b.get(this.sToggleDiv);var _f=this.findPos(_c);var _10;if(this.bIsToggleDivVisible===true){_e.style.display="none";_10=_d.innerHTML;_d.innerHTML=_c.innerHTML;_c.innerHTML=_10;this.bIsToggleDivVisible=false;if(this.bIsScrolling){var _11=this.findPos(_c);window.scrollBy(0,_11[1]-_f[1]);}}else{_e.style.display="block";_10=_d.innerHTML;_d.innerHTML=_c.innerHTML;_c.innerHTML=_10;this.bIsToggleDivVisible=true;}
this.bind();},findPos:function(obj){var _13=0;var _14=0;if(obj.offsetParent){_13=obj.offsetLeft;_14=obj.offsetTop;while(obj=obj.offsetParent){_13+=obj.offsetLeft;_14+=obj.offsetTop;}}
return[_13,_14];}}).endType();
vjo.ctype("vjo.darwin.core.togglemoreresults.ToggleResults").needs("vjo.dsf.EventDispatcher").protos({show:null,hide:null,toggle:null,visible:false,scroll:false,constructs:function(_1,_2,_3,_4,_5){this.show=document.getElementById(_1);this.show.style.display=(_4)?"none":"";this.hide=document.getElementById(_2);this.hide.style.display=(_4)?"":"none";this.toggle=document.getElementById(_3);this.toggle.style.display=(_4)?"":"none";this.scroll=_5;vjo.dsf.EventDispatcher.addEventListener(this.show.getElementsByTagName("span")[0],"click",this.onShow,this);vjo.dsf.EventDispatcher.addEventListener(this.hide.getElementsByTagName("span")[0],"click",this.onHide,this);},onShow:function(_6){this.show.style.display="none";this.hide.style.display="";this.toggle.style.display="";return false;},onHide:function(_7){this.show.style.display="";this.hide.style.display="none";this.toggle.style.display="none";if(this.scroll){window.scrollTo(this.show.offsetLeft,this.show.offsetTop);}}}).endType();
vjo.ctype("vjo.darwin.domain.finding.expandablepanel.ExpandablePanel").needs(["vjo.dsf.Element","vjo.dsf.utils.UriBuilder"]).props({steps:10,interval:20,heights:{},toggleExpand:function(_1){var _2=_1.id;var vE=vjo.dsf.Element;var _4=vE.get(_1.titleId);var _5=vE.get(_1.contentId);var ep=vjo.darwin.domain.finding.expandablepanel.ExpandablePanel;var _7=ep.heights;var _8=_7[_2];if(!_8){_8=_5.offsetHeight;_5.style.display="block";if(!_8){_8=_5.offsetHeight;_5.style.display="none";}
_7[_2]=_8;}
ep.track(_1.trackingUrl);ep.toggle(_4,_5,_8,ep.steps);},toggle:function(_9,_a,_b,_c,_d){if(!_d){_d=1;}
var _e=_9.className=="ep-tl-clps";var _f=_d/_c;if(!_e){_f=1-_f;}
var cs=_a.style;if(_e&&_d==1){cs.display="block";}else{if(!_e&&_d==_c){cs.display="none";}}
cs.height=_f*_b+"px";cs.filter="alpha(opacity='"+_f*100+"')";cs.opacity=_f;if(_d==_c){_a.className=_e?"ep-ct-expd":"ep-ct-clps";_9.className=_e?"ep-tl-expd":"ep-tl-clps";}else{var ep=vjo.darwin.domain.finding.expandablepanel.ExpandablePanel;setTimeout(function(){ep.toggle(_9,_a,_b,_c,_d+1);},ep.interval);}},track:function(_12){if(_12){var _13=new Date();var _14=document.createElement("img");var _15=new vjo.dsf.utils.UriBuilder(_12);_15.appendParam("time",_13.getTime());_14.src=_15.getUri();}}}).endType();
vjo.ctype("vjo.darwin.domain.finding.tracking.FindingClickTracking").needs("vjo.darwin.domain.finding.ajax.AjaxUtils").props({click:function(_1){try{var e=document.getElementById(_1);vjo.darwin.domain.finding.ajax.AjaxUtils.writeTrkCookie(e.getAttribute("_sp"),e.href);window.open(e.href,"_self");}
catch(e){}}}).inits(function(){window.trkClick=this.click;}).endType();
vjo.ctype("vjo.darwin.domain.finding.searchutils.SearchUtils").needs("vjo.dsf.Element").props({selectLocation:function(_1){var pS=vjo.dsf.Element.get(_1);if(pS){location.href=pS.value;}}}).endType();
vjo.ctype("vjo.darwin.core.overlaypanel.VjOverlayPanelController").needs("vjo.dsf.utils.Timer").needs("vjo.dsf.utils.Handlers").protos({H:vjo.dsf.utils.Handlers,aOlps:null,sIsActivated:false,oCloseTimer:null,constructs:function(){var t=this,H=t.H;t.aOlps=[];t.sIsActivated=false;H.attachEvt(window,"resize",t.initResize,t);var _2=function(){t.initCloseOnMouseOut();};window.setTimeout(_2,500);t.openAtZIndex=5000;},registerOverlayPanel:function(_3){var t=this;t.aOlps[t.aOlps.length]=_3;},initCloseOnMouseOut:function(){var t=this;t.oCloseTimer=new vjo.dsf.utils.Timer(100);var _6=t.oCloseTimer;_6.onTick=function(){var i=0,arr=t.aOlps,len=arr.length;while(i<len){var _8=arr[i];if(_8.bCloseOnMouseOut){_8.tryCloseOnMouseOut();}
i++;}};_6.start();},zIndex:function(){var o=this.openAtZIndex;o+=1;return o;},requireResize:function(){this.sIsActivated=true;},forceResize:function(_a){var t=this,i=0;for(;i<t.aOlps.length;i++){var tO=t.aOlps[i];if(_a&&tO.sOverlayDivId==_a){tO.onResize();break;}else{tO.onResize();}}},initResize:function(){var t=this,H=t.H;H.detachEvt(window,"resize",t.initResize);H.attachEvt(window,"resize",t.requireResize,t);t.requireResize();t.oResizeTimer=new vjo.dsf.utils.Timer();var _e=t.oResizeTimer;_e.interval=500;_e.onTick=function(){var bA=t.sIsActivated;if(bA){for(var i=0;i<t.aOlps.length;i++){var tO=t.aOlps[i];if(tO.bAdjustSize&&tO.bPanelOpen){tO.onResize();}}
bA=false;}};_e.start();},resizeOlps:function(){var i=0,t=this;for(;i<t.aOlps.length;i++){var tO=t.aOlps[i];if(tO.bPanelOpen){tO.onResize();}}}}).inits(function(){vjo.darwin.core.overlaypanel.VjOverlayPanelController=new vjo.darwin.core.overlaypanel.VjOverlayPanelController();}).endType();
vjo.ctype("vjo.darwin.core.overlaypanel.VjOverlayPanelOpenSvcHandler").needs("vjo.dsf.Message").protos({sOverlayPanelJsCompId:null,constructs:function(_1){this.sOverlayPanelJsCompId=_1;},invoke:function(_2){var _3=vjo.Registry.get(this.sOverlayPanelJsCompId),mO=_2.bOver,LS=_2.leftOffset,TS=_2.topOffset,mL=_2.left,mT=_2.top,pAC=_3.aAnchorCoor;_3.fSetNotchLocation=_2.fSetNotchLocation;_3.oSetNotchLocationOverrider=_2.oSetNotchLocationOverrider;var _4=true;if(typeof(mO)!="undefined"){_4=mO;}
_3.bCloseOnMouseOut=_4;_3.setAnchorName(_2.sAnchorId);_3.iTmpLftOfset=LS?LS:0;_3.iTmpTopOfset=TS?TS:0;pAC=(mL&&mT)?{x:mL,y:mT}:false;if(_2.bResetPosition){_3.bPanelOpen=false;}
_3.onOpenOverlayPanel(pAC||false);_2.returnData=false;return _2;}}).endType();
vjo.ctype("vjo.darwin.core.overlaypanel.VjOverlayPanelCloseSvcHandler").needs("vjo.dsf.Message").needs("vjo.Registry").protos({sOverlayPanelJsCompId:null,constructs:function(_1){this.sOverlayPanelJsCompId=_1;},invoke:function(_2){var _3=vjo.Registry.get(this.sOverlayPanelJsCompId);_3.onClosePanel(_2.getCheckState?_2.getCheckState():false);return _2;}}).endType();
vjo.ctype("vjo.darwin.core.overlaypanel.VjOverlayPanel").needs("vjo.dsf.client.Browser").needs("vjo.dsf.Element").needs("vjo.dsf.document.Positioning").needs("vjo.dsf.document.Shim").needs("vjo.dsf.utils.Handlers").needs("vjo.dsf.Message").needs("vjo.dsf.window.utils.VjWindowUtils").needs("vjo.darwin.core.overlaypanel.VjOverlayPanelController").needs("vjo.darwin.core.overlaypanel.VjOverlayPanelOpenSvcHandler").needs("vjo.darwin.core.overlaypanel.VjOverlayPanelCloseSvcHandler").inherits("vjo.dsf.utils.Timer").protos({H:vjo.dsf.utils.Handlers,B:vjo.dsf.client.Browser,PC:vjo.darwin.core.overlaypanel.VjOverlayPanelController,E:vjo.dsf.Element,S:vjo.dsf.document.Shim,M:vjo.dsf.Message,P:vjo.dsf.document.Positioning,W:vjo.dsf.window.utils.VjWindowUtils,sOverlayDivId:null,sOlpId:null,oOlp:null,oCntnt:null,oShdw:null,oArr:null,pVt:null,sArrowVTL:null,sArrowVTR:null,sArrowVBL:null,sArrowVBR:null,sArrowTL:null,sArrowTR:null,sArrowBR:null,sArrowBL:null,iLastLeft:null,iLastTop:0,mouseState:0,initDx:0,top:0,left:0,iTmpLftOfset:0,iTmpTopOfset:0,iCnstLftOfset:null,iCnstTopOfset:0,aAnchorCoor:false,sHAlgn:false,sVAlgn:false,iShdwOfset:0,iOpDlay:0,iClsDlay:0,bCloseOnMouseOut:false,bHasMask:false,ArrowVBR:null,sOpMaskServId:null,sClsMaskServId:null,sPostOpServId:null,sPostClsServId:null,bAdjustSize:false,fSetNotchLocation:false,closeByButton:false,bPanelOpen:false,bCheckState:false,oSetNotchLocationOverrider:false,sOpenServiceName:null,sCloseServiceName:null,bSelfRegistry:false,bPromote2Body:false,oWHeader:null,oCntn:null,oCntntBox:null,oCloseBtn:null,sJsId:null,bHeaderDraggable:false,bDraggable:false,bHasCloseBtn:false,icmpWidth:0,sCmpOpacity:null,bMonitorDrag:false,constructs:function(_1){var t=this,E=t.E;t.sOverlayDivId=_1.overlayCompId;var _3=t.sOverlayDivId;t.sOlpId=_1.cmpWrapperId;t.oOlp=E.get(_3);t.oCntnt=E.get(_3+"olpcontent");t.oShdw=E.get(_3+"olpshadow");t.oArr=E.get(_3+"olparrow");t.pVt=_1.pointerVertical;t.sArrowVTL=_1.arrowVTL;t.sArrowVTR=_1.arrowVTR;t.sArrowVBL=_1.arrowVBL;t.sArrowVBR=_1.arrowVBR;t.sArrowTL=_1.arrowTL;t.sArrowTR=_1.arrowTR;t.sArrowBR=_1.arrowBR;t.sArrowBL=_1.arrowBL;t.iLastLeft=t.iLastTop=t.mouseState=-1;t.initDx=t.initDy=t.top=t.left=t.iTmpLftOfset=t.iTmpTopOfset=0;t.bShownInCenter=_1.isShownInCenter;t.iCnstLftOfset=_1.leftOffset;t.iCnstTopOfset=_1.topOffset;t.aAnchorCoor=false;t.sHAlgn=_1.horizontalAlign||false;t.sVAlgn=_1.verticalAlign||false;t.iShdwOfset=_1.shadowOffset;t.iOpDlay=_1.openDelay;t.iClsDlay=_1.closeDelay;t.bCloseOnMouseOut=_1.isCloseOnMouseOut;t.bHasMask=_1.hasMask;t.sOpMaskServId=_1.openMaskServiceName;t.sClsMaskServId=_1.closeMaskServiceName;t.sPostOpServId=_1.postOpenedServiceName;t.sPostClsServId=_1.postClosedServiceName;t.bAdjustSize=_1.adjustSize;t.fSetNotchLocation=t.oSetNotchLocationOverrider=t.closeByButton=t.bPanelOpen=t.bCheckState=false;t.sOpenServiceName="OPEN_OVERLAY_PANEL"+_3;t.sCloseServiceName="CLOSE_OVERLAY_PANEL"+_3;t.bSelfRegistry=_1.selfRegistry;t.bPromote2Body=_1.promote2Body;t.bPromoted=false;t.oWHeader=E.get(_3+"olpctnhd");t.oCntn=E.get(_3+"_cnt_n");t.oCntntBox=E.get(_3+"olpctnbox");t.oCloseBtn=E.get(_3+"closebtn");t.oCloseLink=E.get(_3+"closelink");t.sJsId=_1.cmpJsId;t.bHeaderDraggable=_1.headerDraggable;t.bDraggable=_1.draggable;t.bHasCloseBtn=_1.hasCloseBtn;t.bHasCloseLink=_1.hasCloseText;t.icmpWidth=_1.cmpWidth;t.sCmpOpacity=_1.cmpOpacity;t.PC.registerOverlayPanel(t);var _4=E.get("IFrameOff");t.IfrOFF=false;if(_4){t.IfrOFF=_4.value;}
if(t.bSelfRegistry){t.init();}
if(t.bPromote2Body){var _5=function(){t.promote2body(true);};t.H.attachEvt(window,"load",_5,window);}
t.strExt=".gif";t.pngs=_1.pngImgs;t.gifs=_1.gifImgs;if(t.B.bIE&&t.B.bWin&&t.B.iVer>5&&t.B.iVer<=6){t.pngalpha=true;t.strExt=".png";}else{if((t.B.bFirefox)||(t.B.bSafari)||(t.B.bNav)||(t.B.bIE&&t.B.bMac)||(t.B.bOpera&&t.B.bWin&&t.B.iVer>=6)||(t.B.bOpera&&t.B.iVer>=6)||(t.B.bOpera&&t.B.bMac&&t.B.iVer>=5)||(t.B.bWebTV)||(t.B.bIE&&t.B.bWin&&t.B.iVer>6)){t.pngnorm=true;t.strExt=".png";if(!t.B.bSafari&&t.oIFrame){t.oIFrame.style.visibility="hidden";}}}},init:function(){var t=this,H=t.H,open=new vjo.darwin.core.overlaypanel.VjOverlayPanelOpenSvcHandler(t.sJsId),close=new vjo.darwin.core.overlaypanel.VjOverlayPanelCloseSvcHandler(t.sJsId);H.attachSvcReqt(t.sOpenServiceName,open.invoke,open);H.attachSvcReqt(t.sCloseServiceName,close.invoke,close);if((t.bDraggable&&!t.bHeaderDraggable)&&t.oWHeader){H.attachEvt(t.oWHeader,"mousedown",t.startDrag,t);}
if(t.oOlp&&t.oOlp.firstChild){var sO=t.oOlp.firstChild;sO.setAttribute("style",t.sCmpOpacity);}
if(t.bDraggable&&t.oWHeader&&t.oWHeader.firstChild){var ss=t.oWHeader.firstChild;t.setStyle(ss,"cursor","move");}
if(t.bHeaderDraggable&&t.oCntn){H.attachEvt(t.oCntn,"mousedown",t.startDrag,t);t.setStyle(t.oCntn,"cursor","move");}
if(t.bCloseOnMouseOut&&t.oCntntBox){H.attachEvt(t.oCntntBox,"mouseover",t.panelMouseOver,t);H.attachEvt(t.oCntntBox,"mouseout",t.panelMouseOut,t);}
if(t.bHasCloseBtn&&t.oCloseBtn){H.attachEvt(t.oCloseBtn,"click",t.onClosePanel,t);}
if(t.bHasCloseLink&&t.oCloseLink){H.attachEvt(t.oCloseLink,"click",t.onClosePanel,t);H.attachEvt(t.oCloseLink,"mouseover",t.closeLinkMouseOver,t);H.attachEvt(t.oCloseLink,"mouseout",t.closeLinkMouseOut,t);}
if(t.icmpWidth!==0&&t.oOlp){t.setStyle(t.oOlp,"width",(t.icmpWidth+"PX"));}},setStyle:function(_9,_a,_b){_9.style[_a]=_b;},closeLinkMouseOut:function(){var t=this;t.oCloseLink.style.textDecoration="none";},closeLinkMouseOver:function(){var t=this;t.oCloseLink.style.textDecoration="underline";},promote2body:function(_e){var t=this;if(_e){t.E.promoteToBody(t.sOlpId);t.bPromoted=true;}},onResize:function(){var t=this;if(t.bPanelOpen){if(!t.bDragged){t.bPanelOpen=false;}
t.openOverlayPanel();}},onOpenOverlayPanel:function(_11){var t=this;if(t.bPromote2Body&&!t.bPromoted){t.promote2body(true);}
t.aAnchorCoor=_11?_11:false;t.openTimer=(t.iOpDlay<=0)?t.openOverlayPanel():window.setTimeout(vjo.hitch(t,t.openOverlayPanel),t.iOpDlay);},openOverlayPanel:function(){var t=this,openedInfo=false;if(t.openTimer){window.clearTimeout(t.openTimer);t.openTimer=null;}
if(!t.bPanelOpen){t.bPanelOpen=true;openedInfo=t.render();if(t.bHasMask){t.openMask();}
var _14=new t.M(t.sPostOpServId);if(openedInfo){_14.clientContext={x:openedInfo[0],y:openedInfo[1],w:openedInfo[2],h:openedInfo[3]};t.H.handle(_14);}}},openMask:function(){var t=this,maskMsg=new t.M(t.sOpMaskServId),cnt=t.oCntnt;try{maskMsg.clientContext={formName:cnt};}
catch(e){}
t.H.handle(maskMsg);},align:function(_16,_17,pad,_19){return _16+((_17=="right"||_17=="bottom")?pad:0)+((_17=="middle")?(pad/2):0)+_19;},getLeftOffset:function(){var t=this;return t.iCnstLftOfset+t.iTmpLftOfset;},getTopOffset:function(){var t=this;return t.iCnstTopOfset+t.iTmpTopOfset;},render:function(){var t=this,E=t.E,B=t.B,P=t.P,W=t.W,anc=E.get(t.sAnchorName),coordinates={x:0,y:0},openedInfo=false,AC=t.aAnchorCoor,LS=t.getLeftOffset(),TS=t.getTopOffset(),SS=t.iShdwOfset;if(!t.bShownInCenter){if(AC){coordinates.x=AC.x+LS;coordinates.y=AC.y+TS;}else{coordinates.x=(B.bIE&&B.fVer<7)?P.getOffsetLeft(anc)+1:P.getOffsetLeft(anc);coordinates.y=P.getOffsetTop(anc);coordinates.x=t.align(coordinates.x,t.sHAlgn,anc?anc.offsetWidth:0,LS);coordinates.y=t.align(coordinates.y,t.sVAlgn,anc?anc.offsetHeight:0,TS);}}
var olp=t.oOlp,olpS=olp.style;if(olpS){olpS.visibility="visible";olpS.zIndex=t.PC.zIndex();if(olpS.zIndex===0){t.promote2body();}}
openedInfo=t.fSetNotchLocation?t.fSetNotchLocation(t.oSetNotchLocationOverrider,t,olp,coordinates):t.setNotchLocation(olp,coordinates);t.oShdw.style.height=W.toPixels(t.oCntnt.offsetHeight+2);if(t.oIFrame){var s=t.oIFrame.style;s.width=W.toPixels(olp.offsetWidth+SS);s.height=W.toPixels(olp.offsetHeight+SS+2);}else{if(!t.IfrOFF&&(t.B.bIE&&t.B.iVer<=6)){t.oIFrame=t.S.add(olp,SS,SS+2);}}
t.changeImage();return openedInfo;},changeImage:function(){var t=this;var e=vjo.dsf.Element;var _21=e.get(t.sOlpId);var _22=e.getElementsByTagClass(_21,"div","basOlp-scn");var _23=e.getElementsByTagClass(_21,"div","basOlp-s");var _24=null;for(var idx=0;idx<_23.length;idx++){if(_23[idx].className==="basOlp-s"){_24=_23[idx];break;}}
var _26=e.getElementByTagClass(_21,"div","basOlp-n");var _27=e.getElementByTagClass(_21,"div","basOlp-ctent");if(t.pngalpha){for(var cdx=0;cdx<_22.length;cdx++){t.applyStyle(_22[cdx],t.gifs[1]);_22[cdx].style.filter="";}
var _29="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=";_24.style.filter=_29+t.pngs[0]+", sizingMethod='scale')";_26.style.filter=_29+t.pngs[0]+", sizingMethod='scale')";_27.style.filter=_29+t.pngs[0]+", sizingMethod='scale')";_24.style.background="transparent";_26.style.background="transparent";_27.style.background="transparent";try{var _2a="DXImageTransform.Microsoft.AlphaImageLoader";_24.filters[_2a].enabled=true;_26.filters[_2a].enabled=true;_27.filters[_2a].enabled=true;}
catch(e){for(var cdx=0;cdx<_22.length;cdx++){t.applyStyle(_22[cdx],t.gifs[1]);_22[cdx].style.filter="";}
t.applyStyle(_24,t.gifs[0]);t.applyStyle(_26,t.gifs[0]);t.applyStyle(_27,t.gifs[0]);_24.style.filter="";_26.style.filter="";_27.style.filter="";}}else{if(t.pngnorm){t.applyStyle(_24,t.pngs[0]);t.applyStyle(_26,t.pngs[0]);t.applyStyle(_27,t.pngs[0]);for(var cdx=0;cdx<_22.length;cdx++){t.applyStyle(_22[cdx],t.pngs[1]);}}else{t.applyStyle(_24,t.gifs[0]);t.applyStyle(_26,t.gifs[0]);t.applyStyle(_27,t.gifs[0]);for(var cdx=0;cdx<_22.length;cdx++){t.applyStyle(_22[cdx],t.gifs[1]);}}}},applyStyle:function(_2b,bkg){if(_2b&&bkg&&bkg!=""){_2b.style.backgroundImage="url("+bkg+")";}},setAnchorName:function(_2d){this.sAnchorName=_2d;},setBubbleDivId:function(_2e){this.sOverlayDivId=_2e;},onClosePanel:function(_2f){var t=this,CD=t.iClsDlay;t.bCheckState=_2f;t.closeTimer=(CD<=0)?t.closePanel():window.setTimeout(vjo.hitch(t,t.closePanel),CD);},closePanel:function(){var t=this,cT=t.closeTimer;if(cT){window.clearTimeout(cT);cT=null;}
if(t.bCheckState&&t.mouseState==1){t.bCheckState=false;return;}
t.hidePanel();if(t.mouseState==1){t.closeByButton=true;}
t.bDragged=false;},setNotchLocation:function(olp,_33){var t=this,W=t.W,olpS=olp.style,iX=_33.x,iY=_33.y,iW=olp.offsetWidth,iH=olp.offsetHeight,iScreenW=W.getBrowserWindowWidth(),iScreenH=W.getBrowserWindowHeight(),aScollLoc=W.getScrollXY(),iScrollX=aScollLoc[0],iScrollY=aScollLoc[1],arr=t.oArr;if(!t.bShownInCenter){if(t.pVt){var _35=iX-iScrollX,yLoc=iY-iScrollY,finalX=0,finalY=0,arrH=21,sAuto="auto",iAdj=5,bTop=true,bLeft=false,B=t.B,iGuard=1;if(!B.bIE){iAdj+=16;}
if((yLoc-iH-arrH)<0){finalY=iY+arrH+iGuard;bTop=false;}else{finalY=iY-iH-arrH-iGuard;}
if(iX-iW/2<0){finalX=0;}else{if(iX+iW/2+iAdj>iScreenW){finalX=iScreenW-iW-iAdj;bLeft=true;}else{finalX=iX-(iW/2);}}
if(arr){arr.style.left=W.toPixels(iX-finalX-(bLeft?arr.offsetWidth+iGuard:-iGuard));}
if(bTop){t.setArrDivStyle(arr,bLeft?t.sArrowVBL:t.sArrowVBR,sAuto,W.toPixels(-arrH));}else{t.setArrDivStyle(arr,bLeft?t.sArrowVTL:t.sArrowVTR,W.toPixels(-arrH),sAuto);}}else{var _35=iX-iScrollX,yLoc=iY-iScrollY,arrH=arr?21:0,arrW=arr?21:0,arrS=arr?14:0,finalX=0,finalY=0,finalW=iW+arrW,finalH=iH,sAuto="auto",iAdj=0,bLeft=false;if((_35+iW+arrW)<iScreenW||iW>iScreenW||(t.sHAlgn&&t.sHAlgn!="middle")){finalX=iX+arrW;bLeft=true;}else{if((_35-iW-arrW)<0){finalX=(iScreenW/2-iW/2)+iScrollX+t.getLeftOffset();}else{finalX=iX-iW-arrW;}}
if((yLoc+iH)<iScreenH){finalY=iY-arrS;t.setArrDivStyle(arr,bLeft?t.sArrowTL:t.sArrowTR,W.toPixels(arrS),sAuto);}else{if((yLoc+arrS)>iH){finalY=iY-iH+arrS;finalY-=t.getTopOffset()*2;t.setArrDivStyle(arr,bLeft?t.sArrowBL:t.sArrowBR,sAuto,W.toPixels(arrS));}else{if(yLoc<(iScreenH/2)&&(iH<iScreenH)){iAdj=(iY+iH)-(iScrollY+iScreenH);finalY=iY-iAdj-arrS;t.setArrDivStyle(arr,bLeft?t.sArrowTL:t.sArrowTR,W.toPixels(arrS+iAdj),sAuto);}else{iAdj=iScrollY-(iY-iH+arrS);finalY=iScrollY;t.setArrDivStyle(arr,bLeft?t.sArrowBL:t.sArrowBR,W.toPixels(yLoc-arrS),sAuto);}}}}}else{finalX=(iScreenW/2-iW/2)+iScrollX+t.getLeftOffset();finalY=iScreenH/2-iH/2;finalY=finalY>0?finalY:0;finalY=finalY+iScrollY+t.getTopOffset();}
olpS.left=W.toPixels(finalX);olpS.top=W.toPixels(finalY);return[finalX,finalY,finalW,finalH];},setArrDivStyle:function(_36,_37,_38,_39){var _3a=_36;if(_36){_3a.className=_37;_3a.style.top=_38;_3a.style.bottom=_39;}},startDrag:function(_3b){var t=this,P=t.P,W=t.W,olp=t.oOlp,SR=t.bSelfRegistry,H=t.H,db=document.body;if(!t.bMonitorDrag){t.bMonitorDrag=true;t.bDragged=true;var _3d=_3b.nativeEvent;if(SR){_3d=_3b.nativeEvent||_3b;}
var _3e=W.eventTop(_3d),mouseX=W.eventLeft(_3d);t.initDx=P.getOffsetLeft(olp)-mouseX;t.initDy=P.getOffsetTop(olp)-_3e;t.top=t.iLastTop=_3e;t.left=t.iLastLeft=mouseX;t.fOnMouseMoveHdl=H.attachEvt(db,"mousemove",t.onMouseMove,t);t.fOnMouseUpHdl=H.attachEvt(db,"mouseup",t.onMouseUp,t);if(olp){olp.onselectstart=olp.onmousedown=function(){return false;};}
t.interval=50;t.onTick=function(){t.monitorMouseDrag();};t.start();}
if(SR){var _3f=_3d.target||_3d.srcElement;H.attachEvt(_3f,"mouseup",t.stopDrag,t);}},onMouseMove:function(_40){var t=this,W=t.W;if(t.bMonitorDrag){var _42=window.event?window.event:_40;var _43=W.eventTop(_42),leftValue=W.eventLeft(_42);if(_43>=0&&leftValue>=0){t.top=_43;t.left=leftValue;}}},onMouseUp:function(_44){var t=this,H=t.H,db=document.body;if(t.bMonitorDrag){H.detachEvt(db,"mousemove",t.fOnMouseMoveHdl);H.detachEvt(db,"mouseup",t.fOnMouseUpHdl);t.stopDrag();}},monitorMouseDrag:function(){if(this.bMonitorDrag){var t=this,P=t.P,W=t.W;if((t.left!=t.iLastLeft)||(t.top!=t.iLastTop)){var dx=t.left-t.iLastLeft,dy=t.top-t.iLastTop;t.iLastLeft=t.left;t.iLastTop=t.top;var olp=t.oOlp,olpS=olp.style,x=P.getOffsetLeft(olp),y=P.getOffsetTop(olp);olpS.left=W.toPixels(x+dx);olpS.top=W.toPixels(y+dy);}}},stopDrag:function(){var t=this;t.bMonitorDrag=false;var olp=t.oOlp;if(olp){olp.onselectstart=olp.onmousedown=null;}
t.stop();},panelMouseOver:function(){this.mouseState=1;},panelMouseOut:function(){this.mouseState=0;},tryCloseOnMouseOut:function(){var t=this;if(t.mouseState===0){t.mouseState=-1;if(!t.closeByButton){t.onClosePanel();}else{t.closeByButton=false;t.mouseState=-1;}}},hidePanel:function(){var t=this,H=t.H,M=t.M,olp=t.oOlp,olpS=olp.style;olpS.visibility="hidden";olpS.left="-1600px";t.bPanelOpen=false;t.iTmpLftOfset=t.iTmpTopOfset=0;if(t.bHasMask){H.handle(new M(t.sClsMaskServId));}
if(t.sPostClsServId){H.handle(new M(t.sPostClsServId));}
if(t.oIFrame){if(!t.fCleanUp){t.fCleanUp=function(){t.S.remove(t.oOlp,t.oIFrame);t.oIFrame=null;};H.attachEvt(window,"unload",t.fCleanUp,t);}}},setContentTitle:function(_4d){var t=this,tcnt=t.oTitlCntnr;if(!tcnt){tcnt=t.E.get(t.sOverlayDivId+"olpcontenttitle");}
if(tcnt){tcnt.innerHTML=_4d;}}}).endType();
vjo.ctype("vjo.darwin.core.overlaypanel.VjOverlayPanelMessage").inherits("vjo.dsf.Message").protos({bCheckState:false,sAnchorId:null,sBubbleId:null,constructs:function(_1,_2){var t=this;t.base.call(t,_1);t.request=t.response={};t.sAnchorId=t.sBubbleId="";t.bCheckState=false;},setBubbleId:function(_4){this.sBubbleId=_4;},getBubbleId:function(){return this.sBubbleId;},setAnchorId:function(_5){this.sAnchorId=_5;},getAnchorId:function(){return this.sAnchorId;},getCheckState:function(){return this.bCheckState;}}).endType();
vjo.ctype("vjo.darwin.core.overlaypanel.VjOverlayPanelEvtHandlers").needs("vjo.dsf.Message").needs("vjo.darwin.core.overlaypanel.VjOverlayPanelMessage").needs("vjo.dsf.window.utils.VjWindowUtils").props({M:vjo.darwin.core.overlaypanel.VjOverlayPanelMessage,handleOpenEvent:function(_1,_2){var _3=new this.M(_1);_3.setAnchorId(_2);return _3;},handleOpenEventXY:function(_4,x,y){var _7=new this.M(_4);_7.left=x;_7.top=y;_7.resetPosition=false;return _7;},handleOpenEventByLoc:function(_8,_9){var e=_9.nativeEvent,W=vjo.dsf.window.utils.VjWindowUtils,x=W.eventLeft(e),y=W.eventTop(e);return this.handleOpenEventXY(_8,x,y);},handleCloseEvent:function(_b){var _c=new this.M(_b);return _c;},handleCloseEventWithCheck:function(_d,_e){var _f=new this.M(_d);_f.bCheckState=_e;return _f;}}).endType();
vjo.ctype("vjo.darwin.domain.finding.util.GoToUrl").props({onClick:function(_1){window.location.href=_1;return false;}}).endType();
vjo.ctype("vjo.darwin.domain.finding.util.VisitedLinkUtility").protos({constructs:function(){var _1={"#vistedLinkContainer":"left:-1000px;top:-1000px;position:absolute;","#vistedLinkContainer  a:visited":"color:#990000;","#vistedLinkContainer  a:link":"color:#000099;"};this.hexColor="#990000";this.rgbColor="rgb("+parseInt(this.hexColor.substring(1,3),16)+", "+parseInt(this.hexColor.substring(3,5),16)+", "+parseInt(this.hexColor.substring(5,7),16)+")";this.visitedUrls=new Array();this.container=document.createElement("div");this.container.id="vistedLinkContainer";document.body.appendChild(this.container);this.createCss(_1);},getColor:function(_2){if(_2.currentStyle){return _2.currentStyle["color"];}else{if(document.defaultView){return document.defaultView.getComputedStyle(_2,"").getPropertyValue("color");}else{return"";}}},createCss:function(_3){var _4=document.createElement("style");_4.setAttribute("type","text/css");var _5=false;for(var i in _3){try{_4.appendChild(document.createTextNode(i+" {"+_3[i]+"}"));}
catch(e){_5=true;}}
var _7=document.getElementsByTagName("head");if(_7[0]){_7[0].appendChild(_4);}
if(_5){var _8=document.styleSheets[document.styleSheets.length-1];if(typeof(_8.addRule)=="object"){for(var i in _3){_8.addRule(i,_3[i]);}}}},isVisited:function(_9){var _a=this.visitedUrls.length;for(var i=0;i<_a;i++){if(_9==this.visitedUrls[i]){return true;}}
var _c=document.createElement("a");_c.href=_9;this.container.appendChild(_c);var _d=this.getColor(_c);this.container.removeChild(_c);if(_d==this.hexColor||_d==this.rgbColor){this.visitedUrls.push(_9);return true;}
return false;}}).inits(function(){vjo.darwin.domain.finding.util.VisitedLinkUtility=new vjo.darwin.domain.finding.util.VisitedLinkUtility();}).endType();
vjo.ctype("vjo.darwin.domain.finding.util.VisitedLinkValidator").protos({constructs:function(_1){this.hexColor=_1||"#0000CC";this.rgbColor="rgb("+parseInt(this.hexColor.substring(1,3),16)+", "+parseInt(this.hexColor.substring(3,5),16)+", "+parseInt(this.hexColor.substring(5,7),16)+")";this.visitedUrls=new Array();},getColor:function(_2){if(_2.currentStyle){return _2.currentStyle["color"];}else{if(document.defaultView){return document.defaultView.getComputedStyle(_2,"").getPropertyValue("color");}else{return"";}}},isVisited:function(_3){var _4=this.visitedUrls.length;for(var i=0;i<_4;i++){if(_3==this.visitedUrls[i]){return true;}}
var _6=document.createElement("a");_6.href=_3;document.body.appendChild(_6);var _7=this.getColor(_6);document.body.removeChild(_6);if(_7==this.hexColor||_7==this.rgbColor){this.visitedUrls.push(_3);return true;}
return false;}}).endType();
vjo.ctype("vjo.darwin.domain.finding.util.SearchLogger").props({extractPageId:function(_1){var _2=document.getElementsByTagName("body")[0];var _3=vjo.dsf.Element.get(_1);if(!_3){return false;}
for(var x=0;x<_2.childNodes.length;x++){if(_2.childNodes[x].nodeType==8){var _5=_2.childNodes[x].data;var _6=this.parseData(_5,"RlogId",",");if(_6){_6=_6.split(" ")[1];_3.innerHTML="Page ID: "+_6;_3.style.display="block";break;}}}},parseData:function(_7,_8,_9){var _a=_7.split(_9);var _b=_a.length;for(var i=0;i<_b;i++){str=_a[i];if(str.indexOf(_8)==0){return str;}}
return false;}}).endType();
vjo.ctype("vjo.darwin.domain.finding.util.CookieHelper").needs("vjo.darwin.domain.finding.ajax.AjaxUtils").props({setBackLinkCookie:function(){var _1=vjo.darwin.domain.finding.ajax.AjaxUtils.extractStateUrl();if(_1!==null){cookieUrl=document.location.protocol+"//"+document.location.host+_1;}else{cookieUrl=document.location.href;}
vjo.dsf.cookie.VjCookieJar.writeCookielet("s","BIBO_BACK_TO_LIST",cookieUrl);}}).endType();
vjo.ctype("vjo.darwin.domain.finding.util.ScrollDetect").needs(["vjo.dsf.EventDispatcher","vjo.dsf.ServiceEngine","vjo.dsf.Message","vjo.dsf.document.Positioning","vjo.darwin.domain.finding.ajax.AjaxUtils"]).props({listener:false,scrolled:false,threshold:1150,getScrollY:function(){var _1=0;if(typeof(window.pageYOffset)=="number"){_1=window.pageYOffset;}else{if(document.body&&document.body.scrollTop){_1=document.body.scrollTop;}else{if(document.documentElement&&document.documentElement.scrollTop){_1=document.documentElement.scrollTop;}}}
return _1;},onAjaxPageLoad:function(){window.setTimeout("vjo.darwin.domain.finding.util.ScrollDetect.onPageLoad()",0);},onPageLoad:function(){if(this.getScrollY()>this.threshold){this.onScroll();return;}
this.listener=this.vj$.EventDispatcher.addEventListener(window,"scroll",this.onScroll,this);},onScroll:function(){if(this.getScrollY()>this.threshold){if(this.listener){this.vj$.EventDispatcher.removeEventListener(window,"scroll",this.listener);}
this.vj$.ServiceEngine.handleRequest(new vjo.dsf.Message("PAGE_SCROLLED"));this.scrolled=true;}},hasScrolled:function(){return this.scrolled;}}).inits(function(){this.threshold-=this.vj$.Positioning.getClientHeight();this.onPageLoad();this.vj$.AjaxUtils.addAjaxHandler(this,this.onAjaxPageLoad,"Page.scrollDetect");}).endType();
vjo.ctype("vjo.dsf.typeextensions.string.ParseSets").endType();String.prototype.parseSets=function(s,v,n){s=s?s:"^";v=v?v:",";n=n?n:"=";var a=[];var ma=this.split(s);if(ma){for(i in ma){var t=ma[i].split(n);if(t[0]!=""&&t[1]!=""){a[t[0]]=t[1].split(v);}}}
return a;};
// en_SG/e653i/Finding_AdvancedSearch_e653i10603144_6_en_SG
// b=10603144
