
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}

//  #########  popup text 
descarray = new Array(
"<img src=\"imgs/motion_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Motion Sensor</b><br>Detects movement in rooms,<br>hallways and stairs.",
"<img src=\"imgs/smoke_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Smoke Sensor</b><br>An always on smoke sensor that detects CO2<br>smoke and send immediate signal to ADT.",
"<img src=\"imgs/dummy_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>ADT Bell Box</b><br>Warns potential intruders that your<br>home is protected by ADT.",
"<img src=\"imgs/dual_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Dual Tech Sensor</b><br>Detects movement &amp; Microwaves<br>normally installed in kitchens and<br>garages to minimise false alarms.",
"<img src=\"imgs/lights_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Security Lights</b><br>Automatically switches on flood<br>light when movement is detected.",
"<img src=\"imgs/contact_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Door Contact</b><br>Detects when your front door<br>is open or closed.",
"<img src=\"imgs/keypad_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Keypad</b><br>Easy to use keypad with proximity reader so you<br>can swipe your key fob or enter your pin number.",
"<img src=\"imgs/siren_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Internal Siren</b><br>Loud and tamper proof siren with<br>battery back-up if wires are cut.",
"<img src=\"imgs/panel_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Panel</b><br>Galaxy G2 - 12 Zone control panel allows you<br>to have up to 12 sensors connected to your<br>telephone line with emergency battery back-up.",
"<img src=\"imgs/motion_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Motion Sensor</b><br>Detects movement in rooms,<br>hallways and stairs.",
"<img src=\"imgs/panic_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Panic Button</b><br>Send an instant emergency signal to ADT for an<br>immediate response. Can provide police response",
"<img src=\"imgs/vibration_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Vibration Sensor</b><br>Detects tamper vibrations.Can <br>be installed on windows or doors.",
"<img src=\"imgs/sticker_thmb.jpg\" width=\"60\" height=\"57\" align=\"left\"><b>Window Sticker</b><br>Warns potential intruders that your<br>home is protected by ADT."
);

overdiv="0";
//  #########  CREATES POP UP BOXES 
function popLayer(a){
if(!descarray[a]){descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";}
if (navigator.family == "gecko") {pad="0"; bord="1 bordercolor=AE0000";}
else {pad="1"; bord="0";}
desc = 	  "<table cellspacing=0 cellpadding="+pad+" border="+bord+" bgcolor=003366><tr><td>\n"
	+"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=FFFCE8 class=pop>\n"
	+descarray[a]
	+"\n</td></tr></table>\n"
	+"</td></tr></table>";
if(navigator.family =="nn4") {
	document.object1.document.write(desc);
	document.object1.document.close();
	document.object1.left=x+15;
	document.object1.top=y-5;
	}
else if(navigator.family =="ie4"){
	object1.innerHTML=desc;
	object1.style.pixelLeft=x+15;
	object1.style.pixelTop=y-5;
	}
else if(navigator.family =="gecko"){
	document.getElementById("object1").innerHTML=desc;
	document.getElementById("object1").style.left=x+15;
	document.getElementById("object1").style.top=y-5;
	}
}
function hideLayer(){
if (overdiv == "0") {
	if(navigator.family =="nn4") {eval(document.object1.top="-500");}
	else if(navigator.family =="ie4"){object1.innerHTML="";}
	else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
	}
}


function sensorLayer(a){
if(!descarray[a]){descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";}
if (navigator.family == "gecko") {pad="0"; bord="1 bordercolor=AE0000";}
else {pad="1"; bord="0";}
desc = 	  "<table cellspacing=0 cellpadding="+pad+" border="+bord+" bgcolor=CAE4FF><tr><td>\n"
	+"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=FFFFFF class=pop>\n"
	+descarray[a]
	+"\n</td></tr></table>\n"
	+"</td></tr></table>";
if(navigator.family =="nn4") {
	document.object1.document.write(desc);
	document.object1.document.close();
	document.object1.left=x+15;
	document.object1.top=y-5;
	}
else if(navigator.family =="ie4"){
	object1.innerHTML=desc;
	object1.style.pixelLeft=x+15;
	object1.style.pixelTop=y-5;
	}
else if(navigator.family =="gecko"){
	document.getElementById("object1").innerHTML=desc;
	document.getElementById("object1").style.left=x+15;
	document.getElementById("object1").style.top=y-5;
	}
}




//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;
//  End -->