/**
 *
 * 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://collectingoldmagazines.com/?an_tool_key=item&an_request=';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);}}}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":"120","cats_output":false,"search_box":"0","blank":"0","show_logo":"1","lang":"english","categoryId":"280:64488","SellerID":"things-and-other-stuff","siteid":"0","MaxEntries":"4","sortOrder":"StartTimeNewest"});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/0/user_id/24735/tool_name/item\" rel=\"nofollow\"><img src=\"//assets-auctionnudge.s3.amazonaws.com/feed/item/img/rnoe-166x96.png\" id=\"an-ebay-logo\" width=\"83\" height=\"48\" /></a><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\">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/0/user_id/24735/tool_name/item/item_hash/ice79ie4fc\" rel=\"nofollow\">Lot of 5 Issues 1981 Freshwater and Marine Aquarium FAMA Tropical Fish Magazines</a></div><div class=\"an-wrap\"><div class=\"an-image an-img-size\" style=\"width:120px;height:120px;overflow:hidden\"><div class=\"image-container\" style=\"width:120px;height:120px;max-width:120px;max-height:120px;\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/0/user_id/24735/tool_name/item/item_hash/ice79ie4fc\" rel=\"nofollow\" style=\"width:120px;height:120px;max-width:120px;max-height:120px;\"><img src=\"https://i.ebayimg.com/thumbs/images/g/-hQAAOSwWRhajpDG/s-l140.jpg\" /></a></div></div><div class=\"an-price\"><span class=\"an-amount\">&#36;39.95</span></div><div class=\"an-ends\"><span class=\"an-label\">Time Left:</span><span class=\"an-time\">12d 15h 41m</span></div><div class=\"an-view\"><a href=\"https://www.auctionnudge.com/to_ebay/item/site_id/0/user_id/24735/tool_name/item/item_hash/ice79ie4fc\" rel=\"nofollow\">Buy It Now&raquo;</a></div></div></div>');AN_Item.sp();AN_Item.pl('next',false);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();}}