// rico.js

//	The script below simply takes an applet and places each tag in a document.write statement. 
//	
//	For example place the tag:
//	<PARAM name=bgcolor value="000000">
//	into the write statement:
//	document.write('   <tag here>   ');
//	to get the statement:
//	document.write('<PARAM name=bgcolor value="000000">');
//	You place the script at the bottom of the page where the applet used to be
//	and when you run it the script is recreated on the fly, and not subject to
//	the dreaded "Click to Activate" restriction



document.write('<APPLET name=ptviewer archive=/system/scripts/ptviewer.jar  code=ptviewer.class width=400 height=300 mayscript="true">');  //archive points to .jar file
document.write('<param name="file"  value="ptviewer:0">');
document.write('<param name="preload"  value="rico_kitchen.jpg, rico_terrace.jpg">');
//document.write('<PARAM name=wait 	value="loading.gif">');  	//loads image displayed while file loads
document.write('<PARAM name=bgcolor	value="DDDDDD">');			//background color during load
document.write('<param name="auto"  value=".15">');				//controls rate of rotation & direction
document.write('<param name="mass"  value="10">');
//document.write('<param name="bar_x"  value="0">');
//document.write('<param name="bar_y"  value="0">');
//document.write('<param name="bar_width"  value="400">');
//document.write('<param name="bar_height"  value="300">');
//document.write('<param name="barcolor" value="cccccc">');
document.write('<param name="cursor"  value="move">');			//4-arrow cursor



document.write('<param name="pano0" value="{file=rico_living.jpg} 	{pan=0}		{hotspot0=x2250 y900 a2350 b600 FF0000 n\'Jump to Kitchen\' u\'ptviewer:newPanoFromList(1)\' p}{hotspot1=x2800 y900 a3000 b600 FF0000 n\'Jump to Terrace\'  u\'ptviewer:newPanoFromList(2)\' p}">');
document.write('<param name="pano1" value="{file=rico_kitchen.jpg}	{pan=-90}	{hotspot0=x850  y900 a1050 b600 FF0000 n\'Jump to Living\' u\'ptviewer:newPanoFromList(0)\' p}{hotspot1=x250  y900 a450  b600 FF0000 n\'Jump to Terrace\' u\'ptviewer:newPanoFromList(2)\' p}">');
document.write('<param name="pano2" value="{file=rico_terrace.jpg}				{hotspot0=x1200 y900 a1400 b600 FF0000 n\'Jump to Living\' u\'ptviewer:newPanoFromList(0)\' p}{hotspot1=x1550 y900 a1750 b600 FF0000 n\'Jump to Kitchen\' u\'ptviewer:newPanoFromList(1)\' p}">');

document.write('</APPLET>');




//
//	To activate the script above simply enter the code below where the applet above belongs:
//
//	<script src="rico.js"></script>

//Pressing 'v' displays the current pan, tilt and field-of-view angles. This is useful for setting initial views, or specifying parameters for the gotoView() command. 
//Pressing 'h' and clicking the mouse displays the current X/Y coordinates in the panoramic image. These are useful for specifying hotspot parameters. The values are relative coordinates (0...100) and have to be used with capitol X and Y in the html-document. 

//Commands and applet tags which are used frequently may be put into a separate file named 'PTDefault.html'. The syntax for providing commands is identical to the newPano() function. Example: 

//{wait=wait.jpg}{bar_x =187}{bar_y=283}{bar_width=302}{bar_height=25} 


