// JScript File
function swapSpecialty( showSpecialty ) {
	
	var swapSpecialtyName;
	var swapSpecialtyDesc;
	var swapSpecialtyImage;
	var showSpecialty = new Array ();
	
	showSpecialty[0] = "PlayTherapy";
	showSpecialty[1] = "GroupTherapy";
	showSpecialty[2] = "CouplesTherapy";	
	
	var i = Math.floor(3*Math.random())	

	//Play Therapy Specialty
	if (showSpecialty[i] == 'PlayTherapy') {
		swapSpecialtyName = 'Play Therapy';
		swapSpecialtyDesc = 'ETC specializes in experiential play therapy. Through a safe and supportive process they are able to explore their world using a sandtray and a collection of miniatures.';
		swapSpecialtyImage = '<img src="images/orangebox-playtherapy.gif"/><br /><a href="services.htm#ChildTherapy">read more...</a>';
	}
	
	// Group Counseling Specialty
	if (showSpecialty[i] == 'GroupTherapy') {
		swapSpecialtyName = 'Group Therapy';
		swapSpecialtyDesc = 'ETC specializes in group therapy. ETC offers a variety of group therapy programs. Groups are open to both voluntary and court-ordered clients.';
		swapSpecialtyImage = '<img src="images/orangebox-grouptherapy.gif"/><br /><a href="groups.htm">read more...</a>';
	}
	
	if (showSpecialty[i] == 'CouplesTherapy') {
		swapSpecialtyName = 'Couples Therapy';
		swapSpecialtyDesc = 'Assisting couples (married or not) in new ways of reconciling troublesome differences in a safe environment.<br />Through this treatment, couples can make thoughtful decisions about transforming their relationship or in other cases, may choose to go their separate ways. ';
		swapSpecialtyImage = '<img src="images/orangebox-couplestherapy.gif"/><br /><a href="services.htm">read more...</a>';
	}	
	
	// others?
	
	if (document.all || document.getElementById) {
			document.getElementById("specialty").innerHTML = swapSpecialtyName;
			document.getElementById("specialtyDesc").innerHTML = swapSpecialtyDesc;	
			document.getElementById("specialtyImage").innerHTML = swapSpecialtyImage;
	}

}
