//<!--
// \include\js\globals.js@@\main\45 

function Is()
{var t=true;var agt=navigator.userAgent.toLowerCase();this.major=parseInt(navigator.appVersion);this.webTV=this.opera=this.nav=this.ie=this.safari=false;var vInd=0;if(agt.indexOf("webtv")!=-1)
{this.webTV=t;vInd=agt.indexOf("webtv/")+6;}
else if(agt.indexOf("safari")!=-1)
{this.safari=t;vInd=agt.lastIndexOf("safari")+7;}
else if(agt.indexOf("opera")!=-1)
{this.opera=t;vInd=agt.lastIndexOf("opera")+6;}
else if(navigator.appName=="Netscape")
{this.nav=t;vInd=agt.lastIndexOf("/")+1;}
else if(agt.indexOf("msie")!=-1)
{this.ie=t;vInd=agt.indexOf("msie")+4;}
this.ver=parseInt(agt.substring(vInd));this.win=(agt.indexOf("win")!=-1);this.winXP=(this.win&&(agt.indexOf("windows nt 5.1;")!=-1));this.mac=(agt.indexOf("mac")!=-1);this.macppc=(this.mac&&((agt.indexOf("ppc")!=-1)||(agt.indexOf("powerpc")!=-1)));this.xpSp2=(agt.indexOf("sv1")!=-1);}
if(typeof(is)=="undefined")
is=new Is();var country="us";var countryDomain=".ebay.com/";var countryDesc="US";var countryDoubleByte=false;var countries=new Array(new Array(".ebay.com.au/",".com.au/","au","Australia"),new Array(".ebay.at/",".at/","at","AT"),new Array(".befr.ebay.be/",".befr.","befr","Belgium"),new Array(".benl.ebay.be/",".benl.","benl","Belgium"),new Array(".ebay.ca/",".ca/","ca","Canada"),new Array(".ebay.ch/",".ch/","ch","CH"),new Array(".ebay.es/",".es/","es","Spain"),new Array(".es.ebay.com/",".es.","es","Spain"),new Array(".ebay.fr/",".fr/","fr","France"),new Array(".ebay.de/",".de/","de","Germany"),new Array(".ebay.it/",".it/","it","Italy"),new Array(".ebay.in/",".in/","in","India"),new Array(".ebay.nl/",".nl/","nl","Netherlands"),new Array(".tw.ebay.com/",".tw.","tw","Taiwan"),new Array(".ebay.com.cn/",".cn.","cn","China"),new Array(".ebay.co.uk/",".co.uk/","uk","UK"),new Array(".ebay.com/",".","us","US"));var cbc=false,brow=false,atc=false,cbf=false;var dot='.';var and='&';var qstn='?';var eql='=';var or="||";var http="http://";var www="www";var httpwww=http+www;var https="https://";var cgi="cgi";var scgi="s"+cgi;var jsExt=dot+"js";var tclExt=dot+"tcl";var com="com";var dotCom=dot+com;var scriptOpen='<SC'+'RIPT SRC="';var scriptClose='"></SC'+'RIPT>';var ebStr="ebay";var ebDom=dot+ebStr;var ebInclude="include";var qaDom=dot+"qa"+dot;var thisPage=location.href.toLowerCase();var lastPage="";if(history.length>1)
lastPage=document.referrer.toLowerCase();var thisPageURL,thisPageURI,lastPageURL,lastPageURI;var qaMachineName="";var includeDir="",cobrandDir="",countryCobrandDir="";var picsDir="pics.ebaystatic.com/aw/pics/";var countryIncludeDir="";var includeHost;if(!includeHost)
includeHost=http+ebInclude+ebDom+dotCom+"/";var ebHTSch="ht"+eql;var ebSID="s_partnerid",ebSIDSch=ebSID+eql;var ebCID="co_partnerid",ebCIDSch=ebCID+eql;var seoAOpen=' | <a href="';var seoFontOpen='<font color="#0000CC">';var seoFontClose='</font></a>';var seoCookIn="in";globals=true;

// \include\js\common_functions_no_stylesheet.js@@\main\1 

String.prototype.contains=function(pWanted){return(this.indexOf(pWanted)!=-1);}
String.prototype.containsAny=function(){var args=arguments,len=args.length,rv=false;for(var i=0;i<len&&!rv;i++)
rv=(this.indexOf(args[i])!=-1);return rv;}
String.prototype.containsAll=function(){var args=arguments,len=args.length;for(var i=0;i<len;i++)
{if(this.indexOf(args[i])==-1)
return false;}
return true;}
String.prototype.is=function(s){return(this==s);}
String.prototype.isAny=function(){var args=arguments,len=args.length,rv=false;for(var i=0;i<len&&!rv;i++)
rv=(this==args[i]);return rv;}
Number.prototype.dec2Hex=function(){return parseInt(this,10).toString(16)}
String.prototype.hex2Dec=function(){return parseInt(this,16);}
String.prototype.replaceTokens=function()
{var value=this;var re;var token;for(var i=0;i<arguments.length;i++)
{token="<#"+(i+1)+"#>";re=new RegExp(token,"gi");if(value.indexOf(token)!=-1)
{value=value.replace(re,arguments[i])}}
return value;}
function ebayStringContains(pSource,pWanted)
{return(pSource.indexOf(pWanted)!=-1);}
window.stringContains=ebayStringContains;function ebayEvalParameters(pStr)
{var str=location.search;if(pStr)
str=pStr;var ps=str.substr(1).split("&");for(var i=0;i<ps.length;i++)
{var p=unescape(ps[i]).split("=");if(country.isAny("tw","cn"))
p=ps[i].split("=");if(p[1])
{var eStr=p[0]+"=";if((p[1]=="true")||(p[1]=="false")||(p[1]=="null"))
eStr+=p[1]+";";else
{var tmp="";for(var j=0;j<p[1].length;j++)
{if(p[1].charAt(j)=="'")
tmp+="\\'";else if(p[1].charAt(j)=="+")
tmp+=" ";else
tmp+=p[1].charAt(j);}
p[1]=tmp;eStr+="'"+p[1]+"';";}
eval(eStr);}}}
function ebayUpdateLocationVars()
{var qInd=thisPage.indexOf(qstn);if(qInd==-1)
{thisPageURL=thisPage;thisPageURI="";}
else
{thisPageURL=thisPage.substring(0,qInd);thisPageURI=thisPage.substring(qInd);}
qInd=lastPage.indexOf(qstn);if(qInd==-1)
{lastPageURL=lastPage;lastPageURI="";}
else
{lastPageURL=lastPage.substring(0,qInd);lastPageURI=lastPage.substring(qInd);}
var qaCountryDomain=countryDomain,c;country="";for(var i=0;i<countries.length&&(country=="");i++)
{c="."+countries[i][2]+".";if(thisPageURL.containsAny(c,countries[i][0],countries[i][1]))
{countryDomain=countries[i][0];country=countries[i][2];countryDesc=countries[i][3];qaCountryDomain=(c==".us.")?".":c;}}
var isSecure=false;var isQA=thisPageURL.contains(qaDom);if(thisPageURL.indexOf(https)==0)
{isSecure=true;ebInclude="secure"+ebInclude;picsDir="secure"+picsDir;}
if(isQA)
{var qaInd=includeHost.indexOf(qaDom);var dotInd=includeHost.lastIndexOf(dot,qaInd-1)+1;if(dotInd!=0)
qaMachineName=includeHost.substring(dotInd,qaInd);countryDomain=(qaMachineName=="")?"":qaCountryDomain;countryDomain+=qaMachineName+qaDom+ebStr+dotCom+"/";}
var protocol=thisPageURL.substring(0,thisPageURL.indexOf("://")+3);if(!protocol.isAny(http,https))
protocol=http;picsDir=protocol+picsDir;includeDir=protocol+ebInclude+dot;if(isQA)
{if(qaMachineName!="")
includeDir+=qaMachineName+dot;includeDir+="qa"+dot;}
includeDir+=ebStr+"static"+dotCom+"/aw/pics/";cobrandDir=includeDir+"js/cobrand/";countryIncludeDir=includeDir+country+"/js/";countryCobrandDir=countryIncludeDir+"cobrand/";includeDir+="js/";countryDoubleByte=country.isAny("tw","cn");}
function ebayDowngradeDomain()
{var eInd=document.domain.indexOf(ebDom+dot);if(eInd!=-1)
document.domain=new String(document.domain).substr(eInd+1);}
function ebayShowPopupWindow(url,name,width,height,toolbar,location,status,scrollbars,resizable,menubar,left,top,customprops)
{var props="";if(width)props+=",width="+width;if(height)props+=",height="+height;if(toolbar)props+=",toolbar="+toolbar;if(location)props+=",location="+location;if(status)props+=",status="+status;if(scrollbars)props+=",scrollbars="+scrollbars;if(resizable)props+=",resizable="+resizable;if(menubar)props+=",menubar="+menubar;if(left)props+=",screenX="+left+",left="+left;if(top)props+=",screenY="+top+",top="+top;if(customprops)props+=","+customprops;if(props!="")props=props.substring(1);var w=window.open(url,name,props);if(!is.opera&&w&&!w.closed)w.focus();return w;}
function ebaySignInOut(signin,signout,sspagesignin,sspagesignout)
{if(typeof(ReadCookie)!='undefined')
{var url=http+'signin'+countryDomain+'/ws2/eBayISAPI.dll?SignIn';url+='&ssPageName=';var ssp=sspagesignin,sign=signin;if((ReadCookie("ebaysignin")==seoCookIn)||(ReadCookie("keepmesignin")==seoCookIn))
{ssp=sspagesignout;sign=signout;}
var str=seoAOpen+url+ssp+'">'+seoFontOpen+sign;document.write(str+seoFontClose);}}
window.eBaySignInOut=ebaySignInOut;function ebayRegister(text,sspage)
{if(typeof(ReadCookie)!='undefined')
{if((ReadCookie("ebaysignin")!=seoCookIn)||(ReadCookie("keepmesignin")!=seoCookIn))
{var str=seoAOpen+http+'cgi4'+countryDomain+'/aw-cgi/eBayISAPI.dll?SignIn';str+='?RegisterShow&ssPageName="'+sspage+'">'+seoFontOpen;document.write(str+text+seoFontClose);}}}
window.eBayRegister=ebayRegister;function ebayGetUnencodedHost(pURL)
{var dl=document.location,tp=unescape(dl);if(tp.contains("_W0QQ"))
{if(tp.split("/").length==4)
{tp=tp.replace(/_W0QQ/,"?");tp=tp.replace(/Z/g,"=");tp=tp.replace(/Q3A/g,":");tp=tp.replace(/Q3a/g,":");tp=tp.replace(/Q3B/g,";");tp=tp.replace(/Q3b/g,";");tp=tp.replace(/QQ/g,"&");}}
return tp;}
function ebayHelpLoadStrings()
{var str=scriptOpen+countryIncludeDir+"help/help_strings.js";document.write(str+scriptClose);}
var globals;if(globals)
{ebayUpdateLocationVars();if(thisPageURL.contains("/help/"))
ebayHelpLoadStrings();}
function ebayBustFrames(){var t=top.location;var w=window.location;if(t!=w)
t.replace(w);}
window.bustFrames=ebayBustFrames;

// \include\js\cookies.js@@\main\24 

function EbayCookie(name,value,domain,path,expires,secure,isCookielet)
{if(!this.objType)
this.objType="EbayCookie";if(typeof(EBayObject)=="function")
{this.base=EBayObject;this.base(null,name);}
else
{this.parent=null;this.name=name;}
this.value=value;this.value=value||"";if(typeof(thisPageURL)!="undefined"&&domain==null)
{if(!thisPageURL.contains(qaDom))
{this.domain=countryDomain.substring(0,countryDomain.length-1);d=this.domain;if(d.contains("es.ebay.")||d.contains("tw.ebay."))
{this.domain=".ebay.com";}
if(d.contains("befr.ebay.")||d.contains("benl.ebay."))
{this.domain=".ebay.be";}}
else
{this.domain=".ebay.com";}}
else
{this.domain=domain;}
this.path=path?path:"/";this.secure=secure;this.isCookielet=isCookielet;this.cookielets=new Array();this.expires=expires;this.parseCookie=EbayParseCookie;this.addCookielet=EbayAddCookieLet;this.read=EbayReadCookie;this.set=EbaySetCookie;this.getCookielet=EbayGetCookielet;}
function EbayCookielet(name,value,expi)
{this.name=name;this.value=value?value:'';expi=expi?expi:'';var d=expi;if(typeof(expi)=="object")
{this.expirationDate=expi;y=d.getUTCFullYear();if(y<1900)
{y=y+1900;}
expi=Date.UTC(y,d.getUTCMonth(),d.getUTCDate());}
if(isNaN(expi)&&!expi=="")
{expi=d.hex2Dec();this.expirationDecBy1000=expi;expi=expi*1000;this.expirationDate=new Date(expi);this.expirationDec=expi;this.expirationHex=this.expirationDecBy1000.dec2Hex();}
else
{this.expirationDec=expi;this.expirationDecBy1000=Math.floor(expi/1000);this.expirationHex=this.expirationDecBy1000.dec2Hex();}}
function EbayGetCookielet(name)
{var c=this.cookielets[name],v="";if(c)v=c.value;return v;}
function EbayParseCookie(start)
{var mycookielets=new Array();var strCookielets="";if(start)
{var input=this.value;mycookielets=input.split("^");for(i in mycookielets)
{var x=mycookielets[i].split("=");if(x[0]!=""&&x[1]!="")
{var outVal=x[1];for(var j=2;j<x.length;j++)
{outVal+="="+x[j];}
this.addCookielet(x[0],outVal);}}}
else
{strCookielets="^";var cl=this.cookielets;for(i in cl)
{if(cl[i])
strCookielets+=cl[i].name+"="+cl[i].value+"^";}
this.value=strCookielets;}}
function EbayReadCookie()
{var cookie_list=' '+document.cookie,cookie_key=' '+this.name+'=',cookie_offs=(document.cookie?cookie_list.indexOf(cookie_key):-1);if(cookie_offs>=0)
{var cookie_val=cookie_list.substring(cookie_offs+cookie_key.length),cookie_end=cookie_val.indexOf(';');this.value=unescape(cookie_end<0?cookie_val:cookie_val.substring(0,cookie_end));if(this.isCookielet)
{this.parseCookie(true);}}}
function EbaySetCookie()
{with(this)
{if(isCookielet)
{parseCookie(false);}
if((isNaN(value)&&value.length<4000)||(value+'').length<4000)
{document.cookie=(name?name+'=':'')+(value?escape(value):'')+(domain?'; domain='+domain:'')+(path?'; path='+path:'')+(expires?'; expires='+expires.toGMTString():'')+(secure?'; secure='+escape(secure):'');}
else
{if(isQA)
alert("ERROR: Cookie data could not be set over 4kb.");}}}
function EbayAddCookieLet(name,value,expiration)
{this.cookielets[name]=new EbayCookielet(name,value,expiration);}
function EbayOldWriteCookie(name,value,domain,path,expires,secure)
{if(expires=='yes')
{expires=new Date("Jan 02, 2004 12:00:00 GMT");}
else if(expires=='delete')
{expires=new Date("May, 01 1999 12:00:00 GMT");}
var x=new EbayCookie(name,value,domain,path,expires,secure,false);x.set();}
window.WriteCookie=EbayOldWriteCookie;function EbayOldWrite2YearCookie(name,value,domain,path,expires,secure)
{var x;if(!expires)
{var offset=2;now=new Date();year=now.getYear();now.setYear(year+offset);expires=now.valueOf();}
x=new EbayCookie(name,value,domain,path,expires,secure,false);}
window.Write2YearCookie=EbayOldWrite2YearCookie;function EbayOldReadCookie(name)
{var x=new EbayCookie(name);x.read();return x.value;}
window.ReadCookie=EbayOldReadCookie;function EbayOldReadMultiCookie(cook,cooklet)
{var x=new EbayCookie(cook,null,null,null,null,null,true);x.read();return x.getCookielet(cooklet);}
window.readMultiCookie=EbayOldReadMultiCookie;function EbayOldWriteMultiCookie(name,cooklet,value,domain,path,expires)
{var x=new EbayCookie(name,null,domain,path,expires,null,true);x.read();x.addCookielet(cooklet,value);x.set();}
window.writeMultiCookie=EbayOldWriteMultiCookie;function EbayOldDeleteCookie(name,domain,path)
{var expireDate=new Date(1);var x=new EbayCookie(name,null,domain,path,expireDate,null,false);x.set();}
window.DeleteCookie=EbayOldDeleteCookie;function EbayDPCookie(name,value,domain,path,expires,secure,isCookielet)
{this.base=EbayCookie;this.base(name,value,domain,path,expires,secure,isCookielet);this.parseCookie=EbayDPParseCookie;this.set=EbaySetDPCookie;this.getCookieletObj=EbayGetCookieletObj;this.isCookielet=true;if(!expires)
{var offset=2;now=new Date();year=now.getUTCFullYear();if(year<1900)
{year=1900+year;}
now.setUTCFullYear(year+offset);this.expires=now;}
else
{this.expires=expires;}}
function EbaySetDPCookie()
{with(this)
{if(isCookielet)
{parseCookie(false);}
if((isNaN(value)&&value.length<4000)||(value+'').length<4000)
{document.cookie=(name?name+'=':'')+(value?value:'')+(domain?'; domain='+domain:'')+(path?'; path='+path:'')+(expires?'; expires='+expires.toGMTString():'')+(secure?'; secure='+escape(secure):'');}
else
{if(isQA)
alert("ERROR: Cookie data could not be set over 4kb = cookie length = "+value.length);}}}
function EbayGetCookieletObj(name)
{var c=this.cookielets[name];return c;}
function EbayReadDPCookielet(cook,cooklet)
{var x=new EbayDPCookie(cook,null,null,null,null,null,true);x.read();return x.getCookielet(cooklet);}
function EbayDPWriteMultiCookie(name,cooklet,value,domain,path,expires)
{var today=(new Date()).getTime();var defexp=new Date(today+(YEAR*1))
var x=new EbayDPCookie(name,null,domain,path,defexp,null,true);x.read();x.addCookielet(cooklet,value,expires);x.set();}
function EbayDPParseCookie(start)
{var mycookielets=new Array();var strCookielets="";if(start)
{var input=this.value;input=input.substring(1,input.length);mycookielets=input.split("^");for(i in mycookielets)
{c=mycookielets[i];expi=c.substring(c.length-8,c.length);c=c.substring(0,c.length-8);var x=c.split("/");if(x[0]!=""&&x[1]!="")
{var outVal=unescape(c.substring(c.indexOf("/")+1,c.length));this.addCookielet(x[0],outVal,expi);}}}
else
{strCookielets="";var today=new Date();var cl=this.cookielets;for(i in cl)
{if(cl[i])
{var timeToExpire=cl[i].expirationDate-today;if(timeToExpire>0)
strCookielets+=cl[i].name+"/"+escape(cl[i].value)+cl[i].expirationHex+"^";}}
if(strCookielets!="")
{this.value="b"+strCookielets;}
else
{this.value="";}}}
var CookieDomain=".ebay.com";var thisHost=location.hostname.toLowerCase();if(thisHost.indexOf(".ebay")>0)
CookieDomain=thisHost.substring(thisHost.indexOf(".ebay"));

// \include\lib\_global\ebayInit.js@@\main\5 

String.prototype.has=function(s){return(this.indexOf(s)!=-1);}
String.prototype.hasAny=function()
{var args=arguments,len=args.length,rv=false;for(var i=0;i<len&&!rv;i++)
{if(typeof(args[i])=="string")
rv=this.has(args[i]);else
{var aLen=args[i].length;for(var j=0;j<aLen&&!rv;j++)
rv=this.has(args[i][j]);}}
return rv;}
String.prototype.hasAll=function()
{var args=arguments,len=args.length;for(var i=0;i<len;i++)
{if(typeof(args[i])=="string")
{if(!this.has(args[i]))
return false;}
else
{var aLen=args[i].length;for(var j=0;j<aLen;j++)
{if(!this.has(args[i][j]))
return false;}}}
return true;}
String.prototype.is=function(s){return(this==s);}
String.prototype.isAny=function()
{var args=arguments,len=args.length,rv=false;for(var i=0;i<len&&!rv;i++)
{if(typeof(args[i])=="string")
rv=(this==args[i]);else
{var aLen=args[i].length;for(var j=0;j<aLen&&!rv;j++)
rv=(this==args[i][j]);}}
return rv;}
String.prototype.replaceTokens=function()
{var rv=this,re,token,len=arguments.length;for(var i=0;i<len;i++)
{token="<#"+(i+1)+"#>";re=new RegExp(token,"gi");if(rv.has(token))
rv=rv.replace(re,arguments[i])}
return rv;}
String.prototype.replaceTokensEx=function(pPattern)
{var rv=this,re,token,len=arguments.length;for(var i=1;i<len+1;i++)
{token=pPattern.replace("n",(i));re=new RegExp(token,"gi");if(rv.has(token))
rv=rv.replace(re,arguments[i])}
return rv;}
String.prototype.decodeBase64=function()
{var rv=this,ret="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var allowedChar="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=*";var i=0;var base64test=new RegExp("[^A-Za-z0-9+/=*]");if(base64test.exec(rv)){return;}
do{enc1=allowedChar.indexOf(rv.charAt(i++));enc2=allowedChar.indexOf(rv.charAt(i++));enc3=allowedChar.indexOf(rv.charAt(i++));enc4=allowedChar.indexOf(rv.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;ret=ret+String.fromCharCode(chr1);if(!(enc3>=64))
ret=ret+String.fromCharCode(chr2);if(!(enc4>=64))
ret=ret+String.fromCharCode(chr3);chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i<rv.length);return ret;}
String.prototype.decodeUTF8=function()
{var utftext=this;var plaintext="";var i=0;var c=c1=c2=0;while(i<utftext.length)
{c=utftext.charCodeAt(i);if(c<128)
{plaintext+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224))
{c2=utftext.charCodeAt(i+1);plaintext+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else
{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);plaintext+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return plaintext;}
String.prototype.parseSets=function(s,v,n)
{s=s?s:"^";v=v?v:",";n=n?n:"=";var a=new Array();var ma=this.split(s);for(i in ma)
{var t=ma[i].split(n);if(t[0]!=""&&t[1]!="")
{a[t[0]]=t[1].split(v);}}
return a;}

// \include\lib\_global\ebayBase.js@@\main\11 

function EbayObject(pParent,pName)
{if(!this.objType)
this.objType="EbayObject";this.parent=pParent;this.name=pName;this.controls=new Array;this.oDocument=this.oGlobals=null;if(typeof(ebay)=="object")
{this.oGlobals=ebay.oGlobals;this.oDocument=ebay.oDocument;}
this._get=ebObjectGet;this._exec=ebObjectExecute;this.createError=ebObjectCreateError;this.throwDebug=ebObjectThrowDebug;this.throwWarning=ebObjectThrowWarning;this.throwError=ebObjectThrowError;this.EVENT_BEFORE=0;this.EVENT_AFTER=1;}
function ebObjectGet(pName)
{var p=eval("this."+pName);if(p)
return p;this.throwWarning("Invalid property '"+pName+"'","get");return"";}
function ebObjectExecute(pFunction)
{if(!pFunction.hasAny(' ','(',')'))
{var f=eval("this."+pFunction);if(typeof(f)=="function")
{var s='this.'+pFunction+'(',args=arguments;var len=args.length;for(var i=1;i<len;i++)
{if(i>1)s+=',';s+='args['+i+']';}
s+=');';this.throwDebug(pFunction,"exec");return eval(s);}}
this.throwError("Invalid method '"+pFunction+"'","_exec");return true;}
function ebObjectCreateError(pType,pMsg,pCmd)
{if(typeof(EbayError)!="undefined")
new EbayError(pType,pMsg,null,this.name,this.objType,pCmd);}
function ebObjectThrowDebug(pMsg,pCmd)
{this.createError(2,pMsg,pCmd);}
function ebObjectThrowWarning(pMsg,pCmd)
{this.createError(1,pMsg,pCmd);}
function ebObjectThrowError(pMsg,pCmd)
{this.createError(0,pMsg,pCmd);}
function EbayBaseControl(pParent,pName)
{if(!this.objType)
this.objType="EbayBaseControl";this.base=EbayObject;this.base(pParent,pName);this.controls=new Array;var eh=this.oEventHandler=new EbayEventHandler(this,"Event Handler");this._registerEvent=eh.registerEvent;this._getEvent=eh.getEvent;this._registerListener=ebControlRegisterListener;this._processEvent=eh.processEvent;this.listenTo=ebControlListenTo;this._addControl=ebControlAddControl;this._getControl=ebControlGetControl;this._getControlEx=ebControlGetControlEx;this.actualGetControl=ebControlActualGetControl;var p=this.parent;if(p&&typeof(p._addControl)=="function")
p._addControl(pName,this,true);}
function ebControlRegisterListener(pEvent,pSequence,pHandler)
{pEvent._exec("registerListener",pSequence,this,pHandler);}
function ebControlListenTo(pSource,pEventName,pSequence,pHandler)
{var e=pSource._getEvent(pEventName);this._registerListener(e,pSequence,pHandler)}
function ebControlAddControl(pName,pObj,pOverwriteExisting)
{var cts=this.controls;if(!cts[pName]||pOverwriteExisting)
cts[pName]=pObj;return cts[pName];}
function ebControlActualGetControl(pName)
{var cts=this.controls,rc;for(var i in cts)
{if(i==pName)
return cts[i];else if(cts[i].controls)
{rc=cts[i].actualGetControl(pName);if(rc)
return rc;}}
return null;}
function ebControlGetControl()
{var args=arguments,len=args.length,i=0,ct=this;var n=args[i];while(ct.controls[n])
{ct=ct.controls[n];if(i==(len-1))
return ct;i++;n=args[i];}
with(this)
{var c=actualGetControl(n);if(c)return c;throwError("Control not found at '"+n+"'","getControl");}
this.throwError("Control not found at '"+n+"'","_getControl");return null;}
function ebControlGetControlEx()
{var args=arguments,len=args.length,i=0;var s="this._getControl(";for(i=0;i<len;i++)
{if(i>0)
s+=",";s+="args["+i+"]";}
s+=")";var c=eval(s);if(c==null)
{this.throwWarning("Control not found at '"+args[0]+"'","_getControlEx");return new EbayObject();}
else
return c;}

// \include\lib\_global\ebayEvent.js@@\main\4 

function EbayEvent(pParent,pName,pHandler)
{if(!this.objType)
this.objType="EbayEvent";this.base=EbayObject;this.base(pParent,pName);this.sEventFunction=pHandler;this.aListeners=new Array;this.aListeners[this.EVENT_BEFORE]=new Array;this.aListeners[this.EVENT_AFTER]=new Array;this.registerListener=ebEventRegisterListener;this.notify=ebEventNotify;}
function ebEventRegisterListener(pSequence,pParent,pHandler,pBlocking)
{var sa=this.aListeners[pSequence];sa[sa.length]=new EbayListener(pParent,pHandler,pBlocking);}
function ebEventNotify(pSequence)
{with(this)
{var args=arguments,len=args.length,argStr="";for(var i=1;i<len;i++)
argStr+=",args["+i+"]";var l=aListeners[pSequence],len=l.length,rv,fn="_listener_";for(i=0;i<len;i++)
{with(l[i].parent)
{eval("l[i].parent."+fn+" = "+l[i].sEventFunction+";");rv=eval("_exec(fn,this"+argStr+");");}
if(!rv&&l[i].bBlocking)
return false;}}
return true;}
function EbayListener(pParent,pHandler,pBlocking)
{if(!this.objType)
this.objType="EbayListener";this.base=EbayObject;this.base(pParent,"Event Listener");this.sEventFunction=pHandler;this.bBlocking=pBlocking;}
function EbayEventHandler(pParent,pName)
{if(!this.objType)
this.objType="EbayEventHandler";this.base=EbayObject;this.base(pParent,pName);this.aEvents=new Array;this.registerEvent=ebEventHandlerRegisterEvent;this.getEvent=ebEventHandlerGetEvent;this.processEvent=ebEventHandlerProcessEvent;}
function ebEventHandlerRegisterEvent(pName,pHandler)
{var eh=this.oEventHandler;with(eh)
aEvents[pName]=new EbayEvent(eh,pName,pHandler);var s="this."+pName+" = function() {";s+='var args = arguments, len = args.length, argStr = "";';s+='for (var i=0; i<len; i++)';s+=' argStr += ",args[" + i + "]";';s+=" return eval('this._processEvent(\""+pName+"\"' + argStr + ')'); }";eval(s);return eh.aEvents[pName];}
function ebEventHandlerGetEvent(pName)
{var e=this.oEventHandler._get("aEvents['"+pName+"']");if(e=="")
e=new EbayEvent();return e;}
function ebEventHandlerProcessEvent(pEventID)
{var rv=false;with(this)
{var e=oEventHandler.aEvents[pEventID];if(e)
{var args=arguments,len=args.length,argStr="";for(var i=1;i<len;i++)
argStr+=",args["+i+"]";rv=eval("e.notify(EVENT_BEFORE"+argStr+");");if(rv)
{var fn="_event_",ef=e.sEventFunction;if(ef)
eval("this."+fn+" = "+ef+";");rv=ef?eval("_exec(fn,e"+argStr+")"):false;eval("e.notify(EVENT_AFTER"+argStr+");");}}}
return rv;}

// \include\lib\_global\ebayGlobals.js@@\main\20 

function EbayClient(pParent,pName)
{if(!this.objType)
this.objType="EbayClient";if(!pParent.objType.is("EbayGlobals"))
return;this.base=EbayObject;this.base(pParent,pName);this.bFirefox=this.bWebTV=this.bOpera=this.bNav=this.bIE=this.bSafari=this.bWin=this.bMac=this.bMacppc=this.bActiveXLibLoaded=this.bActiveXSupported=this.bWinXp=this.bXpSp2=false;this.iVer=-1;this.fMinorVer=0;this.init=function()
{var nv=navigator,agt=nv.userAgent.toLowerCase();var major=parseInt(nv.appVersion),i=0;with(this)
{if(agt.has("webtv"))
{bWebTV=true;i=agt.indexOf("webtv/")+6;}
else if(agt.has("firefox"))
{bFirefox=true;i=agt.lastIndexOf("firefox")+7;}
else if(agt.has("safari"))
{bSafari=true;i=agt.lastIndexOf("safari")+7;}
else if(agt.has("opera"))
{bOpera=true;i=agt.lastIndexOf("opera")+6;}
else if(nv.appName.is("Netscape"))
{bNav=true;i=agt.lastIndexOf("/")+1;}
else if(agt.has("msie"))
{bIE=true;i=agt.indexOf("msie")+4;}
iVer=parseInt(agt.substring(i));fMinorVer=parseFloat(agt.substring(i))-iVer;bWin=agt.has("win");bWinXp=(bWin&&agt.has("windows nt 5.1"));bXpSp2=(bWinXp&&agt.has("sv1"));bMac=agt.has("mac");bMacppc=(bMac&&agt.hasAny("ppc","powerpc"));bActiveXSupported=(!bMac&&(typeof(ActiveXObject)=='function'));}}
this.activeXLibLoaded=function(pActXName)
{if(this.bIE)
{var h='<scr'+'ipt language="JavaScript" type="text/JavaScript">';h+='var aX;</scr'+'ipt>';var d=this.parent.parent.oDocument.doc;d.writeln(h+'<scr'+'ipt language="vbscript" type="text/vbscript">');d.writeln('on error resume next');d.writeln('aX = IsObject(CreateObject("'+pActXName+'"))');d.writeln('</scr'+'ipt>');return(typeof(aX)!="undefined"&&aX);}
return false;}
this.init();}
function EbayEnvironment(pParent,pName)
{if(!this.objType)
this.objType="EbayEnvironment";if(!pParent.objType.is("EbayGlobals"))
return;this.base=EbayObject;this.base(pParent,pName);this.sCountry=this.sCountryDomain=this.sCountryDesc="";this.sTrainId="e407";this.sEnvironment="prod";this.bCountryDoubleByte=false;this.sEbay="ebay";this.sDomain="."+this.sEbay;this.sInclude="include";this.sQADomain=".qa.";this.sQAMachine=this.sIncludeDir=this.sCountryIncludeDir="";this.sPicsDir="pics.ebaystatic.com/aw/pics/";this.sIncludeHost=(typeof(includeHost)!="undefined")?includeHost:this.sInclude+this.ebDom+".com/";this.sThisPage=this.sLastPage=this.sThisPagePath=this.sThisPageQuery=this.sLastPagePath=this.sLastPageQuery=this.sProtocol=this.sThisPagePool=this.sThisPageHost="";this.init=function()
{with(this)
{var pro=sProtocol=location.protocol;var tp=sThisPage=sThisPagePath=this.getUnencodedHost();sThisPagePool=tp.substring(tp.indexOf("://")+3,tp.indexOf("."));sThisPageHost=location.hostname;var qInd=tp.indexOf("?");if(qInd!=-1)
{sThisPagePath=tp.substring(0,qInd);sThisPageQuery=tp.substring(qInd);}
if(typeof(document.referrer)!='undefined'&&document.referrer.length>0)
{var lp=sLastPage=sLastPagePath=sLastPageQuery=this.getUnencodedHost(document.referrer.toLowerCase());qInd=lp.indexOf("?");if(qInd!=-1)
{sLastPagePath=lp.substring(0,qInd);sLastPageQuery=lp.substring(qInd);}}
this.setLocals=ebEnvironmentSetLocals;this.setLocals();var qacd=".ebay.com/",tpp=sThisPagePath;qacd=(sCountry=="us")?".":"."+sCountry+".";if(tpp.has(".dev."))
{sCountryDomain=tpp.substring(tpp.indexOf("."),tpp.indexOf(".com")+4);sCountryDomain+="/";}
var isSecure=pro.is("https:"),isQA=tpp.has(sQADomain);if(isSecure)
{sInclude="secure"+sInclude;sPicsDir="secure"+sPicsDir;}
if(isQA)
{var ih=sIncludeHost,qi=ih.indexOf(sQADomain);var di=ih.lastIndexOf(".",qi-1)+1;if(di)
sQAMachine=ih.substring(di,qi);sCountryDomain=sQAMachine.is("")?"":qacd;sCountryDomain+=sQAMachine+sQADomain+sEbay+".com/";}
if(!pro.has("http"))pro="http:";pro+="//";sPicsDir=pro+sPicsDir;sIncludeDir=sIncludeHost+"aw/pics/lib/";sCountryIncludeDir=sIncludeDir+sCountry+"/";sIncludeDir+="_global/";}}
this.getUnencodedHost=function(pURL)
{var tp=unescape(pURL?pURL:document.location);if(tp.has("_W0QQ"))
{if(tp.split("/").length==4)
{tp=tp.replace(/_W0QQ/,"?");tp=tp.replace(/Z/g,"=");tp=tp.replace(/Q3A/g,":");tp=tp.replace(/Q3a/g,":");tp=tp.replace(/Q3B/g,";");tp=tp.replace(/Q3b/g,";");tp=tp.replace(/QQ/g,"&");}}
return tp;}
this.init();}
function EbayGlobals(pParent,pName)
{if(!this.objType)
this.objType="EbayGlobals";if(!pParent.objType.is("Ebay"))
return;this.base=EbayObject;this.base(pParent,pName);this.oClient=new EbayClient(this,"Client Information");this.oEnvironment=new EbayEnvironment(this,"Environment Information");this.scriptTag=function(pPath)
{return'<sc'+'ript src="'+pPath+'" language="javascript" type="text/javascript"> </sc'+'ript>';}}

// \include\lib\_global\ebayDocument.js@@\main\14 

function EbayDOM(pParent,pName)
{if(!this.objType)
this.objType="EbayDOM";this.base=EbayBaseControl;this.base(pParent,pName);if(!pParent.objType.is("Ebay"))
{this.throwError("Illegal object creation","constructor");return;}
this.doc=document;this.win=window;this.aParams=new Array;this.aConfigs=new Array;var bQueryLoaded=false;this.fCustomOnload=this.fCustomOnUnload=null;this.getQueryValue=function(pKey)
{with(this)
{if(!bQueryLoaded)
loadParams();return aParams[pKey]?aParams[pKey]:"";}}
this.loadParams=function()
{var str=this.doc.location.search;if(str.length==0)
return;str=str.substr(1);var ps=str.split("&"),psLen=ps.length;for(var i=0;i<psLen;i++)
{var p=unescape(ps[i]).split("=");if(this.parent.oGlobals.oEnvironment.bCountryDoubleByte)
p=ps[i].split("=");this.aParams[p[0]]="";if(p[1])
{var tmp="",c,len=p[1].length;for(var j=0;j<len;j++)
{c=p[1].charAt(j);if(c.is("'"))tmp+="\\'";else if(c.is("+"))tmp+=" ";else tmp+=c;}
this.aParams[p[0]]=tmp;}}
bQueryLoaded=true;}
this.onLoad=function()
{with(this)
{if(fCustomOnload)
fCustomOnload();_exec("bind");}}
this.onUnload=function()
{with(this)
{if(fCustomOnUnload)
fCustomOnUnload();doc=win=null;}}
this.registerEvents=function()
{with(this)
{if(typeof(win.onload)=="unknown")
win.onload=null;if(typeof(win.onunload)=="unknown")
win.onunload=null;win.jsObj=this;_registerEvent("load","onLoad");fCustomOnload=win.onload;win.onload=function(){jsObj._exec("load");}
_registerEvent("unload","onUnload");fCustomOnUnload=win.onunload;win.onunload=function()
{if(jsObj)
{jsObj._exec("unload");}}
_registerEvent("bind");}}
this.registerEvents();this.addConfig=function(pConfig)
{var n=pConfig.name;this.aConfigs[n]=pConfig;return this.aConfigs[n];}
this.createConfig=function(pName)
{return this.addConfig(new EbayConfig(pName));}
this.getConfig=function(pName)
{return this.aConfigs[pName];}
this.downgradeDomain=ebDowngradeDomain;ebDowngradeDomain=null;this.closeWindow=function(pWin)
{if(pWin&&!pWin.closed)
pWin.close();}
this.write=function(pStr)
{with(this.doc)
{if(typeof(standardWrite)=="undefined")
write(pStr);else
standardWrite(pStr);}}
this.writeln=function(pStr)
{with(this.doc)
{if(typeof(standardWriteln)=="undefined")
writeln(pStr);else
standardWriteln(pStr);}}
this.createElement=function(pStr)
{with(this.doc)
{return(typeof(standardCreateElement)=="undefined")?createElement(pStr):standardCreateElement(pStr);}}
this.redirect=function(pUrl,pReplace)
{var loc=this.doc.location;if(pReplace)loc.replace(pUrl);else loc.href=pUrl;}
this.getCookielet=function(pCookie,pName)
{var cl=pCookie.split("^");for(var i in cl)
{var x=cl[i].split("=");if(x[0]==pName)
return x[1];}
return'';}
this.setCookielet=function(pCookie,pName,pValue)
{var v=this.getCookielet(pCookie,pName);if(v=="")
v=pCookie+"^"+pName+"="+pValue;else
{v=pCookie;var sInd=v.indexOf(pName+"=")+pName.length+1;var eInd=v.indexOf("^",sInd);if(eInd==-1)
eInd=v.length;v=v.substring(0,sInd)+pValue+v.substr(eInd);}
this.doc.cookie=v;}
this.getCookie=function(pName,pSubName)
{var dc=this.doc.cookie,cl=' '+dc,ck=' '+pName+'=';var co=(dc?cl.indexOf(ck):-1),v='';if(co>=0)
{var v=cl.substring(co+ck.length),end=v.indexOf(';');v=unescape(end<0?v:v.substring(0,end));if(pSubName)
v=this.getCookielet(v,pSubName);}
return v;}
this.setCookie=function(pName,pSubName,pValue,pExpires,pSecure)
{if(pSubName)
this.setCookielet(pName+"="+this.getCookie(pName),pSubName,pValue);else
{var v=pName?escape(pName)+'=':'';v+=pValue?escape(pValue):'';v+='; domain='+ebay.oGlobals.oEnvironment.sCountryDomain;v+='; path=/';v+=pExpires?'; expires='+pExpires.toGMTString():'';v+=pSecure?'; secure='+escape(pSecure):'';this.doc.cookie=v;}}
this.getFormElem=function(pName,pType)
{if(!this.doc)
return null;var frms=this.doc.forms;var ln=frms.length;for(var i=0;i<ln;i++)
{var elems=frms[i].elements;for(var j=0;j<elems.length;j++)
{if(elems[j].name==pName)
{if(pType)
{if(elems[j].type==pType)
return elems[pName];}
else
return elems[j];}}}
this.throwError("Element '"+pName+"' not found on this page","getFormElem");}
this.messageBox=function(pTxt)
{window._showEbayAlert(pTxt);}}
window._showEbayAlert=window.alert;function ebDowngradeDomain()
{var dd=document.domain,i=dd.indexOf(".ebay.");if(i!=-1)
document.domain=new String(dd).substr(i+1);}
function ebDocumentCheckDowngradeDomain()
{var agt=navigator.userAgent.toLowerCase();if(location.search.has("downgradeDomain=true")&&!agt.hasAll("mac","msie"))
ebDowngradeDomain();}
ebDocumentCheckDowngradeDomain();

// \include\lib\_global\ebayConfig.js@@\main\1 

function EbayConfig(pName)
{if(!this.objType)
this.objType="EbayConfig";this.name=pName;this.oGlobals=ebay.oGlobals;}

// \include\lib\_global\ebayError.js@@\main\7 

function EbayError(pErrType,pErrDesc,pInnerError,pSource,pCmd)
{if(!this.objType)
this.objType="EbayError";this.type=pErrType||0;this.desciption=pErrDesc;this.source=pSource||"unknown";this.command=pCmd||"unknown";this.date=new Date();this.browser=navigator.userAgent;this.location=location.href||"";this.innerError=pInnerError||null;this.toString=ebErrorToString;this.getMessage=ebErrorGetMessage;if(_ebayErrorManager==null)
_ebayErrorManager=new EbayErrorManager();_ebayErrorManager.add(this);}
function ebErrorToString(pHideMore)
{var h=this.getMessage();if(this.innerError)
h+="->>"+this.innerError.toString(true);if(pHideMore!=true)
{h+="\n <Browser: "+this.browser+">";h+="\n <Page Location: "+this.location+">";}
return h;}
function ebErrorGetMessage()
{var ty="ERROR";switch(this.type)
{case 1:{ty="WARNING";break;}
case 2:{ty="INFO";break;}}
return"["+ty+": "+this.source+"."+this.command+"] "+this.desciption+" @"+this.date;}
function EbayErrorManager()
{if(!this.objType)
this.objType="EbayErrorManager";this.isDebug=false;this.errors=new Array;this.debugWin=new EbayHTMLPopup(this,"debugWin");function convertErrorTo(pErrors,pIsHTML)
{var h="",sBr="\n";if(pIsHTML)
{sBr="<br>";}
for(var i=0;i<pErrors.length;i++)
{var sFS="",sFE="";if(pIsHTML)
{if(pErrors[i].type==0)
{sFS="<font color=red>";sFE="</font>";}
else if(pErrors[i].type==2)
{sFS="<font color=green>";sFE="</font>";}}
h+=((i==0)?"":sBr)+(i+1)+". "+sFS+pErrors[i].toString()+sFE;}
return h;}
this.convertErrorTo=convertErrorTo;this.add=function add(pError)
{this.errors[this.errors.length]=pError;}
this.toString=function toString()
{return this.convertErrorTo(this.errors,false)}
this.toHTML=function toHTML()
{return this.convertErrorTo(this.errors,true)}
this.show=function show()
{if(this.isDebug)
{ebay.oDocument.downgradeDomain();var pUrl="http://pages"+ebay.oGlobals.oEnvironment.sCountryDomain;pUrl+="js_debug/debugger.html?downgradeDomain=true";this.debugWin.showEx(pUrl,800,500,false,false,true,true,true,true,400,25);}}}
var _ebayErrorManager=null;if(location.search.toLowerCase().indexOf("invokejsdebug=true")>-1)
{if(!_ebayErrorManager)
_ebayErrorManager=new EbayErrorManager();_ebayErrorManager.isDebug=true;}
function _ebayErrorHandler(eMsg,eUrl,eLine)
{eMsg=eMsg||"Unknown JS error occured";eUrl=eUrl||location.href;eLine=eLine||0;var eO=new EbayError(0,eMsg+" (Line: "+eLine+")",null,"Script","Unknown");eO.location=eUrl;_ebayErrorManager.show();return true;}
function _ebayTurnOnErrorHandler(pCustomEvent)
{if(location.search.toLowerCase().indexOf("invokejsdebugger=true")>-1)
return;window.onerror=(pCustomEvent)?pCustomEvent:_ebayErrorHandler;}
if(!location.host.has(".qa.")&&!location.host.has(".corp.ebay.com"))
_ebayTurnOnErrorHandler();

// \include\lib\_global\ebay.js@@\main\5 

function Ebay(pName)
{if(!this.objType)
this.objType="Ebay";var parent=(window.opener&&location.search.has("downgradeDomain=true"))?window.opener.g_ebPopupParent:null;this.base=EbayBaseControl;this.base(parent,pName);this.oGlobals=this.oDocument=null;this.init=function()
{this.oDocument=new EbayDOM(this,"Document object");this.oGlobals=new EbayGlobals(this,"Global objects");}
this.init();if(typeof(ebayGetErrors)=="function")
this.getErrors=ebayGetErrors;}
window.ebay=new Ebay("ebay JS Container");

// \include\lib\us\_global\ebayLocals.js@@\main\1 

function ebEnvironmentSetLocals()
{this.bCountryDoubleByte=false;this.sCountryDomain=".ebay.com/";this.sCountry="us";this.sCountryDesc="US";}

// \include\lib\_global\ebayPage.js@@\main\2 

function EbayPage(pParent,pName)
{if(!this.objType)
this.objType="EbayPage";this.base=EbayBaseControl;this.base(pParent,pName);this.oConfig=new EbayConfig(pName);this.onBeforeLoad=null;this.onAfterLoad=null;this.onBeforeUnload=null;this.onAfterUnload=null;with(this)
{var e1=parent._getEvent("load");_registerListener(e1,EVENT_BEFORE,"onBeforeLoad");_registerListener(e1,EVENT_AFTER,"onAfterLoad");var e2=parent._getEvent("unload");_registerListener(e2,EVENT_BEFORE,"onBeforeUnload");_registerListener(e2,EVENT_AFTER,"onAfterUnload");}}
ebay.oDocument.oPage=new EbayPage(ebay.oDocument,"page");

// \include\lib\_global\_ui\_base\base.js@@\main\8 

function EbayHTML(pParent,pName,pElemName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTML";this.base=EbayBaseControl;this.base(pParent,pName);this.sElemName=pElemName;this.bDisabled=pDisabled||false;this.eElem=null;this.aBindEvents=new Array;this.oConfig=pCfg||null;this.getDocElem=ebHTMLGetDocumentElement;this.getElem=ebHTMLGetElem;this.bind=ebHTMLBind;this.bindHTML=ebHTMLBindHTML;this.bindEvents=ebHTMLBindEvents;this.bindEventString=ebHTMLBindEventsString;this.enable=ebHTMLEnable;this.show=ebHTMLShow;this.focus=ebHTMLFocus;this.left=ebHTMLLeft;this.top=ebHTMLTop;this.width=ebHTMLWidth;this.height=ebHTMLHeight;this.onBeforeUnload=ebHTMLOnBeforeUnload;this.subscribeEvents=ebHTMLSubscribeEvents;with(this)
{_registerListener(oDocument._getEvent("bind"),EVENT_AFTER,"bind");_registerListener(oDocument._getEvent("unload"),EVENT_BEFORE,"onBeforeUnload");}}
function ebHTMLSubscribeEvents()
{var aA=arguments;for(var i=0;i<aA.length;i++)
{if(typeof(aA[i])=="string")
this.aBindEvents[this.aBindEvents.length]=aA[i].toLowerCase();}}
function ebHTMLOnBeforeUnload()
{var e=this.eElem;if(e&&e.jsObj)
e.jsObj=null;}
function ebHTMLGetDocumentElement(pName,pColl)
{var c=eval("this.oDocument.doc."+pColl);return c?c[pName]:null;}
function ebHTMLGetElem(pName)
{return this.oDocument.getFormElem(pName);}
function ebHTMLBind()
{with(this)
{bindHTML();bindEvents();}}
function ebHTMLBindHTML()
{with(this)
{eElem=getElem(sElemName);if(eElem)
eElem.jsObj=this;if(bDisabled)
this.enable(false);}}
function ebHTMLBindEvents()
{with(this)
{if(!eElem)
return;var e=aBindEvents,len=e.length,fStr;for(var i=0;i<len;i++)
{eval("eElem."+e[i]+" = new Function( this.bindEventString(e[i]) )");}}}
function ebHTMLBindEventsString(pEventId)
{var s="if (this.jsObj)";s+="{";s+=" with (this.jsObj)";s+=" {";s+="  if (bDisabled)";s+="   return false;";s+="  if (typeof("+pEventId+") == 'function')";s+="   return "+pEventId+"(this);";s+=" }";s+="}";s+="return this.jsObj ? true : false;";return s;}
function ebHTMLEnable(pEnable)
{var v=pEnable?"true":"false",e=this.eElem;if(e)
{e.onfocus=new Function("return "+v+";");e.disabled=!pEnable;}
this.bDisabled=!pEnable;}
function ebHTMLShow(pShow,pNoDisplayChange)
{var e=this.eElem;if(e)
{var s=e.style;var vis="hidden",disp="none";if(s)
{if(pShow)
vis=disp="";s.visibility=vis;if(!pNoDisplayChange)
s.display=disp;}}}
function ebHTMLFocus(pFocus)
{var e=this.eElem;if(e)
{if(pFocus)
e.focus();else
e.blur();}}
function ebHTMLLeft(pLeft)
{var e=this.eElem;if(e)
{if(pLeft)
e.style.posLeft=pLeft;return e.offsetLeft;}}
function ebHTMLTop(pTop)
{var e=this.eElem;if(e)
{if(pTop)
e.style.posTop=pTop;return e.offsetTop;}}
function ebHTMLWidth(pWidth)
{var e=this.eElem;if(e)
{if(pWidth)
e.style.width=pWidth;return e.offsetWidth;}}
function ebHTMLHeight(pHeight)
{var e=this.eElem;if(e)
{if(pHeight)
e.style.height=pHeight;return e.offsetHeight;}}

// \include\lib\_global\_ui\_base\popup.js@@\main\3 

function EbayHTMLPopup(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLPopup";this.base=EbayBaseControl;this.base(pParent,pName);this.oConfig=pCfg||null;this.sUrl="";this.iWidth=this.iHeight=this.iLeft=this.iTop=this.oWin=null;this.bToolbar=this.sLocation=this.bStatus=this.bScrollbars=this.bResizable=this.bMenubar=true;this.sProps=this.sCustomProps="";this.bModal=false;this.sSavedFocusFunction=null;this.iHBuffer=this.iWBuffer=0;this.show=ebHTMLPopupShow;this.showEx=ebHTMLPopupShowEx;this.resizeParent=ebHTMLPopupResizeParent;this.close=ebHTMLPopupClose;this.focus=ebHTMLPopupFocus;this.sizeToContent=ebHTMLPopupSizeToContent;this.onBeforeShow=null;this.onAfterShow=null;}
function ebHTMLPopupShow()
{with(this)
{if(onBeforeShow)
onBeforeShow();if(sUrl.length==0)
return null;var sP=(iWidth!=null)?",width="+iWidth:"";sP+=(iHeight!=null)?",height="+iHeight:"";sP+=(iLeft!=null)?",screenX="+iLeft+",left="+iLeft:"";sP+=(iTop!=null)?",screenY="+iTop+",top="+iTop:"";sP+=",toolbar="+((bToolbar)?"1":"0");sP+=",location="+((sLocation)?"1":"0");sP+=",status="+((bStatus)?"1":"0");sP+=",scrollbars="+((bScrollbars)?"1":"0");sP+=",resizable="+((bResizable)?"1":"0");sP+=",menubar="+((bMenubar)?"1":"0");sP+=(sCustomProps.length>0)?","+sCustomProps:"";if(sP.length>0)
sP=sP.substring(1);sProps=sP;var tWin=this.oDocument.win;tWin.g_ebPopupParent=this;if(bModal)
{tWin.g_ebPopupObject=this;sSavedFocusFunction=tWin.onfocus;tWin.onfocus=function(){g_ebPopupObject.focus();}}
var w=tWin.open(sUrl,name,sP);if(w)
w.focus();oWin=w;if(onAfterShow)
onAfterShow();return w;}}
function ebHTMLPopupShowEx(pUrl,pWidth,pHeight,pToolbar,pLocation,pStatus,pScrollbars,pResizable,pMenubar,pLeft,pTop,pCustomsProps,pModal,pWBuffer,pHBuffer)
{with(this)
{if(pUrl)
sUrl=pUrl;iWidth=pWidth;iHeight=pHeight;iLeft=pLeft;iTop=pTop;bToolbar=pToolbar;sLocation=pLocation;bStatus=pStatus;bScrollbars=pScrollbars;bResizable=pResizable;bMenubar=pMenubar;if(pCustomsProps)
sCustomProps=pCustomsProps;bModal=pModal;iHBuffer=pHBuffer;iWBuffer=pWBuffer;return show();}}
function ebHTMLPopupResizeParent(pX,pY,pW,pH)
{var p=this.parent;if(p)
{if(!isNaN(pX)&&!isNaN(pY))
p.moveTo(pX,pY);if(!isNaN(pW)&&!isNaN(pH))
p.resizeTo(pW,pH);}}
function ebHTMLPopupClose()
{with(this)
{if(bModal)
oDocument.win.onfocus=sSavedFocusFunction;oDocument.closeWindow(oWin);}}
function ebHTMLPopupFocus()
{var w=this.oWin;if(w&&!w.closed)
w.focus();else
this.close();}
function ebHTMLPopupSizeToContent()
{with(this)
{var c=oGlobals.oClient;if(!(c.bNav&&(c.iVer<5)))
{var ims=oWin.document.images,len=ims.length;var bottom=0,right=0,cB,cR;for(var i=0;i<len;i++)
{cB=ims[i].offsetTop+ims[i].offsetHeight;cR=ims[i].offsetLeft+ims[i].offsetWidth;if(cB>bottom)bottom=cB;if(cR>right)right=cR;}
oWin.resizeTo(right+iWBuffer,bottom+iHBuffer);}}}

// \include\lib\_global\header\common.js@@\main\4 

function EbayHeaderCommon(pParent,pName)
{if(!this.objType)
this.objType="EbayHeaderCommon";this.base=EbayBaseControl;this.base(pParent,pName);var env=this.oGlobals.oEnvironment;this.bNS4=(env.bNav&&(env.iVer<5));this.writeStyleSheet=function(pValue)
{if(typeof(noStandardCSS)!="undefined"){return;}
var s='ebay',env=this.oGlobals.oEnvironment;var usrCnt=env.sThisPageHost.hasAny("forums.","chatboards","answercenter","http://vi.","http://ivi.")?true:false;var ieBackCompat=false;if(document.compatMode&&document.compatMode!="BackCompat")
ieBackCompat=true;if((typeof(nodefaultcss)!="undefined")||usrCnt)
{s+='-nodefault';}
if(this.oGlobals.oClient.bNav||this.oGlobals.oClient.bFirefox||(ieBackCompat&&usrCnt))
s+='-ns';this.oDocument.write('<link rel="stylesheet" type="text/css" href="'+includeHost+'aw/pics/css/'+s+'.css"/>');}}
new EbayHeaderCommon(ebay.oDocument,"headerCommon");

// \include\js\downgradedomain.js@@\main\1 

with(window)
{var dd=document.domain,i=dd.indexOf(".ebay.");if(i!=-1)
document.domain=new String(dd).substr(i+1);}
//-->