//<!--
// \include\js\finding\packagefiles\pulsevars.js@@\main\2 

var pDARTSite="pulse";var pageName="eBayPulse";

// \include\js\finding\packagefiles\browser.js@@\main\4 

function Browser()
{var agt=navigator.userAgent.toLowerCase();this.majVer=parseInt(navigator.appVersion);this.minVer=parseFloat(navigator.appVersion);this.nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1));this.nav2=(this.nav&&(this.majVer==2));this.nav3=(this.nav&&(this.majVer==3));this.nav4=(this.nav&&(this.majVer==4));this.nav4up=(this.nav&&(this.majVer>=4));this.nav6=(this.nav&&(this.majVer==5));this.nav6up=(this.nav&&(this.majVer>=5));this.ie=((agt.indexOf('msie')!=-1)&&(agt.indexOf('opera')==-1));this.ie3=(this.ie&&(this.majVer<4));this.ie4=(this.ie&&(this.majVer==4)&&(agt.indexOf('msie 4')!=-1));this.ie4up=(this.ie&&(this.majVer>=4));this.ie5=(this.ie&&(this.majVer==4)&&(agt.indexOf('msie 5.0')!=-1));this.ie5_5=(this.ie&&(this.majVer==4)&&(agt.indexOf('msie 5.5')!=-1));this.ie5up=(this.ie&&!this.ie3&&!this.ie4);this.ie5_5up=(this.ie&&!this.ie3&&!this.ie4&&!this.ie5);this.ie6=(this.ie&&(this.majVer==4)&&(agt.indexOf('msie 6.')!=-1));this.ie6up=(this.ie&&!this.ie3&&!this.ie4&&!this.ie5&&!this.ie5_5);this.aol=(agt.indexOf('aol')!=-1);this.aol3=(this.aol&&this.ie3);this.aol4=(this.aol&&this.ie4);this.aol5=(agt.indexOf('aol 5')!=-1);this.aol6=(agt.indexOf('aol 6')!=-1);this.opera=(agt.indexOf('opera')!=-1);this.opera2=(agt.indexOf('opera 2')!=-1||agt.indexOf('opera/2')!=-1);this.opera3=(agt.indexOf('opera 3')!=-1||agt.indexOf('opera/3')!=-1);this.opera4=(agt.indexOf('opera 4')!=-1||agt.indexOf('opera/4')!=-1);this.opera5=(agt.indexOf('opera 5')!=-1||agt.indexOf('opera/5')!=-1);this.opera5up=(this.opera&&!this.opera2&&!this.opera3&&!this.opera4);this.opera6=(agt.indexOf('opera 6')!=-1||agt.indexOf('opera/6')!=-1);this.opera6up=(this.opera5up&&!this.opera5);this.webtv=(agt.indexOf('webtv')!=-1);this.safari=(agt.indexOf('safari')!=-1);this.win=((agt.indexOf('win')!=-1)||(agt.indexOf('16bit')!=-1));this.mac=(agt.indexOf('mac')!=-1);this.isJsEnabled=(this.ie5up||(this.nav4up&&this.minVer>4.7)||this.opera6up||this.safari);this.setJsCookie=EbaySetJsCookie;}
Browser.prototype.getElementById=function(id)
{if(document.getElementById)return document.getElementById(id);else if(document.all)return document.all[id];else if(document.layers)return document.layers[id];else return null;}
function IsNetscape4(){var agt=navigator.userAgent.toLowerCase();var isMajor=parseInt(navigator.appVersion);var isMinor=parseFloat(navigator.appVersion);var isNav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1));var isNav4=(isNav&&(isMajor==4));return isNav4;}
function IsWebTV(){var agt=navigator.userAgent.toLowerCase();return(agt.indexOf('webtv')==-1)?false:true;}
function EbaySetJsCookie(){if(this.isJsEnabled&&typeof EbayCookie=="function"){var x=new EbayCookie("ebay",null,CookieDomain,"/",null,null,true);x.read();var v=x.getCookielet("js");if(v!="1"){x.addCookielet("js",1);x.addCookielet("d","js/1");x.set();}}}
var browserObj=new Browser();browserObj.setJsCookie();var isBorders;

// \include\js\finding\packagefiles\misc.js@@\main\4 

function UpdateCategoryChar(pFormName){var isNav4=(is.nav&is.ver==4)?true:false;if(pFormName==null||pFormName==''){pFormName="find";}
var categories=document.forms[pFormName].elements[SEO.PARENT_CATEGORY].options;categories.selectedIndex=0;if(!isNav4){for(i=0;i<categories.length;i++){var cat=categories[i];if(cat.text.indexOf('>')==0){cat.text="\u2514"+cat.text.substr(1);categories[i]=cat;}}}}
function changeCategory(pFormName){if(pFormName==null||pFormName==''){pFormName="find";}
document.forms[pFormName].onsubmit();}

// \include\js\finding\packagefiles\string.js@@\main\4 

function strLTrim()
{return this.replace(/^\s+/,'');}
function strRTrim()
{return this.replace(/\s+$/,'');}
function strTrim()
{return this.replace(/^\s+/,'').replace(/\s+$/,'');}
String.prototype.lTrim=strLTrim;String.prototype.rTrim=strRTrim;String.prototype.trim=strTrim;
//-->