<!--

var thePics = new Array();
thePics = new Array("nav_emer","nav_ressupport","nav_smallbussupport","nav_about","email");

//FUNCTIONS

function swap(name,state) {
    if(thePics[name+state] && thePics[name+state].complete) {
        document.images[name].src = thePics[name+state].src;
    }
}

function preloadPics(thePics) {
	for (i=0;i<thePics.length;i++){
		thePics[thePics[i]] = new Image();
		thePics[thePics[i]].src = 'images/'+thePics[i]+'.gif';
		thePics[thePics[i]+'_on'] = new Image();
		thePics[thePics[i]+'_on'].src = 'images/'+thePics[i]+'_on.gif';
	}
}

preloadPics(thePics);

function pop(location) { 
	var dx=503;
	var dy=412;

	var w = window.open(location+'.asp', 'popup', 'width=' + dx + ',height=' + dy + ',status=no,resizable=no,menubar=no,location=no,scrollbars=no,toolbar=no,screenX=50,screenY=50,top=50,left=50');
	w.focus();
}

  var i, rannum;
  for(i = 0; i < 100; i++) {
	// Math.random() returns a decimal number between
	// 0 and 1.  You multiple the result by the range
	// of numbers you want.

	// This will generate 0-4.
	rannum = Math.random()*4;

	// This would generate 145-200
	// rannum = Math.random()*55 + 145;

	// rannum is now a decimal value, to turn it into
	// an integer use Math.round to round it to the nearest
	// integer.  Math.floor(rannum) to always round down and
	// Math.ceil(rannum) to round up.
	rannum = Math.round(rannum);
  }
//-->