
vjo.ctype("vjo.dsf.document.Text").needs("vjo.dsf.Element").props({autoClear:function(_1){var o=vjo.dsf.Element.get(_1);if(o){if(o.defaultValue==o.value){o.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,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({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").protos({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.document.Element").needs("vjo.dsf.document.Positioning").needs("vjo.dsf.document.Shim").needs("vjo.dsf.utils.Handlers").needs("vjo.dsf.Message").needs("vjo.dsf.utils.Object").needs("vjo.dsf.utils.Timer").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.document.Element,S:vjo.dsf.document.Shim,O:vjo.dsf.utils.Object,M:vjo.dsf.Message,P:vjo.dsf.document.Positioning,W:vjo.dsf.window.utils.VjWindowUtils,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(){this.oCloseLink.style.textDecoration="none";},closeLinkMouseOver:function(){this.oCloseLink.style.textDecoration="underline";},promote2body:function(_c){var t=this;if(_c){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(_f){var t=this;if(t.bPromote2Body&&!t.bPromoted){t.promote2body(true);}
t.aAnchorCoor=_f?_f:false;t.openTimer=(t.iOpDlay<=0)?t.openOverlayPanel():window.setTimeout(t.O.hitch(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 _12=new t.M(t.sPostOpServId);if(openedInfo){_12.clientContext={x:openedInfo[0],y:openedInfo[1],w:openedInfo[2],h:openedInfo[3]};t.H.handle(_12);}}},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(_14,_15,pad,_17){return _14+((_15=="right"||_15=="bottom")?pad:0)+((_15=="middle")?(pad/2):0)+_17;},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 _1f=e.get(t.sOlpId);var _20=e.getElementsByTagClass(_1f,"div","basOlp-scn");var _21=e.getElementsByTagClass(_1f,"div","basOlp-s");var _22=null;for(var idx=0;idx<_21.length;idx++){if(_21[idx].className==="basOlp-s"){_22=_21[idx];break;}}
var _24=e.getElementByTagClass(_1f,"div","basOlp-n");var _25=e.getElementByTagClass(_1f,"div","basOlp-ctent");if(t.pngalpha){for(var cdx=0;cdx<_20.length;cdx++){t.applyStyle(_20[cdx],t.gifs[1]);_20[cdx].style.filter="";}
var _27="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=";_22.style.filter=_27+t.pngs[0]+", sizingMethod='scale')";_24.style.filter=_27+t.pngs[0]+", sizingMethod='scale')";_25.style.filter=_27+t.pngs[0]+", sizingMethod='scale')";_22.style.background="transparent";_24.style.background="transparent";_25.style.background="transparent";try{var _28="DXImageTransform.Microsoft.AlphaImageLoader";_22.filters[_28].enabled=true;_24.filters[_28].enabled=true;_25.filters[_28].enabled=true;}
catch(e){for(var cdx=0;cdx<_20.length;cdx++){t.applyStyle(_20[cdx],t.gifs[1]);_20[cdx].style.filter="";}
t.applyStyle(_22,t.gifs[0]);t.applyStyle(_24,t.gifs[0]);t.applyStyle(_25,t.gifs[0]);_22.style.filter="";_24.style.filter="";_25.style.filter="";}}else{if(t.pngnorm){t.applyStyle(_22,t.pngs[0]);t.applyStyle(_24,t.pngs[0]);t.applyStyle(_25,t.pngs[0]);for(var cdx=0;cdx<_20.length;cdx++){t.applyStyle(_20[cdx],t.pngs[1]);}}else{t.applyStyle(_22,t.gifs[0]);t.applyStyle(_24,t.gifs[0]);t.applyStyle(_25,t.gifs[0]);for(var cdx=0;cdx<_20.length;cdx++){t.applyStyle(_20[cdx],t.gifs[1]);}}}},applyStyle:function(_29,bkg){_29.style.backgroundImage="url("+bkg+")";},setAnchorName:function(_2b){this.sAnchorName=_2b;},setBubbleDivId:function(_2c){this.sOverlayDivId=_2c;},onClosePanel:function(_2d){var t=this,CD=t.iClsDlay;t.bCheckState=_2d;t.closeTimer=(CD<=0)?t.closePanel():window.setTimeout(t.O.hitch(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,_31){var t=this,W=t.W,olpS=olp.style,iX=_31.x,iY=_31.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 _33=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 _33=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((_33+iW+arrW)<iScreenW||iW>iScreenW||(t.sHAlgn&&t.sHAlgn!="middle")){finalX=iX+arrW;bLeft=true;}else{if((_33-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(_34,_35,_36,_37){if(_34){_34.className=_35;_34.style.top=_36;_34.style.bottom=_37;}},startDrag:function(_38){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 _3a=_38.nativeEvent;if(SR){_3a=_38.nativeEvent||_38;}
var _3b=W.eventTop(_3a),mouseX=W.eventLeft(_3a);t.initDx=P.getOffsetLeft(olp)-mouseX;t.initDy=P.getOffsetTop(olp)-_3b;t.top=t.iLastTop=_3b;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 _3c=_3a.target||_3a.srcElement;H.attachEvt(_3c,"mouseup",t.stopDrag,t);}},onMouseMove:function(_3d){var t=this,W=t.W;if(t.bMonitorDrag){var _3f=window.event?window.event:_3d;var _40=W.eventTop(_3f),leftValue=W.eventLeft(_3f);if(_40>=0&&leftValue>=0){t.top=_40;t.left=leftValue;}}},onMouseUp:function(_41){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(_4a){var t=this,tcnt=t.oTitlCntnr;if(!tcnt){tcnt=t.E.get(t.sOverlayDivId+"olpcontenttitle");}
if(tcnt){tcnt.innerHTML=_4a;}}}).endType();

vjo.ctype("vjo.darwin.core.overlaypanel.VjOverlayPanelMessage").needs("vjo.dsf.Message").inherits("vjo.dsf.Message").protos({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.app.common.mask.MaskHandlers").props({openService:function(_1,_2){var _3=vjo.Registry.get(_1);if(_3){_3.show(_2.clientContext);}},closeService:function(_4,_5){var _6=vjo.Registry.get(_4);if(_6){_6.hide();}}}).endType();

vjo.ctype("vjo.darwin.app.common.mask.Mask").needs("vjo.dsf.window.utils.VjWindowUtils").needs("vjo.dsf.EventDispatcher").needs("vjo.dsf.utils.Timer").needs("vjo.darwin.app.common.mask.MaskHandlers").needs("vjo.dsf.client.Browser").protos({constructs:function(_1,_2,_3,_4){var t=this;t.eElem=document.getElementById(_1);t.iOpacity=(_2)?parseFloat(_2):0;t.showing=false;t.zIndex=100;t.sIsActivated=false;t.oTimer=false;t.ED=vjo.dsf.EventDispatcher;t.pngalpha=false;t.pngnorm=false;t.strExt=".gif";t.B=vjo.dsf.client.Browser;t.png=_3;t.gif=_4;if(t.B.bIE&&t.B.iVer<=6){t.setDefaultBg(t.gif);}else{t.setDefaultBg(t.png);}},show:function(_6){var t=this;if(t.showing){return;}else{t.showing=true;}
t.cntr=(_6)?_6.formName:"";t.zIndex=(_6&&_6.overlayPanelIndex)?_6.overlayPanelIndex:t.zIndex;t.render();t.disableSelects();t.startResizeListener();},render:function(){var t=this;t.WU=vjo.dsf.window.utils.VjWindowUtils;var _9=t.WU.scrollWidth();var _a=t.WU.scrollHeight();t.setStyle("display","block");t.setStyle("width",_9+"px");t.setStyle("height",_a+"px");t.setStyle("zIndex",t.zIndex);},setDefaultBg:function(_b){this.setStyle("background","transparent url("+_b+") repeat left top");},hide:function(){var t=this;if(!t.showing){return;}else{t.showing=false;}
t.setStyle("display","none");t.setStyle("width","0");t.setStyle("height","0");t.enableSelects();t.stopResizeListener();},disableSelects:function(){var _d,selects,t=this,c=t.cntr,ids;t.disabledSelects=new Array();if(typeof c==="object"){_d=t.getCntrSelects(c);}else{_d=t.getCntrSelects(document.forms[c]);}
selects=document.body.getElementsByTagName("select");ids=_d.toString();for(var _e=0;(_e<selects.length);_e++){var _f=selects[_e];if(_f.disabled){continue;}
if(ids.indexOf(_f.id+",")!==-1){continue;}
_f.disabled=true;t.disabledSelects.push(_f);}},getCntrSelects:function(c){if(!c){return[];}
var ids=[],lst=c.getElementsByTagName("select"),l=lst.length,j=0;for(;j<l;j++){ids[j]=lst[j].id;}
ids[j]="";return ids;},enableSelects:function(){var _12=this.disabledSelects;for(var idx=0;(idx<_12.length);idx++){_12[idx].disabled=false;}},setStyle:function(_14,_15){var e=this.eElem;if(!e||!e.style){return;}
e.style[_14]=_15;},requireResize:function(){this.sIsActivated=true;},startResizeListener:function(){var t=this;t.ED.addEventListener(window,"resize",t.requireResize,t);if(!t.oTimer){t.oTimer=new vjo.dsf.utils.Timer();t.oTimer.interval=500;t.oTimer.onTick=function(){if(t.sIsActivated){t.render();t.sIsActivated=false;}};}
t.oTimer.start();},stopResizeListener:function(){var t=this;t.ED.removeEventListener(window,"resize",t.requireResize,t);if(t.oTimer){t.oTimer.stop();}}}).endType();

vjo.ctype("vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapMessage").needs("vjo.dsf.Message").inherits("vjo.dsf.Message").protos({constructs:function(_1,_2){var t=this;t.base.call(t,_1);t.request=t.response={};t.sRegionId="";},setRegionId:function(_4){this.sRegionId=_4;},getRegionId:function(){return this.sRegionId;}}).endType();

vjo.ctype("vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapEvtHandlers").needs(["vjo.dsf.Message","vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapMessage"]).props({M:vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapMessage,handleChangeImage:function(_1,_2){var _3=new this.M(_1);_3.setRegionId(_2);return _3;},handleHideImage:function(_4){var _5=new this.M(_4);return _5;}}).endType();

vjo.ctype("vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMap").needs(["vjo.dsf.Message","vjo.dsf.document.Element","vjo.dsf.ServiceEngine","vjo.dsf.utils.Handlers","vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapEvtHandlers"]).protos({H:vjo.dsf.utils.Handlers,constructs:function(_1){var t=this;t.oModel=_1;t.sOpenServiceId=_1.openServiceId;t.sCloseServiceId=_1.closeServiceId;t.oOptElem=null;if(_1.selfRegistry){t.init();}},init:function(){var t=this,m=t.oModel,H=t.H;H.attachSvcReqt(t.sOpenServiceId,t.invokeChangeImage,t);H.attachSvcReqt(t.sCloseServiceId,t.invokeHideImage,t);},invokeChangeImage:function(_4){this.changeImage(_4.getRegionId());return _4;},invokeHideImage:function(_5){this.hideImage();return _5;},changeImage:function(_6){var t=this,m=t.oModel,oElem=vjo.dsf.document.Element;var _8=oElem.get(m.imgDivId);_8.style.backgroundImage="url("+m.regionImage+_6+m.regionSuffix+".gif)";return true;},hideImage:function(){var t=this,m=t.oModel,oElem=vjo.dsf.document.Element;var _a=oElem.get(m.imgDivId);_a.style.backgroundImage="url("+m.defaultImage+")";return true;},changeRgnName:function(_b,_c){var _d=vjo.dsf.document.Element;_d.get(_b).innerHTML=_c;return true;},hoverInRgnList:function(_e){var t=this,evt=_e.nativeEvent,src=(evt.target)?evt.target:evt.srcElement;if(t.oOptElem!==null){t.oOptElem.style.backgroundColor="#FFFFFF";t.oOptElem.style.color="#000000";vjo.dsf.ServiceEngine.handleRequest(vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapEvtHandlers.handleHideImage(t.sCloseServiceId));}
if(navigator.appVersion.match("MSIE")&&src.tagName=="SELECT"){var _10=16;var _11=60;var _12=Math.floor((evt.offsetY)/_10);if(evt.offsetX<_11){if(_12!=-1){t.oOptElem=src.options[_12];if(t.oOptElem!==null){t.oOptElem.style.backgroundColor="#FFD342";t.oOptElem.style.color="#FFFFFF";}}}}else{if(src.index>-1){src.style.backgroundColor="#FFD342";src.style.color="#FFFFFF";t.oOptElem=src;}}
if(t.oOptElem!==null){return vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapEvtHandlers.handleChangeImage(t.sOpenServiceId,t.oOptElem.index+2);}},hoverOutRgnList:function(_13){var t=this,evt=_13.nativeEvent,src=(evt.target)?evt.target:evt.srcElement;if(src.tagName=="SELECT"&&t.oOptElem!==null){t.oOptElem.style.backgroundColor="#FFFFFF";t.oOptElem.style.color="#000000";t.oOptElem=null;return vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapEvtHandlers.handleHideImage(t.sCloseServiceId);}},clickRgnList:function(_15){var t=this,evt=_15.nativeEvent,src=(evt.target)?evt.target:evt.srcElement,url=null;if(navigator.appVersion.match("MSIE")&&src.tagName=="SELECT"){var _17=16;var _18=60;var _19=Math.floor((evt.offsetY)/_17);if(evt.offsetX<_18){if(_19!=-1){t.oOptElem=src.options[_19];url=t.oOptElem.value;}}}else{if(src.index>-1){url=src.value;}}
if(url!==null){location.href=url;}}}).endType();

vjo.ctype("vjo.darwin.core.editabletextbox.EditableTextBox").needs(["vjo.dsf.document.Element","vjo.dsf.typeextensions.string.Trim"]).props({setFloat:function(_1){_1=vjo.dsf.document.Element.get(_1);_1.style.cssFloat="none";},setDisplay:function(_2,_3){_2=vjo.dsf.document.Element.get(_2);if(_3!=null){_2.value=_3;}else{_2.value="";}
_2.style.display="block";},enableInp:function(_4){var _5=vjo.dsf.document.Element.get(_4);_5.disabled=false;},onClick:function(_6,_7){var _8=vjo.dsf.document.Element.get(_6);var _9=_8.getAttribute("defval");if(_9!=null){_9=_9.trim();}else{_9="";}
if(_8.value.toLowerCase().trim()==_9.toLowerCase()){_8.value="";_8.className="";}},onBlur:function(_a,_b,_c){var _d=vjo.dsf.document.Element.get(_a);var _e=vjo.dsf.document.Element.get(_b);var _f=_d.getAttribute("defval");if(_f!=null){_f=_f.trim();}else{_f="";}
if(_d.value.trim().length===0||_d.value.toLowerCase().trim()==_f.toLowerCase()){_d.className=_c;_d.value=_f;_e.value="";}else{this.onKeyPress(_a,_b,_c);}},onKeyPress:function(_10,_11){var _12=vjo.dsf.document.Element.get(_10);var _13=_12.getAttribute("defval");if(_13!=null){_13=_13.trim();}else{_13="";}
if(_12.value.toLowerCase().trim()!=_13.toLowerCase()){var _14=vjo.dsf.document.Element.get(_11);_14.value=_12.value;}}}).endType();

vjo.ctype("vjo.darwin.core.cc.VjCharCounter").needs("vjo.dsf.typeextensions.string.TokenReplacement").needs("vjo.dsf.typeextensions.string.Comparison").needs("vjo.dsf.document.Element").needs("vjo.dsf.utils.Object").protos({constructs:function(_1,_2,_3,_4,_5,_6){this.maxChars=_2;this.noCharLeft=_5[2];this.singleCharLeft=_5[1];this.multipleCharsLeft=_5[0];this.id=_3;this.divId=_4;this.alreadyCleared=false;this.bEuc=_6;this.updateDiv();return this;},checkMax:function(){var _7=vjo.dsf.document.Element.get(this.id);var _8=_7.value;var _9=this.determineLength(_8);var _a=this.maxChars;var _b=_a-_9;if(_9>_a){var _c=_7.scrollTop;var i=_a;if(_7.tagName.toLowerCase().indexOf("textarea")!=-1){i=i-this.getNoOfCRs(_8);if(_8.substr(i)!="\r\n"){i++;_7.value=_8.substr(0,i-1);}else{_7.value=_8.substr(0,i);}}
_7.scrollTop=_c;}
return _b;},getNoOfCRs:function(v){var _f=new RegExp("\r\n","g");var _10=v.match(_f);var l=0;if(_10!==null){var _12=_10.length;if(_12>=1){l=_12;}
return l-1;}
return l;},checkLength:function(v){var _14=0;if(!this.bEuc){return v.length;}
var _15=encodeURIComponent(v);if(_15.indexOf("%")!=-1){_14=_15.split("%").length-1;if(_14==0){_14++;}
var tmp=_15.length-(_14*3);_14=_14+tmp;}else{_14=_15.length;}
return _14;},determineLength:function(v){if(typeof(v)=="string"){var _18=new RegExp("\n","g");var _19=v.match(_18);var _1a=new RegExp("\r\n","g");var _1b=v.match(_1a);if(_19!=null&&_1b==null){var l=1;var _1d=_19.length;if(_1d>=1){l=_1d;}
v=v.replace(_18,"");l=l+this.checkLength(v);return l;}else{if(_1b!=null){var l=1;var _1d=_1b.length;if(_1d>=1){l=_1d*2;}
v=v.replace(_1a,"");l=l+this.checkLength(v);return l;}else{return this.checkLength(v);}}}
return 0;},updateDiv:function(){var _1e=vjo.dsf.document.Element.get(this.divId);var _1f=this.checkMax();var _20="";if(_1f<=0){_20=this.noCharLeft;}else{if(_1f==1){_20=this.singleCharLeft;}else{_20=this.multipleCharsLeft;}}
_1e.innerHTML=(_20.replaceTokensEx("##n##",_1f));}}).endType();

vjo.ctype("vjo.darwin.pres.classifiedad.cmp.adphoto.AdPhoto").needs(["vjo.dsf.document.Element","vjo.dsf.ServiceEngine","vjo.dsf.EventDispatcher","vjo.darwin.core.overlaypanel.VjOverlayPanelEvtHandlers"]).props({picFlag:false,picIndex:1,frmIndex:1,curIndex:1,picCount:5,errorFlag:false}).protos({H:vjo.dsf.EventDispatcher,E:vjo.dsf.document.Element,S:vjo.dsf.ServiceEngine,O:vjo.darwin.core.overlaypanel.VjOverlayPanelEvtHandlers,constructs:function(_1){var t=this;t.oModel=_1;t.sPhotoUrl=_1.photoUrl;t.sErrorDiv=_1.errorDiv;t.sThumbDiv=_1.thumbDiv;t.sThumbImageDiv=_1.thumbImageDiv;t.sPicDiv=_1.pictureDiv;t.sFrameId=_1.frameId;t.sFormName=_1.formName;t.sOpenSvcId=_1.openServiceId;t.sCloseSvcId=_1.closeServiceId;t.sPhotoDiv=_1.photoDiv;t.sDPhotoDiv=_1.defaultPhotoDiv;t.sPhotoBtnDiv=_1.photoBtnDiv;t.sPhotoBtn2Div=_1.photoBtn2Div;t.sDeleteBtnDiv=_1.deleteBtnDiv;t.sPhotoCntDiv=_1.photoCntDiv;t.sPhotoParam=_1.photoParam;t.sPhotoUploadCnt=_1.photoUploadCnt;t.sPhotoCnt=_1.photoCnt;t.sPhotoCnt1=_1.photoCnt1;t.sPhotoCntTxt1=_1.photoCntTxt1;t.sPhotoCntTxt2=_1.photoCntTxt2;t.sPhotoIndex=_1.photoIndex;t.sDelOvrlyClsId=_1.delOvrlyClsId;t.sYesBtnId=_1.yesBtnId;t.sETLMsg=_1.ETLMsg;t.sEITMsg=_1.EITMsg;t.sEMsg=_1.EMsg;t.sERcp=_1.errorRCP;this.constructor.picIndex=_1.picIndex;var _3=this.E.get(t.sFrameId);var _4=this.E.get(t.sYesBtnId);this.H.addEventListener(_3,"load",this.frameLoad,this);this.H.addEventListener(_4,"click",this.deletePhoto,this);vjo.darwin.pres.classifiedad.cmp.adphoto.AdPhoto.sPhotoBtnDiv=t.sPhotoBtnDiv;vjo.darwin.pres.classifiedad.cmp.adphoto.AdPhoto.sPhotoBtn2Div=t.sPhotoBtn2Div;vjo.darwin.pres.classifiedad.cmp.adphoto.AdPhoto.sDPhotoDiv=t.sDPhotoDiv;},epsPreLoad:function(){var t=this,f=null,oPic=null;this.constructor.errorFlag=false;var _6=true;this.constructor.frmIndex=1;for(var _7=this.constructor.frmIndex;_7<=this.constructor.picCount;_7++){f=document.forms[t.sFormName+_7];oPic=f.elements["pic"+_7];if(oPic&&oPic.value!==""){var _8=oPic.value.toLowerCase();if(_8.indexOf(".jpeg")==-1&&_8.indexOf(".jpg")==-1&&_8.indexOf(".gif")==-1){this.constructor.errorFlag=true;break;}else{_6=false;}}}
if(!this.constructor.errorFlag&&!_6){this.E.get("thrImg").style.visibility="visible";this.epsLoad();}else{this.E.get(t.sErrorDiv).innerHTML=t.sEMsg;this.E.toggleHideShow(t.sErrorDiv,true);this.E.toggleHideShow(t.sERcp,true);}},epsLoad:function(){var t=this,f=null,oPic=null;for(var _a=this.constructor.frmIndex;_a<=this.constructor.picCount;_a++){f=document.forms[t.sFormName+_a];oPic=f.elements["pic"+_a];if(oPic&&oPic.value!==""){this.constructor.frmIndex=_a;break;}}
if(oPic&&oPic.value!==""){var _b=document.domain,j=_b.indexOf(".ebay.");document.domain=_b.substring(j+1);f.action=t.sPhotoUrl+"&downgradeDomainTo="+document.domain;this.constructor.picFlag=true;f.target=t.sFrameId;f.submit();}else{if(!this.constructor.errorFlag){this.S.handleRequest(this.closeOverlay());}else{this.E.get("thrImg").style.visibility="hidden";}}},openOverlay:function(_c){var t=this;this.constructor.errorFlag=false;this.E.toggleHideShow(t.sErrorDiv,false);this.E.toggleHideShow(t.sERcp,false);this.E.get(t.sPhotoCnt).innerHTML=this.constructor.picIndex-1;this.togglePhotoCnt(this.constructor.picIndex-1);var _e=this.constructor.picCount-this.constructor.picIndex+1;for(var _f=1;_f<=_e;_f++){var f=document.forms[t.sFormName+_f],oPic=f.elements["pic"+_f];oPic.disabled=false;this.E.toggleHideShow("picIcon"+_f,false);f.reset();if(_f>2){this.E.toggleHideShow(t.sFormName+_f,false);}else{this.E.toggleHideShow(t.sFormName+_f,true);}}
return this.O.handleOpenEvent(t.sOpenSvcId,_c);},closeOverlay:function(){var t=this;if(this.constructor.picIndex>this.constructor.picCount){this.E.toggleHideShow(t.sPhotoBtnDiv,false);}
for(var _12=1;_12<=this.constructor.picCount;_12++){var f=document.forms[t.sFormName+_12],oPic=f.elements["pic"+_12];this.E.toggleHideShow(t.sFormName+_12,false);oPic.disabled=false;this.E.toggleHideShow("picIcon"+_12,false);f.reset();}
this.togglePhotoDiv();this.E.get(t.sPhotoIndex).innerHTML=this.constructor.curIndex;this.E.get("thrImg").style.visibility="hidden";return this.O.handleCloseEvent(t.sCloseSvcId);},handleBrowse:function(_14){var t=this,f=null,oPic=null;var _16=0;for(var _17=1;_17<=this.constructor.picCount;_17++){f=document.forms[t.sFormName+_17];oPic=f.elements["pic"+_17];if(!oPic.disabled&&oPic.value!==""){_16=_16+1;}}
_16=this.constructor.picIndex-1+_16;this.E.get(t.sPhotoCnt).innerHTML=_16;this.togglePhotoCnt(_16);if(document.forms[t.sFormName+_14].elements["pic"+_14].value!==""&&_16<this.constructor.picCount){var _18=false;for(_17=1;_17<=(_14-1);_17++){f=document.forms[t.sFormName+_17];oPic=f.elements["pic"+_17];if(!oPic.disabled&&oPic.value===""){_18=true;break;}}
if(!_18){for(_17=_14+1;_17<=this.constructor.picCount;_17++){f=document.forms[t.sFormName+_17];oPic=f.elements["pic"+_17];if(!oPic.disabled&&oPic.value===""){break;}}
f.style.display="block";oPic.disabled=false;f.reset();}}},togglePhotoDiv:function(){var t=this,flag=(this.constructor.picIndex>1);this.E.toggleHideShow(t.sDPhotoDiv,!(flag));this.E.toggleHideShow(t.sPhotoDiv,flag);},togglePhotoCnt:function(cnt){var t=this,flag=(cnt>1),oPhtCnt=this.E.get(t.sPhotoCnt1);oPhtCnt.style.visibility="visible";if(flag){oPhtCnt.innerHTML=t.sPhotoCntTxt2;}else{oPhtCnt.innerHTML=t.sPhotoCntTxt1;}},deletePhoto:function(){var t=this;if(this.constructor.curIndex<this.constructor.picIndex){var _1d=this.E.get(t.sPhotoCntDiv);_1d.value=_1d.value-1;this.constructor.picIndex=this.constructor.picIndex-1;this.E.get(t.sPhotoUploadCnt).innerHTML=this.constructor.picIndex-1;var _1e=this.E.get(t.sPicDiv);for(var _1f=this.constructor.curIndex;_1f<=this.constructor.picIndex;_1f++){var _20=this.E.get(t.sThumbDiv+_1f),hUrl=this.E.get(t.sPhotoParam+_1f);if(_1f==this.constructor.picIndex){_20.src="";hUrl.value="";}else{var _21=_1f+1;var _22=this.E.get(t.sThumbDiv+_21),hUrl1=this.E.get(t.sPhotoParam+_21);_20.src=_22.src;hUrl.value=hUrl1.value;}
if(_1f==this.constructor.curIndex){if(this.constructor.curIndex==this.constructor.picIndex&&this.constructor.curIndex>1){this.constructor.curIndex=this.constructor.curIndex-1;_1e.src=this.getEpsImg(this.E.get(t.sThumbDiv+this.constructor.curIndex).src,"33","7");break;}else{_1e.src=this.getEpsImg(_20.src,"33","7");}}}
this.E.get(t.sThumbImageDiv+this.constructor.picIndex).style.visibility="hidden";this.togglePhotoDiv();this.E.get(t.sPhotoIndex).innerHTML=this.constructor.curIndex;if(this.constructor.picIndex<=this.constructor.picCount){this.E.toggleHideShow(t.sPhotoBtnDiv,true);}}
this.S.handleRequest(this.O.handleCloseEvent(t.sDelOvrlyClsId));},toggleImage:function(_23){var t=this,pImg=this.E.get(t.sPicDiv),tImg=this.E.get(t.sThumbDiv+_23);pImg.src=this.getEpsImg(tImg.src,"33","7");this.E.get(t.sThumbImageDiv+this.constructor.curIndex).style.border="1px solid #CACACA";this.E.get(t.sThumbImageDiv+_23).style.border="1px solid #A0B5CB";this.constructor.curIndex=_23;this.E.get(t.sPhotoIndex).innerHTML=this.constructor.curIndex;},getEpsImg:function(url,_26,_27){var _28=url.indexOf(".JPG");if(_28==-1){_28=url.indexOf(".GIF");}
var _29=url.substring(0,_28-_26.length)+_27+url.substring(_28);return _29;},mOver:function(_2a,_2b){var t=this,pImgId=this.E.get(_2a);pImgId.src=_2b;},frameLoad:function(){var t=this,oFrm=this.E.get(t.sFrameId);if(oFrm.contentWindow.document.body.innerHTML!==""){var _2e=oFrm.contentWindow.document.postProcessForm;if(_2e!==null&&_2e.picurl!==null){var _2f={};oFrm.contentWindow.window.initData(_2f);var _30=_2f.url,error=_2f.error;if(this.constructor.picFlag){if(error!==""){this.constructor.errorFlag=true;var _31=this.E.get(t.sErrorDiv);var _32=null;if(error=="FS001"||error=="FS002"){_32=t.sETLMsg;}else{_32=t.sEITMsg;}
_31.innerHTML=_32;this.E.toggleHideShow(t.sErrorDiv,true);this.E.toggleHideShow(t.sERcp,true);this.E.toggleHideShow("picIcon"+this.constructor.frmIndex,true);}
if(_30){var _33=this.E.get(t.sPhotoCntDiv);_33.value=this.constructor.picIndex;var _34=this.E.get(t.sThumbDiv+_33.value),hUrl=this.E.get(t.sPhotoParam+_33.value),tImg=this.E.get(t.sPicDiv);tImg.src=hUrl.value=_30;_34.src=this.getEpsImg(_30,"7","33");this.constructor.curIndex=this.constructor.picIndex;this.constructor.picIndex=this.constructor.picIndex+1;this.E.get(t.sPhotoUploadCnt).innerHTML=this.constructor.picIndex-1;this.E.get(t.sThumbImageDiv+this.constructor.curIndex).style.visibility="visible";var f=document.forms[t.sFormName+this.constructor.frmIndex],oPic=f.elements["pic"+this.constructor.frmIndex];oPic.disabled=true;this.E.toggleHideShow("picIcon"+this.constructor.frmIndex,false);f.reset();}
this.constructor.picFlag=false;this.constructor.frmIndex=this.constructor.frmIndex+1;if(this.constructor.picIndex<=this.constructor.picCount&&this.constructor.frmIndex<=this.constructor.picCount){this.epsLoad(t.oModel);}else{if(!this.constructor.errorFlag){this.S.handleRequest(this.closeOverlay());}else{this.E.get("thrImg").style.visibility="hidden";}}}}}}}).endType();

vjo.ctype("vjo.darwin.pres.classifiedad.page.listad.ListAdFormPage").needs(["vjo.dsf.document.Element","vjo.dsf.EventDispatcher","vjo.dsf.client.Browser","vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapEvtHandlers","vjo.dsf.utils.Object","vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapMessage"," vjo.dsf.ServiceEngine","vjo.darwin.core.overlaypanel.VjOverlayPanelEvtHandlers"]).protos({constructs:function(id){var el=this.E.get(id);if(el){el.selectedIndex=0;}}}).props({flag:false,loadDropdown:function(_3,_4,_5,_6,_7){var _8=this.getDDValue(_3);var _9=this.E.get(_4);var _a=this.E.get(this.secDDDivId);if(_8!==null&&(_8==="-1"||_8===this.autoId||_8===this.immoId)){if(_9&&_a){_9.style.display="none";_a.style.display="none";}
if(_8===this.autoId){this.oSE.handleRequest(this.OPH.handleOpenEvent(_6));}else{if(_8===this.immoId){this.oSE.handleRequest(this.OPH.handleOpenEvent(_7));}}
return;}
var _b=_5[_8];if(_9){if(_a){_a.style.display="inline";}
_9.style.display="inline";}
var _c=_9.options;_c.length=1;for(i=0;i<_b.length;i++){_c[i+1]=new Option(_b[i].categoryName,_b[i].categoryId);}},showHideAutoAttr:function(_d,_e,_f){var val=this.getDDValue(_d);var _11=_e[val];this.toggleAutoAttr(_f,false);this.toggleAutoAttr(_11,true);},showHidePriceAttr:function(_12,_13){var val=this.getDDValue(_12);if(val==_13){this.E.get("optLearnpriceDiv").style.display="none";this.E.get("reqLearnpriceDiv").style.display="";}else{this.E.get("optLearnpriceDiv").style.display="";this.E.get("reqLearnpriceDiv").style.display="none";}},toggleAutoAttr:function(_15,_16){if(_15!==null){for(i in _15){var id=_15[i];if(_16){this.E.get(id).style.display="block";}else{this.E.get(id).style.display="none";}}}},getDDValue:function(eId){var dd,ind,val;dd=this.E.get(eId);if(dd){ind=dd.selectedIndex;val=dd[ind].value;}
return val;},onTxtBlur:function(_1a,_1b,val){with(this){if(val!=this.E.get(_1a).value){this.E.get(_1a).className+=" "+_1b;}}},handleChangeImage:function(){this.onChange();var _1d=this.region;if(_1d){var _1e=this.E.get(this.pTxtId);var _1f=0;if(_1e.value!==null&&_1e.value!==""){var obj=_1d[_1e.value];if(obj){_1f=obj.regId-500000;}}
return vjo.darwin.pres.classifiedad.cmp.imagemap.ImageMapEvtHandlers.handleChangeImage(this.srvcId,_1f);}},onKeyDn:function(_21){this.arwClk=false;var kC;if(_21.keyCode){kC=_21.keyCode;}else{if(_21.nativeEvent.keyCode){kC=_21.nativeEvent.keyCode;}}
if(kC==9||kC==13){this.tabOut=true;var _23=this.E.get(this.pTxtId);this.onKeyUp();}
var lC=this.E.get(this.divElem);if(kC==38){if(this.selVal){this.autoCmpMv(this.getAcNode("up"));}else{this.autoCmpMv(lC.lastChild);}}else{if(kC==40){if(this.selVal){this.autoCmpMv(this.getAcNode("down"));}else{this.autoCmpMv(lC.firstChild);}}else{this.selVal=null;}}},getAcNode:function(_25){var fC=this.E.get(this.divElem);if(fC.childNodes){for(var i=0;i<fC.childNodes.length;i++){if(this.selVal==fC.childNodes[i].innerHTML){if(_25=="up"){if(i>0&&fC.childNodes[i--]){return fC.childNodes[i--];}}else{if(_25=="down"){if(i<fC.childNodes.length&&fC.childNodes[i++]){return fC.childNodes[i++];}}}}
this.rmBgClrAll(fC);}}},autoCmpMv:function(sFc){if(sFc){this.selVal=sFc.innerHTML;this.rmBgClrAll(sFc.parentNode);this.setBgClr(sFc);this.arwClk=true;}},mousePaste:function(){this.isPstBxFocus=true;this.timeInter=setInterval(vjo.dsf.utils.Object.hitch(this,"onKeyUp"),100);},onKeyUp:function(){if(!this.arwClk){var msg=new vjo.dsf.Message(this.svcId),txtB=this.E.get(this.pTxtId);this.E.get(this.errorDiv).style.display="none";this.E.get(this.errorImage).style.display="none";if(this.checkPin(txtB)){this.prevReq=txtB.value.substring(0,2);this.ajaxInProg=true;msg.request="&pin="+this.prevReq+"&mode=1";this.oSE.handleRequest(msg);}}else{if(this.selVal!=null){this.E.get(this.pTxtId).value=this.selVal;}}},mpPrice:function(_2a){this.pTBxId=_2a;this.tmInterPr=setInterval(vjo.dsf.utils.Object.hitch(this,"numVal"),100);},numVal:function(){var _2b=this.pTBxId;var dV=this.E.get(_2b).value;if(this.prevVal!=dV){if(dV.length==0||dV.length===this.maxLenPrice){return;}
var _2d=this.E.get(_2b);var _2e=/[0-9,\.]/;if(this.defaultTextMap[this.priceId]!==_2d.value){_2d.value=this.findPos(dV);}
var str=/[,\.]/;if(str.test(dV)&&!this.hasBackEndPriceError){this.E.get(this.priceErrDiv).innerHTML=this.priceErr;this.E.get(this.priceErrDiv).style.height="28px";}
this.prevVal=_2d.value;}},findPos:function(val){var _31=/[0-9,\.]/;var str="";for(var i=0;i<val.length;i++){var ch=val.charAt(i);if(_31.test(ch.toString())){str+=ch.toString();}}
return str;},setJsModelVar:function(_35){this.pTxtId=_35.PTxtId;this.svcId=_35.PSvcId;this.inputElem=this.pTxtId;this.divElem=_35.divElem;this.depRegDiv=_35.depRegDiv;this.errorDiv=_35.errorDiv;this.errorImage=_35.errorImage;this.helpMsg=_35.helpMsg;this.helpArw=_35.helpArw;this.srvcId=_35.srvcId;this.priceErr=_35.priceErr;this.priceErrDiv=_35.priceErrDiv;this.maxLenPrice=_35.maxLenPrice;this.maxLenPhone=_35.maxLenPhone;this.priceId=_35.priceId;this.titleId=_35.titleId;this.defaultTextMap=_35.defaultTextMap;this.frstwoD=null;this.prevReq="";this.E=vjo.dsf.document.Element;this.H=vjo.dsf.utils.Handlers;this.OPH=vjo.darwin.core.overlaypanel.VjOverlayPanelEvtHandlers;this.pCId=_35.postalCodeId;this.currSymUnicode=_35.currSymUnicode;this.charCountDivId=_35.charCountDivId;this.descId=_35.descId;this.immoId=_35.immoId;this.autoId=_35.autoId;this.secDDDivId=_35.secDDDivId;this.counterText=_35.multipleCharCountText;this.singleCountTxt=_35.singleCharCountText;this.postErrMess=_35.postalCodeMessage;this.catDDId=_35.catDDId;this.maxDescCount=_35.maxDescCount;this.hasBackEndPriceError=_35.backEndPriceError;this.tblId=_35.tblId;this.setFc();this.attchSbmtEvnt();this.oSE=vjo.dsf.ServiceEngine;this.captchaDiv=_35.captchaDivId;this.botTokenId=_35.botTokenId;this.captchaLink=_35.captchaLink;},setFc:function(){var dd=this.E.get(this.catDDId);if(dd){dd.focus();}},addInputSubmitEvent:function(_37,_38){var c=this;_38.onkeydown=function(e){var _3b=c.E.get(c.divElem).style.display;e=e||window.event;if(e.keyCode==13&&_3b==="none"){_37.submit();return false;}else{if(e.keyCode==13&&_3b!=="none"){_3b="none";c.E.get(c.priceId).focus();e.preventDefault();e.stopPropagation();}}};},attchSbmtEvnt:function(){var _3c=document.getElementsByTagName("form");for(var i=0;i<_3c.length;i++){var _3e=_3c[i].getElementsByTagName("input");for(var j=0;j<_3e.length;j++){this.addInputSubmitEvent(_3c[i],_3e[j]);}}},checkPin:function(_40){if(_40.value.length<2){this.createSugg(_40.value,null);this.flag=false;return this.flag;}
if(this.frstwoD){var pos=_40.value.search(this.frstwoD);}
if(pos==0){this.createSugg(_40.value,this.pinList);return false;}else{if(pos!==0&&this.flag){this.createSugg(_40.value,null);this.flag=false;return this.flag;}else{if(!this.flag&&_40.value.length>=2){if(_40.value.length>2){this.frstwoD=_40.value.substring(0,2);}else{this.frstwoD=_40.value;}
this.flag=true;return this.flag;}else{if(this.flag){this.createSugg(_40.value,this.pinList);return false;}}}}},onResponse:function(msg){this.ajaxInProg=false;var pin=this.E.get(this.pTxtId).value;this.prevResp=pin.substring(0,2);if(!msg.response||msg.response.errors.length>0){return;}
this.region=msg.response.data.zipRegDeptList;this.pinList=msg.response.data.pinCode;this.createSugg(pin,this.pinList);if(msg.response.data.pinCode){var _44=this.handleChangeImage();this.oSE.handleRequest(_44);}
if(msg.response.data.refreshCaptcha){var elm=this.E.get(this.captchaDiv);elm.innerHTML=msg.response.data.refreshCaptcha;this.E.get(this.botTokenId).value=msg.response.data.tokenValue;}},onSelect:function(){var _46=this.region;var _47=this.E.get(this.pTxtId).value;var _48=this.E.get(this.depRegDiv);if(_46&&_46[_47]){_48.style.display="block";_48.style.position="absolute";var _49=_46[_47].deparment;var reg=_46[_47].region;_48.innerHTML=reg+" - "+_49;}},onChange:function(){if(this.E.get(this.divElem).childNodes.length>0&&this.payload&&this.payload.length>0){var _4b=this.E.get(this.pTxtId);if(this.selVal){_4b.value=this.selVal;}else{if(!this.isPstBxFocus){this.tabOut=false;_4b.value=this.payload[0];}}
this.clearNames();this.onSelect();}else{if(this.isPostCAbs(this.E.get(this.pTxtId).value)&&!this.cellClck){var _4c=this.E.get(this.errorDiv);this.E.get(this.depRegDiv).style.display="none";if(this.E.get(this.pTxtId).value==="00000"){_4c.style.display="none";this.E.get(this.errorImage).style.display="none";}else{_4c.innerHTML=this.postErrMess;_4c.style.display="block";_4c.style.position="absolute";this.E.get(this.errorImage).style.display="inline";var _4d=this.E.get(this.helpMsg),oHelpArw=this.E.get(this.helpArw);if(_4d&&oHelpArw){_4d.style.display=oHelpArw.style.display="none";}}}else{this.onSelect();this.cellClck=false;}}},isPostCAbs:function(_4e){var _4f=this.region;if(_4f&&_4f[_4e]){return false;}else{return true;}},changeColor:function(_50){this.E.get(_50).style.color="#000";},fieldSelect:function(_51){var _52=this.E.get(_51);var len=_52.value.length;_52.style.backgroundColor="#ffffff";if(_52.value.charAt(len-1)===this.currSymUnicode){_52.value=_52.value.substring(0,len-2);}
if(this.defaultTextMap[_51]===_52.value){_52.select();}
if(_51!==this.pCId){this.E.get(this.divElem).style.display="none";}
if(_51===this.descId){this.charCounter();}else{if(_51===this.priceId){this.mpPrice(this.priceId);}}},mouseOverCss:function(_54){var _55=this.E.get(_54);if(_55){_55.style.backgroundColor="#ffffd6";}},mouseOutCss:function(_56){var _57=this.E.get(_56);if(_57){_57.style.backgroundColor="#fefff1";}},fieldBlur:function(_58,_59){var _5a=this.E.get(_58);var dV=_5a.value;var _5c=/[0-9,\.]]/;if(_5a&&dV===""){dV=_5a.value=_59;}
if(_58===this.priceId){clearInterval(this.tmInterPr);if(dV!==null&&dV!==""){if(dV!==this.defaultTextMap[_58]){if(!_5c.test(dV)){_5a.value=this.findPos(dV);}
_5a.value=_5a.value.replace(new RegExp(this.currSymUnicode,"g"),"").trim();}}
if(_5a.value===""){_5a.value=this.defaultTextMap[_58];}else{if(dV!==this.defaultTextMap[_58]){_5a.value+=" "+this.currSymUnicode;}}}else{if(_58===this.pCId){this.isPstBxFocus=false;clearInterval(this.timeInter);if(this.defaultTextMap[this.pCId]!==this.E.get(this.pCId).value&&this.prevReq!==""){if(this.prevReq===this.prevResp){msg=this.handleChangeImage();this.oSE.handleRequest(msg);}}
this.E.get(this.divElem).style.display="none";}else{if(_58===this.descId){clearInterval(this.timerChar);}}}
this.E.get(_58).style.color="";this.E.get(_58).style.backgroundColor="#fefff1";},emailVal:function(_5d){var _5e=this.E.get(_5d);var val=_5e.value;var reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(reg.test(val)===false){this.E.get(_5d).value=val.substring(0,this.findLoc(val));return false;}},findLoc:function(val){var _62=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;var _63=0;for(var i=0;i<val.length;i++){_63=i;var ch=val[i];if(!_62.test(ch)){break;}}
return _63;},addCurrn:function(_66,sym){var _68=this.E.get(_66);var val=_68.value;var prc=val+sym;return prc;},charCounter:function(){this.timerChar=setInterval(vjo.dsf.utils.Object.hitch(this,"countCharDesc"),1000);},countCharDesc:function(){var _6b=this.E.get(this.descId);var max=this.maxDescCount;var val=_6b.value;var cnt=max-val.length;if(val.length>max){val=val.substring(0,max);_6b.value=val;cnt=0;}
var _6f=this.E.get(this.charCountDivId);if(cnt>1){_6f.innerHTML=this.counterText.replace("##1##",cnt);}else{_6f.innerHTML=this.singleCountTxt.replace("##1##",cnt);}},closePanel:function(_70,_71,_72){this.H.handle(this.OPH.handleCloseEvent(_70));var _73=this.E.get(_71);var _74=this.E.get(_72);if(_73){_73.value="-1";}
if(_74){_74.style.display="none";}},closePanelAuto:function(_75,_76){this.H.handle(this.OPH.handleCloseEvent(_75));var _77=this.E.get(_76);if(_77){_77.value="-1";}},createSugg:function(pin,_79){this.payload=new Array();if(_79&&_79.length>0){for(var cnt=0,i=0;cnt<_79.length;cnt++){var str=""+_79[cnt];var pos=str.search(pin);if(pos==0){this.payload[i++]=_79[cnt];}}}
var _7d,txtNode,size;if(this.payload.length>15){size=15;}else{size=this.payload.length;}
this.clearNames();this.setOffsets();for(var i=0;i<size;i++){_7d=document.createElement("div");_7d.id="cell-"+i;_7d.setAttribute("border","0");_7d.setAttribute("tabindex",i+"");_7d.style.paddingLeft="10px";var _7f=vjo.darwin.pres.classifiedad.cmp.adphoto.AdPhoto;var _80=this;_7d.onmousedown=function(_81){_80.populateName(this);var msg=_80.handleChangeImage();_80.oSE.handleRequest(msg);var _83=_80.E.get(_7f.sDPhotoDiv);if(_83.style.display!="none"){_80.E.get(_7f.sPhotoBtn2Div).focus();}else{_80.E.get(_7f.sPhotoBtnDiv).focus();}};_7d.onmouseover=function(_84){_80.getAcNode("");_80.setBgClr(this);_80.setSelVal(this);};_7d.onmouseout=function(_85){_80.rmBgClr(this);_80.selVal=null;};txtNode=document.createTextNode(this.payload[i]);_7d.appendChild(txtNode);this.E.get(this.divElem).appendChild(_7d);}
if(this.E.get(this.divElem).childNodes.length==0){this.E.get(this.divElem).style.backgroundColor="transparent";this.E.get(this.divElem).style.display="none";}else{if(this.isPstBxFocus){this.E.get(this.divElem).style.backgroundColor="white";this.E.get(this.divElem).style.display="block";}}},setBgClr:function(_86){if(_86&&_86.style){_86.style.backgroundColor="#b5e3ff";_86.style.cursor="pointer";}},rmBgClr:function(_87){if(_87&&_87.style){_87.style.backgroundColor="white";_87.style.cursor="default";}},rmBgClrAll:function(fC){for(var i=0;i<fC.childNodes.length;i++){var _8a=fC.childNodes[i];if(_8a&&_8a.style){_8a.style.backgroundColor="white";_8a.style.cursor="default";}}},setOffsets:function(){var _8b=this.E.get(this.inputElem);var end=_8b.offsetWidth;var _8d=this.calculateOffsetLeft(_8b);var top=this.calculateOffsetTop(_8b)+_8b.offsetHeight;this.E.get(this.divElem).style.border="black 1px solid";this.E.get(this.divElem).style.left=_8d+"px";this.E.get(this.divElem).style.top=top+"px";},calculateOffsetLeft:function(_8f){return this.calculateOffset(_8f,"offsetLeft");},calculateOffsetTop:function(_90){return this.calculateOffset(_90,"offsetTop");},calculateOffset:function(_91,_92){var _93=0;var el=this.E.get(this.tblId);while(_91){_93+=_91[_92];if(vjo.dsf.client.Browser.iVer===6){if(el&&el===_91){break;}}
_91=_91.offsetParent;}
return _93;},setSelVal:function(_95){this.selVal=_95.firstChild.nodeValue;this.E.get(this.pTxtId).value=this.selVal;this.arwClk=true;},populateName:function(_96){this.E.get(this.inputElem).value=_96.firstChild.nodeValue;this.clearNames();this.cellClck=true;},clearNames:function(){var ind=this.E.get(this.divElem).childNodes.length;for(var i=ind-1;i>=0;i--){this.E.get(this.divElem).removeChild(this.E.get(this.divElem).childNodes[i]);}
this.E.get(this.divElem).style.backgroundColor="transparent";this.E.get(this.divElem).style.border="none";},closeOverlay:function(id){return vjo.darwin.core.overlaypanel.VjOverlayPanelEvtHandlers.handleCloseEvent(id);}}).endType();

vjo.ctype("vjo.darwin.core.bubble.VjAnchorUtils").props({getAnchorWindowPosition:function(_1){},getPageOffsetLeft:function(el){},getWindowOffsetLeft:function(el){},getPageOffsetTop:function(el){},getWindowOffsetTop:function(el){}}).endType();

vjo.ctype("vjo.darwin.core.bubble.VjBubbleAnchorUtils").props({getAnchorWindowPosition:function(_1){},getPageOffsetLeft:function(el){},getWindowOffsetLeft:function(el){},getPageOffsetTop:function(el){},getWindowOffsetTop:function(el){}}).endType();

vjo.ctype("vjo.darwin.core.bubble.VjBubble").needs("vjo.dsf.typeextensions.string.TokenReplacement").needs("vjo.dsf.document.Shim").needs("vjo.darwin.core.bubble.VjBubbleAnchorUtils").needs("vjo.dsf.document.Element").needs("vjo.dsf.document.Positioning").needs("vjo.dsf.window.utils.VjWindowUtils").protos({constructs:function(_1){this.sBubbleDivId=_1;},openBubbleHelp:function(){if(this.iframeShim){var _2=vjo.dsf.document.Element.get(this.sBubbleDivId);vjo.dsf.document.Shim.remove(_2,this.iframeShim);}
vjo.dsf.document.Element.get("hlpBubContent").innerHTML=this.sContent;this.minHeight=0;this.matchColumnHeight("hlpBubContent",this.minHeight,["hlpBubW","hlpBubE","hlbBubCloseBtn"]);var _3=vjo.darwin.core.bubble.VjBubbleAnchorUtils.getAnchorPosition(this.sAnchorName);var _4=vjo.dsf.document.Element.get(this.sBubbleDivId);if(_4.style){this.setNotchLocation(_4,_3);this.iframeShim=vjo.dsf.document.Shim.add(_4);}
var _5=vjo.dsf.document.Element.get("hlbBubCloseBtn");var _6=_5.getElementsByTagName("A");if(!window[this.sAnchorName+"OnClick"]){var _7=this;_6[0].style.display="none";}else{_6[0].style.display="";}},lockBubbleHelp:function(){this.closeBubble=false;},unLockBubbleHelp:function(){this.closeBubble=true;},setAnchorName:function(_8){this.sAnchorName=_8;},setBubbleDivId:function(_9){this.sBubbleDivId=_9;},setContent:function(_a){this.sContent=_a;},setNotchLocation:function(_b,_c){var _d=_b.offsetWidth;var _e=_b.offsetHeight;var _f=vjo.dsf.document.Positioning.getClientWidth();var _10=vjo.dsf.document.Positioning.getClientHeight();var _11=vjo.dsf.window.utils.VjWindowUtils.getScrollXY();var _12=_c.x-_11[0];var _13=_c.y-_11[1];var px="px";if(_12>(_f-_d)&&_13<_e&&_13<_10-_e){_b.className="hlbBub-btnRgt";_b.style.left=_c.x-_d+4+px;_b.style.top=_c.y+20+px;}else{if((_12<_d||_12<_f-_d)&&_13<_e){_b.className="hlbBub-btnLft";_b.style.left=_c.x+px;_b.style.top=_c.y+20+px;}else{if(_12>(_f-_d)&&_13>_e){_b.className="hlbBub-topRgt";_b.style.left=_c.x-_d+4+px;_b.style.top=_c.y-_e+px;}else{_b.className="hlbBub-topLft";_b.style.left=_c.x+px;_b.style.top=_c.y-_e+px;}}}},closeHelpBubble:function(){if(!window[this.sAnchorName+"OnClick"]){if(this.closeBubble!=null&&!this.closeBubble){var _15=this;setTimeout(function(){_15.closeHelpBubble();},50);return;}}
var _16="-400px";var _17=vjo.dsf.document.Element.get(this.sBubbleDivId);if(this.iframeShim){vjo.dsf.document.Shim.remove(_17,this.iframeShim);}
_17.style.left=_16;_17.style.top=_16;},matchColumnHeight:function(_18,_19,_1a){var px="px";var _1c=document.getElementById(_18);var _1d=_1c.offsetHeight;var _1e=Math.max(_1d,_19);for(var i=0;i<_1a.length;i++){document.getElementById(_1a[i]).style.height=_1e+px;}}}).endType();

vjo.ctype("vjo.darwin.core.bubble.VjBubbleMsg").needs("vjo.dsf.Message").inherits("vjo.dsf.Message").protos({constructs:function(_1,_2){this.svcId=_1;this.request={};this.sContent="";this.sAnchorId="";this.sBubbleId="";this.objType="dsf_Message";this.request=undefined;this.clientContext=undefined;this.trspType="InProc";this.status=undefined;this.svcConfig=undefined;this.returnData=true;this.trace="";this.response={};},setContent:function(_3){this.sContent=_3;},getContent:function(){return this.sContent;},setBubbleId:function(_4){this.sBubbleId=_4;},getBubbleId:function(){return this.sBubbleId;},setAnchorId:function(_5){this.sAnchorId=_5;},getAnchorId:function(){return this.sAnchorId;}}).endType();

vjo.ctype("vjo.darwin.core.bubble.VjBubbleHandlers").needs("vjo.darwin.core.bubble.VjBubbleMsg").needs("vjo.dsf.ServiceEngine").props({handleLoadEvent:function(_1,_2,_3){var _4=new vjo.darwin.core.bubble.VjBubbleMsg(_2);_4.objType="dsf_Message";_4.setBubbleId(_3);return _4;},handleOpenEvent:function(_5,_6,_7,_8,_9){var _a=new vjo.darwin.core.bubble.VjBubbleMsg(_6);_a.objType="dsf_Message";_a.setBubbleId(_9);_a.setAnchorId(_7);_a.setContent(_8);if(_5.eventType=="click"){window[_7+"OnClick"]=true;}else{window[_7+"OnClick"]=false;}
return _a;},handleLockEvent:function(_b,_c){var _d=vjo.Registry.get(_c);_d.lockBubbleHelp();},handleUnLockEvent:function(_e,_f){var _10=vjo.Registry.get(_f);_10.unLockBubbleHelp();},handleCloseEvent:function(evt,_12,_13){var _14=new vjo.darwin.core.bubble.VjBubbleMsg(_12);_14.setBubbleId(_13);_14.objType="dsf_Message";vjo.dsf.ServiceEngine.handleRequest(_14);return false;},openAction:function(msg){var _16=vjo.Registry.get(msg.sBubbleId);_16.setContent(msg.sContent);_16.setAnchorName(msg.sAnchorId);if(this.interv!=null){clearTimeout(this.interv);}
if(!window[msg.sAnchorId+"OnClick"]){setTimeout(function(){_16.openBubbleHelp();},250);}else{_16.openBubbleHelp();}
msg.returnData=false;return msg;},closeAction:function(msg){this.bubbleComponent=vjo.Registry.get(msg.sBubbleId);if(!window[msg.sAnchorId+"OnClick"]){this.interv=setTimeout(function(){vjo.Registry.get(msg.sBubbleId).closeHelpBubble();},50);}else{this.bubbleComponent.closeHelpBubble();}
return msg;}}).endType();

vjo.ctype("vjo.dsf.utils.Css").needs("vjo.dsf.Element").props({apply:function(_1,_2){var e=vjo.dsf.Element.get(_1),c;if(e&&_2){c=this.createStyle(_2);if(c){e.appendChild(c);}}
return c;},createStyle:function(_4){var c=document.createElement("style"),t;c.type="text/css";if(_4){if(c.styleSheet){c.styleSheet.cssText=_4;}else{t=document.createTextNode(_4);c.appendChild(t);}}
return c;}}).endType();

vjo.ctype("vjo.dsf.utils.Ajax").needs(["vjo.dsf.EventDispatcher","vjo.dsf.Element","vjo.dsf.utils.Css"]).props({apply:function(_1,_2,_3,_4){var e=this.vj$.Element.get(_1);if(e){if(_2){e.innerHTML=_2;}
if(_4){this.vj$.Css.apply(_1,_4);}
if(_3){eval(_3);}}},cleanApply:function(_6,_7,_8,_9,_a){this.clean(_a);this.apply(_6,_7,_8,_9);},clean:function(_b){var m=_b,i,j,e;for(i in m){e=m[i];for(j=0;j<e.length;j++){this.vj$.EventDispatcher.detachHandlers(i,e[j]);}}}}).endType();

vjo.ctype("vjo.darwin.pres.classifiedad.page.viewad.ClassifiedAdPage").needs(["vjo.dsf.document.Element","vjo.dsf.utils.Ajax","vjo.dsf.EventDispatcher","vjo.dsf.ServiceEngine"]).protos({constructs:function(_1){this.sActionURL=_1.actionURL;this.sSvcId=_1.svcId;this.sSuccessDiv=_1.successDiv;this.aFieldIds=_1.fieldIds;this.sEmailTxt=_1.emailText;this.btnId=_1.btnId;this.spanId=_1.spanId;this.html=_1.html;this.errhtml=_1.errHtml;this.fcsId=_1.fcsId;this.captchaDiv=_1.captchaDivId;this.pgEnumVar=_1.pageEnumVar;this.pgEnum=_1.pageEnum;this.botTokenId=_1.botTokenId;this.captchaLink=_1.captchaLink;this.errList=_1.errorIdList;this.cancelLink=_1.cancelLink;this.isRes=_1.resolutionDetected;this.isMotors=_1.motors;},handle:function(_2){var _3=_2.src,params="";var _4=new vjo.dsf.Message(this.sSvcId);var e=vjo.dsf.document.Element;if(e.get(this.aFieldIds[0])&&typeof(e.get(this.aFieldIds[0]))!="undefined"&&typeof(e.get(this.aFieldIds[0]).value)!="undefined"){params+="&"+this.aFieldIds[0]+"="+e.get(this.aFieldIds[0]).value;}
if(e.get(this.aFieldIds[1])&&typeof(e.get(this.aFieldIds[1]))!="undefined"&&typeof(e.get(this.aFieldIds[1]).value)!="undefined"){params+="&"+this.aFieldIds[1]+"="+e.get(this.aFieldIds[1]).value;}
if(e.get(this.aFieldIds[2])&&typeof(e.get(this.aFieldIds[2]))!="undefined"&&typeof(e.get(this.aFieldIds[2]).value)!="undefined"){params+="&"+this.aFieldIds[2]+"="+e.get(this.aFieldIds[2]).value;}
if(e.get(this.aFieldIds[3])&&typeof(e.get(this.aFieldIds[3]))!="undefined"&&typeof(e.get(this.aFieldIds[3]).checked)!="undefined"){params+="&"+this.aFieldIds[3]+"="+e.get(this.aFieldIds[3]).checked;}
if(e.get(this.aFieldIds[4])&&(typeof(e.get(this.aFieldIds[4]))!="undefined"&&typeof(e.get(this.aFieldIds[4]).value)!="undefined")){params+="&"+this.aFieldIds[4]+"="+e.get(this.aFieldIds[4]).value;}
_4.request=this.sActionURL+params+"&rand="+Math.random()+"&resolutionDetected="+this.isRes+"&isMotors="+this.isMotors;return _4;},handleResponse:function(_6){var e=vjo.dsf.document.Element;if(!_6.response||_6.response.errors.length>0){return;}
if(_6.response.data!==null){var _8=_6.response.data.adLead;var _9=e.get(this.sSuccessDiv);var _a=_6.response.data.success;if(_a){var _b=e.get(this.sEmailTxt);_b.style.display="none";}
if(_6.response.data.showSuccess){var _c=e.get(this.spanId);if(this.html!==null&&_c){_c.innerHTML=this.html;}}
if(_6.response.data.showFatalErr){var _c=e.get(this.spanId);if(this.errHtml!==null&&_c){_c.innerHTML=this.errhtml;}}
if(_6.response.data.refreshCaptcha){var _d=e.get(this.captchaDiv);_d.innerHTML=_6.response.data.refreshCaptcha;e.get(this.botTokenId).value=_6.response.data.tokenValue;this.bindJs(_6.response.data.jsMeta,_6.response.data.eventIdMap);}else{var _e=vjo.dsf.EventDispatcher;var _f=_e.isBound(this.btnId,"click");if(_f){_e.detachHandlers(this.btnId,"click");_e.detachHandlers(this.captchaLink,"click");_e.detachHandlers(this.cancelLink,"click");}
vjo.dsf.utils.Ajax.apply(this.sSuccessDiv,_8,_6.response.data.jsMeta,_6.response.data.cssMeta);e.get(this.fcsId).focus();}}
return false;},reloadCaptcha:function(_10){var _11=new vjo.dsf.Message(this.sSvcId);_11.request=this.pgEnumVar+"="+this.pgEnum+"&mode=3";this.vj$.ServiceEngine.handleRequest(_11);},bindJs:function(_12,_13){if(_12){if(_13){var map=_13;for(var i in map){var _16=map[i];for(var j=0;j<_16.length;j++){vjo.dsf.EventDispatcher.detachHandlers(i,_16[j]);}}}
eval(_12);}},tglCS:function(){var _18=this.fcsId;var _19=this.sSuccessDiv;var e=vjo.dsf.document.Element;var _1b=this.errList;var _1c=e.get(_18);var _1d=e.get(_19).style.display;if(_1b.length){for(i=0;i<_1b.length;i++){e.toggleHideShow(_1b[i],false);}}
if(_1d=="block"){e.toggleHideShow(_19,false);}else{e.toggleHideShow(_19,true);}
_1c.focus();},bindCSS:function(_1e){var css=document.createElement("STYLE");css.type="text/css";css.rel="stylesheet";css.media="screen";if(css.styleSheet){css.styleSheet.cssText=_1e;}else{var t=document.createTextNode(_1e);css.appendChild(t);}
document.getElementsByTagName("head")[0].appendChild(css);}}).props({showErrorMsg:function(_21,_22,_23){myOption=-1;var _24=document.forms[_21].elements[_23];for(i=0;i<_24.length;i++){if(_24[i].checked){document.forms[_21].submit();myOption=1;}}
if(myOption!=1){vjo.dsf.document.Element.get(_22).style.display="block";return false;}},hideErrMsg:function(_25){vjo.dsf.document.Element.get(_25).style.display="none";},cancelLnk:function(_26,_27,_28){var e=vjo.dsf.document.Element;var _2a=e.get(_27);_2a.innerHTML=_26;e.toggleHideShow(_28,false);}}).endType();

vjo.ctype("vjo.darwin.pres.classifiedad.cmp.lyifield.LyiField").needs(["vjo.dsf.document.Element"]).props({E:vjo.dsf.document.Element,hoverInOutText:function(id,_2){var _3=this.E.get(id);if(_3!==null){_3.style.backgroundColor=_2;}},clickText:function(id,_5){var _6=this.E.get(id);if(_6!==null&&_6.value==_5){_6.style.backgroundColor="#FFFFFF";_6.select();}},blurText:function(id,_8,_9,_a){var _b=this.E.get(id);if(_b!==null){if(_b.value.length===0){_b.value=_8;}
if(_b.value==_8){_b.style.color=_9;}else{_b.style.color=_a;}}},keyDownText:function(id,_d){this.E.get(id).style.color=_d;}}).endType();

vjo.ctype("vjo.darwin.pres.classifiedad.page.piwikpage.PiwikPageData").needs("vjo.dsf.Element","E").needs("vjo.dsf.document.Form").needs("vjo.dsf.assembly.VjClientAssemblerRequest","VCR").props({trackFunc:function(_1,_2){_rover.setAppId(9060);_rover.setServer("ebay.fr");var _3=_1;var _4=_rover.createPageImpEvent(_3,_2);_4.setLVTrk(true);ebayLVTr.setRover(_rover);ebayLVTr.setPageImpEvent(_3);ebayLVTrClk._ebayLVTrackerClk_init_tracker();_rover.track();}});

// fr_FR/e639cfi/ClassifiedAdApplicationV4_Form_e639cfi10303129_6_fr_FR
// b=10303129