<!--
var officeclosetime=0;
var officepopTimer=0;


var offImgArray = new Array();

offImgArray[0] = new Image(109,33);
offImgArray[1] = new Image(110,33);
offImgArray[2] = new Image(107,33);
offImgArray[3] = new Image(109,33);
offImgArray[4] = new Image(109,33);
offImgArray[5] = new Image(109,33);

offImgArray[0].src="img/wave_off.jpg";
offImgArray[1].src="img/rx_off.jpg";
offImgArray[2].src="img/lighting_off.jpg";
offImgArray[3].src="img/qa_off.jpg";
offImgArray[4].src="img/office_off.jpg";
offImgArray[5].src="img/newsletter_off.jpg";

var onImgArray = new Array();

onImgArray[0] = new Image(109,33);
onImgArray[1] = new Image(110,33);
onImgArray[2] = new Image(107,33);
onImgArray[3] = new Image(109,33);
onImgArray[4] = new Image(109,33);
onImgArray[5] = new Image(109,33);

onImgArray[0].src="img/wave_on.jpg";
onImgArray[1].src="img/rx_on.jpg";
onImgArray[2].src="img/lighting_on.jpg";
onImgArray[3].src="img/qa_on.jpg";
onImgArray[4].src="img/office_on.jpg";
onImgArray[5].src="img/newsletter_on.jpg";

var ImgNames = new Array("wave","rx","lighting","qa","office","newsletter");

function imageOn(i) {
	eval(ImgNames[i]).src = onImgArray[i].src;
}

function imageOff(i) {
	eval(ImgNames[i]).src = offImgArray[i].src;
}


function setuplayer()
{
	ns4 = (document.layers)? true : false;
	ie4 = (document.all && !document.getElementById)? true : false;
	ie5 = (document.all && document.getElementById)? true : false;
	ns6 = (!document.all && document.getElementById)? true : false;
	if (ns4) {
		var popOldWidth = window.innerWidth;
		nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()');
	}
	if (ns4 || ns6) {
		var pagewidth = self.innerWidth;
	} else {
		var pagewidth = document.body.clientWidth;
	}
	if (pagewidth > 748)
	{
		pagewidth = pagewidth - 748;
		pagewidth = pagewidth/2;		
		if (ns4) 
		{
			officeBox=document.officelist;
			officeBox.left= pagewidth + 435;
		}
		else if (ie4)
		{
			officeBox=officelist.style;
			officeBox.left= pagewidth + 435;
		}
		else
		{
			officeBox = document.getElementById("officelist").style;
			officeBox.left =  pagewidth + 435;
		}
	} else {
		if (ns4)
		{
			officeBox=document.officelist;
			officeBox.left=pagewidth + 435;
		}
		else if (ie4)
		{
			officeBox=officelist.style;
			officeBox.left=pagewidth + 435;
		} 
		else 
		{
			officeBox = document.getElementById("officelist").style;
			officeBox.left = pagewidth + 435;
		}
	}
}

function officenavbar(action)
{	
	ns4 = (document.layers)? true : false;
	ie4 = (document.all && !document.getElementById)? true : false;
	ie5 = (document.all && document.getElementById)? true : false;
	ns6 = (!document.all && document.getElementById)? true : false;
	setuplayer();		
	if (ns4)
	{
		officeBox=document.officelist;
		if (action == "hide")
		{
			officepopTimer= setTimeout("officeBox.visibility = 'hide'", 500);
		} 
		if (action == "show")
		{
			clearTimeout(officepopTimer);
			officeBox.visibility = "show";
		}
	}
	else if (ie4)
	{
		officeBox=officelist.style;
		
		if (action == "hide")
		{
			officepopTimer= setTimeout("officeBox.visibility = 'hidden'", 500);		
		}
		if (action == "show")
		{			
			clearTimeout(officepopTimer);
			officeBox.visibility = "visible";
		}
	}
	else
	{
		officeBox = document.getElementById("officelist").style;
		if (action == "hide")
		{
			officepopTimer= setTimeout("officeBox.visibility = 'hidden'", 500);			
		}
		if (action == "show")
		{	
			clearTimeout(officepopTimer);
			officeBox.visibility = "visible";
		}
	}
}
function validate()
{
	var form=document.novaform;
	if (form.name.value == "")
	{
		alert ("Please enter a name");
		return false;
	}
	var barbus = window.open("","foad","toolbar=0,location=0,status=0,scrollbars=0,menubar=0,resizeable=0,width=600,height=400");
	return true;

}
function fullvalidate(form)
{	
	if (form.name.value == "")
	{
		alert ("Please enter a name");
		return false;
	}
	if (form.address.value == "")
	{
		alert ("Please enter an address");
		return false;
	}
	if (form.city.value == "")
	{
		alert ("Please enter a city");
		return false;
	}
	if (form.state.value == "")
	{
		alert ("Please enter a state");
		return false;
	}
	if (form.zip.value == "")
	{
		alert ("Please enter a zip code");
		return false;
	}
	if (form.phone.value == "")
	{
		alert ("Please enter a phone number");
		return false;
	}
	return true;

}
//-->

