// pano.js

// Live Picture Panorama Viewer 

function linkpano(panoName, panoFilename)
{
	document.write('<div align=center>');
	document.write('<a href=' + panoFilename + '.html><img src="' + panoFilename + 'Small.jpg"></a>');
	document.write('<p><i>' + panoName + ' </i> &middot <a href=' + panoFilename + 'Large.jpg> Image </a>| <a href=' + panoFilename + '.html> Panorama</a>');
	document.write('<br><br><div align=left>');
}


function pano(panoName, panoFilename, panoWidth, panoHeight)
{
	document.write('<br><br>');
	var myBrowser = navigator.appName;
	//document.write(myBrowser + '<br><br>');
	var myVersion = parseFloat(navigator.appVersion);
	document.write('<div align=center>');

	if (myBrowser == 'Netscape' && myVersion < 4.0) 
	{
		document.write('<applet archive="lpjpanoNS3.zip" code="LPPano.class" width=' + panoWidth + ' height=' + panoHeight + '>');
	}
	else
	{
		document.write('<applet archive="lpjpano.zip" code="LPPano.class" width=' + panoWidth + ' height=' + panoHeight + '>');
	}

	document.write('<PARAM name=cabbase value="lpjpano.cab">');
	document.write('<PARAM name=file value="' + panoFilename + '.ivr">');
	document.write('</applet><br>');
	document.write('<p><i>' + panoName + '</i><br>');
	document.write('<br><br>');
	document.write('<b>Click and drag in the image to view panorama</b>');
	document.write('<br><br>');
	document.write('<div align=left>');
}






