function ReadCookie(name) {	var rc = null	// Create key for search	var key = "; " + name + "="	// Get cookie and format it to make it easier to search	var searchStr = "; " + document.cookie + ";"	// Look for the key in the cookie string	var index = searchStr.indexOf(key)	// If the key was found, then extract the value string	if( index >= 0 )	{		// Calculate begining and end of value string		index += key.length		endIndex = searchStr.indexOf(";",index)		// Unescape return value		rc = unescape(searchStr.substring(index,endIndex))	}		return rc}function WriteCookie(name, value,  path, expires, domain, secure) {	// Escape value before storing	var cookieStr = name + "=" + escape(value)	if( WriteCookie.arguments.length > 2 )	{		var argc = WriteCookie.arguments.length		// Check path			cookieStr += "; path=" + path		// Expiration date		if( argc > 3 )			cookieStr += "; expires=" + expires		// Check domain		if( argc > 4 )			cookieStr += "; domain=" + domain		// Check secure		if( argc > 5 )			cookieStr += "; secure"	}	document.cookie = cookieStr}function DeleteCookie(name) {	var expires = new Date()	// Set expiration date to 1 Hour in past	expires.setTime(expires.getTime() - (60 * 60 * 1000))	WriteCookie(name,"x",expires)}function WriteNibble(c, n, nsiz, v) {	var cookie = ReadCookie(c);	var ii = (n-1)*nsiz;	cookie = cookie.substring(0,ii) + v + cookie.substring(ii+nsiz, cookie.length)		WriteCookie(c, cookie, "/");}function ReadNibble(c, n, nsiz) {	var cookie = ReadCookie(c);	var ii = (n-1)*nsiz;	return cookie.substring(ii,ii+nsiz)}function setVal(c, n, b, a) {	var nibble = ReadNibble(c, n, 15);	var ii = parseInt(b)	nibble = nibble.substring(0,ii) + a.charAt(0) + nibble.substring(ii+1,nibble.length)		WriteNibble(c, n, 15, nibble);}function getVal(c, n, b) {	var nibble = ReadNibble(c, n, 15)	var ii = parseInt(b)	return nibble.substring(ii,ii+1)}function oW(n, p, w, h) {	var narg = oW.arguments.length;	if (narg > 2) 		var popUp=window.open(p, n, "width="+w+",height="+h+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes"); 	else 		var popUp=window.open(p, n, "width=640,height=540,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes");	popUp.focus();}function oWx(n, p, w, h) {	var narg = oWx.arguments.length;	if (narg > 2) 		var popUp=window.open(p, n, "width="+w+",height="+h+",location=no,scrollbars=yes,menubar=no,toolbar=yes,resizable=yes"); 	else 		var popUp=window.open(p, n, "width=640,height=540,location=no,scrollbars=yes,menubar=no,toolbar=yes,resizable=yes");	popUp.focus();}function getSelectedRadio(buttonGroup, returnVal) {	for (var i = 0; i < buttonGroup.length; i++) {		if ( buttonGroup[i].checked ) return i;	}	if ( getSelectedRadio.length == 1 ) {		return -1;	} else {		return returnVal;		}	}function mPageCtrl(n, p, base, target, text) {	document.writeln("<TABLE BORDER='0' ALIGN='right'>");	document.writeln("<TR><TD><font face='Verdana, Arial, Helvetica, sans-serif' size='-1'><b>" + text + "</b>");	for (var i=1; i<=n; i++){			if (i != p) {			if ( i < 10 ) {				var line = "<A HREF=" + base + "0" + i + ".html TARGET=" + target + ">" + i + "</A> | ";			} else {				var line = "<A HREF=" + base + i + ".html TARGET=" + target + ">" +  i + "</A> | ";					}			document.writeln(line);		} else {			document.writeln("<B>" + i + " </B>| ");			}		}	document.writeln('</TD></TR></TABLE><br clear="all"><p>&nbsp;');	document.close();}function gPageCtrl(flg) {	document.writeln("<TABLE BORDER='0' ALIGN='center'>");	document.writeln("<TR><TD><font face='Verdana, Arial, Helvetica, sans-serif' size='-1'>");	var letters = "abcdefghijklmnopqrstuvwxyz";			for (var i=0; i< 26; i++) {		var line = "<A HREF=\"javascript:loadgloss('" + letters.charAt(i) + "')\">" + letters.charAt(i) + "</A> | ";		document.writeln(line);		}	if (flg == 0) {		document.writeln("<A HREF='javascript:parent.close()'>close window</A>");	}		document.writeln('</TD></TR></TABLE><br clear="all"><p>&nbsp;');	document.close();}function winCtrl() {	if (parent.name.length > 0) {		document.write("<center><p><A target = '_blank' href='" + self.location + "'>Open in New Window</A></center>");		} else {		document.write("<center><p><A href='Javascript:self.close()'>Close Window</A></center>");	}}function loadaudio(f) {	parent.glossaudio.document.open();	parent.glossaudio.document.writeln('<html><head></head><body style="background-color: #fff;">');	parent.glossaudio.document.writeln('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="1" height="1" codebase="http://www.apple.com/qtactivex/qtplugin.cab">');	parent.glossaudio.document.writeln('<param name="src" value="audio/' + f.charAt(0) + '/' + f + '.mov">');	parent.glossaudio.document.writeln('<param name="controller" value="false">');	parent.glossaudio.document.writeln('<param name="autoplay" value="true">');	parent.glossaudio.document.writeln('<embed src="audio/' + f.charAt(0) + '/' + f + '.mov" width="1" height="1" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/" />');	parent.glossaudio.document.writeln("</object></body></html>");	parent.glossaudio.document.close();		}function oGloss(w) {	var narg = oGloss.arguments.length;	if (narg == 1) {		WriteCookie("Life7eG", w, "/");		oW('Glossary','../content/glossary/glossary.html','720','500');	} else {		WriteCookie("Life7eG", "abdomen", "/");		oW('Glossary','../content/glossary/glossary.html','720','500');		}}function oImage(t, f) {	iw=window.open("","image","width=640,height=680,location=no,scrollbars=yes,menubar=no,toolbar=no,resizable=yes");	iw.document.open();	iw.document.write("<HTML><HEAD><TITLE>" + t + "</TITLE></HEAD><body bgcolor='#FFFFFF'>");	iw.document.write("<p><TABLE BORDER='0' ALIGN='right'><TR><TD><A href='Javascript:self.close()'>Close Window</A></TD></TR></TABLE>");	iw.document.write('<br><center><img src="' + f + '"></center>');	iw.document.write("<p><TABLE BORDER='0' ALIGN='right'><TR><TD><A href='Javascript:self.close()'>Close Window</A></TD></TR></TABLE></BODY></HTML>");	iw.document.close();	iw.focus();}
