var new360Win;
function make360Popup() {
   new360Win = window.open("","Popup2", "width=650, height=565, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizeable=yes");
}
function write360Content(HT,WD,Tnum,yaw,view,caption) {
	var W = WD + 50;
	var H = HT + 50;
	var Bg = "696969";
	var AppletStr = "";
	make360Popup();
	var new360Content = '<Html><Head><Meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><Link href="PhotoGallery.Enlargement.css" rel="stylesheet" media="screen">';
	new360Content += '</Head><Body bgcolor="#696969" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"><Table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"><Tr height="100%"><Td align="center" valign="middle" bgcolor="#696969" width="100%" height="100%">';
	new360Content += '<Table border="0" cellspacing="0" cellpadding="0" width="';
	new360Content += W += '" height="';
	new360Content += H += '"><Tr><Td align="center" valign="middle" bgcolor="black">';
	new360Content += '<Table border="0" cellspacing="0" cellpadding="0" width="';
	new360Content += WD;
	new360Content += '" height="';
	new360Content += HT;
	new360Content += '">';
	new360Content += '<Tr><Td align="left" valign="top">';
//      -------------
	AppletStr  = '<APPLET name=ilaviewer code=ilaviewer2.class mayscript=true height=';
	AppletStr += HT += ' width=';
	AppletStr += WD += ' archive="ilaviewer2.zip"><PARAM NAME="initialview" VALUE="';
	AppletStr += view + '"><PARAM NAME="yawStart" VALUE="';
	AppletStr += yaw + '"><PARAM NAME="filename" VALUE="GetPano';
	AppletStr += Tnum + '.jpg"><PARAM NAME="splash" VALUE="splash.gif"><PARAM NAME="toolbar" VALUE="ilatoolbar.gif"><PARAM NAME="backgroundcolor" VALUE="';
	AppletStr += Bg + '"></APPLET>';
//      -------------
	new360Content += AppletStr += '</Td></Tr></Table></Td></Tr></Table><Br><Font size="2">';
	new360Content += caption += '<Br><Br>~ <A href="#" onClick="self.close()">click here to close this window</A> ~</Font></Td></Tr></Table></Body></Html>';
        new360Win.document.write(new360Content);
	new360Win.document.close();
	new360Win.focus();
}


//<Script language="JavaScript1.2" src="Rclick.js"></Script>