/**********************************************************************
	Created: April 11, 2002
***********************************************************************	
	Version: 0.0.1
***********************************************************************/
function writeRootPath() { 							// Called by rollover.js to dynamically 
													// populate the URL parameters
	var strRootPath;								// with the URL path. This allows dynamic control
	strRootPath = "http://newbeautifulsmile.com/";
	return(strRootPath);							// over the path to the root of the site. 
}


function hideFormLayers() {
	if (!HMBio_NS6) {		// NS6 displays form elements correctly
		// test for each known form layer
		if (typeof frmarchivesearch == "number"){
			// loop through each instance of the layer, and hide it
			for (i = 1; i < (frmarchivesearch +1); i++) { 
				eval("hideLayer(getLayer('frmarchivesearch" + i + "'))");
			}
		}
	}
}

function showFormLayers() {
	if (!HMBio_NS6) {
		// test for each known form layer
		if (typeof frmarchivesearch == "number"){
			// loop through each instance of the layer, and show it
			for (i = 1; i < (frmarchivesearch +1); i++) { 
				eval("showLayer(getLayer('frmarchivesearch" + i + "'))");
			}
		}
	}
}


// BEGIN COOKIE TEST function
function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}
 
//END COOKIE CUSTOMIZATION
