//<!--
//1@@m1

String.prototype.hasAllInArray=function(pArray)
{var l=pArray.length;for(var i=0;i<l;i++)
{if(!this.hasArg(pArray[i]))
return false;}
return true;}

//2@@m11

function EbayBACException(pParent,pString,pFullString)
{if(!this.objType)
this.objType="EbayBACException";this.base=EbayObject;this.base(pParent,"BAC Exception");this.sString=pString;this.sFullString=pFullString;}
function EbayBlockActiveContent(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayBlockActiveContent";this.base=EbayBaseControl;this.base(pParent,pName);this.sDocWrite='';this.aExceptions=[];this.iVersion=0;this.oConfig=pCfg||null;this.aAllowed=pCfg.aCustomStrings||["blockActiveContent","EbayBlockActiveContent","open\\s*\\(","createPopup\\s*\\(","ookie\\s*\\(","\\.\\s*cookie","\\.\\s*location\\s*[=.]","replace\\s*\\(","onerror","<iframe","<ilayer","<frameset","eval\\s*\\(","standardWrite","standardCreateElement","writePersonalHeader"];var ih=ebay.oGlobals.oEnvironment.sIncludeHost;this.aAllowedTags=pCfg.aTags||[["script","src",ih],["base","href"],["meta","refresh"],["frame","src",ih]];this.aAllowedElements=pCfg.aElements||["frame","script","layer"];this.addException=function(pStr,pFullString)
{with(this)
aExceptions[aExceptions.length]=new EbayBACException(this,pStr,pFullString);}
this.hasBlockedString=function(pStr)
{var b=this.aAllowed,len=b.length,rv=false,re;pStr=pStr.toLowerCase();for(var i=0;i<len&&!rv;i++)
{re=new RegExp(b[i].toLowerCase());rv=re.test(pStr);}
return rv;}
this.checkTagAndAttribute=function(pStr,pData)
{var tagRegExp=new RegExp("<"+pData[0]+"\\s");var attrRegExp=new RegExp("\\s*"+pData[1]+"\\s*="),attrInd;var str=tstr=pStr,tagInd=str.search(tagRegExp),exInd,qInd,bInd,rv=false;while(tagInd>-1)
{str=str.substr(tagInd+1);attrInd=str.search(attrRegExp);exInd=pData[2]?str.indexOf(pData[2],attrInd):-1;bInd=str.indexOf('>');if(attrInd>bInd)
{qInd=tstr.indexOf('\"');while((attrInd>bInd)&&(bInd!=-1)&&(qInd!=-1)&&(qInd<attrInd))
{tstr=tstr.substr(qInd+1);qInd=tstr.indexOf('\"');bInd=tstr.indexOf('>');}}
if(bInd==-1)
bInd=str.length;tagInd=str.search(tagRegExp);if((attrInd>-1)&&(bInd>attrInd)&&((exInd==-1)||(exInd>bInd)))
{rv=true;tagInd=-1;}}
return rv;}
this.hasTagAndAttribute=function(pStr)
{var ta=this.aAllowedTags;var rv=false,len=ta.length;for(var i=0;i<len&&!rv;i++)
rv=this.checkTagAndAttribute(pStr,ta[i]);return rv;}
this.blockString=function(pStr)
{with(this)
{var s=sDocWrite+pStr;var rv=(hasBlockedString(s)||hasTagAndAttribute(s));if(!rv)
{var a=oConfig.aFixedStrings||["<","<s","<sc","<scr","<scri","<scrip"];for(var i=0;i<a.length;i++)
{if(pStr.toLowerCase()==(a[i]))
return true;}}
sDocWrite+=rv?'':pStr;return rv;}}
this.doDocWrite=function(pStr,pWriteln)
{var ctl=ebay.oDocument._getControl("blockActiveContent");var fdws=ctl.sDocWrite;if(window.event)ctl.addException(pStr);else if(ctl.blockString(pStr))ctl.addException(pStr,fdws+pStr);else if(pWriteln)document.standardWriteln(pStr);else document.standardWrite(pStr);}
document.standardWrite=document.write;this.documentWrite=function(pStr)
{ebay.oDocument._getControl("blockActiveContent").doDocWrite(pStr);}
document.standardWriteln=document.writeln;this.documentWriteln=function(pStr)
{ebay.oDocument._getControl("blockActiveContent").doDocWrite(pStr,true);}
document.standardCreateElement=document.createElement;this.createElement=function(pStr)
{var ctl=ebay.oDocument._getControl("blockActiveContent"),b=ctl.aAllowedElements,tmp='pStr.hasAny(';for(var i=0;i<b.length;i++)
tmp+=(i<b.length-1)?'b['+i+'],':'b['+i+']';if(eval(tmp+')'))
ctl.addException(pStr,"document.createElement");else
return document.standardCreateElement(pStr);}}
ebay.oDocument.createBlockActiveContent=function()
{var g=this.parent.oGlobals,cl=g.oClient,e=g.oEnvironment,cfg=ebay.oDocument.getBACConfig(),v=cfg.iBACVersion,path="";if(!(cl.bMac&&cl.bIE))
{var c=new EbayBlockActiveContent(this,"blockActiveContent",cfg);if(typeof(v)!='undefined'&&(v!=c.iVersion))
{path=e.sIncludeDir+"features/block_active_content/filter_"+v+".js";var tag='<sc'+'ript src="'+path+'"> </sc'+'ript>';this.write(tag);}
document.write=c.documentWrite;document.writeln=c.documentWriteln;document.createElement=c.createElement;}
this._registerListener(this._getEvent("load"),this.EVENT_AFTER,"checkBlockActiveContent");}
ebay.oDocument.getBACConfig=function()
{var s="ViewItem.BlockActiveContent";var c=ebay.oDocument.getConfig(s)||new EbayConfig(s);return c;}
ebay.oDocument.checkBlockActiveContent=function()
{var aa=[],ee,ss,ih,ct,oD=this.doc,i,j,k,tt=["div","span"],cfg=this.getBACConfig(),aLayerStrings=cfg.aLayerStrings||[[["href","mailto:"],["position: absolute;","z-index: 1;"]]];for(var j=0;j<tt.length;j++)
{t=tt[j];if(oD.getElementsByTagName)
aa=oD.getElementsByTagName(t);else if(oD.all)
aa=oD.all;for(i=0;i<aa.length;i++)
{ee=aa[i];if(ee.tagName.toLowerCase()==t.toLowerCase())
{ih=ee.innerHTML;if(ih)
{ih=ih.toLowerCase();ct=ee.style.cssText.toLowerCase();for(k=0;k<aLayerStrings.length;k++)
{var a=aLayerStrings[k];if(ih.hasAllInArray(a[0])&&ct.hasAllInArray(a[1]))
{ee.innerHTML='<img src="http://pics.ebaystatic.com/aw/pics/s.gif" id="imgBlockActiveContent">';break;}}}}}}}
ebay.oDocument.createBlockActiveContent();
// b=14327537 -->
