/**
 *
 * Auction Nudge
 * https://www.auctionnudge.com
 *
 * By Joseph Hawes
 * http://www.josephhawes.co.uk
 *
 */

function AN_Item_JS(){var AN=null;var h=null;var re=null;var rp={};var cid=null;var c=null;var lj=null;var mp=null;this.i=function(eid){AN=this;AN.h=document.getElementsByTagName('head')[0];AN.cid=eid;AN.re='https://www.auctionnudge.com/feed/item/js';AN.l(window,'load',AN.r);}
this.r=function(){if(typeof window.AN_Item_ready=='function'){AN_Item_ready();}}
this.ath=function(html){AN.c=document.getElementById(AN.cid);AN.c.className+=' theme-'+AN.rp.theme;AN.c.innerHTML=html;AN.iw=document.getElementById('an-item-wrap');}
this.srp=function(p){AN.rp=p;}
this.aih=function(html){AN.iw.innerHTML=html;}
this.ce=function(type,attr,content){var e=document.createElement(type);for(key in attr){e.setAttribute(key,attr[key]);}
if(content){if(typeof content=='object'){e.appendChild(content);}else{e.innerHTML=content;}}
return e;}
this.l=function(e,event,callback){switch(event){case'load':if(typeof e.addEventListener!="undefined"){e.addEventListener("load",callback,false);}else if(typeof e.attachEvent!="undefined"){e.attachEvent("onload",callback);}else{if(e.onload!=null){var oo=e.onload;e.onload=function(e){oo(e);e[callback]();};}else{e.onload=callback;}}
break;default:if(typeof e.addEventListener!="undefined"){e.addEventListener(event,callback,false);}else if(typeof e.attachEvent!="undefined"){e.attachEvent('on'+event,callback);}
break;}}
this.aa=function(type,url){var et='';switch(type){case'css':et='link';var attr={'type':'text/css','rel':'stylesheet','href':url};break;case'js':et='script';var attr={'type':'text/javascript','src':url};break;}
AN.h.appendChild(AN.ce(et,attr,''));}
this.ri=function(){AN.sl(true);var request=AN.br();AN.pr(request);}
this.br=function(){AN.rp.action='update';var request=AN.re;for(key in AN.rp){request+='/'+key+'/'+AN.rp[key];}
return request;}
this.pr=function(request){if(AN.lj){AN.h.removeChild(AN.lj);}
var attr={'type':'text/javascript','src':request};var aj=AN.ce('script',attr,'');AN.h.appendChild(aj);AN.lj=aj;}
this.rc=function(){if(typeof window.auction_nudge_loaded=='function'){auction_nudge_loaded();}}
this.uc=function(psp,psn){if(typeof AN.up=='function'){AN.up(psp,psn);}
if(typeof window.an_item_resize=='function'){an_item_resize();}
if(typeof window.auction_nudge_loaded=='function'){auction_nudge_loaded();}}
this.sl=function(loading){if(loading){AN.c.className+=' an-loading';}else{AN.c.className=AN.c.className.replace(/( )?an-loading/g,'');}}
this.sp=function(){AN.c.className+=' an-paged';AN.pt=document.getElementById('an-page-top');AN.ptp=document.getElementById('an-page-top-prev');AN.ptn=document.getElementById('an-page-top-next');AN.pb=document.getElementById('an-page-bot');AN.pbp=document.getElementById('an-page-bot-prev');AN.pbn=document.getElementById('an-page-bot-next');var l=[AN.ptp,AN.ptn,AN.pbp,AN.pbn];for(i in l){AN.l(l[i],'click',function(e){var ele=e||window.event;var tar=ele.target||ele.srcElement;if(tar.className.indexOf('an-inactive')==-1){if(tar.className.indexOf('prev')!=-1){AN.hp('prev');}else{AN.hp('next');}}});}}
this.pl=function(type,active){if(typeof AN.pt==='undefined'){return false;}
if(type=='prev'){var ptl=AN.ptp;var pbl=AN.pbp;}else if(type=='next'){var ptl=AN.ptn;var pbl=AN.pbn;}
ptl.className=ptl.className.replace(/( )?an-inactive/g,'');pbl.className=pbl.className.replace(/( )?an-inactive/g,'');if(!active){ptl.className+=' an-inactive';pbl.className+=' an-inactive';}}
this.hp=function(a){var cp=parseInt(AN.rp.page);switch(a){case'prev':var tp=cp-1;if(cp>1){AN.rp.page=cp-1;}else{return;}
break;case'next':AN.rp.page=cp+1;break;}
if(window.location.hash!='#'+AN.cid||window.location.hash==''){window.location.hash='#'+AN.cid;}else{window.location.hash='#an-ebay-logo';}
AN.ri();}
this.hie=function(){AN.rp.page-=1;AN.mp=AN.rp.page;}
this.up=function(prev,next){AN.pl('prev',prev);AN.pl('next',next);if(AN.mp==AN.rp.page){AN.pl('next',false);}}
this.encode_str=function(str){return encodeURIComponent(str).replace(/[!'()*]/g,function(c){return'%'+c.charCodeAt(0).toString(16);});}
this.ss=function(type){AN.c.className+=' an-search';AN.sb=document.getElementById('an-search-box');AN.sst=document.getElementById('an-search-submit');if(!AN.sb||!AN.sst){return false;}
AN.sb.setAttribute('contentEditable','true');AN.l(AN.sb,'focus',function(e){if(AN.sb.innerHTML=='Search items...'){AN.sb.innerHTML='';}});AN.l(AN.sb,'keypress',function(e){if(e.keyCode==13){AN.hss(AN.sb.innerHTML);e.preventDefault()}});AN.l(AN.sst,'click',function(e){AN.hss(AN.sb.innerHTML);});}
this.hss=function(keyword){if(keyword!=''){keyword=keyword.replace(/<(.|\n)*?>/g,'');AN.rp.keyword=AN.encode_str(keyword);}else{delete AN.rp.keyword;}
AN.rp.page=1;delete AN.mp;AN.ri();}}var AN_Item=new AN_Item_JS();AN_Item.i('auction-nudge-items');function AN_Item_ready(){AN_Item.srp({"action":"init","theme":"responsive","page":"1","img_size":"180","cats_output":false,"search_box":"1","blank":"1","show_logo":"1","lang":"english","SellerID":"narellanspares","siteid":"15","MaxEntries":"4","sortOrder":"StartTimeNewest","keyword":"engine"});if(location.host.indexOf('ebay')!=-1||location.host.indexOf('paypal')!=-1){AN_Item.ath('<p><strong>Auction Nudge Error</strong><br />Your items can not load because the website hostname contains a disallowed keyword.</p>');}else{AN_Item.ath('<a href=\"https://www.auctionnudge.com/to_ebay/home/site_id/15/user_id/41323/tool_name/item\" rel=\"nofollow\" target=\"_blank\"><img src=\"//assets-auctionnudge.s3.amazonaws.com/feed/item/img/rnoe-166x96.png\" id=\"an-ebay-logo\" width=\"83\" height=\"48\" /></a><div id=\"an-controls-top\"><div id=\"an-search-wrap\"><div id=\"an-search-box\">Search items...</div><div id=\"an-search-submit\">Search</div></div></div><ul id=\"an-page-top\" class=\"an-page-wrap\"><li class=\"an-page-prev an-inactive\" id=\"an-page-top-prev\">« Previous</li><li class=\"an-page-next\" id=\"an-page-top-next\">Next »</li></ul><div id=\"an-item-wrap\"></div><ul id=\"an-page-bot\" class=\"an-page-wrap\"><li class=\"an-page-prev an-inactive\" id=\"an-page-bot-prev\">« Previous</li><li class=\"an-page-next\" id=\"an-page-bot-next\">Next »</li></ul><div><a href=\"https://www.auctionnudge.com/tools/your-ebay-items\" style=\"display:block;font-size:11px;color:#808080;text-decoration:none;font-family:Helvetica,Arial,sans-serif;text-align:center\" target=\"_blank\">eBay Listings from <span style=\"color:#4374b7\">Auction Nudge</span></a></div>');AN_Item.aih('<div class=\"an-item\"><div class=\"an-title\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbegg9oao\" rel=\"nofollow\" target=\"_blank\">GREAT WALL MOTORS STEED 2018 ENGINE COVER 07/16- CR 2.0 DIESEL</a></div><div class=\"an-wrap\"><div class=\"an-image an-img-size\" style=\"width:180px;height:180px;overflow:hidden\"><div class=\"image-container\" style=\"width:180px;height:180px;max-width:180px;max-height:180px;\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbegg9oao\" rel=\"nofollow\" target=\"_blank\" style=\"width:180px;height:180px;max-width:180px;max-height:180px;\"><img src=\"https://i.ebayimg.com/00/s/ODk5WDE1OTk=/z/yM4AAOSwz19gNoAQ/$_1.JPG\" /></a></div></div><div class=\"an-price\"><span class=\"an-amount\">AU &#36;120.00</span></div><div class=\"an-ends\"><span class=\"an-label\">Time Left:</span><span class=\"an-time\">26d 12h 1m</span></div><div class=\"an-view\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbegg9oao\" rel=\"nofollow\" target=\"_blank\">Buy It Now&raquo;</a></div></div></div><div class=\"an-item alt\"><div class=\"an-title\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbegg9o34\" rel=\"nofollow\" target=\"_blank\">FORD RANGER 2020 ENGINE COVER DIESEL, 2.0, YN2S, BI-TURBO, PX SERIES 3, 06/18- </a></div><div class=\"an-wrap\"><div class=\"an-image an-img-size\" style=\"width:180px;height:180px;overflow:hidden\"><div class=\"image-container\" style=\"width:180px;height:180px;max-width:180px;max-height:180px;\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbegg9o34\" rel=\"nofollow\" target=\"_blank\" style=\"width:180px;height:180px;max-width:180px;max-height:180px;\"><img src=\"https://i.ebayimg.com/00/s/ODk5WDE1OTk=/z/P5MAAOSwVx5gNoAE/$_1.JPG\" /></a></div></div><div class=\"an-price\"><span class=\"an-amount\">AU &#36;155.00</span></div><div class=\"an-ends\"><span class=\"an-label\">Time Left:</span><span class=\"an-time\">26d 12h 1m</span></div><div class=\"an-view\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbegg9o34\" rel=\"nofollow\" target=\"_blank\">Buy It Now&raquo;</a></div></div></div><div class=\"an-item\"><div class=\"an-title\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/3676g9g79c\" rel=\"nofollow\" target=\"_blank\">JEEP GRANDCHEROKEE 2000 ENGINE PETROL, 4.7, GREY ROCKER COVER, COIL PACK TYPE, W</a></div><div class=\"an-wrap\"><div class=\"an-image an-img-size\" style=\"width:180px;height:180px;overflow:hidden\"><div class=\"image-container\" style=\"width:180px;height:180px;max-width:180px;max-height:180px;\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/3676g9g79c\" rel=\"nofollow\" target=\"_blank\" style=\"width:180px;height:180px;max-width:180px;max-height:180px;\"><img src=\"https://i.ebayimg.com/00/s/ODk5WDE1OTk=/z/NxkAAOSwE4tgNn~X/$_1.JPG\" /></a></div></div><div class=\"an-price\"><span class=\"an-amount\">AU &#36;3,025.00</span></div><div class=\"an-ends\"><span class=\"an-label\">Time Left:</span><span class=\"an-time\">26d 12h 0m</span></div><div class=\"an-view\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/3676g9g79c\" rel=\"nofollow\" target=\"_blank\">Buy It Now&raquo;</a></div></div></div><div class=\"an-item alt\"><div class=\"an-title\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbdfh3eac\" rel=\"nofollow\" target=\"_blank\">MAZDA CX8 2018 ENGINE COVER KG, 05/18- </a></div><div class=\"an-wrap\"><div class=\"an-image an-img-size\" style=\"width:180px;height:180px;overflow:hidden\"><div class=\"image-container\" style=\"width:180px;height:180px;max-width:180px;max-height:180px;\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbdfh3eac\" rel=\"nofollow\" target=\"_blank\" style=\"width:180px;height:180px;max-width:180px;max-height:180px;\"><img src=\"https://i.ebayimg.com/00/s/ODk5WDE1OTk=/z/IWsAAOSwqNBgNS5A/$_1.JPG\" /></a></div></div><div class=\"an-price\"><span class=\"an-amount\">AU &#36;155.00</span></div><div class=\"an-ends\"><span class=\"an-label\">Time Left:</span><span class=\"an-time\">25d 12h 0m</span></div><div class=\"an-view\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/15/user_id/41323/tool_name/item/item_hash/4dbdfh3eac\" rel=\"nofollow\" target=\"_blank\">Buy It Now&raquo;</a></div></div></div>');AN_Item.sp();AN_Item.pl('next',true);AN_Item.ss();AN_Item.aa('css','//assets-auctionnudge.s3.amazonaws.com/feed/item/css/responsive-080818.gz.css');AN_Item.aa('js','//assets-auctionnudge.s3.amazonaws.com/feed/item/js/responsive-080317.gz.js');AN_Item.rc();}}