//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function put_chime_consurf()
{

// I can't find any way to detect whether opener has properties without
// creating a js error.
//	alert(typeof(opener)); 'object' whether or not exists.
//	alert(typeof(opener.name));

	var spt = "@spt view01\n";
	opener.top.fr_control.fr_ur.expand_spts(spt);
	spt = opener.top.fr_control.fr_ur.spt_expanded;

	// If a double quote occurs within the script, use a generic rendering.
	if (spt.indexOf("\"") != -1)
	{
		spt = "select protein; backbone 1.0; color chain;\n";
	}

	with (document)
	{
		writeln("<embed src='" + opener.top.last_requested_pdb + "'");
		writeln("align=left hspace=15");
		writeln("height=45% width=30%");
		writeln("spiny=15 spinfps=45 startspin=true");
		writeln("script=\"");
		writeln("wireframe off");
		writeln(spt);
//		writeln("select protein");
//		writeln("backbone 1.0");
//		writeln("color chain");
		writeln("\">");
	}
}
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function put_nochime()
{
	with (document)
	{
	writeln("<table width=\"30%\" height=\"45%\" align=\"left\"");
	writeln("bgcolor='#e0e0e0' border=\"1\" cellpadding=\"10\">");
	writeln("<tr><td><center>");

	writeln("When this page is opened from the <i>ConSurf View</i>");
	writeln("(inside Protein Explorer) of a ConSurf Job,");
	writeln("the molecular image will be shown here, and the PDB");
	writeln("file can be saved from here.");

	writeln("</center></td></tr></table>");
	}
}
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function put_downmore(label)
{
	with (document)
	{
		write("<a href='downmore.htm" + window.location.search + "'>");
		write(label);
		writeln("<\/a>");
	}
}
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

