(function(){ if(window.innerWidth>900){ document.addEventListener("DOMContentLoaded", function(){ var intbanner=document.createElement("div"); var closebutton=document.createElement("div"); var img=document.createElement("img"); img.src="/themes/goldringv1/images/goldringbanner.png"; img.style.cursor="pointer"; intbanner.appendChild(img); closebutton.innerHTML="X"; intbanner.appendChild(closebutton); closebutton.style.position="absolute"; closebutton.style.right="5px"; closebutton.style.top="5px"; closebutton.style.color="#fff"; closebutton.style.width="20px"; closebutton.style.height="20px"; closebutton.style.border="1px solid #fff"; closebutton.style.textAlign="center"; closebutton.style.fontWeight="bold"; closebutton.style.cursor="pointer"; intbanner.style.position="fixed"; intbanner.style.bottom="0px"; intbanner.style.width="640px"; intbanner.style.height="96px"; intbanner.style.overflow="hidden"; intbanner.style.left="50%"; intbanner.style.marginLeft="-320px"; intbanner.style.border="1px solid #ccc"; intbanner.style.zIndex="9999"; document.body.appendChild(intbanner); img.onclick=function(){ window.location="http://www.goldring.co.uk/contact.htm?type=int"; }; closebutton.onclick=function(){ intbanner.style.display="none"; }; window.addEventListener("resize",function(){ if(window.innerWidth<900){ intbanner.style.display="none"; } },false); }); } })()