function loadframe() {
	iviewer.document.writeln ("<html><head><title>movie</title></head><body bgcolor='#ffffff' background='"+homepath+"/splash.gif'>");
	if (haveqt) {
		iviewer.document.writeln ('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH='+winwidth+' HEIGHT='+winheight+'>');
		iviewer.document.writeln ('<PARAM name="qtsrc" value="'+thispath+'/'+scenes[newvr]+'">');
		iviewer.document.writeln ('<PARAM name="src" value="'+homepath+'/uneedqt4.qtif">');
		iviewer.document.writeln ('<PARAM name="type" value="image/x-quicktime">');
		iviewer.document.writeln ('<PARAM name="pluginspage" value="http://www.apple.com/quicktime/download/">');
		iviewer.document.writeln ('<PARAM name="name" value="viewer">');
		iviewer.document.writeln ('<PARAM name="AUTOPLAY" value="false">');
		iviewer.document.writeln ('<PARAM name="CONTROLLER" value="false">');
		iviewer.document.writeln ('<EMBED qtsrc="'+thispath+'/'+scenes[newvr]+'" src="'+homepath+'/uneedqt4.qtif" type="image/x-quicktime" pluginspage="http://www.apple.com/quicktime/download/" name="viewer" HEIGHT='+winheight+' WIDTH='+winwidth+' AUTOPLAY=false CONTROLLER=false></EMBED>');
		iviewer.document.writeln ('</OBJECT>');
		}
	else {
		iviewer.document.writeln ("<APPLET name='viewer' archive=ptviewer.jar codebase='"+homepath+"' code='ptviewer.class' width='"+winwidth+"' height='"+winheight+"' mayscript=true>");
		iviewer.document.writeln ("<PARAM name=wait		value='"+homepath+"/splash.gif'>");
		iviewer.document.writeln ("<PARAM name=file		value='"+thispath+"/"+scenes[newvr]+"'>");
		for (i=0; i<numscenes; i++) {
			iviewer.document.writeln ("<PARAM name=pano"+i+"		value='{file="+thispath+"/"+scenes[i]+"}'>");
			}
		iviewer.document.writeln ("</APPLET>");
		}
	iviewer.document.writeln ("</body></html>");
	}
