﻿

if (document.images) {    

 swap=new Image(); 
 swap.src="images/agentPhotos/front.jpg"; 
 swap1=new Image(); 
 swap1.src="images/agentPhotos/marthaBecker.jpg"; 
 swap2=new Image(); 
 swap2.src="images/agentPhotos/maryCanavan.jpg"; 
 swap3=new Image(); 
 swap3.src="images/agentPhotos/kathleenCurry.jpg"; 
 swap4=new Image(); 
 swap4.src="images/agentPhotos/tracyDavis.jpg"; 
 swap5=new Image(); 
 swap5.src="images/agentPhotos/nancyFoss.jpg"; 
 swap6=new Image(); 
 swap6.src="images/agentPhotos/leeGoodwin.jpg"; 
 swap7=new Image(); 
 swap7.src="images/agentPhotos/kathrynHill.jpg"; 
 swap8=new Image(); 
 swap8.src="images/agentPhotos/lorriHolt.jpg"; 
 swap9=new Image(); 
 swap9.src="images/agentPhotos/notAvail.gif";
 swap10=new Image(); 
 swap10.src="images/agentPhotos/jenniferOsborne.jpg"; 
 swap11=new Image(); 
 swap11.src="images/agentPhotos/sandyParker.jpg";
 swap12=new Image(); 
 swap12.src="images/agentPhotos/carolParkinson.jpg"; 
 swap13=new Image(); 
 swap13.src="images/agentPhotos/notAvail.gif"; 
 swap14=new Image(); 
 swap14.src="images/agentPhotos/notAvail.gif"; 
 swap15=new Image(); 
 swap15.src="images/agentPhotos/kathrynStein.jpg"; 
 swap16=new Image(); 
 swap16.src="images/agentPhotos/joannSullivan.jpg"; 
 swap17=new Image(); 
 swap17.src="images/agentPhotos/helenWalker.jpg"; 
 swap18=new Image(); 
 swap18.src="images/agentPhotos/lindaWolan.jpg";    		
swap19=new Image(); 
 swap19.src="images/agentPhotos/cameronParkinson.jpg";
 	}


function imgOn(imgName) { 
   if (document.images){ 
   document[imgName].src = eval(imgName + "on.src"); 
    } } 
function imgOff(imgName) { 
   if (document.images) { 
   document[imgName].src = eval(imgName + "off.src"); 
    } }

// function to swap images on home page
function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		} } }
		
// function to open remote popup windows in different named windows.
function remote(url,name,parms) {
	var remote = window.open(url,name,parms); 
	remote.opener = self; 
	remote.focus();
	}
