var padding=document.createElement("div");
padding.style.height="200px";
padding.style.width="100%";
document.getElementsByTagName("body")[0].appendChild(padding);
var bnz={
pzt:null,
hover:false,
tmr:null,
opacity:1,
ftmr:null,
target:null,
tg:function(e){return document.getElementsByTagName(e)},
de:function(e){return document.getElementById(e)},
init:function(){
if(document.getElementsByTagName("body")[0].addEventListener){
document.getElementsByTagName("body")[0].addEventListener("mousemove", function(e){if(e) t=e.target; else t=event.srcElement; if((t && t.className!='regbox') && bnz.hover) {bnz.hover=false; bnz.tmr=setTimeout("bnz.image()",300);}}, false);
}
else
{
document.attachEvent("onmousemove", function(e){var t=event.srcElement; if((t && t.className!='regbox') && bnz.hover) {bnz.hover=false; bnz.tmr=setTimeout("bnz.image()",300);}});
}
this.pzt=document.createElement("div");
this.tg('body')[0].appendChild(this.pzt);
this.pzt.style.position='fixed';
this.pzt.style.bottom='0px';
this.pzt.style.right='0px';
this.pzt.className='regbox';
this.pzt.style.height="169px";
this.pzt.innerHTML="
";
this.pzt.getElementsByTagName("div")[0].style.display='none';
this.pzt.onmouseover=bnz.fill;
var tags=this.pzt.getElementsByTagName('*');
for(i=0;i0.1){
this.ftmr=setTimeout("bnz.fadeout()",40);
}
else
{
if(this.target=="form") this.form();
else this.imageshow();
this.ftmr=setTimeout("bnz.fadein()",40);
}
this.pzt.style.opacity=this.opacity;
},
fadein:function(){
this.opacity=this.opacity*3.333;
if(this.opacity<0.9){
this.ftmr=setTimeout("bnz.fadein()",40);
}
else
{
this.opacity=1;
}
this.pzt.style.opacity=this.opacity;
},
send:function(){
if(document.getElementById('compemail').value.indexOf('@')==-1){
alert("Please enter an email address");
document.getElementById('compemail').parentNode.style.border='2px solid red';
bnz.fill();
}
else
{
var url='http://ecom.armourhome.co.uk/register/log.php?site=QTV&email='+escape(document.getElementById('compemail').value)+'&location='+escape(window.location);
req = false;
// branch for native XMLHttpRequest object
if(window.XMLHttpRequest) {
try {
req = new XMLHttpRequest();
} catch(e) {
req = false;
}
// branch for IE/Windows ActiveX version
} else if(window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
req = false;
}
}
}
if(req) {
var img=new Image();
img.src=url;
//req.open("GET", url, true);
//req.send("");
}
this.pzt.parentNode.removeChild(this.pzt);
alert("Thank you for your entry");
}
}
}
bnz.init()