
	Size = document.Scale.Size.value;
	HomeRef = document.HiddenForm.HomeRef.value;
	if (HomeRef.indexOf("-")==-1) {
	HomeDir = HomeRef
	} else {
	HomeDir = HomeRef.substring(0,HomeRef.indexOf("-"))
	}
	TopURL = document.HiddenForm.TopURL.value;
	TheType = document.HiddenForm.TheType.value;

	ctext = '<DIV STYLE="margin:0; margin-left:0; padding:0;">';
	document.write(ctext);
	ctext = '<CENTER>';
	document.write(ctext);

	ctext = '<TABLE cellspacing="0" cellpadding="0" border="0">';
	document.write(ctext);
	ctext = "<TR>";
	document.write(ctext);

	ctext = "<TD>";
	document.write(ctext);
	ctext = '<img src="' + HomeDir + 'general/Bar-Begin.jpg" width="16" height="30" class="noborder" border="0">';
	document.write(ctext);
	ctext = "</TD>";
	document.write(ctext);

	TopGray = HomeDir + 'general/Bar-Top.jpg';
	TopBlue = HomeDir + 'general/Bar-Top-Blue.jpg';
	TopTitle = 'Top of Page';
	TopWidth = 65;
	CatalogGray = HomeDir + 'general/Bar-Catalog.jpg';
	CatalogBlue = HomeDir + 'general/Bar-Catalog-Blue.jpg';
	CatalogTitle = 'Top of Catalog Entries';
	CatalogWidth = 95;
	ResourcesGray = HomeDir + 'general/Bar-Resources.jpg';
	ResourcesBlue = HomeDir + 'general/Bar-Resources-Blue.jpg'; 
	ResourcesTitle = "Link to Resources";
	ResourcesWidth = 110
	GradingGray = HomeDir + 'general/Bar-Grading.jpg';
	GradingBlue = HomeDir + 'general/Bar-Grading-Blue.jpg';
	GradingTitle = 'Link to General Grading Guide'; 
	GradingWidth = 90
	if (Lang=="sp") {
	TopGray = HomeDir + 'general/Bar-Top-sp.jpg';
	TopBlue = HomeDir + 'general/Bar-Top-Blue-sp.jpg';
	TopTitle = 'Cabeza de la Página';
	TopWidth = 90;
	CatalogGray = HomeDir + 'general/Bar-Catalog-sp.jpg';
	CatalogBlue = HomeDir + 'general/Bar-Catalog-Blue-sp.jpg';
	CatalogTitle = 'Cabeza del Catálogo';
	CatalogWidth = 105;
	ResourcesGray = HomeDir + 'general/Bar-Resources-sp.jpg';
	ResourcesBlue = HomeDir + 'general/Bar-Resources-Blue-sp.jpg'; 
	ResourcesTitle = "Recursos";
	ResourcesWidth = 95
	GradingGray = HomeDir + 'general/Bar-Grading-sp.jpg';
	GradingBlue = HomeDir + 'general/Bar-Grading-Blue-sp.jpg'; 
	GradingTitle = 'Grado de Conservación'; 
	GradingWidth = 145
	}

	if (TheType=="CG") {
	ctext = "<TD>";
	document.write(ctext);
	ctext = '<a href="' + TopURL + '.html?Size=' + Size + '#catalog" title="' + CatalogTitle + '" class="noGold" ';
	ctext2 = "onMouseOver='document.footerCatalog.src = " + '"' + CatalogBlue + '"; '
	ctext3 = "'onMouseOut='document.footerCatalog.src = " + '"' + CatalogGray + '";' + "'>"
	ctext = ctext + ctext2 + ctext3
	document.write(ctext);
	ctext = '<img name="footerCatalog" src="' + CatalogGray + '" width="' + CatalogWidth + '" height="30" class="noborder" border="0"></A>';
	document.write(ctext);
	ctext = "</TD>";
	document.write(ctext);
	}

	if (TheType=="RS") {
	ctext = "<TD>";
	document.write(ctext);
	ctext = '<a href="' + HomeDir + 'resources.html' + "?Size=" + Size + '" title="' + ResourcesTitle + '" class="noGold" ';
	ctext2 = "onMouseOver='document.footerResources.src = " + '"' + ResourcesBlue + '"; '
	ctext3 = "'onMouseOut='document.footerResources.src = " + '"' + ResourcesGray + '";' + "'>"
	ctext = ctext + ctext2 + ctext3
	document.write(ctext);
	ctext = '<img name="footerResources" src="' + ResourcesGray + '" width="' + ResourcesWidth + '" height="30" class="noborder" border="0"></A>';
	document.write(ctext);
	ctext = "</TD>";
	document.write(ctext);
	}

	if (TheType=="GR") {
	ctext = "<TD>";
	document.write(ctext);
	ctext = '<a href="' + HomeDir + 'grading.html' + "?Size=" + Size + '" title="' + GradingTitle + '" class="noGold" ';
	ctext2 = "onMouseOver='document.footerGrading.src = " + '"' + GradingBlue + '"; '
	ctext3 = "'onMouseOut='document.footerGrading.src = " + '"' + GradingGray + '";' + "'>"
	ctext = ctext + ctext2 + ctext3
	document.write(ctext);
	ctext = '<img name="footerGrading" src="' + GradingGray + '" width="' + GradingWidth + '" height="30" class="noborder" border="0"></A>';
	document.write(ctext);
	ctext = "</TD>";
	document.write(ctext);
	}

	ctext = "<TD>";
	document.write(ctext);
	ctext = "<a href='" + TopURL + ".html?Size=" + Size + "' title='" + TopTitle + "' class='noGold'";
	ctext2 = " onMouseOver=" + "'document.footerTop.src = "; 
	ctext3 = '"' + TopBlue + '";' + "'onMouseOut='document.footerTop.src = ";
	ctext4 = '"' + TopGray + '";' + "'>";
	ctext = ctext + ctext2 + ctext3 + ctext4;
	document.write(ctext);
	ctext = '<img name="footerTop" src="' + TopGray + '" width="' + TopWidth + '" height="30" class="noborder" border="0"></A>';
	document.write(ctext);
	ctext = "</TD>";
	document.write(ctext);

	ctext = "<TD>";
	document.write(ctext);
	ctext = '<img src="' + HomeDir + 'general/Bar-End.jpg" width="16" height="30" class="noborder" border="0">';
	document.write(ctext);
	ctext = "</TD>";
	document.write(ctext);

	ctext = "</TR>";
	document.write(ctext);
	ctext = "</TABLE>";
	document.write(ctext);

	ctext = '</CENTER>';
	document.write(ctext);
	ctext = '</DIV>';
	document.write(ctext);
	ctext = '<SCRIPT LANGUAGE="JavaScript" SRC="' + HomeDir + 'footer.js"></SCRIPT>';
	document.write(ctext);
