
vjo.ctype("vjo.com.ebay.darwin.app.staticpages.tickethp.Tickethp").needs("vjo.dsf.cookie.VjCookieJar").needs("vjo.dsf.utils.Bit").needs("vjo.dsf.Message").props({callbackFun:function(_1){var _2=eval(_1);var _3=eval("("+_2.relatedGuide+")");var _4=eval("("+_2.relatedNeighbour+")");var _5=eval("("+_2.relatedSearch+")");var _6=eval("("+_2.ticketBrowse+")");var _7="",text="",rltStrrg="<ul>",rltStrrn="<ul>",rltStrrs="<ul>",morerg="",morern="",morers="",hdUlStr="",hdcount=4;if(_3!=null){for(var i=0;i<_3.relatedGuideLinks.length;i++){_7=_3.relatedGuideLinks[i].url;text=_3.relatedGuideLinks[i].label;if(_3.relatedGuideLinks[i].isSeeAll==true){morerg="<a href='"+_7+"'>"+text+"</a>";}else{rltStrrg+="<li><a href='"+_7+"'>"+text+"</a></li>";}}
rltStrrg=rltStrrg+"</ul>";vjo.dsf.document.Element.get("mdrg").innerHTML=rltStrrg;vjo.dsf.document.Element.get("rgft").innerHTML=morerg;vjo.dsf.document.Element.get("model3").style.display="block";}else{vjo.dsf.document.Element.get("model3").style.display="none";}
var _9=0,pstct=0,mbstr="",pststr="";if(_4!=null){rltStrrn="";for(var i=0;i<_4.neighborhoodItems.length;i++){if(_4.neighborhoodItems[i].memberCount==1){_9=" member";}else{_9=" members";}
if(_4.neighborhoodItems[i].discussionPosts==1){pstct=" post";}else{pstct=" posts";}
mbstr=_4.neighborhoodItems[i].memberCount.toString();mbstrLen=mbstr.length;pststr=_4.neighborhoodItems[i].discussionPosts.toString();pststrLen=pststr.length;for(var j=1;j*3<mbstrLen;j++){mbstr=mbstr.substr(0,mbstrLen-j*3)+","+mbstr.substr(mbstrLen-j*3,j*3+j-1);}
for(var j=1;j*3<pststrLen;j++){pststr=pststr.substr(0,pststrLen-j*3)+","+pststr.substr(pststrLen-j*3,j*3+j-1);}
rltStrrn+="<div class='nhi'><div class='nhpic'><a class='prod-img' href='"+_4.neighborhoodItems[i].neighborhoodUrl+"'><img border='0' src='"+_4.neighborhoodItems[i].defaultPictureUrl+"'/></a></div><div class='nhtitle'><a href='"+_4.neighborhoodItems[i].neighborhoodUrl+"'>"+_4.neighborhoodItems[i].neighborhoodName+"</a></div><div class='nhmemberPost'>"+mbstr+_9+"<br/>"+pststr+pstct+"</div></div>";}
if(_4.isSeeAll==true){var ft="<a href='"+_4.seeAllUrl+"'>See all related neighborhoods</a>";vjo.dsf.document.Element.get("rnft").innerHTML=ft;}else{vjo.dsf.document.Element.get("model2_f").style.display="none";vjo.dsf.document.Element.get("model2_f").style.display="none";var _c=vjo.dsf.document.Element.get("model2_b");_c.firstChild.style.backgroundColor="#FFFFFF";_c.firstChild.firstChild.style.backgroundColor="#FFFFFF";_c.firstChild.firstChild.firstChild.style.backgroundColor="#FFFFFF";}
vjo.dsf.document.Element.get("mdrn").innerHTML=rltStrrn;vjo.dsf.document.Element.get("model2").style.display="block";}else{vjo.dsf.document.Element.get("model2").style.display="none";}
if(_5!=null){for(var i=0;i<_5.refinedAlternativeSearches.length;i++){_7=_5.refinedAlternativeSearches[i].url;text=_5.refinedAlternativeSearches[i].label;if(_5.refinedAlternativeSearches[i].isSeeAll==true){morers="<a href='"+_7+"'>"+text+"</a>";}else{rltStrrs+="<li><a href='"+_7+"'>"+text+"</a></li>";}}
rltStrrs=rltStrrs+morers+"</ul>";vjo.dsf.document.Element.get("mdrs").innerHTML=rltStrrs;vjo.dsf.document.Element.get("model4").style.display="block";}else{vjo.dsf.document.Element.get("model4").style.display="none";}
if(_6!=null){rltStrbr="<table cellspacing='0' cellpadding='0'>";for(var i=0;i<_6.eventList.length;i++){evetl="<b>";if(_6.eventList[i].url!=null){evetl+="<a href=''>"+_6.eventList[i].title+"</a></b>";}else{evetl+=_6.eventList[i].title+"</b>";}
if((i+1)%3==1){rltStrbr+="<tr><td>"+evetl+"<ul>";}else{rltStrbr+="<td>"+evetl+"<ul>";}
if(_6.eventList[i].subEvent!=null){if(_6.eventList[i].subEvent.length>hdcount){for(var j=0;j<hdcount;j++){_7=_6.eventList[i].subEvent[j].url;text=_6.eventList[i].subEvent[j].title;rltStrbr+="<li><a href='"+_7+"'>"+text+"</a></li>";}
hdUlStr="<ul id='hdul_"+i+"' class='hdul' style='display:none;'>";for(var j=hdcount;j<_6.eventList[i].subEvent.length;j++){_7=_6.eventList[i].subEvent[j].url;text=_6.eventList[i].subEvent[j].title;hdUlStr+="<li><a href='"+_7+"'>"+text+"</a></li>";}
hdUlStr+="</ul>";rltStrbr+="<li class='mlk' id='mlk_"+i+"' onclick='javascript:"+"document.getElementById(\"mlk_"+i+"\").style.display=\"none\";document.getElementById(\"hdul_"+i+"\").style.display=\"block\";document.getElementById(\"flk_"+i+"\").style.display=\"inline\";'>More</li>";rltStrbr+=hdUlStr;rltStrbr+="<li class='flk' id='flk_"+i+"' onclick='javascript:"+"document.getElementById(\"mlk_"+i+"\").style.display=\"inline\";document.getElementById(\"hdul_"+i+"\").style.display=\"none\";document.getElementById(\"flk_"+i+"\").style.display=\"none\";' style='display:none'>Fewer</li>";}else{hdUlStr="";for(var j=0;j<_6.eventList[i].subEvent.length;j++){_7=_6.eventList[i].subEvent[j].url;text=_6.eventList[i].subEvent[j].title;rltStrbr+="<li><a href='"+_7+"'>"+text+"</a></li>";}}}
rltStrbr+="</ul></td>";if((i+1)%3==0){rltStrbr=rltStrbr+"</tr>";}}
var sa="",ctStr="",ctLen=0,sact;if(_6.seeAllUrl!=null){ctStr=(_6.count).toString();ctLen=(_6.count).toString().length;for(var i=1;i*3<ctLen;i++){ctStr=ctStr.substr(0,ctLen-i*3)+","+ctStr.substr(ctLen-i*3,i*3+i-1);}
sa="<div style='text-align: right;'><a href='"+_6.seeAllUrl+"'>See all items</a><span class='allitems'>("+ctStr+")</span></div>";}
vjo.dsf.document.Element.get("aplink").innerHTML=rltStrbr+"</table>";vjo.dsf.document.Element.get("seeall").innerHTML=sa;}},callbackMW:function(_e){var _f=eval(_e);var str=_f[0].data.map;if(str!=null&&str.Style!=null&&str.ME4_body!=null){var _11="<style>"+str.Style+"</style>"+str.ME4_body;vjo.dsf.document.Element.get("mdms").innerHTML=_11;vjo.dsf.document.Element.get("model1").style.display="block";}else{vjo.dsf.document.Element.get("model1").style.display="none";}},chgCbr:function(evt){var obj=evt.src,ebdis=vjo.dsf.document.Element.get("ebaysrch"),shdis=vjo.dsf.document.Element.get("shsrch"),ebkw=vjo.dsf.document.Element.get("kwSrchEB"),shkw=vjo.dsf.document.Element.get("kwSrchSH"),CJ=vjo.dsf.cookie.VjCookieJar,BIT=vjo.dsf.utils.Bit,pbf=CJ.readCookie("dp1","pbf");if(pbf===""){pbf="#0";}
if(obj.value==="0"){pbf=CJ.setBitFlag(pbf,42,0);CJ.writeCookielet("dp1","pbf",pbf);ebdis.style.display="block";shdis.style.display="none";ebkw.style.display="block";shkw.style.display="none";}else{pbf=CJ.setBitFlag(pbf,42,1);CJ.writeCookielet("dp1","pbf",pbf);ebdis.style.display="none";shdis.style.display="block";ebkw.style.display="none";shkw.style.display="block";}
obj.checked=true;},clearText:function(evt){var sc=evt.src;if(sc.value==="Enter artist, team, venue"){evt.src.value="";}},rqst:function(_16){var _17=vjo.dsf.document.Element.get("ebaysrch"),shdis=vjo.dsf.document.Element.get("shsrch"),ebkw=vjo.dsf.document.Element.get("kwSrchEB"),shkw=vjo.dsf.document.Element.get("kwSrchSH"),ebrd=vjo.dsf.document.Element.get("ebay"),shrd=vjo.dsf.document.Element.get("stubhub"),CJ=vjo.dsf.cookie.VjCookieJar,BIT=vjo.dsf.utils.Bit,pbf=CJ.readCookie("dp1","pbf"),val=CJ.getBitFlag(pbf,42);if(val!=1){ebrd.checked=true;_17.style.display="block";shdis.style.display="none";ebkw.style.display="block";shkw.style.display="none";}else{shrd.checked=true;_17.style.display="none";shdis.style.display="block";ebkw.style.display="none";shkw.style.display="block";}
if(vjo.dsf.document.Element.get("gg_category").selectedIndex!=0){vjo.dsf.document.Element.get("shgo").disabled=false;}else{vjo.dsf.document.Element.get("shgo").disabled=true;}
if(vjo.dsf.document.Element.get("evt").selectedIndex!=0){vjo.dsf.document.Element.get("ebgo").disabled=false;}else{vjo.dsf.document.Element.get("ebgo").disabled=true;}
var _18=navigator.userAgent;var _19=_18.indexOf("Opera")>-1;var _1a=_18.indexOf("compatible")>-1&&_18.indexOf("MSIE")>-1&&!_19;if(_1a){var IE8=false;var _1c=new RegExp("MSIE (\\d+\\.\\d+);");_1c.test(_18);var _1d=parseFloat(RegExp["$1"]);if(_1d==8){vjo.dsf.document.Element.get("ftd1").style.paddingTop="8px";vjo.dsf.document.Element.get("ftd2").style.paddingTop="8px";}}
var pt=_16;var _1f=vjo.dsf.document.Element.get("jsDiv");_1f.innerHTML="";var js=document.createElement("script");js.src=pt+"/_W0QQ_majaxZ1QQ_sacatZ1305QQ_callbackZvjo.com.ebay.darwin.app.staticpages.tickethp.Tickethp.callbackFun";_1f.appendChild(js);var js2=document.createElement("script");var _22=pt.replace("tickets.shop","promo");js2.src=_22+"/ws/eBayISAPI.dll?MerchPlacement&svcid=MERCH_PLACEMENT&reqttype=NVPAIR&resptype=JSCALLBACK&request=promotypes%3D5%26emitStyle%3D1%26portletid%3D98%26results%3D3%26page%3D3910%26category%3D1305%26itmsi%3D0%26promoStyles%3D-1%26userState%3D1%26useCache%3D0&cb=vjo.com.ebay.darwin.app.staticpages.tickethp.Tickethp.callbackMW";_1f.appendChild(js2);},shchg:function(evt){var sc=evt.src;if(sc.selectedIndex!=0){vjo.dsf.document.Element.get("shgo").disabled=false;}else{vjo.dsf.document.Element.get("shgo").disabled=true;}},shsmt:function(){var mrr=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var val=vjo.dsf.document.Element.get("stdd").value;var s,e,arr,arre;var _28=new RegExp("^[0-9]{2}/[0-9]{2}/[0-9]{4}$");var fmt=_28.test(val.toString());if(val=="mm/dd/yyyy"||val==""||!fmt){s="";}else{arr=val.split("/");var seq=parseInt(arr[0]);if(seq>12||parseInt(arr[1])>31){s="";}else{s=arr[2]+"-"+arr[0]+"-"+arr[1]+";"+mrr[seq-1]+", "+arr[2];}}
vjo.dsf.document.Element.get("stdate").value=s;var _2b=vjo.dsf.document.Element.get("end").value;fmt=_28.test(_2b);if(_2b=="mm/dd/yyyy"||_2b==""||!fmt){e="";}else{arre=_2b.split("/");var _2c=parseInt(arre[0]);if(_2c>12||parseInt(arre[1])>31){e="";}else{e=arre[2]+"-"+arre[0]+"-"+arre[1]+";"+mrr[_2c-1]+", "+arre[2];}}
vjo.dsf.document.Element.get("edate").value=e;vjo.dsf.document.Form.submit("stubHubForm");},stateChange:function(_2d){var _2e=vjo.dsf.document.Element.get("state"),evtdd=vjo.dsf.document.Element.get("evt"),sevtdd=vjo.dsf.document.Element.get("subevt"),ctdd=vjo.dsf.document.Element.get("city"),jsDiv=vjo.dsf.document.Element.get("jsDiv2"),ctdd=vjo.dsf.document.Element.get("city"),ctlb=vjo.dsf.document.Element.get("ctlb"),js=document.createElement("script");jsDiv.innerHTML="";if(_2e.value!==""&&evtdd.value!=="-1"){var _2f=_2d+"/items/Tickets_?_dmpt=US_Tickets_all_in_one&_npmv=3&_sacat=1305&_ssov=1&_saa=2&_ssan=City&_callback=vjo.com.ebay.darwin.app.staticpages.tickethp.Tickethp.callbackCity";if(sevtdd.name!==""){_2f+="&"+evtdd.name+"="+evtdd.value+"&"+sevtdd.name+"="+sevtdd.value+"&"+_2e.name+"="+_2e.value;}else{_2f+="&"+evtdd.name+"="+evtdd.value+"&"+_2e.name+"="+_2e.value;}
_2f=_2f.replace(/%/g,"%25");js.src=_2f;jsDiv.appendChild(js);}else{ctdd.value="";ctdd.name="";ctdd.style.display="none";ctlb.style.display="none";}},sevtChange:function(_30){var _31=vjo.dsf.document.Element.get("state"),evtdd=vjo.dsf.document.Element.get("evt"),sevtdd=vjo.dsf.document.Element.get("subevt"),ctdd=vjo.dsf.document.Element.get("city"),jsDiv=vjo.dsf.document.Element.get("jsDiv2"),ctdd=vjo.dsf.document.Element.get("city"),ctlb=vjo.dsf.document.Element.get("ctlb"),js=document.createElement("script");jsDiv.innerHTML="";if(_31.value!==""){var _32=_30+"/items/Tickets_?_dmpt=US_Tickets_all_in_one&_npmv=3&_sacat=1305&_ssov=1&_saa=2&_ssan=City&_callback=vjo.com.ebay.darwin.app.staticpages.tickethp.Tickethp.callbackCity";_32+="&"+evtdd.name+"="+evtdd.value+"&"+sevtdd.name+"="+sevtdd.value+"&"+_31.name+"="+_31.value;_32=_32.replace(/%/g,"%25");js.src=_32;jsDiv.appendChild(js);}else{ctdd.value="";ctdd.name="";ctdd.style.display="none";ctlb.style.display="none";}},callbackCity:function(_33){var _34=vjo.dsf.document.Element.get("city"),ctlb=vjo.dsf.document.Element.get("ctlb"),obj=eval(_33),i,disp,val,option;var _35=obj.aspect.values;_34.options.length=0;if(_35!=null&&_35.length>0){_34.name="City";for(i=0;i<_35.length;i++){disp=_35[i].display;val=_35[i].value;if(val!=="!"){option=new Option(disp,val);_34.options[i]=option;}else{option=new Option("Others",val);_34.options[i]=option;}}
_34.style.display="block";ctlb.style.display="block";}else{_34.style.display="none";ctlb.style.display="none";_34.value="";_34.name="";}},ebsmt:function(){vjo.dsf.document.Form.submit("eBayForm");}}).protos({constructs:function(mdl){var t=this;var _38;var _39=eval(mdl);if(_39!=null){_38=_39.ebfinder;}
t.E=vjo.dsf.document.Element;var doc=null;if(window.ActiveXObject){var _3b=["MSXML2.XMLDOM","Microsoft.XMLDOM","MSXML.XMLDOM","MSXML3.XMLDOM"];for(var len=_3b.length,i=0;i<len;i++){var id=_3b[i];try{var doc=new ActiveXObject(id);doc.async=false;doc.setProperty("SelectionLanguage","XPath");doc.loadXML(_38);break;}
catch(e){}
finally{if(doc&&doc.parseError&&doc.parseError.errorCode!=0){throw{parser:"MSXML",message:doc.parseError.reason,xml:_38,func:"xmlDocument"};}}}}else{if(typeof DOMParser!="undefined"){var _3e=new DOMParser();var doc=_3e.parseFromString(_38,"text/xml");if(doc.documentElement.nodeName=="parsererror"){throw{parser:"DOMParser",message:doc.documentElement.firstChild.nodeValue,xml:_38,func:"xmlDocument"};}}else{return false;}}
t.xml=doc;t.stateNode=t.xml.getElementsByTagName("States");t.etNode=t.xml.getElementsByTagName("Events");t.tNode=t.etNode[0].getElementsByTagName("Event");t.sstNode=t.stateNode[0].getElementsByTagName("State");t.ddini();},ddini:function(){var _3f,tDisV,option,t=this;var _40=t.E.get("evt");var _41=t.E.get("state");for(var i=0;i<t.tNode.length;i++){_3f=t.tNode[i].attributes.getNamedItem("value").value;tDisV=t.tNode[i].attributes.getNamedItem("display").value;option=new Option(tDisV,_3f);_40.options[i]=option;}
for(var j=0;j<t.sstNode.length;j++){_3f=t.sstNode[j].attributes.getNamedItem("value").value;tDisV=t.sstNode[j].attributes.getNamedItem("display").value;option=new Option(tDisV,_3f);_41.options[j]=option;}},evtChange:function(_44){var _45,tDisV,t=this,j=t.E.get("evt").selectedIndex,evtdd=t.E.get("evt"),h=t.host;var _46=t.E.get("subevt");var _47=t.tNode[j].getElementsByTagName("SubEvt");var _48=vjo.dsf.document.Element.get("state"),ctdd=vjo.dsf.document.Element.get("city"),ctlb=vjo.dsf.document.Element.get("ctlb");if(j!=0){_46.options.length=0;t.E.get("ebgo").disabled=false;if(_47!=null&&_47.length>0){vjo.dsf.document.Element.get("tdimg").style.display="block";_46.name=t.tNode[j].attributes.getNamedItem("para").value;for(var i=0;i<_47.length;i++){_45=_47[i].attributes.getNamedItem("value").value;tDisV=_47[i].attributes.getNamedItem("display").value;var _4a=new Option(tDisV,_45);_46.options[i]=_4a;}
_46.style.display="block";}else{vjo.dsf.document.Element.get("tdimg").style.display="none";_46.style.display="none";_46.value="";_46.name="";}
if(_48.value!==""){var _4b=vjo.dsf.document.Element.get("jsDiv2");var js=document.createElement("script");_4b.innerHTML="";var _4d=_44+"/items/Tickets_?_dmpt=US_Tickets_all_in_one&_npmv=3&_sacat=1305&_ssov=1&_saa=2&_ssan=City&_callback=vjo.com.ebay.darwin.app.staticpages.tickethp.Tickethp.callbackCity";if(_46.name!==""){_4d+="&"+evtdd.name+"="+evtdd.value+"&"+_46.name+"="+_46.value+"&"+_48.name+"="+_48.value;}else{_4d+="&"+evtdd.name+"="+evtdd.value+"&"+_48.name+"="+_48.value;}
_4d=_4d.replace(/%/g,"%25");js.src=_4d;_4b.appendChild(js);}}else{ctdd.style.display="none";ctlb.style.display="none";ctdd.value="";ctdd.name="";vjo.dsf.document.Element.get("tdimg").style.display="none";_46.style.display="none";t.E.get("ebgo").disabled=true;}}}).endType();

vjo.ctype("vjo.darwin.core.encoding.Enc").needs("vjo.dsf.Enc","").inits(function(){if(vjo.darwin.core.encoding.Enc.loaded){return;}
vjo.darwin.core.encoding.Enc.loaded=true;var vjoDecodeURI=window.decodeURI;window.decodeURI=function(str){try{return vjoDecodeURI(str);}catch(e){return unescape(str);}};var vjoDecodeURIComponent=window.decodeURIComponent;window.decodeURIComponent=function(str){try{return vjoDecodeURIComponent(str);}catch(e){return unescape(str);}};}).endType();

vjo.ctype("vjo.darwin.core.dynamicmenu.Show").needs("vjo.dsf.utils.JsLoader").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){var _3=vjo.Registry.get(this.id),url=_3.getHandlerSource(),handler=_3.getHandler();if(url!==null&&typeof(window[handler])=="undefined"){this.vj$.JsLoader.load(url,_3.setup,_3);}else{_3.setup();}}}).endType();

vjo.ctype("vjo.darwin.core.dynamicmenu.Hide").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){vjo.Registry.get(this.id).hide();}}).endType();

vjo.ctype("vjo.darwin.core.dynamicmenu.Stay").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){vjo.Registry.get(this.id).clear();}}).endType();

vjo.ctype("vjo.darwin.core.dynamicmenu.DynamicMenu").needs(["vjo.dsf.document.Element","vjo.dsf.document.Positioning","vjo.dsf.document.Shim","vjo.dsf.utils.Object","vjo.dsf.client.Browser","vjo.darwin.core.dynamicmenu.Show","vjo.darwin.core.dynamicmenu.Hide","vjo.darwin.core.dynamicmenu.Stay"]).protos({constructs:function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14){this.iMouseOutTimer=null;this.iMouseOverTimer=null;this.iLeftPadding=_b;this.iTopPadding=_c;this.iRightPadding=_d;this.sAnchorId=_1;this.sContainerLayerId=_2;this.sContentLayerId=_3;this.iMouseOutDelay=_4;this.iMouseOverDelay=_5;this.iHighResDocWidth=_6;this.iLowResDocWidth=_7;this.iHighResColumns=_8;this.iMediumResColumns=_9;this.iLowResColumns=_a;this.sHandler=_e;this.sCollName=_f;this.sWidth=_10;this.sAnchorMouseOverClass=_11;this.sAnchorMouseOutClass=_12;this.iframeShim=null;this.sHTML=null;this.oAnchor=null;this.sTemplate=null;this.sAnchorText=_13;this.sDomain=_14;this.sHandlerSource=null;if(this.sAnchorId=="Help"){this.iLeftPadding-=5;}
if(window.location.href.hasAny(".it.",".ebay.it")&&this.sAnchorId=="BrowseCategories"){this.sHandler="get_BrowseCategories_menu";}
this.oCobrand=null;},setHandlerSource:function(url){if(url){this.sHandlerSource=url;}},getHandlerSource:function(){return this.sHandlerSource;},getHandler:function(){return this.sHandler;},setup:function(){var oL,oA,iL,iT,iWW,noc,iAL,iAW,iLW,op,oSI,bF=false,t,lh=window.location.href;var vd=vjo.dsf,D=vd.document,E=D.Element,P=D.Positioning,S=D.Shim,B=vd.client.Browser;var O=vd.utils.Object;var _19=0;var _1a=false;with(this){clear();if(sTemplate==null){t=E.get(sContentLayerId);if(t){sTemplate=t.innerHTML;}}
oL=E.get(sContainerLayerId);if(oL){op=oL.offsetParent;}
oA=E.get(sAnchorId);iAL=DynamicMenuGetOffsetLeft(oA);iAW=oA.offsetWidth;if(oA.parentNode&&oA.parentNode.id&&oA.parentNode.id.has("item")){oA=oA.parentNode;}
iT=P.getOffsetTop(oA)+(oA.offsetHeight);iWW=P.getClientWidth();if(typeof(iWW)=="undefined"){iWW=800;}
if(iWW>iHighResDocWidth){noc=iHighResColumns;}else{if(iWW>iLowResDocWidth&&iWW<=iHighResDocWidth){noc=iMediumResColumns;}else{if(iWW<=iLowResDocWidth){noc=iLowResColumns;}else{noc=5;}}}
if(sHTML==null){bF=true;if(B.bFirefox&&!lh.has("motors.")&&!lh.hasAny("shop.","local.","catalog.")){E.promoteToBody(sContainerLayerId);}
sHTML=getMenuHtml(noc);if(sHTML==null){return;}
oL.innerHTML=sHTML;}
iLW=oL.offsetWidth;var _1b=GetContainerDiv(),cw,bRA=false;if(sAnchorId=="Help"){bRA=true;}
if(_1b&&B.bIE&&!lh.hasAny("community","education")){cw=_1b.offsetWidth+P.getOffsetLeft(_1b);if((iAL+iLW)>cw){bRA=true;}}
var bE=(sAnchorId=="EbxBrowseCategories")?true:false;if(lh.hasAny("securitycenter","payments.")&&lh.has(".hk")){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAny("securitycentre","contact_ebay")&&lh.has(".au")){iAL=P.getOffsetLeft(oA);}else{if((typeof(pageName)!="undefined")?pageName.has("CCHP_"):false){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAll("pages.","ebaymotors")){}else{if(lh.hasAny("/buy/")){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAny("pages.",".html",".shtml","cgi.","tools.ebay.de","neighborhoods.","themenwelten.","neighbourhoods.","motors.ebay.co.uk","motors.uk.","ebaymotors.at","motors.at.","motors.ebay.de","motors.de.")){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAny("annonces.")&&!(B.bIE&&B.iVer==6)){iAL=P.getOffsetLeft(oA);}else{if(typeof(bCenterAlignedPage)!="undefined"&&bCenterAlignedPage){iAL=P.getOffsetLeft(oA);}else{if(bE&&((typeof(pageName)!="undefined")?pageName.has("KP_HomePage"):false)){iAL=P.getOffsetLeft(oA);}else{if(sAnchorId=="StoreBrowseCats"&&lh.has("stores.")){iAL=P.getOffsetLeft(oA);}else{if(typeof(pageName)!="undefined"&&pageName=="HomePagePortal"){iAL=P.getOffsetLeft(oA);}}}}}}}}}}}
var _1d=E.get("2tabPopularProducts");if(_1d&&B.bIE){iAL=P.getOffsetLeft(oA);}
var _1e=false;if(lh.hasAny(".fr.","ebay.fr")&&sAnchorId=="Community"){_1e=true;}
if(!_1e&&((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(P.getOffsetLeft(oA)+iAW+iLW))||bRA||bE)){_19=iAW-iLW;iL=iAL+iAW-iLW;}else{iL=iAL;}
if(_1e){iL-=5;}
if(sAnchorId=="Buy"||sAnchorId=="BrowseCategories"){_1a=true;}
if(sAnchorId=="Buy"||sAnchorId=="Sell"||sAnchorId=="MyEbay"||sAnchorId=="OV"){iL=iAL;}
iL+=iLeftPadding;if(lh.has("securitycentre")&&lh.has(".sg")&&B.bIE){iL+=10;}else{if(lh.has("feedback")&&lh.has(".hk")&&B.bFirefox){iL+=7;}else{if(lh.has("my.")&&B.bFirefox){iL-=7;}else{if(lh.has("myworld")&&B.bIE){iL+=10;}else{if(bE){var sn=E.get("dynamicmenu-snavW");iT=P.getOffsetTop(sn)+(sn.offsetHeight)+iTopPadding;if(B.bFirefox){iL+=2;}
if(B.bIE&&((typeof(pageName)!="undefined")?pageName.has("KP_HomePage"):false)){iL-=9;}}else{if(lh.has("search.")&&sAnchorId=="BrowseCategories"&&B.bIE&&B.iVer==7){iL+=22;iT-=2;}else{if(!lh.has("motors.shop.")&&B.bIE){if(lh.has("shop.")){if(sAnchorId=="BrowseCategories"){iL+=5;}}else{if(lh.hasAny("catalog.")){iL+=15;iT-=2;}}}else{if(lh.has("hub.motors.")&&B.bIE&&B.iVer>6){iL-=8;}}}}}}}}
if(bF){oL.style.left=(iL>=0)?(iL-1)+"px":"14px";oL.style.top=(iT)+"px";if((typeof(this.vj$.DynamicMenu.bUnified)!="undefined"&&this.vj$.DynamicMenu.bUnified)||lh.has("deals.")||lh.has("stores.")||lh.has("contact")||lh.has("catalog.")||(lh.has("resolutioncenter.")&&B.bIE&&B.iVer>6)){oL.style.position="absolute";var p1=P.getOffsetLeft(document.getElementById(sAnchorId));oL.style.left=(p1+_19+this.iLeftPadding)+"px";E.promoteToBody(oL.id);}
oL.style.zIndex="1000";if(lh.has("motors")||sAnchorId=="BrowseCategories"&&!lh.has("myworld")){iframeShim=this.add(oL,12);}else{iframeShim=this.add(oL);}}else{if(B.bIE){oL.appendChild(iframeShim);}}
oSI=E.get(sContainerLayerId+"-spacer");if(oSI&&bF){oSI.width=iLW-12;}
iMouseOverTimer=setTimeout(O.hitch(this,"show"),iMouseOverDelay);}},show:function(){var oA,E=vjo.dsf.document.Element;with(this){oA=E.get(sAnchorId);if(oA){oA.className=sAnchorMouseOverClass;}
E.toggleVisibility(sContainerLayerId,true);}},hide:function(){with(this){clearTimeout(iMouseOverTimer);iMouseOutTimer=setTimeout(vj$.Object.hitch(this,"close"),iMouseOutDelay);}},close:function(){var oA,E=vjo.dsf.document.Element;with(this){oA=E.get(sAnchorId);if(oA){oA.className=sAnchorMouseOutClass;}
E.toggleVisibility(sContainerLayerId,false);if(iframeShim){vj$.Shim.remove(E.get(sContainerLayerId),iframeShim);}}},clear:function(){clearTimeout(this.iMouseOutTimer);},sortByValue:function(_23,_24){if(_23.value.has("Everything")){return 1;}else{if(_24.value.has("Everything")){return-1;}else{return _23.value<_24.value?-1:(_23.value>_24.value?1:0);}}},getMenuHtml:function(_25){with(this){var i,j,c,n,h,ipc,html,sTemp=".paradise.qa.ebay.com",sTemp2=".qa.ebay.com",u,ff,ll,sTemp3=".no-pool-name.qa.ebay.com";var E=vj$.Element;var lh=window.location.href;var _29=window[sHandler];if(!_29){return;}
var _2a=_29(),items=_2a[sCollName],l=items.length;if(sAnchorId=="BrowseCategories"&&lh.has("ebay.com/")){for(i=0;i<l;i++){if(items[i].value.has("eBay Motors")){items[i].value="Cars, Boats, Vehicles & Parts";items[i].url="http://www.motors.ebay.com";items.sort(sortByValue);break;}}}
ipc=Math.ceil(l/_25);h="<table bgcolor='white' border='0' cellpadding='0' cellspacing='0'";if(this.sWidth!=""){h+=" width='"+sWidth+"'";}
h+=">";for(i=0;i<ipc;i++){h+="<tr>";for(j=0;j<_25;j++){h+="<td nowrap>";n=i+(j)*ipc;c=items[n];if(c){if(typeof(c.url)!="undefined"){u=c.url;if(sDomain){if(c.url.indexOf(sTemp)!=-1){u=c.url.replace(sTemp,sDomain);}else{if(c.url.indexOf(sTemp3)!=-1){u=c.url.replace(sTemp3,sDomain);}else{if(c.url.indexOf(sTemp2)!=-1){u=c.url.replace(sTemp2,sDomain);}}}}
u=cobrandUrl(u);h+="<a href='"+u+"'>";h+=c.value;h+="</a>";}else{u=c.value;ff=u.indexOf("href=\"");if(ff==-1){h+=u;}else{ff+=6;ll=u.lastIndexOf("\"");u=u.substr(ff,ll-ff);h+=c.value.substr(0,ff)+cobrandUrl(u)+c.value.substr(ll);}}}else{h+="&nbsp;";}
h+="</td>";}
h+="</tr>";}
h+="</table>";html=h;if(sTemplate){html=sTemplate.replace("##1##",h);}
return html;}},DynamicMenuGetOffsetLeft:function(e){var l=0,oCl=vjo.dsf.client.Browser,ex=(oCl.bIE||oCl.bSafari),lh=window.location.href;var bH=(typeof(isHomepage)!="undefined")?isHomepage:false;var _2e=false;if(e.offsetParent){l=e.offsetLeft;while(e=e.offsetParent){if(!_2e){_2e=e.innerHTML.has("snav");}
if(!e.id.toLowerCase().has("maincontent")&&!e.className.has("pagecontainer")){l+=e.offsetLeft;}
if(((e.className.is("pnav")||_2e)&&ex)&&e.offsetLeft!=0&&(!lh.hasAny("signin.","shop.","community","sitemap","/help/","/education/","blogs","feedback","my"))){return l;}else{if((e.className.is("pnav")||_2e)&&e.offsetLeft!=0&&oCl.bFirefox&&lh.has(".hk")&&(!lh.has("community")&&!bH)){return l;}else{if((e.className.is("pnav")||_2e)&&e.offsetLeft!=0&&oCl.bIE&&lh.has(".au")&&lh.hasAny("/help/")){return l;}}}}}
return l;},GetContainerDiv:function(){var d=document,aa,i,l;if(d.getElementsByTagName){aa=d.getElementsByTagName("div");}else{if(d.all){aa=d.all;}}
l=aa.length;for(i=0;i<l;i++){if(aa[i].className=="gbhdr"){return aa[i];}}},cobrandUrl:function(_30){var lh=window.location.href;if(!lh.has("sandbox.")){return _30;}
var u="undefined",cc,cf;if(this.oCobrand==null&&typeof(ebay)!=u&&typeof(ebay.oDocument)!=u){cc=ebay.oDocument._getControl("cobrandCollection");if(cc){cf=cc._getControl("cobrandFunctions");this.oCobrand=cf;}}else{cf=this.oCobrand;}
var lc=(_30.substring(_30.length)!="/")?"/":"";if(cf&&typeof(cf.cobrandURL)!=u){return cf.cobrandURL(_30+lc);}else{if(typeof(vjo.darwin.core.cobrand)!=u&&typeof(vjo.darwin.core.cobrand.EbaySandbox)!=u){return vjo.darwin.core.cobrand.EbaySandbox.cobrandURL(_30);}}
return _30;},add:function(_34,_35,_36){var f,p="px",w,h,s,S=vjo.dsf.document.Shim;if(vjo.dsf.client.Browser.bIE){w=_34.offsetWidth;h=_34.offsetHeight;w+=_35?_35:0;h+=_36?_36:0;f=document.createElement("IFRAME");s=f.style;s.width=w+p;s.height=h+p;s.filter="chroma(color='white')";f.frameBorder=0;s.position="absolute";s.left="0"+p;s.top="0"+p;s.zIndex="-1";s.filter="Alpha(Opacity=\"0\")";if(document.location.protocol.has("https")){f.src="https://securepics.ebaystatic.com/aw/pics/s.gif";}
_34.appendChild(f);return f;}},replaceJSONDataHandler:function(_38,_39){if(_38!=null){this.sHandler=_38;}
if(_39!=null){this.sDomain=_39;}}}).props({setUnifiedPosition:function(){this.bUnified=true;}}).endType();

vjo.ctype("vjo.darwin.core.ebayheader.playground.Playground").needs(["vjo.dsf.typeextensions.string.Comparison","vjo.dsf.cookie.VjCookieJar","vjo.dsf.document.Element"]).protos({constructs:function(_1,_2){this.sLayerId=_1;this.sHandle=_2;},show:function(){var _3=vjo.dsf.cookie.VjCookieJar,sbf=_3.readCookie("ebay","sbf"),pcon=_3.getBitFlag(sbf,24),l,h,lid=this.sLayerId,E=this.vj$.Element;if(pcon){l=E.get(lid);h=window[this.sHandle];if(h&&l){l.innerHTML=h();E.toggleHideShow(lid,true);}}else{E.toggleHideShow(lid,false);}}}).endType();

vjo.ctype("vjo.darwin.core.ebayheader.timezone.TimeZone").needs("vjo.dsf.cookie.VjCookieJar").props({init:function(){this.vj$.VjCookieJar.writeCookielet("dp1","tzo",new Date().getTimezoneOffset().dec2Hex());}}).inits(function(){vjo.darwin.core.ebayheader.timezone.TimeZone.init();}).endType();

vjo.ctype("vjo.darwin.core.menu.accordian.Util").protos({getDescendentById:function(_1,_2){try{var _3=_1.getElementsByTagName("*");var _4;for(var i=0;i<_3.length;i++){if(_3[i].id==_2){_4=_3[i];break;}}
return _4;}
catch(err){return _1;}},getAncestorByNodeName:function(_6,_7){if(_6&&_6.id!=this.id){var _8=_6.parentNode;if(_8.nodeName==_7){return _8;}else{return(this.getAncestorByNodeName(_8,_7));}}},getAncestorByClassName:function(_9,_a){if(_9&&_9.id!=this.id){var _b=_9.parentNode;if(_b.className==_a){return _b;}else{return(this.getAncestorByClassName(_b,_a));}}},getDescendentByClassName:function(_c,_d){if(_c){var _e=_c.getElementsByTagName("*");var _f;for(var i=0;i<_e.length;i++){if(_e[i].className==_d){_f=_e[i];break;}}
return _f;}}}).endType();

vjo.ctype("vjo.darwin.core.menu.accordian.AccordianMenuSection").needs("vjo.darwin.core.menu.accordian.Util").needs("vjo.dsf.EventDispatcher").protos({constructs:function(_1){this.ED=vjo.dsf.EventDispatcher;this.util=new vjo.darwin.core.menu.accordian.Util();this.id=_1.id;this.sectionDiv=_1;this.divs=this.sectionDiv.getElementsByTagName("DIV");this.menu=null;this.css=new Object();this.css.menu="accrdn-ms";this.css.head="accrdn-msh";this.css.headHigh="accrdn-msh-hi";this.css.headPointer="accrdn-msh-ptr";this.css.headBG="accrdn-msh-bg";this.css.headBGHigh="accrdn-msh-bg-hi";this.css.toggle="accrdn-ms-tgl";this.css.toggleClosed="accrdn-ms-tgl-c";this.css.toggleOpen="accrdn-ms-tgl-o";this.css.toggleEmpty="accrdn-ms-tgl-e";this.css.title="accrdn-ms-ttl";this.css.item="accrdn-itm";this.css.itemHigh="accrdn-itm-hi";this.css.itemBold="accrdn-itm-bld";this.css.itemLink="accrdn-itm-lnk";this.css.itemLinkHi="accrdn-itm-lnk-hi";this.css.itemNoBorder="accrdn-itm-nobdr";this.css.list="accrdn-list";this.css.info="accrdn-info";this.css.headCurrent="accrdn-msh-cur";this.css.headBGCurrent="accrdn-msh-bg-cur";this.css.menuCurrent="accrdn-m-cur";this.css.bodyVisible="accrdn-msb-v";this.body;this.toggle;for(var i=0;i<this.divs.length;i++){var _3=this.divs[i];if(_3.id.indexOf("_body")!=-1){this.body=_3;}
if(_3.id.indexOf("_tgl")!=-1){this.toggle=_3;}}
this.list=this.sectionDiv.getElementsByTagName("UL")[0];this.items;if(this.list){this.items=this.list.getElementsByTagName("LI");}
this.head=this.divs[0];this.headDiv1=this.divs[1];this.headDiv2=this.divs[2];this.titleLink=this.util.getDescendentByClassName(this.head,this.css.title);if(!this.isOpenDisabled()){this.ED.addEventListener(this.sectionDiv,"mouseover",this.sectionMouseOver,this);this.ED.addEventListener(this.sectionDiv,"mouseout",this.sectionMouseOut,this);}
this.ED.addEventListener(this.sectionDiv,"click",this.sectionClick,this);},sectionMouseOver:function(ev){this.highItem(ev);if(!this.isCurrentSection()){this.highHeader(ev);}},sectionMouseOut:function(ev){this.unhighItem(ev);if(!this.isCurrentSection()){this.unhighHeader(ev);}},sectionClick:function(ev){if(!this.isOpenDisabled()){if(this.isOpenControl(ev)){if(this.isOpen()===false){var _7=this.slideOpenSection();_7();}else{if(this.id!=this.menu.currentSectionID){var _8=this.closeSection();_8();}}}}
return this.executeAction(ev);},isOpenControl:function(ev){var _a=this.ED.target(ev);if(_a==this.headDiv1||_a==this.headDiv2||_a==this.toggle){return true;}else{if(_a.className==this.css.title&&_a.nodeName=="SPAN"){return true;}else{return false;}}},slideOpenSection:function(){var _b=this;return function(){if(_b.list){_b.body.className=_b.css.bodyVisible;_b.body.style.height="0px";if(!_b.menu.intervals[_b.body.id]){var _c=setInterval(_b.openInterval(),_b.menu.openTime);_b.menu.intervals[_b.body.id]=_c;}}};},openSection:function(){if(!this.isOpenDisabled()){if(this.list){this.body.className=this.css.bodyVisible;this.body.style.height=this.list.offsetHeight+"px";}
this.toggleIcon("open");this.menu.setOpenSectionIds();}},isOpenDisabled:function(){if(this.items&&this.items.length>0){return false;}else{return true;}},openInterval:function(){var _d=this;return function(){if(_d.body.offsetHeight<_d.list.offsetHeight){var _e=_d.body.offsetHeight+_d.menu.openPixels;if(_e>_d.list.offsetHeight){_d.body.style.height=_d.list.offsetHeight+"px";}else{_d.body.style.height=_e+"px";}}
if(_d.body.offsetHeight===_d.list.offsetHeight){_d.toggleIcon("open");_d.menu.setOpenSectionIds();_d.clearIntervalAndTimeout();}};},toggleIcon:function(_f){if(this.toggle&&_f=="open"){this.toggle.className=this.css.toggle+" "+this.css.toggleOpen;}else{if(this.toggle){this.toggle.className=this.css.toggle+" "+this.css.toggleClosed;}}},highHeader:function(ev){var _11=this.ED.target(ev);var _12=this.util.getAncestorByClassName(_11,this.css.head);if(_12){this.head.className=this.css.head+" "+this.css.headHigh;this.headDiv1.className=this.css.headBGHigh;this.head.className+=" "+this.css.headPointer;}},unhighHeader:function(ev){this.setSectionNormalStyle(this);},highItem:function(ev){var _15=this.ED.target(ev);if(_15.nodeName!="UL"&&_15.nodeName!="LI"){var _16=this.util.getAncestorByNodeName(_15,"LI");if(_16){var _17=_16.getElementsByTagName("DIV")[0];if(_17){_17.className+=" "+this.css.itemHigh;if(_16){var _18=(this.items[0].id==_16.id)?true:false;if(!this.isCurrentSection()&&_18){_17.className+=" "+this.css.itemNoBorder;}}
var _19=_17.getElementsByTagName("A")[0];if(_19){_19.className+=" "+this.css.itemLinkHi;}
if(_16&&_16.id==this.menu.currentItemID){_17.className+=" "+this.css.itemBold;}}}}},unhighItem:function(ev){var _1b=this.ED.target(ev);var _1c=this.util.getAncestorByNodeName(_1b,"LI");if(_1c){this.setItemNormalStyle(_1c);var _1d=_1c.getElementsByTagName("A")[0];if(_1d){_1d.className=this.css.itemLink;}
if(_1c.id==this.menu.currentItemID){itemDiv=_1c.getElementsByTagName("DIV")[0];if(itemDiv){itemDiv.className+=" "+this.css.itemBold;}}}},executeAction:function(ev){var _1f=this.ED.target(ev);var _20=this.util.getAncestorByNodeName(_1f,"LI");if(!this.util.getAncestorByClassName(_1f,this.css.info)){if(_20||(_1f.className==this.css.title&&_1f.nodeName=="A")){this.setAsCurrent(_1f,_20);this.applyCurrentStyleOnClick(_20);}}
if(this.menu.handler){if(_20){return this.menu.handler.onItemClick(_20.id,this.menu);}else{if(_1f.className==this.css.title){return this.menu.handler.onItemClick(this.id,this.menu);}}}else{if(_1f.nodeName==="A"){return true;}else{if(_20){var _21=_20.getElementsByTagName("A")[0];document.location.href=_21.href;}}}},setAsCurrent:function(_22,_23){this.menu.currentSectionID=this.id;if(this.isOpen()===false&!this.isOpenDisabled()){this.openSection();}
if(_23){this.menu.currentItemID=_23.id;}else{if(_22.className==this.css.title){this.menu.currentItemID=null;}}},applyCurrentStyleOnClick:function(_24){this.applyCurrentStyle(_24);if(_24){var _25=_24.getElementsByTagName("DIV")[0];if(_25){_25.className+=" "+this.css.itemHigh;}}},applyCurrentStyle:function(_26){this.head.className=this.css.head+" "+this.css.headCurrent;this.headDiv1.className=this.css.headBG+" "+this.css.headBGCurrent;this.sectionDiv.className=this.css.menu+" "+this.css.menuCurrent;if(this.items){for(var i=0;i<this.items.length;i++){var itm=this.items[i];this.setItemNormalStyle(itm);}}
if(_26){var _29=_26.getElementsByTagName("DIV")[0];_29.className+=" "+this.css.itemBold;}
for(var j=0;j<this.menu.sections.length;j++){var _2b=this.menu.sections[j];if(this.id!=_2b.id){this.setSectionNormalStyle(_2b);}}},setSectionNormalStyle:function(_2c){_2c.sectionDiv.className=this.css.menu;_2c.head.className=this.css.head;_2c.headDiv1.className=this.css.headBG;if(_2c.items){for(var i=0;i<_2c.items.length;i++){var _2e=_2c.items[i];var _2f=_2c.items[i].getElementsByTagName("A")[0];if(_2f){_2f.className=this.css.itemLink;}
this.setItemNormalStyle(_2e);}
if(_2c.items[0]){_2c.items[0].className+=" "+this.css.itemNoBorder;}}},setItemNormalStyle:function(_30){if(_30){_30.className=this.css.item;var _31=_30.getElementsByTagName("DIV")[0];if(_31){_31.className=this.css.item;}}},isCurrentSection:function(){return this.menu.currentSectionID==this.id?true:false;},close:function(){if(this.isOkayToClose()){var _32=setTimeout(this.closeSection(),this.menu.closeDelay);this.menu.timeouts[this.body.id]=_32;}},isOkayToClose:function(){if(this.isOpen()&&this.menu.currentSectionID!=this.id&&!this.menu.intervals[this.body.id]&&!this.menu.timeouts[this.body.id]){return true;}else{return false;}},closeSection:function(){var _33=this;return function(){var _34=setInterval(_33.closeInterval(),_33.menu.closeTime);_33.menu.intervals[_33.body.id]=_34;};},closeInterval:function(){var _35=this;return function(){if(_35.body.offsetHeight>0){var h=_35.body.offsetHeight-_35.menu.closePixels;_35.body.style.height=h>=0?(h+"px"):(0+"px");}
if(_35.body.offsetHeight<=0){_35.toggleIcon("close");_35.menu.setOpenSectionIds();_35.clearIntervalAndTimeout();}};},clearIntervalAndTimeout:function(){clearInterval(this.menu.intervals[this.body.id]);this.menu.intervals[this.body.id]=null;clearTimeout(this.menu.timeouts[this.body.id]);this.menu.timeouts[this.body.id]=null;},isOpen:function(){if(this.list&&this.body){if(this.list.offsetHeight==this.body.offsetHeight){return true;}else{return false;}}else{return false;}}}).endType();

vjo.itype("vjo.darwin.core.menu.accordian.IAccordianMenu").protos({getCurrentSectionId:function(){},getCurrentItemId:function(){},getOpenSectionIds:function(){}}).endType();

vjo.itype("vjo.darwin.core.menu.accordian.IAccordianOnClickHandler").needs("vjo.darwin.core.menu.accordian.IAccordianMenu").protos({onItemClick:function(id,_2){}});

vjo.ctype("vjo.darwin.core.menu.accordian.AccordianMenu").needs("vjo.dsf.client.Browser").needs("vjo.darwin.core.menu.accordian.AccordianMenuSection").needs("vjo.darwin.core.menu.accordian.Util").needs("vjo.dsf.EventDispatcher").needs("vjo.darwin.core.menu.accordian.IAccordianOnClickHandler").satisfies("vjo.darwin.core.menu.accordian.IAccordianMenu").protos({constructs:function(id,_2){this.id=id;this.menuDiv=document.getElementById(this.id);this.sections=[];this.openTime=1;this.openPixels=15;this.closeTime=this.openTime;this.closePixels=this.openPixels;this.openDelay=300;this.closeDelay=this.openDelay;this.currentSectionID=null;this.currentItemID=null;this.mouseover="mouseover";this.click="click";this.openEvent=this.click;this.util=new vjo.darwin.core.menu.accordian.Util();this.handler=_2;this.openSectionIds=[];this.intervals={};this.timeouts={};var _3=this.menuDiv.childNodes;for(var i=0;i<_3.length;i++){var _5=_3[i];if(_5.nodeName==="DIV"){this.addSection(_5);}}
this.ED=vjo.dsf.EventDispatcher;},addSection:function(_6){var _7=new vjo.darwin.core.menu.accordian.AccordianMenuSection(_6);_7.menu=this;this.sections.push(_7);},closeAll:function(ev){for(var i=0;i<this.sections.length;i++){this.sections[i].close();}},setOpenSections:function(_a){for(var i=0;i<_a.length;i++){var _c=_a[i];for(var j=0;j<this.sections.length;j++){var _e=this.sections[j];if(_c==_e.id){_e.openSection();}}}},setCurrentSection:function(_f,_10){for(var i=0;i<this.sections.length;i++){var _12=this.sections[i];if(_12.id===_f){var _13=null;if(_10!=null){var _14=_12.sectionDiv.getElementsByTagName("LI");for(var x=0;x<_14.length;x++){if(_14[x].id===_10){_13=_14[x];break;}}}
_12.setAsCurrent(_12,_13);_12.applyCurrentStyle(_13);}}},getOpenSectionIds:function(){var ids=new Array();for(var i=0;i<this.sections.length;i++){if(this.sections[i].isOpen()){ids.push(this.sections[i].id);}}
return ids;},setOpenSectionIds:function(){this.openSectionIds=new Array();for(var i=0;i<this.sections.length;i++){if(this.sections[i].isOpen()){this.openSectionIds.push(this.sections[i].id);}}},getCurrentSectionId:function(){return this.currentSectionID;},getCurrentItemId:function(){return this.currentItemID;}}).endType();

vjo.ctype("vjo.darwin.core.accordian1.Util").protos({getDescendentById:function(_1,_2){try{var _3=_1.getElementsByTagName("*");var _4;for(var i=0;i<_3.length;i++){if(_3[i].id==_2){_4=_3[i];break;}}
return _4;}
catch(err){return _1;}},getAncestorByNodeName:function(_6,_7){if(_6&&_6.id!=this.id){var _8=_6.parentNode;if(_8.nodeName==_7){return _8;}else{return(this.getAncestorByNodeName(_8,_7));}}},getAncestorByClassName:function(_9,_a){if(_9&&_9.id!=this.id){var _b=_9.parentNode;if(_b.className==_a){return _b;}else{return(this.getAncestorByClassName(_b,_a));}}},getAncestorById:function(_c,_d){if(_c&&_c.id!=this.id){var _e=_c.parentNode;if(_e.id==_d){return _e;}else{return(this.getAncestorById(_e,_d));}}},getDescendentByClassName:function(_f,_10){if(_f){var _11=_f.getElementsByTagName("*");var _12;for(var i=0;i<_11.length;i++){if(_11[i].className==_10){_12=_11[i];break;}}
return _12;}}}).endType();

vjo.ctype("vjo.darwin.core.accordian1.AccordianSection").needs(["vjo.darwin.core.accordian1.Util","vjo.dsf.EventDispatcher"]).protos({constructs:function(_1,_2){this.ED=vjo.dsf.EventDispatcher;this.util=new vjo.darwin.core.accordian1.Util();this.id=_1.id;this.sectionDiv=_1;this.divs=this.sectionDiv.getElementsByTagName("DIV");this.menu=null;this.openDisabled=false;this.closeDisabled=false;this.highHeaderDisabled=false;this.cssScopeName=_2;this.css=new Object();this.css.menu=_2+"-ms";this.css.head=_2+"-msh";this.css.headHigh=_2+"-msh-hi";this.css.headPointer=_2+"-msh-ptr";this.css.headBG=_2+"-msh-bg";this.css.headBGHigh=_2+"-msh-bg-hi";this.css.toggle=_2+"-ms-tgl";this.css.toggleClosed=_2+"-ms-tgl-c";this.css.toggleOpen=_2+"-ms-tgl-o";this.css.toggleHidden=_2+"-ms-tgl-h";this.css.title=_2+"-ms-ttl";this.css.bodyVisible=_2+"-msb-v";this.css.headOpenBG=_2+"-msh-bg-o-2";this.body;this.toggle;for(var i=0;i<this.divs.length;i++){var _4=this.divs[i];if(_4.id.indexOf("_body")!=-1){this.body=_4;}
if(_4.id.indexOf("_tgl")!=-1){this.toggle=_4;}}
this.head=this.divs[0];this.headDiv1=this.divs[1];this.headDiv2=this.divs[2];this.titleLink=this.util.getDescendentByClassName(this.head,this.css.title);var _5=this.sectionDiv.getElementsByTagName("DIV");for(j=0;j<_5.length;j++){if(_5[j].id.indexOf("_head")!=-1){this.headDiv=_5[j];this.ED.addEventListener(_5[j],"click",this.sectionClick,this);break;}}},sectionMouseOver:function(ev){this.highHeader(ev);},sectionMouseOut:function(ev){this.unhighHeader(ev);},slideOpenSection:function(){var _8=this;return function(){if(_8.content){_8.body.className=_8.css.bodyVisible;_8.body.style.height="0px";_8.headDiv.parentNode.className=_8.css.headOpenBG;if(!_8.menu.intervals[_8.body.id]){var _9=setInterval(_8.openInterval(),_8.menu.openTime);_8.menu.intervals[_8.body.id]=_9;}}};},openSection:function(){if(!this.isOpenDisabled()){if(this.content){this.body.className=this.css.bodyVisible;this.body.style.height=this.content.offsetHeight+"px";}
this.toggleIcon("open");this.menu.setOpenSectionIds();}},openInterval:function(){var _a=this;return function(){if(_a.body.offsetHeight<_a.content.offsetHeight){var _b=_a.body.offsetHeight+_a.menu.openPixels;if(_b>_a.content.offsetHeight){_a.body.style.height=_a.content.offsetHeight+"px";}else{_a.body.style.height=_b+"px";}}
if(_a.isOpen()){_a.toggleIcon("open");_a.menu.setOpenSectionIds();_a.clearIntervalAndTimeout();}};},toggleIcon:function(_c){if(this.toggle&&_c=="open"){this.toggle.className=this.css.toggle+" "+this.css.toggleOpen;}else{if(this.toggle){this.toggle.className=this.css.toggle+" "+this.css.toggleClosed;}}},highHeader:function(ev){if(!this.highHeaderDisabled){var _e=this.ED.target(ev);var _f=this.util.getAncestorByClassName(_e,this.css.head);if(_f){this.head.className=this.css.head+" "+this.css.headHigh;this.headDiv1.className=this.css.headBGHigh;if(this.isOpenControl(ev)){this.head.className+=" "+this.css.headPointer;}}}},unhighHeader:function(ev){this.sectionDiv.className=this.css.menu;this.head.className=this.css.head;this.headDiv1.className=this.css.headBG;},closeSection:function(){var _11=this;return function(){var _12=setInterval(_11.closeInterval(),_11.menu.closeTime);_11.headDiv.parentNode.className=_11.css.headBG;_11.menu.intervals[_11.body.id]=_12;};},closeInterval:function(){var _13=this;return function(){if(_13.body.offsetHeight>0){var h=_13.body.offsetHeight-_13.menu.closePixels;_13.body.style.height=h>=0?(h+"px"):(0+"px");}
if(_13.body.offsetHeight<=0){_13.toggleIcon("close");_13.menu.setOpenSectionIds();_13.clearIntervalAndTimeout();}};},clearIntervalAndTimeout:function(){clearInterval(this.menu.intervals[this.body.id]);this.menu.intervals[this.body.id]=null;clearTimeout(this.menu.timeouts[this.body.id]);this.menu.timeouts[this.body.id]=null;},isOpenControl:function(ev){var _16=this.ED.target(ev);if(_16==this.headDiv1||_16==this.headDiv2||_16==this.toggle){return true;}else{if(_16.className==this.css.title&&_16.nodeName=="SPAN"){return true;}else{return false;}}},isOpen:function(){if(this.content&&this.body){if(this.content.offsetHeight==this.body.offsetHeight){return true;}else{return false;}}else{return false;}},isOpenDisabled:function(){return this.openDisabled;},isCloseDisabled:function(){return this.closeDisabled;},setCloseDisabled:function(_17){this.closeDisabled=_17;}}).endType();

vjo.ctype("vjo.darwin.core.accordian1.Accordian").needs(["vjo.darwin.core.accordian1.AccordianSection","vjo.darwin.core.accordian1.Util","vjo.dsf.EventDispatcher"]).protos({constructs:function(id,_2,_3){this.id=id;this.menuDiv=document.getElementById(this.id);this.cssScopeName=_3;this.sections=[];this.openTime=1;this.openPixels=15;this.closeTime=this.openTime;this.closePixels=this.openPixels;this.mouseover="mouseover";this.click="click";this.openEvent=this.click;this.util=new vjo.darwin.core.accordian1.Util();this.handler=_2;this.openSectionIds=[];this.content;this.intervals={};this.timeouts={};var _4=this.menuDiv.childNodes;for(var i=0;i<_4.length;i++){var _6=_4[i];if(_6.nodeName==="DIV"){this.addSection(_6);}}
this.ED=vjo.dsf.EventDispatcher;},closeAll:function(ev){for(var i=0;i<this.sections.length;i++){this.sections[i].close();}},setOpenSections:function(_9){for(var i=0;i<_9.length;i++){var _b=_9[i];for(var j=0;j<this.sections.length;j++){var _d=this.sections[j];if(_b==_d.id){_d.openSection();}}}},getOpenSectionIds:function(){var _e=new Array();for(var i=0;i<this.sections.length;i++){if(this.sections[i].isOpen()){_e.push(this.sections[i].id);}}
return _e;},setOpenSectionIds:function(){this.openSectionIds=new Array();for(var i=0;i<this.sections.length;i++){if(this.sections[i].isOpen()){this.openSectionIds.push(this.sections[i].id);}}}}).endType();

vjo.ctype("vjo.darwin.core.accordian1.control.AccordianControlSection").needs(["vjo.darwin.core.accordian1.Accordian","vjo.darwin.core.accordian1.Util","vjo.dsf.EventDispatcher"]).inherits("vjo.darwin.core.accordian1.AccordianSection").protos({constructs:function(_1,_2){this.base(_1,_2);this.styleVersion=1;this.element=this.getElement();if(this.element){this.content=this.element;}},sectionMouseOver:function(ev){this.highHeader(ev);},sectionMouseOut:function(ev){this.unhighHeader(ev);},sectionClick:function(ev){if(!this.isOpenDisabled()){if(this.isOpen()===false){var _6=this.slideOpenSection();_6();}else{if(!this.isCloseDisabled()){var _7=this.closeSection();_7();}}}
return this.executeAction(ev);},executeAction:function(ev){var _9=this.ED.target(ev);var _a=this.util.getAncestorByNodeName(_9,"LI");if(!this.util.getAncestorByClassName(_9,this.css.info)){if(_a||(_9.className==this.css.title&&_9.nodeName=="A")){this.setAsCurrent(_9,_a);this.applyCurrentStyleOnClick(_a);}}
if(this.menu.handler){if(_a){return this.menu.handler.onItemClick(_a.id,this.menu);}else{if(_9.className==this.css.title){return this.menu.handler.onItemClick(this.id,this.menu);}}}else{if(_9.nodeName==="A"){return true;}else{if(_a){var _b=_a.getElementsByTagName("A")[0];document.location.href=_b.href;}}}},close:function(){if(this.isOkayToClose()){var _c=setTimeout(this.closeSection(),this.menu.closeDelay);this.menu.timeouts[this.body.id]=_c;}},isOkayToClose:function(){if(this.isOpen()&&!this.menu.intervals[this.body.id]&&!this.menu.timeouts[this.body.id]){return true;}else{return false;}},getElement:function(){var _d=this.body.childNodes;for(var i=0;i<_d.length;i++){if(_d[i].nodeType==1){return _d[i];}}},setStyleVersion:function(_f){this.styleVersion=_f;if(this.styleVersion==2){this.css.menu=this.cssScopeName+"-ms-2";this.css.head=this.cssScopeName+"-msh-2";this.css.headHigh=this.cssScopeName+"-msh-hi-2";this.css.headBG=this.cssScopeName+"-msh-bg-2";this.css.headBGHigh=this.cssScopeName+"-msh-bg-hi-2";this.css.toggle=this.cssScopeName+"-ms-tgl-2";this.css.toggleClosed=this.cssScopeName+"-ms-tgl-c-2";this.css.toggleOpen=this.cssScopeName+"-ms-tgl-o-2";}},setHeaderStyleDisabled:function(_10){if(_10){this.toggle.className+=" "+this.css.toggleHidden;this.highHeaderDisabled=true;}else{this.toggle.className=this.css.toggle;if(this.isOpen()){this.toggle.className+=" "+this.css.toggleOpen;}else{this.toggle.className+=" "+this.css.toggleClosed;}
this.highHeaderDisabled=false;}}}).endType();

vjo.itype("vjo.darwin.core.accordian1.IAccordianOnClickHandler").protos({onItemClick:function(id,_2){}}).endType();

vjo.ctype("vjo.darwin.core.accordian1.control.AccordianControl").needs(["vjo.darwin.core.accordian1.AccordianSection","vjo.darwin.core.accordian1.control.AccordianControlSection","vjo.darwin.core.accordian1.Util","vjo.dsf.EventDispatcher","vjo.darwin.core.accordian1.IAccordianOnClickHandler"]).inherits("vjo.darwin.core.accordian1.Accordian").protos({constructs:function(id,_2,_3){this.base(id,_2,_3);this.closeDisabledIds=[];},closeSections:function(_4,_5,_6){for(i=0;i<_4.length;i++){var _7=document.getElementById(_4[i]+_6);if(_7){_7.className=_5;}}},addSection:function(_8){var _9=new vjo.darwin.core.accordian1.control.AccordianControlSection(_8,this.cssScopeName);_9.menu=this;this.sections.push(_9);},getCloseDisabledSectionIds:function(){return this.closeDisabledIds;},setCloseDisabled:function(_a,_b){for(var j=0;j<this.sections.length;j++){var _d=this.sections[j];if(_a==_d.id){if(_d.isOpen()){_d.setCloseDisabled(_b);if(_d.isOpen()){_d.setHeaderStyleDisabled(_b);}
break;}}}},setSectionStyles:function(_e){for(var i=0;i<this.sections.length;i++){var _10=this.sections[i];for(var j=0;j<_e.length;j++){if(_e[j]==_10.id){var _12=_e[j+1];if(_12=="One"){_10.setStyleVersion(1);}else{if(_12=="Two"){_10.setStyleVersion(2);}}
break;}}}}}).endType();

vjo.ctype("vjo.darwin.component.common.actbutton.ActionButtonImgPreloader").needs("vjo.dsf.utils.Object").needs("vjo.dsf.client.Browser").needs("vjo.dsf.EventDispatcher").singleton().protos({constructs:function(){this.aLoaded=[];this.bPageLoaded=false;var _1=vjo.dsf.utils.Object.hitch(this,"preloadAll");vjo.dsf.EventDispatcher.add("body","load",_1);this.fixIE6ImgCaching();},preload:function(_2){if(!_2||!_2.length){return;}
var i=0;for(;i<_2.length;i++){if(!this.aLoaded[_2[i]]){if(!this.bPageLoaded){this.aLoaded[_2[i]]=true;}else{this.checkAndPreload(_2[i]);this.aLoaded[_2[i]]=true;}}}},preloadAll:function(){this.bPageLoaded=true;for(var _4 in this.aLoaded){this.checkAndPreload(_4);}},checkAndPreload:function(_5){if(typeof(_5)=="string"&&_5.match(/http.+/)){var _6=new Image();_6.src=_5;}},fixIE6ImgCaching:function(){var br=vjo.dsf.client.Browser;if(br.bIE&&br.iVer<7){var _8=function(){try{document.execCommand("BackgroundImageCache",false,true);}
catch(err){}};vjo.dsf.EventDispatcher.add("body","load",_8);}}}).inits(function(){vjo.darwin.component.common.actbutton.ActionButtonImgPreloader=new vjo.darwin.component.common.actbutton.ActionButtonImgPreloader();}).endType();

vjo.ctype("vjo.darwin.component.common.actbutton.ActionButton").needs("vjo.dsf.utils.Object").needs("vjo.dsf.utils.Handlers").needs("vjo.dsf.document.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.document.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.document.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.core.calendar.CalendarUtil").needs("vjo.dsf.Element").props({isValDt:function(_1,_2,_3){var _4,dt,yr;var _5=[31,28,31,30,31,30,31,31,30,31,30,31];var _6=this.splitDtFmt(_1,_3);_2=_2.toUpperCase();if(_6!==0){if(!_6&&isNaN(_6[0])||_6[0].length<1||isNaN(_6[1])||_6[1].length<1||(isNaN(_6[2])||(_6[2]+"").length<4)){return"ERR_FMT";}
if(_2==("MM"+_3+"DD"+_3+"YYYY")){_4=(parseInt(_6[0],10));dt=parseInt(_6[1],10);yr=parseInt(_6[2],10);}else{if(_2==("DD"+_3+"MM"+_3+"YYYY")){dt=parseInt(_6[0],10);_4=(parseInt(_6[1],10));yr=parseInt(_6[2],10);}else{return"ERR_FMT";}}
if(yr%400===0||(yr%100!==0&&yr%4===0)){_5[1]=29;}
if(dt<1||dt>_5[_4-1]){return"ERR_DT";}
if(_4<1||_4>12){return"ERR_MTH";}
if(yr<1||yr>9999){return"ERR_YR";}}
return"1";},trimSpace:function(_7){if(!_7){return _7;}
var _8=/ /g;var _9=_7.replace(_8,"");return(_9);},splitDtFmt:function(_a,_b){var _c,inpVal,E=vjo.dsf.Element,inp=E.get(_a);if(inp){inpVal=this.trimSpace(inp.value);}
if(inpVal&&inpVal.length>0){inpVal=inpVal.toUpperCase();_c=inpVal.split(_b);}else{_c=0;}
return _c;}}).endType();

vjo.ctype("vjo.darwin.core.calendar.Calendar").needs("vjo.dsf.document.Positioning").needs("vjo.dsf.Element").needs("vjo.dsf.EventDispatcher").needs("vjo.dsf.ServiceEngine").needs("vjo.darwin.core.calendar.CalendarUtil").protos({constructs:function(_1){var t=this,c=t.oCfg=_1||{};t.eElem=vjo.dsf.document.Element.get(c.name);t.eElem.style.display="none";t.cmpId=c.cmpId;t.cmpErrId=c.errorId;t.wrapperDiv=c.htmlWrapper;t.sCloseBtnId=c.closeBtnId;t.dCurrent=new Date();t.dToday=new Date();t.dsblWkEnd=c.disableWkEnd;t.dSelectedDate=new Date(t.dToday.valueOf());t.enableStDate=new Date(t.dToday.valueOf());t.enableEndDate=new Date(t.dToday.valueOf());t.tDate=new Date(t.dToday.valueOf());t.fromDate=new Date(t.dToday.valueOf());t.prevButton=c.monthBeforeDisable;t.nextButton=c.monthAfterDisable;t.dateRangeEnabled=c.dateRangeEnabled;t.sOverlayDivId=c.overlayPanelDivId;t.sOverlayJsId=c.overlayJsId;t.sWrapperDivId=c.wrapperDivId;t.sNextDivId=c.nextDivId;t.sPrevDivId=c.prevDivId;t.sOpenServiceId=c.openServiceId;t.sCloseServiceId=c.closeServiceId;t.sTriggerElemId;if(t.dateRangeEnabled&&c.startDate[0]!=""&&c.endDate[0]!=""&&c.startDate[1]!=""&&c.endDate[1]!=""&&c.startDate[2]!=""&&c.endDate[2]!=""){t.enableStDate=new Date(c.startDate[0],c.startDate[1],c.startDate[2]);t.enableEndDate=new Date(c.endDate[0],c.endDate[1],c.endDate[2]);t.tDate=new Date(c.startDate[0],c.startDate[1],c.startDate[2]);t.fromDate=t.enableEndDate;t.dCurrent=new Date(c.startDate[0],c.startDate[1],c.startDate[2]);}
t.firstTime="true";t.firstClick="true";t.dStDay=t.dEndDay="";t.sSelected="";t.eCurrentCell=t.eSelectedCell=null;t.sCalInpFldVal=c.calInpFldVal;t.sCalInpFldId=c.calInpFldId;if(c.calInpFldVal){t.sSelected=c.calInpFldVal;t.dCurrent=new Date(c.calInpFldVal);}
t.dPreDate=t.dCurrent.getDate();t.dPreMonth=t.dCurrent.getMonth();t.dPreYear=t.getYear(t.dCurrent);t.dspErrInline=c.displayErrorInline;t.dtErr=c.dateError;t.mtErr=c.monthError;t.yrErr=c.yearError;t.kncel;t.frmtErr=c.dateFormatError;t.dFmt=c.dateFormat.toUpperCase();t.delm=c.delimeter;t.dtVal=c.dateValidationEnabled;t.sAnchId=c.anchorId;if(t.dtVal){t.regEvtLsnr();}
t.update("true");t.sFromDtId=c.fromDtId;t.sToDtId=c.toDtId;t.dtRngVal=c.dateRangeEnabled;if(t.sFromDtId&&t.sToDtId){t.enableStDate=new Date(1900,0,1);t.enableEndDate=new Date(9999,11,31);t.fromDate=t.enableEndDate;t.tDate=t.enableStDate;t.setDefaultColor(t.sFromDtId,t.dFmt);t.setDefaultColor(t.sToDtId,t.dFmt);}
t.setDefaultColor(c.calInpFldId,t.dFmt);t.updVal="true";},setDefaultColor:function(id,_4){var _e=vjo.dsf.Element,fld=_e.get(id);if(fld&&(fld.value).toUpperCase()===_4){fld.style.color="#999";}},regEvtLsnr:function(){var ED=vjo.dsf.EventDispatcher,t=this,U=vjo.darwin.core.calendar.CalendarUtil,msg,ins;var S=vjo.dsf.ServiceEngine;var _8=function(){var _9=U.isValDt(t.sCalInpFldId,t.dFmt,t.delm);ins=vjo.Registry.get(this.cmpId);if(_9!="1"){msg=new vjo.dsf.Message("SVC_DISP_ERROR");msg.cmpIns=ins;msg.res=_9;}else{msg=new vjo.dsf.Message("SVC_CLR_ERROR");msg.cmpIns=ins;}
S.handleRequest(msg);};ED.addEventListener(t.sCalInpFldId,"blur",_8,t);},delayonblur:function(_a){var t=this;this.kncell=setTimeout(function(){t.disappear();},200);},open:function(_c,_d){var d=(_d)?new Date(_d):new Date();this.dSelectedDate=(isNaN(d))?new Date():d;this.dCurrent=this.dSelectedDate;this.sSelected=_d||"";this.update("true");this.updVal="true";var e=this.eElem,es=e.style;P=vjo.dsf.document.Positioning;if(_c&&_c.id){es.top=P.getOffsetTop(_c)+"px";es.left=P.getOffsetLeft(_c)+"px";}
es.display="block";},close:function(){this.disappear();if(vjo.dsf.ServiceEngine){var msg=new vjo.dsf.Message("CALENDAR_DATE_SELECTED_SERVICE");msg.clientContext={value:this.sSelected,triggerId:this.sTriggerElemId};vjo.dsf.ServiceEngine.handleRequest(msg);}
return false;},appear:function(_11){var E=vjo.dsf.Element,U=vjo.darwin.core.calendar.CalendarUtil;var _13,inp=E.get(this.sCalInpFldId);if(inp&&inp.value){_13=U.trimSpace((inp.value).toUpperCase());if(this.dFmt&&this.dFmt==_13){E.get(this.sCalInpFldId).value="";E.get(this.sCalInpFldId).className="";if(this.sFromDtId&&this.sCalInpFldId===this.sFromDtId){E.get(this.sFromDtId).style.color="";}
if(this.sToDtId&&this.sCalInpFldId===this.sToDtId){E.get(this.sToDtId).style.color="";}}}
var _14;if(this.sAnchId){_14=this.sAnchId;}else{_14=_11.src.id;}
return this.appearCal(_14);},appearCal:function(_15){var _16=new vjo.dsf.Message(this.sOpenServiceId);_16.sAnchorId=_15;this.sTriggerElemId=_15;this.eElem.style.display="block";var _17=vjo.Registry.get(this.sOverlayJsId);if(_17){_17.oOlp=vjo.dsf.Element.get(_17.sOverlayDivId);_17.inpId=this.sCalInpFldId;_17.fSetNotchLocation=this.setNotchLocation;this.update("true");this.updVal="true";_17.onOpenOverlayPanel();_17.panelMouseOver();}
if(this.sCalInpFldVal){var d=(this.sCalInpFldVal)?new Date(this.sCalInpFldVal):new Date();this.dSelectedDate=(isNaN(d))?new Date():d;this.dCurrent=this.dSelectedDate;this.update("true");this.updVal="true";}
this.bOpened=true;this.eElem.style.visibility="visible";return false;},disappear:function(_19){this.bOpened=false;var _1a=vjo.dsf.document.Element.get(this.sOverlayDivId);if(_1a.style.visibility=="visible"){if(!this.bForgive){var _1b=vjo.Registry.get(this.sOverlayJsId);if(_1b){_1b.onClosePanel(false);}
this.eElem.style.display="none";this.eElem.style.visibility="hidden";}else{this.bForgive=false;}}},stopProp:function(){clearTimeout(this.kncell);return false;},mouseOver:function(){var _1c=vjo.Registry.get(this.sOverlayJsId);if(_1c){_1c.panelMouseOver();}},mouseOut:function(){var _1d=vjo.Registry.get(this.sOverlayJsId);if(_1d){_1d.panelMouseOut();}},addevt:function(_1e,_1f,fn,_21){var obj;if(typeof _1e=="string"){obj=vjo.dsf.document.Element.get(_1e);}
if(obj!=null){vjo.dsf.EventDispatcher.addEventListener(_1e,"click",function(_23){return this.disappear(_23);},this);}},update:function(_24){var U=vjo.darwin.core.calendar.CalendarUtil,t=this,inp=vjo.dsf.Element.get(t.sCalInpFldId);if(inp&&inp.value){var _26=U.trimSpace(inp.value);if(_24=="true"){if(t.dFmt!=_26&&_26.length>0){var dat=_26.split(t.delm);var res=U.isValDt(t.sCalInpFldId,t.dFmt,t.delm);if(res=="1"){if(t.dFmt=="MM"+t.delm+"DD"+t.delm+"YYYY"){t.dCurrent=new Date(parseInt(dat[2],10),(parseInt(dat[0],10)-1),parseInt(dat[1],10));}else{if(t.dFmt=="DD"+t.delm+"MM"+t.delm+"YYYY"){t.dCurrent=new Date(parseInt(dat[2],10),(parseInt(dat[1],10)-1),parseInt(dat[0],10));}}
t.dToday=t.dCurrent;t.firstClick="false";t.sSelected=_26;}else{t.dCurrent=new Date();t.dToday=new Date();t.firstClick="true";t.sSelected="";}}else{if(t.dFmt==_26||_26.length==0){t.dCurrent=new Date();t.dToday=new Date();t.firstClick="true";t.sSelected="";}}}}
t.setupDates();if(!t.eElem){return;}
if(t.firstTime=="true"){t.eElem.innerHTML=this.getHtml();t.firstTime="false";var s=this.sCloseBtnId;t.addevt(s,"click","onClosePanel",false);}else{var s=vjo.dsf.document.Element.get(this.sWrapperDivId);vjo.dsf.document.Element.get(this.sWrapperDivId).parentNode.innerHTML=this.getHtml();var s=this.sCloseBtnId;t.addevt(s,"click","onClosePanel",false);}
var E=vjo.dsf.document.Element,W=vjo.dsf.window.utils.VjWindowUtils;t.oShdw=E.get(t.sOverlayDivId+"olpshadow");t.oCntnt=E.get(t.sOverlayDivId+"olpcontent");t.oShdw.style.height=W.toPixels(t.oCntnt.offsetHeight);var _2b=t.dCurrent.getMonth();var _2c=t.getYear(this.dCurrent);var _2d=t.tDate.getMonth();var _2e=t.getYear(this.tDate);if(t.prevButton&&(_2d==_2b&&_2e==_2c)){var e=vjo.dsf.document.Element.get(this.sPrevDivId);e.className=e.className.replace("ebLeftButton","ebLeftButtonOff");var _30=vjo.dsf.document.Element.get("pr"+this.cmpId);if(_30){if(e.className=="ebLeftButtonOff"){_30.alt="";_30.title="";}}}
_2d=this.fromDate.getMonth();_2e=this.getYear(this.fromDate);if(t.nextButton&&(_2d==_2b&&_2e==_2c)){var e=vjo.dsf.document.Element.get(this.sNextDivId);e.className=e.className.replace("ebRightButton","ebRightButtonOff");}},previous:function(){this.stopProp();var _31=this.tDate.getMonth();var _32=this.dCurrent.getMonth();var _33=this.getYear(this.tDate);var _34=this.getYear(this.dCurrent);if(!(this.prevButton&&(_31==_32&&_33==_34))){this.updVal="false";this.updateMonth(-1);this.update("false");}},next:function(){this.stopProp();var _35=this.fromDate.getMonth();var _36=this.dCurrent.getMonth();var _37=this.getYear(this.fromDate);var _38=this.getYear(this.dCurrent);if(!(this.nextButton&&(_35==_36&&_37==_38))){this.updVal="false";this.updateMonth(1);this.update("false");}},updateMonth:function(_39){var i=_39||0;with(this.dCurrent){var m=getMonth()+i;setDate(1);setMonth(m);}
this.setupDates();},setupDates:function(){this.dStDay=new Date(this.dCurrent.valueOf());this.dStDay.setDate(1);this.dStDay=this.dStDay.getDay()-1;var _3c=this.dCurrent.getMonth(),lDay;this.dEndDay=new Date(this.dCurrent.valueOf());with(this.dEndDay){while(getMonth()==_3c){lDay=getDate();setDate(lDay+1);}}
this.dEndDay=lDay+1;},getHtml:function(){var c=this.oCfg;if(!c.html){return"";}
var _3e=c.monthBeforeDisable;var ins=vjo.Registry.get(this.cmpId),msg;if(this.dtRngVal){if(ins){msg=new vjo.dsf.Message("SVC_SET_DATE_RANGE");msg.cmpIns=ins;vjo.dsf.ServiceEngine.handleRequest(msg);this.setupDates();}}
var _40=this.getYear(this.dCurrent);var s="";if(this.firstTime=="true"){var s=c.html;}else{var s=c.htmlWrapper;}
tks=c.calendarToken,tts=c.titleToken;for(var i=0;i<tks.length;i++){var t=this.getDaysTrHtml(),idx=this.dCurrent.getMonth();s=s.replace(tks[i],t).replace(tts[i],c.months[idx]+" "+_40);this.updateMonth(1);}
this.updateMonth(tks.length*-1);return s;},appendZero:function(_44){var U=vjo.darwin.core.calendar.CalendarUtil;if(_44&&(U.trimSpace(_44)).length<2){_44="0"+_44;}
return _44;},getDaysTrHtml:function(){var inp=vjo.dsf.Element.get(this.sCalInpFldId);if(inp){var _47=inp.value;if(_47){var dat=_47.split(this.delm);dat[0]=this.appendZero(dat[0]);dat[1]=this.appendZero(dat[1]);_47=dat[0]+this.delm+dat[1]+this.delm+dat[2];}}
var c=this.oCfg,s="",tDay,dstr="",thisMonth=this.dCurrent.getMonth()+1,thisYear=this.getYear(this.dCurrent),ins=this.getInstanceStr(),astr="<a href=\"#\" onmouseover=\""+ins+".mouseOverCell(this);\" onmouseout=\""+ins+".mouseOutCell(this);\" onmousedown=\""+ins+".mouseDownCell(this);\" onmouseup=\""+ins+".mouseUpCell(this);\" onclick=\""+ins+".select(<#2#>);return false;\"><#1#></a>",tDate=[this.dToday.getMonth()+1,this.dToday.getDate(),this.getYear(this.dToday)];var _4a=c.dateBeforeEnable;var _4b=new Array();for(var i=0;i<6;i++){var tds="";for(var j=0;j<7;j++){var _4f=false;tDay=i*7+j-this.dStDay;var m=thisMonth+"";var tDt=tDay+"";tDt=this.appendZero(tDt);m=this.appendZero(m);var ctd="",etd="";var _53=this.buildDateStrWithFormat(m,tDt,thisYear);var _54=new Date(thisYear,m-1,tDt);if((tDay>0)&&(tDay<this.dEndDay)){if(this.dsblWkEnd&&(_54.getDay()==0||_54.getDay()==6)){tds+=c.dayTdDisabledHtml.replace(c.dayToken,tDay);}else{if(tDate[2]>thisYear||(tDate[2]==thisYear&&tDate[0]>thisMonth)||(tDate[2]==thisYear&&tDate[0]==thisMonth&&tDate[1]>tDay)){if(_4a){if(this.dateRangeEnabled){if((_54>=this.enableStDate)&&(_54<=this.enableEndDate)){ctd=c.dayTdHtml.replace(c.dayToken,astr.replace("<#1#>",tDay)).replace("<#2#>","'"+_53+"'");if(_4f==false){if(this.sSelected==_53||(_47==_53)){ctd=ctd.replace(c.tdClassToken,"ebCalDatesToday");}else{ctd=ctd.replace(c.tdClassToken,"ebCalDatesEnabled");}}
tds+=ctd;}else{tds+=c.dayTdDisabledHtml.replace(c.dayToken,tDay);}}else{ctd=c.dayTdHtml.replace(c.dayToken,astr.replace("<#1#>",tDay)).replace("<#2#>","'"+_53+"'");if(_4f==false){if(this.sSelected==_53||(_47==_53)){ctd=ctd.replace(c.tdClassToken,"ebCalDatesToday");}else{ctd=ctd.replace(c.tdClassToken,"ebCalDatesEnabled");}}
tds+=ctd;}}else{tds+=c.dayTdDisabledHtml.replace(c.dayToken,tDay);}}else{if(this.dateRangeEnabled){if(((_54>=this.enableStDate)&&(_54<=this.enableEndDate))){ctd=c.dayTdHtml.replace(c.dayToken,astr.replace("<#1#>",tDay)).replace("<#2#>","'"+_53+"'");}else{ctd+=c.dayTdHtml.replace(c.dayToken,tDay);_4f=true;}}else{ctd=c.dayTdHtml.replace(c.dayToken,astr.replace("<#1#>",tDay)).replace("<#2#>","'"+_53+"'");}
_4b[0]=this.appendZero(tDate[0]+"");_4b[1]=this.appendZero(tDate[1]+"");var _55=this.buildDateStrWithFormat(_4b[0],_4b[1],tDate[2]);if(_4f==false){if(this.sSelected==_53||_47==_53||(this.sSelected.toLowerCase()==this.dFmt.toLowerCase()&&this.firstClick=="true"&&_55==_53)){ctd=ctd.replace(c.tdClassToken,"ebCalDatesToday");}else{ctd=ctd.replace(c.tdClassToken,"ebCalDatesEnabled");}}else{if((tDate[2]==thisYear&&tDate[0]==thisMonth&&tDate[1]==tDay)){ctd=ctd.replace(c.tdClassToken,"ebCalDatesDisable");}else{ctd=ctd.replace(c.tdClassToken,"ebCalDatesDisable");}}
tds+=ctd;}}}else{ctd=c.dayTdHtml.replace(c.dayToken,"&nbsp;");ctd=ctd.replace(c.tdClassToken,".ebCalDatesEmpty");tds+=ctd;}}
s+=c.daysTrHtml.replace(c.daysTrToken,tds);tds="";}
return s;},buildDateStrWithFormat:function(m,_57,_58){var c=this.oCfg,s="";s=(c.dateFormat).toUpperCase();return s.replace("MM",m).replace("DD",_57).replace("YYYY",_58);},select:function(_5a){if(this.dtVal){var msg=new vjo.dsf.Message("SVC_CLR_ERROR");var ins=vjo.Registry.get(this.cmpId);msg.cmpIns=ins;vjo.dsf.ServiceEngine.handleRequest(msg);}
this.sSelected=_5a||"";this.sCalInpFldVal=_5a||"";this.close();if(this.dtVal&&this.sFromDtId&&this.sToDtId){var msg=new vjo.dsf.Message("CALENDAR_DATE_RANGE_ERROR");vjo.dsf.ServiceEngine.handleRequest(msg);}
return false;},getInstanceStr:function(){return"vjo.Registry.get('"+this.cmpId+"')";},mouseOverCell:function(_5d){if(_5d&&_5d.parentNode){_5d.parentNode.className+=" ebCalMouseOver";}},mouseOutCell:function(_5e){if(_5e&&_5e.parentNode){var e=_5e.parentNode;e.className=e.className.replace("ebCalMouseOver","");e.className=e.className.replace("ebCalMouseClick","");}},mouseDownCell:function(_60){if(_60&&_60.parentNode){var e=_60.parentNode;e.className=e.className.replace("ebCalMouseOver","ebCalMouseClick");}},mouseUpCell:function(_62){if(_62&&_62.parentNode){var e=_62.parentNode;e.className=e.className.replace("ebCalMouseClick","");}},getYear:function(_64){if(_64){var _65=_64.getYear();if(_65<1900){_65+=1900;}
return _65;}},openEventHandler:function(_66){if(this.sCalInpFldVal){this.open(_66.src,this.sCalInpFldVal);}else{this.open(_66.src,"");}
return false;},openServiceHandler:function(_67){var ctx=_67.clientContext;this.open(ctx.anchor,ctx.value);},closeServiceHandler:function(_69){this.close();},setNotchLocation:function(_6a,_6b,_6c,_6d){var _6e=vjo.dsf.window.utils.VjWindowUtils,P=vjo.dsf.document.Positioning;var _6f=_6c.offsetWidth,height=_6c.offsetHeight,screenWidth=_6e.getBrowserWindowWidth(),screenHeight=_6e.getBrowserWindowHeight(),aScollLocation=_6e.getScrollXY(),px="px";var _70=_6d.x-aScollLocation[0],yLoc=_6d.y-aScollLocation[1];var _71=vjo.dsf.document.Element.get(_6b.sAnchorName);if(_6b.inpId!=null&&_6b.inpId.indexOf(_6b.sAnchorName)!=-1){_6b.inpId=_6b.inpId.substring(0,_6b.inpId.indexOf(_6b.sAnchorName));}
var _72=vjo.dsf.document.Element.get(_6b.inpId);var _73=20,anchorWidth=0,shadowWidth=9,x,y;if(_71){_73=_71.offsetHeight;anchorWidth=_71.offsetWidth;}
if(_72){_73=_72.offsetHeight;anchorWidth=_72.offsetWidth;}
var x=P.getOffsetLeft(_71)+anchorWidth+2,y=_6d.y;if(_72){x=P.getOffsetLeft(_72),y=_6d.y+4;}
if(((screenWidth-_70)>0&&(screenWidth-_70)<(_6f+shadowWidth))||_6f>screenWidth){x=P.getOffsetLeft(_71)+anchorWidth-_6f;if(_72){x=P.getOffsetLeft(_72)-_71.offsetWidth-shadowWidth;}}else{if(_70>=(_6f+shadowWidth)){x=P.getOffsetLeft(_71)+anchorWidth+2;if(_72){x=P.getOffsetLeft(_72);}}}
if((screenHeight-yLoc)>0&&((screenHeight-yLoc)>=(height+shadowWidth))||height>screenHeight){y=_6d.y+4;if(_72){y=P.getOffsetTop(_72)+_72.offsetHeight+1;}}else{if(yLoc>=(height+shadowWidth)){y=_6d.y-(height+_73+shadowWidth);if(_72){y=P.getOffsetTop(_72)-(height)-(shadowWidth);}}}
_6c.style.left=x+px;_6c.style.top=y+px;return[x,y,_6d.w,_6d.h];}}).endType();

vjo.ctype("vjo.darwin.core.datefilter.VjDateFilterAnchorEventHandler").needs("vjo.dsf.Message").needs("vjo.dsf.document.Element").protos({constructs:function(_1){this.sTextId=_1;},click:function(_2){vjo.darwin.core.datefilter.VjDateFilterCalendarSvcHandler.inputId=this.sTextId;}}).endType();

vjo.ctype("vjo.darwin.core.datefilter.VjDateFilterCalendarSvcHandler").needs("vjo.dsf.Message").needs("vjo.dsf.document.Element").props({showSelected:function(_1,_2,_3){var _4=_1.clientContext;if(!_4){return;}
if(_3==_4.triggerId||_2==_4.triggerId){if(_4.value){var _5=vjo.dsf.document.Element.get(_2);if(_5){_5.value=_4.value;_5.style.color="#000";}}}},invoke:function(_6){if(!_6.clientContext){return;}
this.showSelected(_6,this.inputId,_6.clientContext.triggerId);}}).endType();

vjo.ctype("vjo.darwin.core.datefilter.DateFilter").needs("vjo.darwin.core.calendar.CalendarUtil").needs("vjo.dsf.Element").props({checkRange:function(_1,_2,_3,_4,_5,_6){var E=vjo.dsf.Element,U=vjo.darwin.core.calendar.CalendarUtil,start,end,delm="/";var _8=E.get(_1),txtED=E.get(_2);var _9=U.isValDt(_1,_6,delm);var _a=U.isValDt(_2,_6,delm);_6=_6.toUpperCase();if(_9==="1"&&_a==="1"){_9=U.splitDtFmt(_1,delm);_a=U.splitDtFmt(_2,delm);if(_6==("MM"+delm+"DD"+delm+"YYYY")){start=new Date(parseInt(_9[2],10),(parseInt(_9[0],10)-1),parseInt(_9[1],10));end=new Date(parseInt(_a[2],10),(parseInt(_a[0],10)-1),parseInt(_a[1],10));}else{if(_6==("DD"+delm+"MM"+delm+"YYYY")){start=new Date(parseInt(_9[2],10),(parseInt(_9[1],10)-1),parseInt(_9[0],10));end=new Date(parseInt(_a[2],10),(parseInt(_a[1],10)-1),parseInt(_a[0],10));}}
if(start&&end){var _b=E.get(_3);if(start>end){txtED.value=_8.value;if(!_4){alert(_5);}else{_b.style.display="block";txtED.parentNode.className="ebfldWithErr";txtED.setAttribute("dferror",true);}}else{txtED.parentNode.className="";_b.style.display="none";}}}}}).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();

// en_US/e639/StaticPages_Tickets_e63910208383_6_en_US
// b=10208383