// JavaScript Document
function change(cid)
{
	var clientTitle = new Array;
//	clientTitle[0] = "<a class='a1'>1 -- Khan & Morris really</a> <a class='a2'>guided us, helping</a> <a class='a3'>increase our income by</a> <a class='a4'>lowering our tax</a>";
	clientTitle[1] = "<a class='a1'>\"Khan Morris identified</a> <a class='a2'>an area of tax saving which has</a> <a class='a3'>resulted in a substantial</a> <a class='a4'>tax refund\"</a>";
	clientTitle[2] = "<a class='a5'>\"Khan Morris installed</a> <a class='a6'>a first class internal financial</a> <a class='a7'>system, allowing us to really</a> <a class='a8'>understand our business\"</a>";
	clientTitle[3] = "<a class='a9'>\"Whenever we phone</a> <a class='a11'>Khan Morris they</a><a class='a10'>always respond in</a><a class='a12'>a friendly and clear way\"</a>";
	clientTitle[4] = "<a class='a13'>\"Having decided to sell our</a> <a class='a14'>business, Khan Morris advised</a> <a class='a15'>on all areas of corporate and</a> <a class='a16'>personal taxation and saved us</a><a class='a17'>substantial amounts of tax\"</a>";	
	
	var clientName = new Array;
//	clientName[0] = "Document Genie";
	clientName[1] = "Document Genie";
	clientName[2] = "Churchill Filestore Ltd";
	clientName[3] = "K&D Trailer Services Ltd";
	clientName[4] = "Capita Bobrowski";	
	
	var clientContent = new Array;
//	clientContent[0] = "1 --  This is the dummy text, it is placed here when no content is available to put into the website. Tom likes designing websites, but not writing content so much.This is the dummy text, it is placed here when no content is available to put into the website. Tom likes designing websites, but not writing content so much.This is the dummy text, it is placed here when no content is available to put into the website. Tom likes designing websites, but not writing content so much.";
	clientContent[1] = "<a class='title'>Name</a>: Nick Hilsden<br /><br /><a class='title'>Occupation</a>: Director<br />";
	clientContent[2] = "<a class='title'>Name</a>: Robert O'Neill <br /><br /><a class='title'>Occupation</a>: Managing Director<br />";
	clientContent[3] = "<a class='title'>Name</a>: Ralph Kennard<br /><br /><a class='title'>Occupation</a>: Managing Director<br />";
	clientContent[4] = "<a class='title'>Name</a>: Ritchie Clapson<br /><br /><a class='title'>Occupation</a>: Managing Director<br />";
	for(i=1; i<5; i++)
	{
		if(i == cid)
		{
			document.getElementById('client_title').innerHTML = clientTitle[i];
			document.getElementById('client_name').innerHTML = clientName[i];
			document.getElementById('client_content').innerHTML = clientContent[i];
			break;
		}
	}
}

var current_button='b1';

function changeButton(id, path)
{
	if(id != current_button)
	{
//		alert(document.getElementById(id).src);
		document.getElementById(id).src = path+"/images/client_page/"+id+"_black.png";
//		alert(document.getElementById(id).src);	
		document.getElementById(current_button).src = path+"/images/client_page/"+current_button+"_pink.png";
		current_button = id;
	}
}
