   navHome_on = new Image();    
   navHome_on.src = "images/global/nav-home-on.jpg"; 
   navHome_off = new Image(); 
   navHome_off.src = "images/global/nav-home.jpg";    

   navRes_on = new Image();    
   navRes_on.src = "images/global/nav-residential-on.jpg"; 
   navRes_off = new Image(); 
   navRes_off.src = "images/global/nav-residential.jpg";    

   navComm_on = new Image();    
   navComm_on.src = "images/global/nav-commercial-on.jpg"; 
   navComm_off = new Image(); 
   navComm_off.src = "images/global/nav-commercial.jpg"; 

   navAuc_on = new Image();    
   navAuc_on.src = "images/global/nav-auctions-on.jpg"; 
   navAuc_off = new Image(); 
   navAuc_off.src = "images/global/nav-auctions.jpg";
   
   navReloc_on = new Image();    
   navReloc_on.src = "images/global/navRelocOn.jpg"; 
   navReloc_off = new Image(); 
   navReloc_off.src = "images/global/navReloc.jpg";

   navAgents_on = new Image();    
   navAgents_on.src = "images/global/nav-agents-on.jpg"; 
   navAgents_off = new Image(); 
   navAgents_off.src = "images/global/nav-agents.jpg"; 

   navAbout_on = new Image();    
   navAbout_on.src = "images/global/nav-about-on.jpg"; 
   navAbout_off = new Image(); 
   navAbout_off.src = "images/global/nav-about.jpg"; 
   
   navVideo_on = new Image();    
   navVideo_on.src = "images/global/nav-videos-on.jpg"; 
   navVideo_off = new Image(); 
   navVideo_off.src = "images/global/nav-videos.jpg"; 

   logo = new Image();
   logo.src = "images/global/shanleyLogo.jpg";
   contact_on = new Image();
   contact_on.src = "images/global/contactHeaderActive.jpg";
   contact_off = new Image();
   contact_off.src = "images/global/contactHeaderInactive.jpg";
   feedback_on = new Image();
   feedback_on.src = "images/global/feedbackHeaderActive.jpg";
   feedback_off = new Image();
   feedback_off.src = "images/global/feedbackHeaderInactive.jpg";

   function imgOff(img_name) {
    document[img_name].src = eval(img_name + "_off.src");
   }

   function imgOn(img_name) {
    document[img_name].src = eval(img_name + "_on.src");
   }

   function changeImg(img1,img2) {
    document[img1].src = eval(img2 + ".src");
   }

   function popUpWindow(url) {
    var popUpHeight=350;
    var popUpWidth=600;
    var x=0, y=0;
    var origWidth=0, origHeight=0;
// get the window width and height of the window that called the popup
   if (typeof (window.innerWidth) == 'number') {
   // this is a non-IE browser
    origWidth = window.innerWidth;
    origHeight = window.innerHeight;
   }
   else if (document.documentElement &&
           (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
   // this is the new IE6+ in 'standards compliant mode' hahahaha
    origWidth = document.documentElement.clientWidth;
    origHeight = document.documentElement.clientHeight;    
   }
   else if (document.body &&
           (document.body.clientWidth || document.body.clientHeight)) {
   // this is the new IE4 compatible
     origWidth = document.body.clientWidth;
     origHeight = document.body.clientHeight;    
   }
//   alert('window width is '+origWidth);
//   alert('window height is '+origHeight);
   
// get the top left co-ordinates of the window that called the popup
    if (document.all) {
     x=window.screenLeft;
     y=window.screenTop + ((origHeight - popUpHeight)/2);
    }
    else if (document.layers) {
     x=window.screenX;
     y=window.screenY + ((origHeight - popUpHeight)/2);
    } 
    else {
     x=window.screenX;
     y=window.screenY + ((origHeight - popUpHeight)/2);
    }
    var features='height=350,width=600,';
    features+='resizable=1,scrollbars=1,dependent=1,';
    features+='top='+y+',left='+x+',';
    features+='screenY='+y+',screenX='+x;

//    alert('features is '+features);

    newWindow = window.open(url,"shanleyPopUp",features);
    if (window.focus) {
     newWindow.focus()}
    return;
   }
   
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}