// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function makeLicenseAndCredits()
{
	var lic;
	if (alternativeLicenseAndCredits != "")
		lic = alternativeLicenseAndCredits;
	else if (license == '')
		lic = noLicense;
	else if (license == "ccansa3")
		lic = make_ccansa3();
	else // no alternativeLicenseAndCredits, and license neither blank nor ccansa3
		lic = noLicense;

	return lic;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

var noLicense =

			'<font color="red"><big>Author: Please specify a license, ' +
			'copyright holder, credits, etc. in js4all/license.js.</big></font>';

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
var educatorInfo =

'<center><b>Open Access</b></center><br> \
You are encouraged to link to this Tutorial, for which permission is \
not required. Educators using this Tutorial in teaching are asked \
to let the author(s) know by email ('

+ copyrightHolderEmail +

'). The author(s) will also appreciate receiving your \
suggestions for improvement. \
';

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

var sourceFromAuthor =
'Copies of this Tutorial are available on request from the author, \
should you wish to put it on your own server, or modify the content. \
';

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

var madeWithJTAT =

'<br><br>This Tutorial was made with the \
<a href="http://bioinformatics.org/jmol-tutorials/wiki" \
target="_blank"><b>Jmol Tutorial-Authoring Template (JTAT)</b></a> \
';

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function make_ccansa3()
{
	var lic = "<hr noshade>";

	lic += educatorInfo + madeWithJTAT +

// in the CC code below, I replaced this line
// src="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" \
// with a local .png file, since when the CC server is slow,
// JTAT takes a long time to load the molecule, waiting for CC!

'<br><br><center><b>License</b></center> \
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" \
target="_blank"> \
<img alt="Creative Commons License Logo" \
title="Creative Commons License Logo" \
style="border-width:0" \
src="../../_imgutil/cc88x31.png" \
align="right" hspace="10" vspace="6" /> \
</a> \
<br /> \
<span xmlns:dc="http://purl.org/dc/elements/1.1/" \
href="http://purl.org/dc/dcmitype/InteractiveResource" \
property="dc:title" rel="dc:type">This Tutorial</span> \
is copyright &copy; '

+ copyrightYear +

' by <a xmlns:cc="http://creativecommons.org/ns#" \
href="'

+ copyrightHolderURL +

'" property="cc:attributionName" \
rel="cc:attributionURL" target="_blank"><b>'

+ copyrightHolder + 

'</b></a>, \
and is licensed under a  \
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" \
target="_blank"><b>Creative Commons Attribution - Noncommercial - Share \
Alike 3.0 License</b></a>. \
';

	lic += sourceFromAuthor;
	lic += tutorialCredits;

	return lic;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
