var js={
head:function(){
var num=document.getElementById("num");
if(num!==null){
var one=num.getElementsByTagName("a")[0],two=num.getElementsByTagName("a")[1];
js.addEvent(one,"mouseover",js.pop1,false);
js.addEvent(two,"mouseover",js.pop2,false);
js.addEvent(one,"mouseout",js.back1,false);
js.addEvent(two,"mouseout",js.back2,false);
}
},
addEvent:function(ele,ty,fun,capt){
if(!ele){return;}
if(ele.addEventListener){
ele.addEventListener(ty,fun,capt);
return true;
}else if(ele.attachEvent){
var r=ele.attachEvent('on'+ty,fun);
return r;
}else{ele['on',ty]=fun;}
},
pop1:function(){
document.getElementById("qr").setAttribute("id","qr2");
document.getElementById("qr2").innerHTML="<img src='img/qr.png' alt='' />";
},
pop2:function(){
document.getElementById("hov").setAttribute("id","hov2");
document.getElementById("hov2").innerHTML="<h3>What is a Quick Response (QR) code?</h3><p><b>A QR Code is a way of getting all of our contact information sent straight to your mobile phone by scanning our special barcode</b>.</p><p><b>Simply click or hover over the link above</b> and if your phone is capable of reading QR codes scan the barcode with your phone and you will have all our contact information sent straight to your phone, then just save it and it's ready for use at a later time.</p><p>Most new smart phones are equipped with a QR reader or you can download them for free from your apps section by simply searching for <i>QR reader</i>.</p><p><b>For more information please follow this link</b></p>";
},
back1:function(){document.getElementById("qr2").setAttribute("id","qr");},
back2:function(){document.getElementById("hov2").setAttribute("id","hov");},
};
js.addEvent(window,"load",js.head,false);
