// JavaScript Document
test1On=new Image()
test1On.src="pix/testimonialButtons/test1_on.gif"
test1Off=new Image()
test1Off.src="pix/testimonialButtons/test1_off.gif"

test2On=new Image()
test2On.src="pix/testimonialButtons/test2_on.gif"
test2Off=new Image()
test2Off.src="pix/testimonialButtons/test2_off.gif"

test3On=new Image()
test3On.src="pix/testimonialButtons/test3_on.gif"
test3Off=new Image()
test3Off.src="pix/testimonialButtons/test3_off.gif"

test4On=new Image()
test4On.src="pix/testimonialButtons/test4_on.gif"
test4Off=new Image()
test4Off.src="pix/testimonialButtons/test4_off.gif"

test5On=new Image()
test5On.src="pix/testimonialButtons/test5_on.gif"
test5Off=new Image()
test5Off.src="pix/testimonialButtons/test5_off.gif"

test6On=new Image()
test6On.src="pix/testimonialButtons/test6_on.gif"
test6Off=new Image()
test6Off.src="pix/testimonialButtons/test6_off.gif"

function lightTestBtn(whichNumber) {
	if(document.trapForm.currentTestimonial.value != whichNumber) {
		commandLline = 'document.test'+ whichNumber + '.src=test' + whichNumber + 'On.src';
		eval(commandLline);
	}	
}
function dimTestBtn(whichNumber) {
	if(document.trapForm.currentTestimonial.value != whichNumber) {
		commandLline = 'document.test'+ whichNumber + '.src=test' + whichNumber + 'Off.src';
		eval(commandLline);
	}	
}

function swapTestimonial(whichTestimonial) {
	switch(whichTestimonial){
		case 1:
			thisTestimonial = '<p>"Anderson Voice and Data worked with me to design, implement and maintain a system that streamlines operations and helps us run our restaurant more efficiently.</p><p>AVD centralized our point-of-service program, accounting program and Internet access, and set up a VPN, which allows me to watch what is happening in our restaurant from a computer anywhere in the world. After working with AVD, I can say that it is the most meticulous and knowledgeable communications company out there."</p><p>Robert E. Brooks,<br>Operations Manager, Castagnola\'s Restaurant,<br>San Francisco</p><p>&nbsp;</p>';
			previousItem = document.trapForm.currentTestimonial.value;
			document.trapForm.currentTestimonial.value = 1;
			dimTestBtn(previousItem);
			break
		case 2:
			thisTestimonial = '<p>"We believe Anderson Voice and Data to be a first-rate vendor. They helped address our biggest concerns:<ul><li>Safety and stability of our network</li><li>Competency</li><li>Ability to troubleshoot on the fly</li><li>Responsiveness to our technology and support needs</li><li>Being ethical and cost-conscious</li></ul><p>We always felt Anderson Voice and Data was looking out for our interests first, and offered all potential solutions from which to make informed decisions. We would definitely feel comfortable recommending AVD to any small to medium-sized business with varied IT needs."</p><p>Kevin Michals,<br>First Vice President - Investments,<br>Smith Barney/Citigroup Global Markets</p><p>&nbsp;</p>';
			previousItem = document.trapForm.currentTestimonial.value;
			document.trapForm.currentTestimonial.value = 2;
			dimTestBtn(previousItem);
			break
		case 3:
			thisTestimonial = '<p>"As a small business owner, I need a technology partner that takes the time to understand my business and my specific industry needs.</p><p>I know I can count on Anderson Voice and Data to help me with anything technology-related.<br>AVD\'s expertise has helped me run a more efficient and more profitable business."</p><p>Robert Kennedy,<br>Business Owner,<br>Robert Kennedy Insurance</p><p>&nbsp;</p>';
			previousItem = document.trapForm.currentTestimonial.value;
			document.trapForm.currentTestimonial.value = 3;
			dimTestBtn(previousItem);
			break
		case 4:
			thisTestimonial = '<p>"Anderson Voice and Data is extremely professional, and there isn\'t a problem I\'ve had that the AVD team couldn\'t help solve. I completely trust their input."</p><p>Jonah Burlingame,<br>IT Manager,<br>Euro RSCG</p><p>&nbsp;</p>';
			previousItem = document.trapForm.currentTestimonial.value;
			document.trapForm.currentTestimonial.value = 4;
			dimTestBtn(previousItem);
			break
		case 5:
			thisTestimonial = '<p>"Anderson Voice and Data has proven its capability with first-rate knowledge and expertise. AVD representatives are extremely responsive, and I know that that I can count on them to help me keep our office running as smoothly as possible."</p><p>Joanna M. Zumalt-McGarry,<br>MPA/HSA, Administrator,<br>Fusion Diagnostic Group</p><p>&nbsp;</p>';
			previousItem = document.trapForm.currentTestimonial.value;
			document.trapForm.currentTestimonial.value = 5;
			dimTestBtn(previousItem);
			break
		case 6:
			thisTestimonial = '<p>"Anderson Voice and Data has always been available whenever we needed their services, and they\'ve always delivered these services in a timely fashion well above and beyond what we\'ve requested.</p><p>I appreciated their willingness to make many small changes as we went through the process."</p><p>Kenneth Choy,<br>IT Manager,<br>Brann San Francisco LLC</p><p>&nbsp;</p>';
			previousItem = document.trapForm.currentTestimonial.value;
			document.trapForm.currentTestimonial.value = 6;
			dimTestBtn(previousItem);
			break
	}
	document.getElementById('secondFilterContent').innerHTML = thisTestimonial;
	// Also reset to the top of the scroll bar
	ThreeOhScroll_secondFilter.scrollTo(0);
	
}

function swingMenu(itemID, whichWay, hideLeft, hideRight) {
	if(whichWay == 'open') {
		if (document.layers) {
			swingCommand = "document." + itemID + ".dispaly = 'block'";
		} else if (document.all) {
			swingCommand = "document.all." + itemID + ".style.display='block';";
		} else if (document.getElementById) {
			swingCommand = "document.getElementById('" + itemID + "').style.display = 'block'";
		}
		eval(swingCommand);
		if (hideLeft != '') {
			if (document.layers) {
				hideLeftCommand = "document." + hideLeft + ".dispaly = 'none'";
			} else if (document.all) {
				hideLeftCommand = "document.all." + hideLeft + ".style.display='none';";
			} else if (document.getElementById) {
				hideLeftCommand = "document.getElementById('" + hideLeft + "').style.display = 'none'";
			}
			eval(hideLeftCommand);
		}
		if (hideRight != '') {
			if (document.layers) {
				hideRightCommand = "document." + hideRight + ".dispaly = 'none'";
			} else if (document.all) {
				hideRightCommand = "document.all." + hideRight + ".style.display='none';";
			} else if (document.getElementById) {
				hideRightCommand = "document.getElementById('" + hideRight + "').style.display = 'none'";
			}
			eval(hideRightCommand);
		}	
	} else if (whichWay == 'close') {
		if (document.layers) {
			swingCommand = "document." + itemID + ".dispaly = 'none'";
		} else if (document.all) {
			swingCommand = "document.all." + itemID + ".style.display='none';";
		} else if (document.getElementById) {
			swingCommand = "document.getElementById('" + itemID + "').style.display = 'none'";
		}
		setTimeout("eval(swingCommand)", 500);
	}
}