document.getElementsByClassName = function(name) {
  var results = new Array();
  var elems = document.getElementsByTagName("*");
  for (var i=0; i<elems.length; i++) {
    if (elems[i].className.indexOf(name) != -1) {
      results[results.length] = elems[i];
    }
  }
  return results;
};
//
function showPic(source) {
	var placeholder=document.getElementById("nav_caption");
	placeholder.setAttribute("src",source);
}
//
function menuMajorTitles() {
	if (document.getElementsByTagName) {
    	var elements = document.getElementsByClassName("menu_major");
		//document.write(elements.length);
	    for (var i=0; i<elements.length; i++) {
    	   	var anchors = elements[i].getElementsByTagName("a");
		}
		//document.write(anchors.length);
		anchors[0].setAttribute("title", "Guidelines for practicing and maintaining good breast health.");
		anchors[1].setAttribute("title", "An overview and comparison of the leading biopsy procedures.");
		anchors[2].setAttribute("title", "An explanation of biopsy results and treatment options.");
		anchors[3].setAttribute("title", "A community for sharing biopsy information and experiences.");
		anchors[4].setAttribute("title", "An introduction to the Mammotome Breast Biopsy System.");
		anchors[5].setAttribute("title", "Useful links to breastcare information and support organizations.");
		//
		anchors[0].onmouseover = function() { showPic("/images/navcaption_breastcare.gif"); return false;}
		anchors[0].onmouseout = function() { showPic("/images/spacer.gif"); return false;}
		anchors[1].onmouseover = function() { showPic("/images/navcaption_biopsyinfo.gif"); return false;}
		anchors[1].onmouseout = function() { showPic("/images/spacer.gif"); return false;}
		anchors[2].onmouseover = function() { showPic("/images/navcaption_biopsyresults.gif"); return false;}
		anchors[2].onmouseout = function() { showPic("/images/spacer.gif"); return false;}
		anchors[3].onmouseover = function() { showPic("/images/navcaption_interact.gif"); return false;}
		anchors[3].onmouseout = function() { showPic("/images/spacer.gif"); return false;}
		anchors[4].onmouseover = function() { showPic("/images/navcaption_mammotome.gif"); return false;}
		anchors[4].onmouseout = function() { showPic("/images/spacer.gif"); return false;}
		anchors[5].onmouseover = function() { showPic("/images/navcaption_resourcecenter.gif"); return false;}
		anchors[5].onmouseout = function() { showPic("/images/spacer.gif"); return false;}
	}
}
//
window.onload = menuMajorTitles;