function swapAtlas2007Labeled(newImage, newText, newType){ // the function name
    VHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';
    VHTML += '<tr valign=top>\n';
    VHTML += '<td colspan="2" 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 valign=top><td width = "240">&nbsp;<br><a href="javascript:switchid(\'labeled\');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'LabeledSub\',\'\',\'../../graphics/Vid-Labeled-over.gif\',1)"><img src="../../graphics/Vid-Labeled.gif" alt="Viewing movie - Click for labeled image" name="LabeledSub" width="205" height="35" border="0" id="LabeledSub"></a></td>\n';
    VHTML += '<td width="240" 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';
    LVHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';
    LVHTML += '<tr valign=top>\n';
    LVHTML += '<td colspan="2" width="480">\n';
    LVHTML += '<img src="../../stills/label-' + newImage + '.jpg" width="480" height="360" border="0"></td>\n';
    LVHTML += '</tr>\n';
    LVHTML += '<tr valign=top height="16"><td colspan="2" width="480">&nbsp;</td></tr>\n';
    LVHTML += '<tr valign=top><td width = "240">&nbsp;<br><a href="javascript:switchid(\'vid\');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'LabeledSub1\',\'\',\'../../graphics/Labeled-Vid-over.gif\',1)"><img src="../../graphics/Labeled-Vid.gif" alt="Viewing labeled image - Click for movie" name="LabeledSub1" width="205" height="35" border="0" id="LabeledSub1"></a></td>\n';
    LVHTML += '<td width="240" align="right">&nbsp;<br><a href="../../stills/label-' + 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';
    LVHTML += '</table>\n';
    PHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';
    PHTML += '<tr valign=top>\n';
    PHTML += '<td colspan="2" width="480">\n';
    PHTML += '<img src="../../stills/' + newImage + '.jpg" width="480" height="360" border="0"></td>\n';
    PHTML += '<tr valign=top height="16"><td colspan="2" width="480">&nbsp;</td></tr>\n';
    PHTML += '<tr valign=top><td width = "240">&nbsp;<br><a href="javascript:switchid(\'labeled\');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'LabeledSub\',\'\',\'../../graphics/Unlabeled-Labeled-over.gif\',1)"><img src="../../graphics/Unlabeled-Labeled.gif" alt="Viewing unlabeled image - Click for labeled image" name="LabeledSub" width="205" height="35" border="0" id="LabeledSub"></a></td>\n';
    PHTML += '<td width="240" 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';
    LPHTML = '<table width="480" border="0" cellpadding="0" cellspacing="0">';
    LPHTML += '<tr valign=top>\n';
    LPHTML += '<td colspan="2" width="480">\n';
    LPHTML += '<img src="../../stills/label-' + newImage + '.jpg" width="480" height="360" border="0"></td>\n';
    LPHTML += '</tr>\n';
    LPHTML += '<tr valign=top height="16"><td colspan="2" width="480">&nbsp;</td></tr>\n';
    LPHTML += '<tr valign=top><td width = "240">&nbsp;<br><a href="javascript:switchid(\'vid\');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'LabeledSub1\',\'\',\'../../graphics/Labeled-Unlabeled-over.gif\',1)"><img src="../../graphics/Labeled-Unlabeled.gif" alt="Viewing labeled image - Click for unlabeled image" name="LabeledSub1" width="205" height="35" border="0" id="LabeledSub1"></a></td>\n';
    LPHTML += '<td width="240" align="right">&nbsp;<br><a href="../../stills/label-' + 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';
    LPHTML += '</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;
        labeled.innerHTML = LVHTML;
        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;
        labeled.innerHTML = LPHTML;
        rend.innerHTML = '<p>&nbsp;</p>\n';
      } else if (newType == "sectioned") {
        vid.innerHTML = SHTML;
        rend.innerHTML = '<p>&nbsp;</p>\n';
      }      
    desc.innerHTML = '<p>' + newText + '</p><p>&nbsp;</p>';
    }
//    switchid('vid');
} // end of function

