/** (c) 2012-2017 Malte Köhrer / AuctionWidgets.Com */ function addStyles(css){ var head = document.head || document.getElementsByTagName('head')[0]; var style = document.createElement('style'); style.setAttribute('type', 'text/css'); if (style.styleSheet) { /* IE */ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); }; function addEvent(el, eventType, handler) { if (el.addEventListener) { /* DOM Level 2 browsers */ el.addEventListener(eventType, handler, false); } else if (el.attachEvent) { /* IE <= 8 */ el.attachEvent('on' + eventType, handler); } else { /* ancient browsers */ el['on' + eventType] = handler; } }; addEvent(window, 'load', function() { if(location.host.indexOf('paypal')!=-1||location.host.indexOf('ebay')!=-1||location.host.indexOf('half.com')!=-1){ alert('Sorry, eBay TOS do not allow to run this widget on domains that contain "ebay", "paypal" or "half.com" as part of the domain name.'); return false; } var html="