function MM_reloadPage(init) {  //reloads the window if Nav4 resized, like we care about NN4 any more
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function showMovie(theWidth,theHeight,theFile){ // Creates QTVR with Javascript, to avoid the Eolas / Microsoft patent issue
	document.write( '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="' + theWidth + ' " height="' + theHeight + '" codebase="http://www.apple.com/qtactivex/qtplugin.cab"> <param name="src" value="' + theFile + '"> <param name="controller" value="true"> <embed width="' + theWidth + '" height="' + theHeight + '" src="' + theFile + '" loop="false" autoplay="true" controller="true" playeveryframe="false" scale="aspect" name="ArDesQTVRSample" pluginspage="http://www.apple.com/quicktime/download/"> \n')
}

function showFlash(theWidth,theHeight,theFile){ // Creates Flash with Javascript, to avoid the Eolas / Microsoft patent issue
	document.write('<object class="flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'  + theWidth + '" height="' + theHeight + '" title="ArDes Sample"><param name="movie" value="' + theFile + '" /><param name="quality" value="high" /><embed src="' + theFile + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + theWidth + '" height="' + theHeight + '"></embed></object> \n')
}