<!--var lastMenu = ""; // Global var for remembering last menu item...may more to image expando later!var highlightColor = "FDE698";function highlight(){    defaultMenu = document.getElementById('DM');  // if no new pic passed, use default menu    defaultMenu.style.backgroundColor = highlightColor; // Highlight 'DM' menu item with the same as the last one;    lastMenu = defaultMenu;                  // remember this so can reset on next!}function swapComparative(newPic, oldPic, newImage){ // the function name    PHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';    PHTML += '<tr valign=top>\n';    PHTML += '<td width="480">\n';    PHTML += '<img src="graphics/' + newImage + '" width="480" height="360" border="0"></td>\n';    PHTML += '<tr height="16"><td width="480" align="right"></td></tr>\n';    PHTML += '<tr><td width="480" align="right">&nbsp;<br><a href="graphics/' + newImage + '" target="_blank">To download image, right-click this link and<br>choose &quot;Save As&quot; or &quot;Save Target As&quot;</a><br>&nbsp;</td></tr>\n';    PHTML += '</table>\n';    switchid('comp-table');    vid.innerHTML = PHTML;    desc.innerHTML = '<p>&nbsp;</p>';	if (newPic) {	      // Highlight 'current' menu item with the same as the last one	  newPic.style.backgroundColor = highlightColor; // or oldPic.style.backgroundColor;	    if (oldPic) oldPic.style.backgroundColor = ""; // If have oldPic, reset it's background		lastMenu = newPic;                  // remember this so can reset on next!	}} // end of functionfunction swapComparativeVideo(newPic, oldPic, newImage){ // the function name    VHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';    VHTML += '<tr valign=top>\n';    VHTML += '<td width="480">\n';    VHTML += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"';    VHTML += ' width="480" height="376"';    VHTML += ' codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">\n';    VHTML += '	<param name="controller" value="TRUE">\n';    VHTML += '	<param name="scale" value="tofit">\n';    VHTML += '	<param name="type" value="video/quicktime">\n';    VHTML += '	<param name="autoplay" value="false">\n';    VHTML += '	<param name="src" value= "video/' + newImage +'.mpg">\n';    VHTML += '	<param name="pluginspage"';    VHTML += ' value="http://www.apple.com/quicktime/download/index.html">\n';    VHTML += '	<embed width="480" height="376" scale="tofit" controller="TRUE" target="myself"'    VHTML += ' src="video/' + newImage + '.mpg" type="video/quicktime"';    VHTML += ' autoplay="false"';    VHTML += ' pluginspage="http://www.apple.com/quicktime/download/index.html">\n';    VHTML += '	</embed>\n</object>\n</td></tr>';    VHTML += '<tr><td width="480" align="right">&nbsp;<br><a href="video/' + newImage + '.mpg" target="_blank">To download movie, right-click this link and<br>choose &quot;Save As&quot; or &quot;Save Target As&quot;</a><br>&nbsp;</td></tr>\n';    VHTML += '</table>\n';//    switchid('comp-table');    vid.innerHTML = VHTML;    desc.innerHTML = '<p>&nbsp;</p>';	if (newPic) {	      // Highlight 'current' menu item with the same as the last one	  newPic.style.backgroundColor = highlightColor; // or oldPic.style.backgroundColor;	    if (oldPic) oldPic.style.backgroundColor = ""; // If have oldPic, reset it's background		lastMenu = newPic;                  // remember this so can reset on next!	}} // end of functionfunction swapComparativeText(newPic, oldPic, newImage, newText){ // the function name    PHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';    PHTML += '<tr valign=top>\n';    PHTML += '<td width="480">\n';    PHTML += '<img src="graphics/' + newImage + '" width="480" height="360" border="0"></td>\n';    PHTML += '<tr height="16"><td width="480" align="right"></td></tr>\n';    PHTML += '<tr><td width="480" align="right">&nbsp;<br><a href="graphics/' + newImage + '" target="_blank">To download image, right-click this link and<br>choose &quot;Save As&quot; or &quot;Save Target As&quot;</a><br>&nbsp;</td></tr>\n';    PHTML += '</table>\n';//    switchid('comp-table');    vid.innerHTML = PHTML;    desc.innerHTML = '<p>' + newText + '</p>';	if (newPic) {	      // Highlight 'current' menu item with the same as the last one	  newPic.style.backgroundColor = highlightColor; // or oldPic.style.backgroundColor;	    if (oldPic) oldPic.style.backgroundColor = ""; // If have oldPic, reset it's background		lastMenu = newPic;                  // remember this so can reset on next!	}} // end of functionfunction swapCMR(newHeart, newView, newType){ // the function name    VHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';    VHTML += '<tr valign=top>\n';    VHTML += '<td width="480">\n';    VHTML += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"';    VHTML += ' width="480" height="376"';    VHTML += ' codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">\n';    VHTML += '	<param name="controller" value="TRUE">\n';    VHTML += '	<param name="scale" value="tofit">\n';    VHTML += '	<param name="type" value="video/quicktime">\n';    VHTML += '	<param name="autoplay" value="false">\n';    VHTML += '	<param name="src" value= "../../video/' + newHeart + newView + '">\n';    VHTML += '	<param name="pluginspage"';    VHTML += ' value="http://www.apple.com/quicktime/download/index.html">\n';    VHTML += '	<embed width="480" height="376" scale="tofit" controller="TRUE" target="myself"'    VHTML += ' src="../../video/' + newHeart + newView + '" type="video/quicktime"';    VHTML += ' autoplay="false"';    VHTML += ' pluginspage="http://www.apple.com/quicktime/download/index.html">\n';    VHTML += '	</embed>\n</object>\n</td></tr>';    VHTML += '<tr><td width="480" align="right">&nbsp;<br><a href="../../video/' + newHeart + newView + '" target="_blank">To download movie, right-click this link and<br>choose &quot;Save As&quot; or &quot;Save Target As&quot;</a><br>&nbsp;</td></tr>\n';    VHTML += '</table>\n';    PHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';    PHTML += '<tr valign=top>\n';    PHTML += '<td width="480">\n';    PHTML += '<img src="../../stills/' + newHeart + newView + '" width="480" height="360" border="0"></td>\n';    PHTML += '<tr height="16"><td width="480" align="right"></td></tr>\n';    PHTML += '<tr><td width="480" align="right">&nbsp;<br><a href="../../stills/' + newHeart + newView + '" target="_blank">To download image, right-click this link and<br>choose &quot;Save As&quot; or &quot;Save Target As&quot;</a><br>&nbsp;</td></tr>\n';    PHTML += '</table>\n';    if (newView != "#" && newHeart != "#") {      if (newType == "6" || newType == "7") {        vid.innerHTML = VHTML;      } else vid.innerHTML = PHTML;    }        if (newView == "#" || newHeart == "#") {      desc.innerHTML = '<p>&nbsp;</p><p>&nbsp;</p>';    } else if (newView == "-M-2CHL.jpg") {      desc.innerHTML = '<p>Two-chamber view of the left side. The axes are labeled as follows: S=superior, I=inferior, A=anterior, P=posterior, R=right, L=left</p><p>&nbsp;</p>';    } else if (newView == "-M-2CHR.jpg") {      desc.innerHTML = '<p>Two-chamber view of the right side. The axes are labeled as follows: S=superior, I=inferior, A=anterior, P=posterior, R=right, L=left</p><p>&nbsp;</p>';    } else if (newView == "-M-4CH.jpg") {      desc.innerHTML = '<p>Four-chamber view. The axes are labeled as follows: S=superior, I=inferior, A=anterior, P=posterior, R=right, L=left</p><p>&nbsp;</p>';    } else if (newView == "-M-SAX.jpg") {      desc.innerHTML = '<p>Short-axis view at the valve level. The axes are labeled as follows: S=superior, I=inferior, A=anterior, P=posterior, R=right, L=left</p><p>&nbsp;</p>';    } else if (newView == "-M-SAX-MV.jpg") {      desc.innerHTML = '<p>Short-axis view at the mid-ventricular level. The axes are labeled as follows: S=superior, I=inferior, A=anterior, P=posterior, R=right, L=left</p><p>&nbsp;</p>';    } else if (newView == "-M-4CH.mpg") {      desc.innerHTML = '<p>Four chamber stack played in sequence.</p><p>&nbsp;</p>';    } else if (newView == "-M-SAX.mpg") {      desc.innerHTML = '<p>Short-axis stack played in sequence from the apex to the base.</p><p>&nbsp;</p>';    }    rend.innerHTML = '<p>&nbsp;</p>\n';} // end of function swapCMRfunction swapAtlas2007comp(newImage, newText, newType){ // the function name    VHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';    VHTML += '<tr valign=top>\n';    VHTML += '<td width="480">\n';    VHTML += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"';    VHTML += ' width="480" height="376"';    VHTML += ' codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">\n';    VHTML += '	<param name="controller" value="TRUE">\n';    VHTML += '	<param name="scale" value="tofit">\n';    VHTML += '	<param name="type" value="video/quicktime">\n';    VHTML += '	<param name="autoplay" value="false">\n';    VHTML += '	<param name="src" value= "../video/' + newImage +'.mpg">\n';    VHTML += '	<param name="pluginspage"';    VHTML += ' value="http://www.apple.com/quicktime/download/index.html">\n';    VHTML += '	<embed width="480" height="376" scale="tofit" controller="TRUE" target="myself"'    VHTML += ' src="../video/' + newImage + '.mpg" type="video/quicktime"';    VHTML += ' autoplay="false"';    VHTML += ' pluginspage="http://www.apple.com/quicktime/download/index.html">\n';    VHTML += '	</embed>\n</object>\n</td></tr>';    VHTML += '<tr><td width="480" align="right">&nbsp;<br><a href="../video/' + newImage + '.mpg" target="_blank">To download movie, right-click this link and<br>choose &quot;Save As&quot; or &quot;Save Target As&quot;</a><br>&nbsp;</td></tr>\n';    VHTML += '</table>\n';    PHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';    PHTML += '<tr valign=top>\n';    PHTML += '<td width="480">\n';    PHTML += '<img src="../stills/' + newImage + '.jpg" width="480" height="360" border="0"></td>\n';    PHTML += '<tr height="16"><td width="480" align="right"></td></tr>\n';    PHTML += '<tr><td width="480" align="right">&nbsp;<br><a href="../stills/' + newImage + '.jpg" target="_blank">To download image, right-click this link and<br>choose &quot;Save As&quot; or &quot;Save Target As&quot;</a><br>&nbsp;</td></tr>\n';    PHTML += '</table>\n';    SHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';    SHTML += '<tr valign=top>\n';    SHTML += '<td width="480">\n';    SHTML += '<img src="../sectioned/' + newImage + '.jpg" width="480" height="360" border="0"></td>\n';    SHTML += '<tr height="16"><td width="480" align="right"></td></tr>\n';    SHTML += '<tr><td width="480" align="right">&nbsp;<br><a href="../sectioned/' + newImage + '.jpg" target="_blank">To download image, right-click this link and<br>choose &quot;Save As&quot; or &quot;Save Target As&quot;</a><br>&nbsp;</td></tr>\n';    SHTML += '</table>\n';    if (newImage != "#") {       if (newType == "video") {        vid.innerHTML = VHTML;        rend.innerHTML = '<p><img src="../stills/rend-' + newImage + '.jpg" width="240" height="360" align="top" border="0"></p>\n';      } else if (newType == "still") {        vid.innerHTML = PHTML;        rend.innerHTML = '<p>&nbsp;</p>\n';      } else if (newType == "sectioned") {        vid.innerHTML = SHTML;        rend.innerHTML = '<p>&nbsp;</p>\n';      }          desc.innerHTML = '<p>' + newText + '</p>';    switchid('rend');    }} // end of function// code from http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml//here you place the ids of every element you want.var ids=new Array('rend','comp-table');function switchid(id){		hideallids();	showdiv(id);}function hideallids(){	//loop through the array and hide each element by id	for (var i=0;i<ids.length;i++){		hidediv(ids[i]);	}		  }function hidediv(id) {	//safe function to hide an element with a specified id	if (document.getElementById) { // DOM3 = IE5, NS6		document.getElementById(id).style.display = 'none';	}	else {		if (document.layers) { // Netscape 4			document.id.display = 'none';		}		else { // IE 4			document.all.id.style.display = 'none';		}	}}function showdiv(id) {	//safe function to show an element with a specified id		  	if (document.getElementById) { // DOM3 = IE5, NS6		document.getElementById(id).style.display = 'block';	}	else {		if (document.layers) { // Netscape 4			document.id.display = 'block';		}		else { // IE 4			document.all.id.style.display = 'block';		}	}}//-->