<!-- // Hiding
// Breadcrumb-Related Functions
//

//  * * * * * * * * * * * * Get META Tag Content* * * * * * * * * * * *
function getMetacontent (metaName) {
// HEALTHvision 2002 - RPizzini
// This function pulls the content of the META tag name passed to the function.
// META content is available for IE4+ and NS6+ browses.
// Other browsers will return nothing.
// This is a work around to COMMv placing page title info into a META tag.

 var metaElements = document.all ?
   document.all.tags('META') :
   document.getElementsByTagName ?
   document.getElementsByTagName ('META') : new Array();
 var metaValue = new Array();
 var i = 0;
 for (var m = 0; m < metaElements.length; m++)
   if (metaElements[m].name == metaName)
     metaValue[i++] = metaElements[m].content;
 return metaValue;
}


//  * * * * * * * * * * * * Draw Bread Crumb * * * * * * * * * * * *
function drawBreadCrumb() {
// HEALTHvision 2002-2003 - RPizzini
// This function renders a narrow table above the content area based on the current content store.
// The bread crumb table displays Link Home > Link to Content Store Splash Page > Open Page Title.
// The bread crumb table only appears on pages whose content store has been defined in the function.
// This function requires getMetacontent(); to pull title from META tag on COMMv.
//  Note:  Set breadcrumb2 style class to adjust table and link apperance.

//  * * * Try to use COMMv page title by using getMetacontent function  * * * 
  var splashLinkTitle = ""
  var storeString = ""
  var homeURL = "/"
  var pathString = window.location.pathname;
  pathString = pathString.toLowerCase(); 

// * * * Get page title  * * *
  var pageTitle = getMetacontent('Title');  	// Use getMetacontent function to pull page title from META (IE4+/NS6+).
  if (pageTitle == "") { 			// Handle blank page title returned in IE3/NS4 or lower.
	pageTitle = "Current Page" 
  }  
  if (pageTitle.length > 36) {  			// Check title length and abbreviate when necessary 
  	pageTitle = pageTitle.slice(0,35) + "..."
  }

// * * * We never display breadcrumbs on default.htm/default.html splash pages or dynamic *.asp pages. * * *
// * * * Also, if you can force breadcrumbs not to show if you include  _nbc in file name (like mypage_nbc.htm), 
  if (pathString.indexOf("default") != -1 | pathString.indexOf(".asp") != -1 |pathString.indexOf("_nbc") != -1 ){ return false; }

// * * * Define idenfier for each COMMv content store.  Leave out any stores you want ignored. * * *
  storeName = new Array(14)
  storeName[0] = "55ropizzin"  //Modify as required for testing.
  storeName[1] = "/manageyourhealth/"
  storeName[2] = "/resourcessupport/"
  storeName[3] = "/services/"
  storeName[4] = "/becomeamember/"
  storeName[5] = "/waystogive"
  storeName[6] = "/volunteer/"
  storeName[7] = "/aboutus/"
  storeName[8] = "/newsroom/"
  storeName[9] = "/foremployers/"
  storeName[10] = "/forpatients/"
  storeName[11] = "/forphysicians/"
  storeName[12] = "/foremployees/"
  storeName[13] = "/locations/"
  storeName[14] = "/careers/"

// * * * Define cooresponding title for each COMMv content store splash link * * *
  splashTitle = new Array(14)
  splashTitle[0] = "Local Testing"  //Modify as required for testing.
  splashTitle[1] = "Health Information"
  splashTitle[2] = "Resources &amp; Support"
  splashTitle[3] = "Services &amp; Programs"
  splashTitle[4] = "Memberships"
  splashTitle[5] = "Ways To Give"
  splashTitle[6] = "Volunteer"
  splashTitle[7] = "About Us"
  splashTitle[8] = "Newsroom"
  splashTitle[9] = "For Employers"
  splashTitle[10] = "For Patients"
  splashTitle[11] = "For Physicians"
  splashTitle[12] = "For Employees"
  splashTitle[13] = "Locations"
  splashTitle[14] = "Careers"

// * * * Check for matches to any content stores * * *
  for (var i in storeName) { 
	storeString = storeName[i]
	if (pathString.indexOf(storeString) != -1){ 
		splashLinkTitle = splashTitle[i]; 
		break 
	}
  }

// * * * Render breadcrumb or table where function is called on content page. * * *
  if (splashLinkTitle == ""){ return false; }  //If the content store was not defined do not render the breadcrumb table.
  else {

// 07/01/03 - Need to correct for default pages that are *.html on production. 
  	if (splashLinkTitle == "Locations"|splashLinkTitle == "About Us"|splashLinkTitle == "Memberships") {
		storeString = storeString + "default.html"
  	}
   // Check for htm/html file extension to make sure splash page was not called by default (/content store/blank). 
	if (pathString.indexOf(".htm") != -1) { 
	document.write("<table class='breadcrumb2' cellspacing='0' cellpadding='0'>")
	document.write("  <tr>")
	document.write("    <td class='breadcrumb2'>&nbsp;&nbsp;")
	document.write("        <a  class='breadcrumb2' href='" + homeURL + "'>Home</a>&nbsp;&nbsp;&gt;&nbsp;&nbsp;")
	document.write("        <a  class='breadcrumb2' href='.."  + storeString + "'>" + splashLinkTitle + "</a>&nbsp;&nbsp;&gt;&nbsp;&nbsp;")
	document.write("<span class='breadcrumb2page'>" + pageTitle + "</span>&nbsp;&nbsp;")
	document.write("        </td> ")
	document.write("  </tr> ")
	document.write("</table> ")
	}
  }
}

drawBreadCrumb();
// -->