var html = '';

//note - as this ends up being written in index.php, in the folder above, paths must be relative to that folder. Will be somewhat confusing!
//no longer applies if using standard HTML

html += '</TD></TR></TABLE>';
html += '</TD></TR></TABLE>';
html += '</TD></TR></TABLE>';
html += '<BR><table align="" style="font-size:8pt;" width="755" border=0><tr><td align="center">';

//language links!

//html += '<a href="en/home.html" class="normal">English</a> &nbsp;  <img src="../images/uk_flag.gif" alt="" width="25" height="17" border="0" align="middle"> &nbsp; <strong>|</strong> &nbsp;  <a href="../fr/home.html" class="normal">Fran&ccedil;ais</a> &nbsp;  <img src="../images/fr_flag.gif" alt="" width="25" height="17" border="0" align="middle">&nbsp; <strong>|</strong> &nbsp; <a href="../de/home.html" class="normal">Deutsch</a> &nbsp;   <img src="../images/de_flag.gif" alt="" width="25" height="17" border="0" align="middle">&nbsp; <strong>|</strong>  &nbsp;  <a href="../es/home.html" class="normal">Espa&ntilde;ol</a> &nbsp;   <img src="../images/es_flag.gif" alt="" width="25" height="17" border="0" align="middle">';
//html += '<BR><HR width="40%" color="navy" noshade>';


var text = "<a href='http://www.reliant-machinery.cn'><img src='images/RELIANTCHINA.gif' alt='' width='131' height='25' border='0' align='middle'><!-- Reliant China --></a> <a href='http://www.reliant-machinery.cn'><img src='../images/chinese-flag.gif' alt='' width='40' height='27' border='0' align='middle'></a><BR><BR>Copyright &copy; Reliant Machinery Ltd. 2007 | <A HREF='sitemap.html' class='normal' style='font-size:8pt'> Sitemap </a> <BR>Website designed by <A HREF='http://www.coolwebeffects.net' class='normal' style='font-size:8pt'>Coolwebeffects</A>";
html += text + '</td></tr></table>';

var bodycontent = document.getElementById("bodycontent");
var leftgradimg = document.getElementById("leftgradimg");
var pagesize = bodycontent.innerHTML.length;

//ALL NEED UPDATING!
//comp (empty) = 18000
//home = 27000
//spare = 19000
//lamapps = 37000

//alert(pagesize);

//might in fact be easier to do this manually

var longpages = new Array("spares.html");//"laminapps.html"

/*if(location.href.indexOf("laminapps.html") != -1)
{
	leftgradimg.height = 1100;
	leftgradimg.src = "../images/leftsidegradient2.png";
}
else */if(location.href.indexOf("spares.html") != -1)
{
	leftgradimg.height = 850;
	leftgradimg.src = "../images/leftsidegradient2.png";
}



/*

if(location.href.indexOf(longpages[i])) 

for(i=0;i<longpages.length;i++)
{
	if(location.href.indexOf(longpages[i]) != -1)
	{
		

		else
		{}
	}
}

if(pagesize > 33000 && location.href.indexOf("worldmap.php") == -1)
{
	leftgradimg.src = "../images/leftsidegradient2.png";
	leftgradimg.height = 700;
}*/
/*else if(pagesize < 26000)
{
	leftgradimg.height = 150;
}*/

	//alert(bodytable.style.height);

document.writeln(html);