var slidespeed=3500;
var slideimages=new Array("photo-arialMaps04.gif","photos-fleet3.jpg","banners/niqReports_activity.gif","photo-arialMaps02.gif","photos-theft3.jpg","photos-truck2.jpg","banners/niqReports_risk.gif","photo-arialMaps03.gif","photos-personaltracking-large.jpg","photos-heavy2.jpg","photos-teen2.jpg","photos-police2.jpg","banners/niqReports_speed.gif","photos-lost2.jpg","photo-arialMaps01.gif");
var slidelinks=new Array("naviq.html","fleet/index.html","naviq.html","naviq.html","autotheft.html","trucktracking.html","naviq.html","naviq.html","personaltracking.html","heavyequipment.html","teentracking.html","government.html","naviq.html","trackyourparents.html","naviq.html");
var imageholder=new Array();
var ie55=window.createPopup;
var holdLabel = false;

function initHomeSlider() {
	pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0
	menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : "";
	for (i=0;i<slideimages.length;i++){
		imageholder[i]=new Image()
		imageholder[i].src=slideimages[i]
	}
	slideit();
}

function gotoshow(){
	window.location=slidelinks[whichlink];
	window.onerror=null;
}
var submenu=new Array()

submenu[0]='<span style="color:#fff;font-size:10px;"><b><center>New Birds Eye Imaging feature, now available in our NavIQ software!</center></span></b>'
submenu[1]='<span style="color:#fff;font-size:10px;"><b><center>Find out how our GPS solutions can save a Fleet of 10 vehicles as much as $6000 a month!</center></span></b>'
submenu[2]='<span style="color:#fff;font-size:10px;"><b><center>Create detailed activity report to keep track of your assets!</center></span></b>'
submenu[3]='<span style="color:#fff;font-size:10px;"><b><center>Detailed arial photos now available with our NavIQ software!</center></span></b>'
submenu[4]='<span style="color:#fff;font-size:10px;"><b><center>A Tracking System can make your equipment or vehicle virtually theft proof!</center></span></b>'
submenu[5]='<span style="color:#fff;font-size:10px;"><b><center>Our GPS Fleet Tracking Systems can increase the profitability of your company.</center></span></b>'
submenu[6]='<span style="color:#fff;font-size:10px;"><b><center>Create image-rich reports with our NavIQ software.</center></span></b>'
submenu[7]='<span style="color:#fff;font-size:10px;"><b><center>Detailed imagery available with our NavIQ software.</center></span></b>'
submenu[8]='<span style="color:#fff;font-size:10px;"><b><center>A GPS tracking system can allow you to monitor your vehicles and locate your family.</center></span></b>'
submenu[9]='<span style="color:#fff;font-size:10px;"><b><center>A GPS Anti-theft System can make your heavy construction equipment virtually theft proof!</center></span></b>'
submenu[10]='<span style="color:#fff;font-size:10px;"><b><center>Accountability significantly reduces the odds of your teen being involved in an accident.</center></span></b>'
submenu[11]='<span style="color:#fff;font-size:10px;"><b><center>Small portable tracking devices to track vehicles, people, or any asset.</center></span></b>'
submenu[12]='<span style="color:#fff;font-size:10px;"><b><center>Create detailed reports about the activity of your assets.</center></span></b>'
submenu[13]='<span style="color:#fff;font-size:10px;"><b><center>A GPS unit can allow you to locate parents if lost or in case of emergency.</center></span></b>'
submenu[14]='<span style="color:#fff;font-size:10px;"><b><center>Detailed imagery available with our NavIQ software.</center></span></b>'

var menuobj=null;

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",clear_delayhide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",clear_delayhide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

var whichlink=0
var whichimage=0
var pixeldelay=null;

function slideit(){
	if (!document.images) return;
	if (ie55) document.images.slide.filters[0].apply();
	document.images.slide.src=imageholder[whichimage].src;
	if (ie55) document.images.slide.filters[0].play();
	whichlink=whichimage;
	if (holdLabel == false) showit(whichimage);
	whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0;
	setTimeout("slideit()",slidespeed+pixeldelay);
}

function holdit(bool) {
	holdLabel = bool;
}