var lastHref = 'http://gradientlens.com/bore_hawkeye_pro_overview.asp';

function out() {
	}



function shows(imageName,imageSrc,linkID,href) {
		document.images[imageName].src = imageSrc;
		changeLinkHref(linkID,href,lastHref);
		lastHref = href;
	}

/* The following works in Internet Explorer 4+ and Netscape Navigator 6+ 
	using the id attribute to identify the required link. In other browsers 
	you need to supply the original href attribute value of the link for 
	the code to trawl through all the links in the document looking for the 
	appropriate link.  If more than one link exists to the old HREF, only 
	the first one in the document is found.
 */
function findLinkByHref(href) {
  for (var i=0; i<document.links.length; i++) {
    if (document.links[i].href == href) return i;
  }
  return -1;
}

function changeLinkHref(id,newHref,oldHref) {
  if (document.links.length > 0) {
    if (document.getElementById) {
      document.getElementById(id).href = newHref;
    }
    else if (document.all) {
      document.all[id].href = newHref;
    }
    else {
      var index = findLinkByHref(oldHref);
      if (index > -1)
        document.links[index].href = newHref;
    }
  }
}

