function ImgReplace(path) {
   // Hide all sub-navigations
   jQuery("#navigation ul li ul").hide();
   
   // get the current URL and convert the object's value to a string.
   var currentURL = window.location.pathname.toString();
   
   //replace Primary navigation with images
   var primaryNavSelector = "#navigation ul li:not(#navigation ul li ul li)";
   jQuery(primaryNavSelector).each(function() {
     var altText = jQuery(this).find("a:first").html();
     imgName = altText;
     imgName = imgName.toLowerCase();
     imgName = imgName.replace(/ /g, '-');
     imgName = imgName.replace(/'/g, '');
     jQuery(this).find("a:first").html('<img src="'+path+'/images/nav-images/'+imgName+'.png" alt="'+altText+'" />');
     // search for imgName in currentURL and open up that submenu if it is found.
     var expr = new RegExp("\/"+imgName+"\/", 'g');
     var openMenu = currentURL.search(expr);
     if (openMenu > -1) {
       jQuery(this).find("ul:first").show();
       //jQuery('#testBox').html( jQuery(this).find("ul:first").html() );
       if ( jQuery(this).find("ul:first").html() ) {
         jQuery(".penStroke").appendTo(this);
       }
     }
   });
   
   //replace secondary navigation with images
   var secondaryNavSelector = "#navigation ul li ul a";
   jQuery(secondaryNavSelector).each(function() {
      var altText = jQuery(this).html();
      imgName = altText;
      imgName = imgName.toLowerCase();
      imgName = imgName.replace(/ /g, '-');
      imgName = imgName.replace(/'/g, '');
      jQuery(this).html('<img src="'+path+'/images/nav-images/'+imgName+'.png" alt="'+altText+'" />');
   });
   
   //apply overState on hover
   jQuery("#navigation a").hover( 
   function() {
     var imgTag = jQuery(this).find("img:first").attr('src');
     imgTag = imgTag.replace(/\.([A-z]+)$/i, "-overState.$1");
     jQuery(this).find("img:first").attr('src', imgTag);
     // check for a sub menu and bring raise it's opacity
     submenu = jQuery(this).parent().find("ul");
     if (submenu != null && submenu.length > 0) {
       jQuery("#navigation ul li ul").hide();
       jQuery(submenu).show();
       // add the pen stroke image. NOTE: appendTo on an existing element has the behavior of moving an item rather than copying it
       jQuery(".penStroke").appendTo(this);
     }
   },
   function() {
     var imgTag = jQuery(this).find("img:first").attr('src');
     imgTag = imgTag.replace(/-overState/g, '');
     //alert(imgTag);
     jQuery(this).find("img:first").attr('src', imgTag);
   });
   
}
