// MetaballsPlan v0.1      Copyright (c) 2002 Jens Diemer (www.jens-diemer.de)


function QTVRschreiben()
{
	HTMLKopf  = '<html><head>';
	HTMLKopf += '<title>Acropora-Komplex-Projekt -FH-D, QuickTimeVR, WS01/02</title>';
	HTMLKopf += '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">';
	HTMLKopf += '<meta http-equiv="content-language" content="de">';
	HTMLKopf += '<meta name="Copyright" content="MetaballsPlan 2002 by Jens Diemer">';
	HTMLKopf += '</head><body bgcolor="#000000" text="#FFFFFF" link="#EEEEEE" vlink="#CCCCCC" alink="#FFFFFF" style="overflow:hidden;">';

	QTVR ="";
// QTVR  ='<div style="top:0px; left:0px; width:640px; width:400; overflow:hidden;">';	
// QTVR  = '<div align="center">';
	QTVR += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="640" height="400" codebase="http://www.apple.com/qtactivex/qtplugin.cab" vspace="0" hspace="0">';
	QTVR += '<param name="SRC" value="Metaballs.mov">';
	QTVR += '<param name="AUTOPLAY" value="true">';
	QTVR += '<param name="CONTROLLER" value="false">';
	QTVR += '<param name="bgcolor" value="#000000">';
	
	for(i = 1; i <= 9; i++)
	{
		QTVR += '<param name="hotspot00'+i+'" value="JavaScript:top.Link(\'ID0'+i+'\')">';
	}
	
	QTVR += '<param name="pan" value="'+top.pan+'">';
	QTVR += '<param name="tilt" value="'+top.tilt+'">';
	
	QTVR += '<embed src="Metaballs.mov" ';
		QTVR += 'type="video/quicktime" width="640" height="400" controller="false" ';
		QTVR += 'pluginspage="http://www.apple.com/quicktime/download" vspace="0" hspace="0" ';
		QTVR += 'autoplay="true" bgcolor="#000000" ';
		
	QTVR += 'pan="'+top.pan+'" ';
	QTVR += 'tilt="'+top.tilt+'" ';

	for(i = 1; i <= 9; i++)
	{
		QTVR += ' hotspot00'+i+'="JavaScript:top.Link(\'ID0'+i+'\')"';
	}
	QTVR +='>'	// Embed-Tag schließen
	QTVR +='</embed></object>';

	QTVR +='<embed src="sound.mov" type="audio/basic"';
	QTVR += 'loop="true" controller="false" autoplay="true"></embed>';
//QTVR +='</div>';
	
//alert(QTVR)
	
	doc = eval(top.mainFrame.document);
	doc.open();
	doc.writeln(HTMLKopf);
	doc.writeln(QTVR);
	doc.writeln('</body></html>');
	doc.close();
}

function Link(ID)
{

//alert("Aussuführender Link: ../"+ID+"/index.htm alter PAN:"+top.pan+" alter Tilt:"+top.tilt);
	
	if (ID=="ID01")	{	top.pan="96.3";		top.tilt="-42.3";	} else
	if (ID=="ID02")	{	top.pan="158.6";	top.tilt="53.3";	} else
	if (ID=="ID03")	{	top.pan="145.5";	top.tilt="-0.6";	} else
	if (ID=="ID04")	{	top.pan="98.6";		top.tilt="-49.8";	} else
	if (ID=="ID05")	{	top.pan="53.6";		top.tilt="30.8";	} else
	if (ID=="ID06")	{	top.pan="312.3";	top.tilt="-38.6";	} else
	if (ID=="ID07")	{	top.pan="268.8";	top.tilt="75.3";	} else
	if (ID=="ID08")	{	top.pan="255.6";	top.tilt="0.3";		} else
	if (ID=="ID09")	{	top.pan="218.1";	top.tilt="28.0";	}

	top.mainFrame.location.href="../"+ID+"/index.htm";
}
