<!-- //
/***********************************************************


***********************************************************/

var author = "TM";

// This seems the best way to do this, but what we really want is to detect
// the ability to swap images. Oh well.
var browser = navigator.appVersion.substring(0,3) >= 3.0;

// Common prefix
var prefix = 'images/';

//change images
function wiggle(n) {
	if (!browser) return;
	document.pic_home.src = prefix + n;
	return false;
	} // end wiggle

// note that none of the above code will work on some browsers and most handhelds :)


if (document.images) {
  var alarmco_up = new Image();
  alarmco_up.src = "images/alarmco_up.gif";
  var alarmco_over = new Image();
  alarmco_over.src = "images/alarmco_over.gif";

  var bldarch_up = new Image();
  bldarch_up.src = "images/bldarch_up.gif";
  var bldarch_over = new Image();
  bldarch_over.src = "images/bldarch_over.gif";

  var homeowners_up = new Image();
  homeowners_up.src = "images/homeowners_up.gif";
  var homeowners_over = new Image();
  homeowners_over.src = "images/homeowners_over.gif";

  var installation_up = new Image();
  installation_up.src = "images/installation_up.gif";
  var installation_over = new Image();
  installation_over.src = "images/installation_over.gif";
}

function act(imgName) {
  if (document.images) 
    document[imgName].src = eval(imgName + "_over.src");
}

function inact(imgName) {
  if (document.images)
    document[imgName].src = eval(imgName + "_up.src");
}

// -->
