
vjo.ctype("vjo.darwin.core.utils.WindowUtils").props({eventTop:function(ev){var t=this,de=document.documentElement,db=document.body;if(ev.pageY!=null){return ev.pageY;}
if(de){return ev.clientY+Math.max(de.scrollTop,db.scrollTop);}else{return ev.clientY+db.scrollTop;}},eventLeft:function(ev){var t=this,de=document.documentElement,db=document.body;if(ev.pageX!=null){return ev.pageX;}
if(de){return ev.clientX+Math.max(de.scrollLeft,db.scrollLeft);}else{return ev.clientX+db.scrollLeft;}},offsetTop:function(e){var d=document.documentElement,c=(d&&d.clientTop)?d.clientTop:0;for(var o=0;(e!=null);e=e.offsetParent){o+=e.offsetTop;}
return o+c;}}).endType();
vjo.ctype("vjo.dsf.window.utils.VjWindowUtils").props({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;},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;},getScrollXY:function(){var _7=0,scrOfY=0;if(typeof(window.pageYOffset)=="number"){scrOfY=window.pageYOffset;_7=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;_7=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;_7=document.documentElement.scrollLeft;}}}
return[_7,scrOfY];},toPixels:function(_8){return _8+"px";},scrollTop:function(){if(window.pageYOffset!=null){return window.pageYOffset;}
if(document.documentElement){return Math.max(document.documentElement.scrollTop,document.body.scrollTop);}else{return document.body.scrollTop;}},scrollLeft:function(){if(window.pageXOffset!=null){return window.pageXOffset;}
if(document.documentElement){return Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);}else{return document.body.scrollLeft;}},scrollWidth:function(){if(document.documentElement){return document.documentElement.scrollWidth;}else{return Math.max(document.body.scrollWidth,document.body.offsetWidth);}},scrollHeight:function(){if(document.documentElement){return document.documentElement.scrollHeight;}else{return Math.max(document.body.scrollHeight,document.body.offsetHeight);}},clientTop:function(){if(document.documentElement){return document.documentElement.clientTop;}else{return document.body.clientTop;}},clientLeft:function(){if(document.documentElement){return document.documentElement.clientLeft;}else{return document.body.clientLeft;}},clientWidth:function(){var _9=document.documentElement;if(_9&&window.innerWidth){return Math.min(_9.clientWidth,window.innerWidth);}else{if(_9&&_9.clientWidth){return _9.clientWidth;}else{if(window.innerWidth){return window.innerWidth;}else{if(document.body.clientWidth){return document.body.clientWidth;}else{return document.body.offsetWidth;}}}}},clientHeight:function(){var _a=document.documentElement;if(_a&&window.innerHeight){return Math.min(_a.clientHeight,window.innerHeight);}else{if(_a&&_a.clientHeight){return _a.clientHeight;}else{if(window.innerHeight){return window.innerHeight;}else{if(document.body.clientHeight){return document.body.clientHeight;}else{return document.body.offsetHeight;}}}}},browserTop:function(){return(window.innerHeight)?window.screenY+(window.outerHeight-window.innerHeight):window.screenTop;},browserLeft:function(){return(window.innerWidth)?window.screenX+(window.outerWidth-window.innerWidth):window.screenLeft;},eventTop:function(_b){if(_b.pageY!=null){return _b.pageY;}
if(document.documentElement){return _b.clientY+Math.max(document.documentElement.scrollTop,document.body.scrollTop);}else{return _b.clientY+document.body.scrollTop;}},eventLeft:function(_c){if(_c.pageX!=null){return _c.pageX;}
if(document.documentElement){return _c.clientX+Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);}else{return _c.clientX+document.body.scrollLeft;}},offsetTop:function(_d){var _e=(document.documentElement&&document.documentElement.clientTop)?document.documentElement.clientTop:0;for(var _f=0;(_d!=null);_d=_d.offsetParent){_f+=_d.offsetTop;}
return _f+_e;},offsetLeft:function(_10){var _11=(document.documentElement&&document.documentElement.clientLeft)?document.documentElement.clientLeft:0;for(var _12=0;(_10!=null);_10=_10.offsetParent){_12+=_10.offsetLeft;}
return _12+_11;},openWindow:function(url,_14,_15){var _16=new Array();var _17=vjo.dsf.window.utils.VjWindowUtils;_15.top=_17.browserTop()+Math.round((_17.clientHeight()-_15.height)/2)+25;_15.left=_17.browserLeft()+Math.round((_17.clientWidth()-_15.width)/2);for(var key in _15){_16.push(key.concat("=",_15[key]));}
return window.open(url,_14,_16.join(","),true);}}).endType();
vjo.ctype("vjo.ebay.ebox.bizmo.researchproductfinder.ResearchProductFinder").needs("vjo.dsf.Element","E").needs("vjo.dsf.EventDispatcher","ed").needs("vjo.dsf.utils.Handlers","vh").needs("vjo.dsf.ServiceEngine","S").needs("vjo.darwin.core.utils.WindowUtils","cwu").needs("vjo.dsf.window.utils.VjWindowUtils","wu").protos({constructs:function(_1){this.makemodelarray=_1;},loadModels:function(id){var _3=document.getElementById("make").value;var _4=document.getElementById(id);if(_3=="Any"){this.disableObj(_4);}else{eval("sOptions ="+this.makemodelarray);var _5=sOptions[_3];var _6=_5.split("^");var _7=_6.length;while(_4.options.length){_4.options[0]=null;}
_4.options[0]=new Option("Any","");for(var i=0;i<_7;i++){var _9=_6[i];if(_9!=""){if(_9=="Other"){_4.options[_4.length]=new Option("Other","!");}else{option=new Option(_9,_9);_4.options[_4.length]=option;}}}
_4.disabled=false;document.getElementById("model_label").className="model_active";}
return false;},disableObj:function(_a){var _b="Any";while(_a.options.length){_a.options[0]=null;}
option=new Option(_b,"");_a.options[_a.length]=option;_a.disabled=true;document.getElementById("model_label").className="model_passive";},searchClick:function(){var _c=document.advanced_search.action;var _d="?";for(i=0;i<document.advanced_search.elements.length;i++){var _e=document.advanced_search.elements[i].name;var _f=document.advanced_search.elements[i].value;if((_e=="pageId")||(_e=="moduleId")){continue;}
if(_e!="Make"||_f!="Any"){_d+=_e+"=";if(_e=="Make"||(_e=="Model"&&_f!="!")){_d+=this.escapeValue(this.escapeValue(_f))+"&";}else{_d+=_f+"&";}}}
var url=_c+_d+"_trksid=p"+document.advanced_search.pageId.value+".m"+document.advanced_search.moduleId.value;window.location=url;},escapeValue:function(_11){var _12=_11;if(typeof(_12)=="undefined"){return"";}
_12=escape(_12);if(_12.indexOf("-")>0){_12=_12.replace(new RegExp("[-]","g"),"%2D");}
if(_12.indexOf("/")>0){_12=_12.replace(new RegExp("[/]","g"),"%2F");}
return _12;}}).endType();
// en_US/1/MotorsAppSpec_research_111559729_3_en_US
// b=11559729
