//<!--
//1@@m7

function EbayHTMLAnchor(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLAnchor";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.getElem=ebHTMLAnchorGetElem;this.enableBase=this.enable;this.enable=ebHTMLAnchorEnable;this.subscribeEvents("onclick");}
function ebHTMLAnchorGetElem(pName)
{var d=this.oDocument.doc,l=null;l=d.links[pName];if(l)return l;if(d.getElementById)
l=d.getElementById(pName);if(l)return l;if(d.all)
l=d.all[pName];if(l)return l;if(d.layers)
{var lyrs=d.layers;var len=lyrs.length;for(var i=0;i<len;i++)
{l=this.getElem(lyrs[i].document,pName);if(l)
return l;}}
for(var j=0;j<d.links.length;j++)
{l=d.links[j];if(typeof(l.name)=="undefined")
{if(l.onclick)
{var oc=l.onclick.toString();if(oc.indexOf("{#"+pName+"#}")!=-1)
return l;}}
else
{if(l.name==pName)
return l;}
l=null;}
return l;}
function ebHTMLAnchorEnable(pEnable)
{var cur=(pEnable)?"hand":"default";var el=this.eElem;if(el&&el.style)
el.style.cursor=cur;this.enableBase(pEnable);}
function setEbayLink(pS)
{return true;}

//2@@m2

function EbayMenuPopup(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayMenuPopup";if(typeof pCfg=='undefined')
pCfg=new EBayMenuPopupConfig('default_menupopup_cfg');this.base=EbayHTML;this.base(pParent,pName,pCfg.sPopupMenuDivId,pDisabled,pCfg);this.BOTTOM_RIGHT='bottom_right';this.BOTTOM_LEFT='bottom_left';this.TOP_RIGHT='top_right';this.TOP_LEFT='top_left';this.menuItems=new Array;this.xMousePos=0;this.yMousePos=0;this.xMousePosMax=0;this.yMousePosMax=0;this.getElem=function()
{var doc=this.oDocument.doc;if(doc.all)
return doc.all(this.sElemName);else if(doc.getElementById)
return doc.getElementById(this.sElemName);else
return false;}
this.display=function()
{var c=this.oConfig;var sItemStyle='font-size: '+c.sItemFontSize+'; background-color: '+c.sItemBgColor+'; width: '+c.iWidth+'px';var sHtml='<table border="0" cellpadding="0" cellspacing="0" style="background-color: '+c.sBgColor+';">'+'<tr><td align="center" valign="middle"><table>';for(var i=0;i<this.menuItems.length;i++)
{sHtml+='<tr><td style="'+sItemStyle+';"';if(i>0)
sHtml+=' colspan="2">';else
sHtml+='>';sHtml+=this.menuItems[i];sHtml+='</td>';if(i==0)
sHtml+='<td><img src="'+this.oConfig.sCloseBtnUrl+'" align="absmiddle" border="0" onclick="ebay.oDocument._getControl(\''+this.name+'\')._exec(\'hide\');"/></td>';sHtml+='</tr>';}
sHtml+='</table></td></tr></table>';if(document.all){var left=event.clientX+document.body.scrollLeft+10;var top=event.clientY+document.body.scrollTop-10;}
else if(document.getElementById){var oParentElem=document.getElementById(this.parent.name);var left=oParentElem.offsetLeft+oParentElem.offsetWidth;var top=oParentElem.offsetTop;while(oParentElem.offsetParent){oParentElem=oParentElem.offsetParent;left+=oParentElem.offsetLeft;top+=oParentElem.offsetTop;}}
var sDisplay=c.sDisplayPosition;if(sDisplay==this.BOTTOM_RIGHT)
this.displayBottomRight(sHtml,left,top);else if(sDisplay==this.TOP_RIGHT)
this.displayTopRight(sHtml,left,top);else if(sDisplay==this.TOP_LEFT)
this.displayTopLeft(sHtml,left,top);else
this.displayBottomLeft(sHtml,left,top);this.timeoutMenuPopup();}
this.hide=function()
{var elem=this.getElem();if(elem)
elem.style.display='none';}
this.addItem=function(strItemValue)
{this.menuItems[this.menuItems.length]=strItemValue;}
this.timeoutMenuPopup=function()
{var elem=this.getElem();var boxX=parseFloat(elem.offsetLeft);var boxY=parseFloat(elem.offsetTop);var boxW=parseFloat(elem.offsetWidth);var boxH=parseFloat(elem.offsetHeight);if(xMousePos>boxX&&xMousePos<(boxX+boxW)&&yMousePos>boxY&&yMousePos<(boxY+boxH))
setTimeout('ebay.oDocument._getControl("'+this.name+'")._exec("timeoutMenuPopup");',1000);else
this.hide();}
this.displayBottomLeft=function(sHtml,left,top)
{var oElem=this.getElem();oElem.innerHTML=sHtml;oElem.style.left=(left-this.oConfig.iWidth)+'px';oElem.style.top=top+'px';oElem.style.display="block";}
this.displayBottomRight=function(sHtml,left,top)
{var oElem=this.getElem();oElem.innerHTML=sHtml;oElem.style.display="block";}
this.displayTopRight=function(sHtml,left,top)
{}
this.displayTopLeft=function(sHtml,left,top)
{}
this.initMenuDiv=function()
{var oElem=this.getElem();var c=this.oConfig;oElem.style.backgroundcolor=c.sBgColor;oElem.style.width=c.iWidth+'px';oElem.style.border=c.iBorderWidth+'px '+c.sBorderStyle+' '+c.sBorderColor;oElem.style.display=c.sDisplay;oElem.style.position=c.sPosition;}
this.initMenuDiv();var tmpOnMouseMoveEvt=document.onmousemove;function onAfterMouseMove(event)
{var e=event||window.event;if(document.layers){xMousePos=e.pageX;yMousePos=e.pageY;xMousePosMax=window.innerWidth+window.pageXOffset;yMousePosMax=window.innerHeight+window.pageYOffset;}else if(document.all){xMousePos=window.event.x+document.body.scrollLeft;yMousePos=window.event.y+document.body.scrollTop;xMousePosMax=document.body.clientWidth+document.body.scrollLeft;yMousePosMax=document.body.clientHeight+document.body.scrollTop;}else if(document.getElementById){xMousePos=e.pageX;yMousePos=e.pageY;xMousePosMax=window.innerWidth+window.pageXOffset;yMousePosMax=window.innerHeight+window.pageYOffset;}
if(tmpOnMouseMoveEvt)
tmpOnMouseMoveEvt();}
if(document.all)
document.onmousemove=onAfterMouseMove;else
{window.captureEvents(Event.MOUSEMOVE);window.onmousemove=onAfterMouseMove}}
function EBayMenuPopupConfig(name)
{if(!this.objType)
this.objType="EBayMenuPopupConfig";this.base=EbayConfig;this.base(name);this.sCloseBtnUrl='http://pics.qa.ebaystatic.com/aw/pics/myebay/btnMnuCls_13x12.gif';this.sBgColor='#ffffff';this.iWidth=150;this.iBorderWidth='1';this.sBorderStyle='solid';this.sBorderColor='#cccccc';this.sDisplay='none';this.sPosition='absolute';this.aPopupMenus=new Array;this.sPopupMenuDivId='';this.sDisplayPosition='bottom_left';this.sItemFontSize='x-small';this.sItemBgColor='#e2e7fe';}

//3@@m1

ebay.oDocument.oPage.onBeforeLoad=function()
{var c=ebay.oDocument.getConfig('ActionMenuConfig');if(typeof c!='undefined')
{for(var i=0;i<c.aPopupMenus.length;i++)
{var objMenuValues=c.aPopupMenus[i];var objLink=new EbayHTMLAnchor(ebay.oDocument,objMenuValues[0],false,null);var objMenu=new EbayMenuPopup(objLink,objMenuValues[0]+'_menu',false,c);for(var j=1;j<objMenuValues.length;j++)
{objMenu.addItem(objMenuValues[j]);}
objLink.PopupMenu=objMenu;objLink.onclick=function()
{this.PopupMenu.display();return false;}}}}
function ebAddActionMenuItemCfg()
{var c=ebay.oDocument.getConfig('ActionMenuConfig');var a=arguments;c.aPopupMenus[c.aPopupMenus.length]=a;}
// b=1742912 -->
