String.prototype.has=function(pStr){
return (this.indexOf(pStr)!=-1);
};
String.prototype.hasArg=function(pArg){
var a=pArg,rv=false;
if(typeof (a)=="string"){
rv=this.has(a);
}else{
var aL=a.length;
for(var j=0;j<aL&&!rv;j++){
rv=this.has(a[j]);
}
}
return rv;
};
String.prototype.hasAny=function(){
var a=arguments,l=a.length,rv=false;
for(var i=0;i<l&&!rv;i++){
rv=this.hasArg(a[i]);
}
return rv;
};
String.prototype.hasAll=function(){
var a=arguments,l=a.length;
for(var i=0;i<l;i++){
if(!this.hasArg(a[i])){
return false;
}
}
return true;
};
String.prototype.is=function(s){
return (this==s);
};
String.prototype.isAny=function(){
var a=arguments,l=a.length,rv=false,aL;
for(var i=0;i<l&&!rv;i++){
if(typeof (a[i])=="string"){
rv=(this==a[i]);
}else{
aL=a[i].length;
for(var j=0;j<aL&&!rv;j++){
rv=(this==a[i][j]);
}
}
}
return rv;
};
String.prototype.hex2Dec=function(){
return parseInt(this,16);
};
Number.prototype.dec2Hex=function(){
return parseInt(this,10).toString(16);
};
VjDateUtils={};
VjDateUtils.getTimeZoneDate=function(_5ef,date){
_5ef=_5ef?_5ef:0;
d=date?date:new Date();
var _5f1=d.getTime();
var _5f2=d.getTimezoneOffset()*60000;
var utc=_5f1+_5f2;
return new Date(utc+(3600000*_5ef));
};
VjCookieJar={aCookies:{}};
VjCookieJar.Default_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/"};
VjCookieJar.DP_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","bUseExp":true};
VjCookieJar.Session_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"=","escapedValue":true,"startDelim":true};
VjCookieJar.DS_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/"};
VjCookieJar.sCookieDomain=".ebay.com";
VjCookieJar.sPath="/";
VjCookieJar.aConversionMap={"reg":["dp1","reg"],"recent_vi":["ebay","lvmn"],"ebaysignin":["ebay","sin"],"p":["dp1","p"],"etfc":["dp1","etfc"],"keepmesignin":["dp1","kms"],"ItemList":["ebay","wl"],"BackToList":["s","BIBO_BACK_TO_LIST"]};
VjCookieJar.aFormatMap={"r":VjCookieJar.Default_Cookie_Format,"dp1":VjCookieJar.DP_Cookie_Format,"npii":VjCookieJar.DP_Cookie_Format,"ebay":VjCookieJar.Session_Cookie_Format,"reg":VjCookieJar.Session_Cookie_Format,"apcCookies":VjCookieJar.Session_Cookie_Format,"ds2":VjCookieJar.DS_Cookie_Format};
VjCookieJar.aSpecialMap={"reg":""};
VjCookieJar.sCOMPAT="10";
VjCookieJar.sCONVER="01";
VjCookieJar.sSTRICT="00";
VjCookieJar.sModesCookie="ebay";
VjCookieJar.sModesCookielet="cv";
VjCookieJar.readCookie=function(_5f4,_5f5){
var rv=this.readCookieObj(_5f4,_5f5).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_5f7,_5f8){
var _5f9={};
_5f9.name=_5f7;
_5f9.cookieletname=_5f8;
_5f9.value="";
_5f9.maxage=0;
_5f9.rawcookievalue="";
_5f9.mode="";
return _5f9;
};
VjCookieJar.readCookieObj=function(_5fa,_5fb){
var _5fc=this.createDefaultCookieBean(_5fa,_5fb);
this.update();
this.checkConversionMap(_5fc);
_5fc.rawcookievalue=this.aCookies[_5fc.name];
if(!_5fc.name||!_5fc.rawcookievalue){
_5fc.value="";
}else{
if(!_5fc.cookieletname){
this.readCookieInternal(_5fc);
}else{
this.readCookieletInternal(_5fc);
}
}
return (typeof (_5fc)!="undefined")?_5fc:"";
};
VjCookieJar.checkConversionMap=function(_5fd){
var cmap=this.aConversionMap[_5fd.name];
if(cmap){
_5fd.mode=this.getMode(_5fd.name);
_5fd.name=cmap[0];
_5fd.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_5ff){
_5ff.value=_5ff.rawcookievalue;
return _5ff;
};
VjCookieJar.readCookieletInternal=function(_600){
var clet=this.getCookielet(_600.name,_600.cookieletname,_600.rawcookievalue);
var _602=this.aFormatMap[_600.name];
if(clet&&_602&&_602.bUseExp&&!(_600.cookieletname in this.aSpecialMap)){
var d=clet.substring(clet.length-8);
d=parseInt(d.hex2Dec(),10)*1000;
var _604=VjDateUtils.getTimeZoneDate(0);
if(d>=_604.getTime()){
clet=clet.substring(0,clet.length-8);
}else{
clet="";
}
}
_600.value=clet;
if(_600.mode==this.sCOMPAT){
_600.value=_600.rawcookievalue;
}
return _600;
};
VjCookieJar.readMultiLineCookie=function(_605,_606){
if(!_605||!_606){
return "";
}
var val;
var cmap=this.aConversionMap[_605];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
var r="";
if(val){
r=this.getCookielet(_605,_606,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_60a,_60b,_60c){
var cmap=this.aConversionMap[_60a];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],_60b,_60c);
return;
}
if(_60a&&(_60b!==undefined)){
if((isNaN(_60b)&&_60b.length<4000)||(_60b+"").length<4000){
document.cookie=_60a+"="+(_60b||"")+((_60c)?"; expires="+_60c:"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
};
VjCookieJar.writeCookieEx=function(_60e,_60f,_610){
this.writeCookie(_60e,_60f,this.getExpDate(_610));
};
VjCookieJar.writeCookielet=function(_611,_612,_613,_614,_615){
if(_611&&_612){
this.update();
var mode=this.getMode(_611);
var _617=this.aFormatMap[_611];
if(_617&&_617.bUseExp&&!(_612 in this.aSpecialMap)){
var _618=_614?new Date(_614):new Date(this.getExpDate(730));
var _619=Date.UTC(_618.getUTCFullYear(),_618.getUTCMonth(),_618.getUTCDate());
_619=Math.floor(_619/1000);
_613+=_619.dec2Hex();
}
var val=this.createCookieValue(_611,_612,_613,mode);
this.writeCookie(_611,val,_615);
}
};
VjCookieJar.writeMultiLineCookie=function(_61b,_61c,_61d,_61e,_61f){
this.update();
var val=this.createCookieValue(_61b,_61c,_61d);
if(val){
var cmap=this.aConversionMap[_61b];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,_61e,_61f);
}
}
};
VjCookieJar.getBitFlag=function(_622,_623){
_622=parseInt(_622,10);
var b=_622.toString(2),r=_622?b.charAt(b.length-_623-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(_625,_626,_627){
var b="",p,i,e,l;
_625=parseInt(_625,10);
if(_625){
b=_625.toString(2);
}
l=b.length;
if(l<_626){
e=_626-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_626-1;
return parseInt(b.substring(0,p)+_627+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_629,_62a,_62b,_62c){
var cmap=this.aConversionMap[_629];
var _62e=this.aFormatMap[_629];
var val;
if(cmap&&(_62c==this.sSTRICT||_62c==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_629]||"";
}
if(_62e){
var clts=this.getCookieletArray(val,_62e);
clts[_62a]=_62b;
var str="";
for(var i in clts){
str+=i+_62e.NAME_VALUE_DELIMITER+clts[i]+_62e.COOKIELET_DELIMITER;
}
if(str){
if(!cmap&&_62e.startDelim){
str=_62e.COOKIELET_DELIMITER+str;
}
val=str;
}
if(_62e.escapedValue){
val=escape(val);
}
}
return val;
};
VjCookieJar.update=function(){
var aC=document.cookie.split("; ");
this.aCookies={};
for(var i=0;i<aC.length;i++){
var sC=aC[i].split("=");
var _636=this.aFormatMap[sC[0]];
this.aCookies[sC[0]]=sC[1];
}
};
VjCookieJar.getCookielet=function(_637,_638,_639){
var _63a=this.aFormatMap[_637];
var clts=this.getCookieletArray(_639,_63a);
return clts[_638]||"";
};
VjCookieJar.getCookieletArray=function(_63c,_63d){
var rv=[],val=_63c||"";
if(_63d.escapedValue){
val=unescape(val);
}
var a=val.split(_63d.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_63d.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_642){
var _643;
if(typeof _642=="number"&&_642>=0){
var d=new Date();
d.setTime(d.getTime()+(_642*24*60*60*1000));
_643=d.toGMTString();
}
return _643;
};
VjCookieJar.getMode=function(_645){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_645 in this.aConversionMap)){
return null;
}
if(!h){
return "";
}
if(h===0){
return this.sSTRICT;
}
if(h&&h!="0"){
if(h.has(".")){
var a=h.split(".");
for(i=0;i<a.length;i++){
b=a[i].hex2Dec().toString(2)+b;
}
}else{
b=h.hex2Dec().toString(2);
}
i=0;
var l=b.length,j;
for(o in this.aConversionMap){
j=l-(2*(i+1));
f=b.substring(j,j+2).toString(10);
f=(!f)?this.sSTRICT:f;
if(_645==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
function getElementById(pId){
var elem=null;
var doc=window.document;
if(doc.getElementById){
elem=doc.getElementById(pId);
}else{
if(doc.all){
elem=doc.all(pId);
}
}
return elem;
}
String.prototype.replaceToken=function(pStr,_64d,_64e){
var rv=pStr;
while(rv.has(_64d)){
rv=rv.replace(_64d,_64e);
}
return rv;
};
String.prototype.replaceTokens=function(){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=0;i<l;i++){
rv=this.replaceToken(rv,"<#"+(i+1)+"#>",a[i]);
}
return rv;
};
String.prototype.replaceTokensEx=function(_652){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_652.replace("n",(i)),a[i]);
}
return rv;
};
String.prototype.has=function(pStr){
return (this.indexOf(pStr)!=-1);
};
String.prototype.hasArg=function(pArg){
var a=pArg,rv=false;
if(typeof (a)=="string"){
rv=this.has(a);
}else{
var aL=a.length;
for(var j=0;j<aL&&!rv;j++){
rv=this.has(a[j]);
}
}
return rv;
};
String.prototype.hasAny=function(){
var a=arguments,l=a.length,rv=false;
for(var i=0;i<l&&!rv;i++){
rv=this.hasArg(a[i]);
}
return rv;
};
String.prototype.hasAll=function(){
var a=arguments,l=a.length;
for(var i=0;i<l;i++){
if(!this.hasArg(a[i])){
return false;
}
}
return true;
};
String.prototype.is=function(s){
return (this==s);
};
String.prototype.isAny=function(){
var a=arguments,l=a.length,rv=false,aL;
for(var i=0;i<l&&!rv;i++){
if(typeof (a[i])=="string"){
rv=(this==a[i]);
}else{
aL=a[i].length;
for(var j=0;j<aL&&!rv;j++){
rv=(this==a[i][j]);
}
}
}
return rv;
};
function toggleVisibility(_662,show){
var elem=getElementById(_662);
if(elem===null){
return;
}
var vis=elem.style.visibility;
if(show===undefined){
elem.style.visibility=(vis==="")?"hidden":"";
}else{
elem.style.visibility=(show)?"":"hidden";
}
}
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_667,_668){
var fcn;
if(VjUtils.isString(_668)){
fcn=_667[_668];
}else{
fcn=_668;
}
return function(){
return fcn.apply(_667,arguments);
};
};
VjUtils.extend=function(_66a,_66b){
function inheritance(){
}
inheritance.prototype=_66b.prototype;
_66a.prototype=new inheritance();
_66a.prototype.constructor=_66a;
_66a.baseConstructor=_66b;
_66a.superClass=_66b.prototype;
};
VjWindowUtils={};
VjWindowUtils.getBrowserWindowHeight=function(){
var s=self;
var d=document;
var de=d.documentElement;
if(s.innerHeight){
return s.innerHeight;
}else{
if(de&&de.clientHeight){
return de.clientHeight;
}
}
return d.body.clientHeight;
};
VjWindowUtils.getBrowserWindowWidth=function(){
var s=self;
var d=document;
var de=d.documentElement;
if(s.innerWidth){
return s.innerWidth;
}else{
if(de&&de.clientWidth){
return de.clientWidth;
}
}
return d.body.clientWidth;
};
VjWindowUtils.getScrollXY=function(){
var _672=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_672=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_672=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_672=document.documentElement.scrollLeft;
}
}
}
return [_672,scrOfY];
};
function DynamicMenu(_673,_674,_675,_676,_677,_678,_679,_67a,_67b,_67c,_67d,_67e,_67f,_680,_681,_682,_683,_684){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_67d;
this.iTopPadding=_67e;
this.iRightPadding=_67f;
this.sAnchorId=_673;
this.sContainerLayerId=_674;
this.sContentLayerId=_675;
this.iMouseOutDelay=_676;
this.iMouseOverDelay=_677;
this.iHighResDocWidth=_678;
this.iLowResDocWidth=_679;
this.iHighResColumns=_67a;
this.iMediumResColumns=_67b;
this.iLowResColumns=_67c;
this.sHandler=_680;
this.sCollName=_681;
this.sWidth=_682;
this.sAnchorMouseOverClass=_683;
this.sAnchorMouseOutClass=_684;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=getElementById(_673);
this.sTemplate=null;
}
DynamicMenu.prototype.showDynamicMenu=function(){
var oL,oA,iL,iT,iWW,noc,iAL,iAW,iLW,op,oSI,bF=false,t;
with(this){
clearMouseOutTimer();
if(sTemplate==null){
t=getElementById(sContentLayerId);
if(t){
sTemplate=t.innerHTML;
}
}
oL=getElementById(sContainerLayerId);
op=oL.offsetParent;
oA=oAnchor;
iAL=DynamicMenuGetOffsetLeft(oA);
iAW=oA.offsetWidth;
iT=getOffsetTop(oA)+(oA.offsetHeight)+iTopPadding;
iWW=VjWindowUtils.getBrowserWindowWidth();
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;
sHTML=getMenuHtml(noc);
if(sHTML==null){
return;
}
oL.innerHTML=sHTML;
}
iLW=oL.offsetWidth;
if((iAL+iLW)>iWW&&iWW>iLW){
iL=iAL+iAW-iLW;
}else{
iL=iAL;
}
if(document.all){
iL+=iLeftPadding;
}
if(iL>=0){
oL.style.left=(iL-1)+"px";
}
oL.style.top=(iT)+"px";
oL.style.zIndex="1000";
if(bF){
iframeShim=VjLayerUtils.addLayerShim(oL);
}else{
if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1){
oL.appendChild(iframeShim);
}
}
oSI=getElementById(sContainerLayerId+"-spacer");
if(oSI&&bF){
oSI.width=iLW;
}
iMouseOverTimer=setTimeout(VjUtils.hitch(this,"show"),iMouseOverDelay);
}
};
DynamicMenu.prototype.show=function(){
var oA;
with(this){
oA=oAnchor;
if(oA){
oA.className=sAnchorMouseOverClass;
}
toggleVisibility(sContainerLayerId,true);
}
};
DynamicMenu.prototype.startMouseOutTimer=function(){
with(this){
clearTimeout(iMouseOverTimer);
iMouseOutTimer=setTimeout(VjUtils.hitch(this,"close"),iMouseOutDelay);
}
};
DynamicMenu.prototype.close=function(){
var oA;
with(this){
oA=oAnchor;
if(oA){
oA.className=sAnchorMouseOutClass;
}
toggleVisibility(sContainerLayerId,false);
if(iframeShim){
VjLayerUtils.removeLayerShim(getElementById(sContainerLayerId),iframeShim);
}
}
};
DynamicMenu.prototype.clearMouseOutTimer=function(){
clearTimeout(this.iMouseOutTimer);
};
DynamicMenu.prototype.getMenuHtml=function(_688){
with(this){
var i,j,c,n,h,ipc,html,img,si;
si="<img src='http://pics.ebaystatic.com/aw/pics/s.gif' height='1' width='150'  border='0' ";
var _68a=window[sHandler];
if(!_68a){
return;
}
var data=_68a(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_688);
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<_688;j++){
h+="<td nowrap>";
if(i==0){
h+=si+"><br/>";
}
n=i+(j)*ipc;
c=items[n];
if(c){
if(typeof (c.url)!="undefined"){
h+="<a href='"+c.url+"'>";
h+=c.value;
h+="</a>";
}else{
h+=c.value;
}
}else{
h+="&nbsp;";
}
h+="</td>";
}
h+="</tr>";
}
h+="</table>";
img=si+" id='"+sContainerLayerId+"-spacer'>";
html=sTemplate.replace("##1##",h).replace("##2##",img);
return html;
}
};
function DynamicMenuMouseOutHandler(psId){
this.id=psId;
}
DynamicMenuMouseOutHandler.prototype.handle=function(_68d){
oRegistry.get(this.id).startMouseOutTimer();
};
function DynamicMenuClearMouseOutHandler(psId){
this.id=psId;
}
DynamicMenuClearMouseOutHandler.prototype.handle=function(_68f){
oRegistry.get(this.id).clearMouseOutTimer();
};
function DynamicShowMenuHandler(psId){
this.id=psId;
}
DynamicShowMenuHandler.prototype.handle=function(_691){
oRegistry.get(this.id).showDynamicMenu();
};
function DynamicMenuGetOffsetLeft(e){
var l=0;
if(e.offsetParent){
l=e.offsetLeft;
while(e=e.offsetParent){
if(e.id.toLowerCase().indexOf("maincontent")==-1&&e.className.indexOf("pagecontainer")==-1){
l+=e.offsetLeft;
}
}
}
return l;
}
function getOffsetTop(elm){
var _695=elm.offsetTop;
var _696=elm.offsetParent;
while(_696!==null){
_695+=_696.offsetTop;
_696=_696.offsetParent;
}
return _695;
}
function getOffsetLeft(elm){
var _698=elm.offsetLeft;
var _699=elm.offsetParent;
while(_699!==null){
_698+=_699.offsetLeft;
_699=_699.offsetParent;
}
return _698;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_69a,_69b,_69c){
var px="px";
var _69e=document.getElementById(_69a);
var _69f=_69e.offsetHeight;
var _6a0=Math.max(_69f,_69b);
for(var i=0;i<_69c.length;i++){
document.getElementById(_69c[i]).style.height=_6a0+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1){
return;
}
var _6a4=document.createElement("IFRAME");
_6a4.style.width=node.offsetWidth+"px";
_6a4.style.height=node.offsetHeight+"px";
_6a4.style.filter="chroma(color='white')";
_6a4.frameBorder=0;
_6a4.style.position="absolute";
_6a4.style.left="0px";
_6a4.style.top="0px";
_6a4.style.zIndex="-1";
_6a4.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_6a4);
return _6a4;
};
VjLayerUtils.removeLayerShim=function(_6a5,_6a6){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1){
return;
}
if(_6a6&&_6a6.parentElement){
_6a5.removeChild(_6a6);
}
};
var dsf_debug=true;
function dsf_EventDispatcher(){
this.eventHandlers=Object();
}
dsf_EventDispatcher.prototype.process=function(_6a8,_6a9){
var _6aa=this.eventHandlers[_6a8];
if(_6aa===undefined){
return true;
}
var _6ab=_6aa[_6a9.eventType];
if(_6ab===undefined){
return true;
}
var _6ac=true;
for(var i=0;i<_6ab.length;i++){
var _6ae=_6ab[i].handle(_6a9);
if(_6ae&&_6ae.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_6ae)===false){
_6ac=false;
}
}else{
if(_6ae===false){
_6ac=false;
}
}
}
return _6ac;
};
dsf_EventDispatcher.prototype.register=function(id,_6b0,_6b1){
var _6b2=id;
if(this.eventHandlers[_6b2]===undefined){
this.eventHandlers[_6b2]=Object();
}
var _6b3=this.eventHandlers[_6b2];
if(_6b3[_6b0]===undefined){
_6b3[_6b0]=Array();
}
var _6b4=_6b3[_6b0];
_6b4[_6b4.length]=_6b1;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_6b6,_6b7){
eventDispatcher.register(id,_6b6,_6b7);
var _6b8=document.getElementById(id);
if(_6b8){
_6b8[_6b6]=function(){
return eventDispatcher[_6b6](this);
};
}
return this;
};
function dsf_Event(src,_6ba){
this.src=src;
this.eventType=_6ba;
}
function dsf_SvcConfig(_6bb,url){
this.url=url;
this.method=_6bb;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}
function dsf_Message(_6bd){
this.objType="dsf_Message";
this.svcId=_6bd;
this.request=undefined;
this.response=undefined;
this.clientContext=undefined;
this.trspType="InProc";
this.status=undefined;
this.svcConfig=undefined;
this.returnData=true;
this.trace="";
}
dsf_EventDispatcher.prototype.getId=function(src,id){
var _6c0=id;
if(_6c0===null||_6c0===undefined){
_6c0=src.id;
}
return _6c0;
};
dsf_EventDispatcher.prototype.onload=function(src,id){
var _6c3=this.getId(src,id);
if(_6c3===null||_6c3===undefined){
_6c3="body";
}
return this.process(_6c3,new dsf_Event(src,"onload"));
};
dsf_EventDispatcher.prototype.onunload=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onunload"));
};
dsf_EventDispatcher.prototype.onchange=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onchange"));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onsubmit"));
};
dsf_EventDispatcher.prototype.onreset=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onreset"));
};
dsf_EventDispatcher.prototype.onselect=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onselect"));
};
dsf_EventDispatcher.prototype.onblur=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onblur"));
};
dsf_EventDispatcher.prototype.onfocus=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onfocus"));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onkeydown"));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onkeypress"));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onkeyup"));
};
dsf_EventDispatcher.prototype.onclick=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onclick"));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"ondblclick"));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onmousedown"));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onmousemove"));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onmouseout"));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onmouseover"));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,id){
return this.process(this.getId(src,id),new dsf_Event(src,"onmouseup"));
};
function dsf_EventHandler(_6e6){
this.eventTypes=_6e6;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(_6e7){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _6e8=this.handleEvent(_6e7);
if(_6e8===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _6ea=this.eventTypes;
var _6eb=document.getElementById(id);
for(var i=0;i<_6ea.length;i++){
var _6ed=_6ea[i];
if(_6eb[_6ed]!==null){
continue;
}
_6eb[_6ed]=function(){
return eventDispatcher[_6ed](this);
};
}
return this;
};
function VjComponentRegistry(){
this.controls=[];
}
VjComponentRegistry.prototype.put=function(_6ee,_6ef){
this.controls[_6ee]=_6ef;
};
VjComponentRegistry.prototype.get=function(_6f0){
return this.controls[_6f0];
};
VjComponentRegistry.prototype.dump=function(){
var _6f1=this.controls;
var _6f2="controls on page:\n";
for(var i in _6f1){
_6f2+="key = "+i;
_6f2+="controlName = "+_6f1[i].objtype;
_6f2+="\n";
}
return _6f2;
};
function ExpressCrossLinking(_6f4,_6f5,_6f6,_6f7,_6f8,_6f9,_6fa){
this.sLayerId=_6f4;
this.sCloseAnchorId=_6f5;
this.sCartCountText=_6f6;
this.aHostCoutryId=_6f7;
this.aHostCountryDomain=_6f8;
this.aHideOnParams=_6f9;
this.sHtml=_6fa;
if(!this.hideOnParams()){
this.init();
}
}
ExpressCrossLinking.prototype.getHost=function(){
var oCJ=VjCookieJar,df=document.referrer,sid=oCJ.readCookie("ebay","ecs")||"",rv="",i;
if(sid=="-1"){
return rv;
}
if(sid){
rv=this.getHostById(sid);
}else{
if((i=df.indexOf(".express."))!=-1){
df=df.substring(i+9).toLowerCase();
var f=df.indexOf("/");
if(f>0){
df=df.substring(0,f);
}
for(i in this.aHostCountryDomain){
if(this.compareHost(this.aHostCountryDomain[i],df)){
rv=this.aHostCoutryId[i];
oCJ.writeCookielet("ebay","ecs",i);
break;
}
}
}
}
return rv.toLowerCase();
};
ExpressCrossLinking.prototype.compareHost=function(_6fd,_6fe){
var sh1=_6fd.toLowerCase(),sh2=_6fe.toLowerCase();
if(sh1.indexOf(".")==0){
sh1=sh1.substring(1);
}
if(sh2.indexOf(".")==0){
sh2=sh2.substring(1);
}
sh1=sh1.replace("/","");
sh2=sh2.replace("/","");
return (sh1==sh2);
};
ExpressCrossLinking.prototype.hideOnParams=function(){
if(this.aHideOnParams){
var _700=this.aHideOnParams;
var iLen=_700.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_700[i])){
return true;
}
}
}
return false;
};
ExpressCrossLinking.prototype.init=function(){
var oD=document,oCJ=VjCookieJar,sh="",l=this.sLayerId;
if(sh=this.getHost()){
var oL=getElementById(l),ct=oCJ.readCookie("dp1","exc")||"",sc="",lh=oD.location.host;
ct=ct.split(".")[2];
lh=lh.substring(lh.indexOf(".")+1);
if(ct&&ct!="0"&&this.compareHost(lh,sh)){
sc=this.sCartCountText.replaceTokens(ct);
}
oL.innerHTML=this.sHtml.replaceTokens(sh,sc);
toggleVisibility(l,true);
var oCL=getElementById(this.sCloseAnchorId);
if(oCL){
oCL.onclick=VjUtils.hitch(this,"close");
}
}
};
ExpressCrossLinking.prototype.getHostById=function(psId){
var ids=this.aHostCoutryId,i,ind=-1,o="";
for(i=0;i<ids.length;i++){
if(psId==ids[i]){
ind=i;
break;
}
}
if(ind!=-1){
o=this.aHostCountryDomain[ind];
}
return o;
};
ExpressCrossLinking.prototype.close=function(){
toggleVisibility(this.sLayerId,false);
VjCookieJar.writeCookielet("ebay","ecs","-1");
return false;
};
function getElementById(pId){
var elem=null;
var doc=window.document;
if(doc.getElementById){
elem=doc.getElementById(pId);
}else{
if(doc.all){
elem=doc.all(pId);
}
}
return elem;
}
function toggleVisibility(_70b,show){
var elem=getElementById(_70b);
if(elem===null){
return;
}
var vis=elem.style.visibility;
if(show===undefined){
elem.style.visibility=(vis==="")?"hidden":"";
}else{
elem.style.visibility=(show)?"":"hidden";
}
}

// en_US_AUTOS/e501/GlobalNav_Motors_e501R1_1_en_US_AUTOS
// b=4322756