function ctf(theText)
{
	if(theText.value == theText.defaultValue) 
	{
		theText.value = "";
	}
}

function rtf(theText) 
{
	if(theText.value == "") 
	{
		theText.value = theText.defaultValue;
	}
}

function cpf(passwordElem,fakePasswordElem)
{
	passwordElem.style.display = "block";
	fakePasswordElem.style.display = "none";
	passwordElem.focus();
}

function rpf(passwordElem,fakePasswordElem)
{
	if(passwordElem.value == "") 
	{
		fakePasswordElem.style.display = "block";
		passwordElem.style.display = "none";
		fakePasswordElem.value = fakePasswordElem.defaultValue;
	}
}

function accordianOpen(aid) 
{
	var i = 0;
	while(elem = document.getElementById("about-acord-"+(++i)))
	{
		elem.className = (i==aid) ? "s" : "";
	}
}

var testimonial_quote = 0;
function cycle_testimonial_quote() 
{
	setInterval("next_testimonial_quote()", 7000);
}

function next_testimonial_quote() 
{
	new Effect.Opacity("testimonial_quote"+testimonial_quote, { duration:1.0, from: 1, to: 0 });
	testimonial_quote++;
	if(!(document.getElementById("testimonial_quote"+testimonial_quote)))
	{
		testimonial_quote = 0;
	}
	new Effect.Opacity("testimonial_quote"+testimonial_quote, { duration:1.0, from: 0, to: 1 });
}

var testimonial_card = null;
function showmoretstmn(c)
{
	if(!testimonial_card)
	{
		testimonial_card = c;
	}
	for(i=0;i<c;i++,testimonial_card++)
	{
		if(elem = document.getElementById("testimonial_card"+testimonial_card))
		{
			elem.className = "x";
			elem = document.getElementById("testimonial_card_img"+testimonial_card);
			elem.src = elem.src.replace('loading.gif', elem.alt+".jpg");
//			elem.getElementById("testimonial_card_img"+testimonial_card).src = 
//				'<img src="/img/testimonials/'+testimonial_card+'.jpg" width="430" height="290" alt="" />';
		}
		else
		{
			document.getElementById("moar_testimonial_card").style.display = "none";
			break;
		}
	}
}

var openfaq = 0;
function showfaq(i)
{
	document.getElementById("faq"+openfaq).style.display = "none";
	openfaq = i;
	document.getElementById("faq"+openfaq).style.display = "block";
}