<!--

// Given "Foo", returns "images/Foo.gif".



function regularImageFile(imageName) {

  return("http://kandpbuilders.com/images/" + imageName + ".gif");

}



// Given "Bar", returns "images/Bar-on.gif".



function negativeImageFile(imageName) {

  return("http://kandpbuilders.com/images/" + imageName + "-on.gif");

}



// Cache image at specified index. E.g., given index 0,

// take imageNames[0] to get "Home". Then preload 

// images/Home.gif and images/Home-Negative.gif.



function cacheImages(index) {

  regularImageObjects[index] = new Image(150, 30);

  regularImageObjects[index].src =

    regularImageFile(imageNames[index]);

  negativeImageObjects[index] = new Image(150, 30);

  negativeImageObjects[index].src =

    negativeImageFile(imageNames[index]);

}



imageNames = new Array();



regularImageObjects = new Array(imageNames.length);

negativeImageObjects = new Array(imageNames.length);



// Put images in cache for fast highlighting.

for(var i=0; i<imageNames.length; i++) {

  cacheImages(i);

}



// This is attached to onMouseOver -- change image

// under the mouse to negative (reverse video) version.



function highlight(imageName) {

  document.images[imageName].src = negativeImageFile(imageName);

}



// This is attached to onMouseOut -- return image to

// normal.



function unHighlight(imageName) {

  document.images[imageName].src = regularImageFile(imageName);

}



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}



// preload images

function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



// rewrite content in layer

function WriteLayer(ID,parentID,sText) { 

 if (document.layers) { 

   var oLayer; 

   if(parentID){ 

     oLayer = eval('document.' + parentID + '.document.' + ID + '.document'); 

   }else{ 

     oLayer = document.layers[ID].document; 

   } 

   oLayer.open(); 

   oLayer.write(sText); 

   oLayer.close(); 

 } 

 else if (parseInt(navigator.appVersion)>=5&&navigator. 

appName=="Netscape") { 

   document.getElementById(ID).innerHTML = sText; 

 } 

 else if (document.all) document.all[ID].innerHTML = sText 

} 





//-->