function showKnow( mode ){
	if( !isLoaded ) return;
	
	if( !screenOn ){
		fadeIn( 'knowScreenDiv', 90 );
		screenOn = true;
	}
	if( testsOn ){
		fadeOut( 'testimonialsDiv' );
		testsOn=false;
	}
	if( mode == 'what' ){
		fadeIn( 'knowText_whatDiv' ); whatOn=true;
		fadeOutOthers( mode );
		flip.knowSubnav_what.killFlip("/images/know/subnav_know_what_on.gif");
		flip.knowSubnav_who.resurect("/images/know/subnav_know_who.gif");
		flip.knowSubnav_why.resurect("/images/know/subnav_know_why.gif");
	}
	if( mode == 'why' ){
		fadeIn( 'knowText_whyDiv' ); whyOn=true;
		fadeOutOthers( mode );
		flip.knowSubnav_what.resurect("/images/know/subnav_know_what.gif");
		flip.knowSubnav_why.killFlip("/images/know/subnav_know_why_on.gif");
		flip.knowSubnav_who.resurect("/images/know/subnav_know_who.gif");
	}
	if( mode == 'who' ){
		fadeIn( 'knowText_whoDiv' ); whoOn=true;
		fadeOutOthers( mode );
		flip.knowSubnav_what.resurect("/images/know/subnav_know_what.gif");
		flip.knowSubnav_why.resurect("/images/know/subnav_know_why.gif");
		flip.knowSubnav_who.killFlip("/images/know/subnav_know_who_on.gif");
	}
}

function fadeOutOthers( mode ){
	if( whatOn && mode != 'what' ){
		fadeOut( 'knowText_whatDiv', 90 );
		whatOn=false;
	}
	if( whyOn && mode != 'why' ){
		fadeOut( 'knowText_whyDiv', 90 );
		whyOn=false;
	}
	if( whoOn && mode != 'who' ){
		fadeOut( 'knowText_whoDiv', 90 );
		whoOn=false;
	}
}

function resetAll(){
	if( !isLoaded ) return;
	
	if( !keepOpen ){
		flip.knowSubnav_what.resurect("/images/know/subnav_know_what.gif");
		flip.knowSubnav_who.resurect("/images/know/subnav_know_who.gif");
		flip.knowSubnav_why.resurect("/images/know/subnav_know_why.gif");

		if( screenOn ) fadeOut( 'knowScreenDiv', 90 );
		if( whatOn ) fadeOut( 'knowText_whatDiv' );
		if( whyOn ) fadeOut( 'knowText_whyDiv' );
		if( whoOn ) fadeOut( 'knowText_whoDiv' );

		screenOn = false;
		whatOn = false;
		whyOn = false;
		whoOn = false;
	}
}

function hiliteKnow( mode ){
	if( !isLoaded ) return;
	eval( 'flip.knowSubnav_' + mode + '.killFlip("/images/know/subnav_know_' + mode +'_on.gif")' );
	
}

function hiliteReset( mode ){
	if( !isLoaded ) return;
	isAlreadyOn = eval( mode+'On' );
	if( !isAlreadyOn ){
		eval( 'flip.knowSubnav_' + mode + '.resurect("/images/know/subnav_know_' + mode +'.gif")' );
	}
}

function showTests(){
	if( !isLoaded ) return;
	if( testsOn ) return;
	writeInitialTest();
	fadeIn( 'testimonialsDiv' );
	testsOn=true;
}

function hideTests(){
	fadeOut( 'testimonialsDiv' );
	testsOn=false;
}

function writeInitialTest(){
	currTest = Math.floor( (Math.random() * Testimonial.all.length) );
	document.getElementById("testimonialText").innerHTML = getTestimonialText( currTest );
}

function writeNextTest(){
	currTest = currTest +1;
	if( currTest == Testimonial.all.length ) currTest = 1;
	document.getElementById("testimonialText").innerHTML = getTestimonialText( currTest );
}

function getTestimonialText( num ){
	var test = Testimonial.all[num];
	var html = '<p>&quot;' + test.text + '&quot;</p>'
	+ '<p align="right">' + test.name + '<br>'
	+ '<i>' + test.companyTitle + '</i><br>'
	+ test.contact + '</p>';
	return html;
}

/* testimonial constructor */
function Testimonial( text, name, companyTitle, contact ){
	this.text = text;
	this.name = name;
	this.companyTitle = companyTitle;
	this.contact = contact;
	Testimonial[ this.name ] = this;
	Testimonial.all[ Testimonial.all.length ] = this;
}
Testimonial.all = new Array();