/*-----------{testimonials}-----------*/////////////////////////////////////////array to hold testimonials buttons////////////////////////////////////////var testimonials = new Array();//////////////////////////////////////////////////////check if variable, function or object is defined//////////////////////////////////////////////////////function isDefined(property) {  return (typeof property != 'undefined');}/////////////////////////////////////////////////////////////////toggle description display and hide other open descriptions/////////////////////////////////////////////////////////////////function toggle_desc() {	//first hide all other open testimonials	for (t in this.others) {		this.others[t].desc.style.display = "none";	}	var disp_style = this.desc.style;	disp_style.display = (disp_style.display == "none") ? "block" : "none";}//////////////////////////////////////////////////////////////////////add events to the anchor tags in the testimonials unordered list//////////////////////////////////////////////////////////////////////function buildTestimonialsExpand() {	var tst_ul = document.getElementById("tst_list");	//gather list elements into an array	var li_arr = new Array();	for (n in tst_ul.childNodes) {		if (tst_ul.childNodes[n].nodeName == "LI") li_arr.push(tst_ul.childNodes[n]);	}	//create an object to hold the anchor and paragraph elements, and group into an array	var testimonials = new Array();	for (li in li_arr) {		var tst_but = new Object();		for (n in li_arr[li].childNodes) {			if (li_arr[li].childNodes[n].nodeName == "H3") tst_but = li_arr[li].childNodes[n];			if (li_arr[li].childNodes[n].nodeName == "DIV") tst_but.desc = li_arr[li].childNodes[n];		}		testimonials.push(tst_but);	}	//assign events	for (t in testimonials) {		//hold references to the other testimonials		testimonials[t].others = new Array();		for (tt in testimonials) {			if (testimonials[tt] != testimonials[t]) testimonials[t].others.push(testimonials[tt]);		}		testimonials[t].desc.style.display = (t == 0) ? "block" : "none";		testimonials[t].onclick = toggle_desc;	}}//////////////////////////////////////////////////////////////////////wait until the page finishes loading to assign events to anchors//////////////////////////////////////////////////////////////////////if (isDefined(window.addEventListener)) {	//w3c	window.addEventListener('load', buildTestimonialsExpand, false);} else if (isDefined(window.attachEvent)) {	//microsoft	window.attachEvent('onload', buildTestimonialsExpand);}