function AdjustWidth()
{
	var winW = 800;

	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  winW = document.body.offsetWidth;
	 }
	}

	if (winW >= 1590)
	{
		document.write("<style>");
		document.write(UltraWide());
		document.write("</style>");
	}
	else if (winW >= 1370)
	{
		document.write("<style>");
		document.write(ExtraWide());
		document.write("</style>");
	}
	else if (winW >= 1131)
	{
		document.write("<style>");
		document.write(Wider());
		document.write("</style>");
	}
}

function Wider()
{
	var sReturnValue = '';

	sReturnValue = sReturnValue + 'table.Main { width: 1101px; }	\n';
	sReturnValue = sReturnValue + 'table.Content { background: URL(/images/total_bg1101.gif); }	\n';
	sReturnValue = sReturnValue + 'p.home { width: 700px; }	\n';
	sReturnValue = sReturnValue + 'table.home { width: 700px; }	\n';
	sReturnValue = sReturnValue + 'table.dealer { border: solid 1pt #13294E; width: 800px; }	\n';

	return sReturnValue;
}

function ExtraWide()
{
	var sReturnValue = '';

	sReturnValue = sReturnValue + 'table.Main { width: 1340px; }	\n';
	sReturnValue = sReturnValue + 'table.Content { background: URL(/images/total_bg1340.gif); }	\n';
	sReturnValue = sReturnValue + 'p.home { width: 800px; }	\n';
	sReturnValue = sReturnValue + 'table.home { width: 800px; }	\n';
	sReturnValue = sReturnValue + 'table.dealer { border: solid 1pt #13294E; width: 800px; }	\n';

	return sReturnValue;
}

function UltraWide()
{
	var sReturnValue = '';

	sReturnValue = sReturnValue + 'table.Main { width: 1560px; }	\n';
	sReturnValue = sReturnValue + 'table.Content { background: URL(/images/total_bg1560.gif); }	\n';
	sReturnValue = sReturnValue + 'p.home { width: 900px; }	\n';
	sReturnValue = sReturnValue + 'table.home { width: 900px; }	\n';
	sReturnValue = sReturnValue + 'table.dealer { border: solid 1pt #13294E; width: 800px; }	\n';

	return sReturnValue;
}
