/**
 *
 * Auction Nudge
 * https://www.auctionnudge.com
 *
 * By Joe Hawes
 * http://www.morehawes.co.uk
 *
 */

function AN_Profile_JS(){var AN=null;var head=null;var container_id=null;var container=null;this.init=function(eid){AN=this;AN.head=document.getElementsByTagName('head')[0];AN.container_id=eid;AN.listen(window,'load',AN.ready);}
this.ready=function(){if(typeof window.AN_Profile_Ready=='function'){AN_Profile_Ready();}}
this.add_profile_html=function(html){AN.container=document.getElementById(AN.container_id);AN.container.innerHTML=html;}
this.create_element=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.listen=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 old_onload=e.onload;e.onload=function(e){old_onload(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.add_asset=function(type,url){var e_type='';switch(type){case'css':e_type='link';var attr={'type':'text/css','rel':'stylesheet','href':url};break;case'js':e_type='script';var attr={'type':'text/javascript','src':url};break;}
AN.head.appendChild(AN.create_element(e_type,attr,''));}}var AN_Profile=new AN_Profile_JS();AN_Profile.init('auction-nudge-profile');function AN_Profile_Ready(){if(location.host.indexOf('ebay')!=-1||location.host.indexOf('paypal')!=-1){AN_Profile.add_template_html('<p><strong>Auction Nudge Error</strong><br />Your items can not load because the website hostname contains a disallowed keyword.</p>');}else{AN_Profile.add_profile_html('<a rel=\"nofollow\" href=\"https://www.auctionnudge.com/to_ebay/feedback/site_id/0/user_id/24735/tool_name/profile/user_name/things-and-other-stuff\"><ul id=\"profile\"><li class=\"user-id\"><b>User ID</b>: things-and-other-stuff</li><li class=\"feedback-score\"><b>Feedback score</b>: 19403</li><li class=\"feedback-percent\"><b>Positive Feedback</b>: 100.0%</li><li class=\"checked\"><b>Checked</b>: 08/02/2024 @ 10:02:08</li></ul></a>');AN_Profile.add_asset('css','https://assets-auctionnudge.s3.amazonaws.com/feed/profile/css/simple_details-080317.min.css');}}