
var delay=100;
var currentChar=1;
var destination="";

var text1 = "<table><tbody><tr><td>Financing up to 100%!</td></tr><tr><td>Bad credit/low credit score? - we can help!</td></tr><tr><td>Low down payment available!</td></tr><tr><td>Financing rate as low as 2% + prime.</td></tr></tbody></table>";

 
function type()
{
  if (document.getElementById)
  {
    var dest=document.getElementById(destination);
    if (dest)
    {
      dest.innerHTML=text.substr(0, currentChar);
      currentChar++;
      if (currentChar<=text.length)
      {
        setTimeout("type()", delay);
      }
    }
  }
}
 
function startTyping(textParam, delayParam, destinationParam)
{
  text=textParam;
  delay=delayParam;
  currentChar=1;
  destination=destinationParam;
  type();
}
 
id_old = 'a1.0';
 
function clearingId(id) {
	document.getElementById(id_old).style.color = '#666666';
	id_old = id;
	return id_old;
}
 
function showingId(id_old) {
	document.getElementById(id_old).style.color = '#9999CC';
	return id_old;
}
 
var tab = new Array('services', 'financing');
 
function mouseClick1a(id, z) {
	clearingId(id);
	//for (i=0;i<tab.length;i++) {
		document.getElementById(tab[0]).style.display = 'none';
		document.getElementById(tab[1]).style.display = 'none';
	//}
	
	document.getElementById(z).style.display = 'block';
	showingId(id_old);
}
 
 

