// REF: http://www.dynamicdrive.com/dynamicindex5/linkdescribe.htm

//Link Description script- © Dynamic Drive (www.dynamicdrive.com)
//For full source code and TOS, visit http://www.dynamicdrive.com

//change link descriptions to your own. Extend as needed
var linktext=new Array()
// France (NOTE: Don't forget this needs to be pushed to the home page as a starter item!)
linktext[0]="My favourite thing about Albert College is the friendship and the kindness of others.  This really is my home-away-from-home.  -- Kahile"

// Spain
linktext[1]="This is one school where you have an opportunity to try anything.  Sports, music, plays, weekend trips, even extra help for school assignments. -- Casilda"

// Germany
linktext[2]="Albert has an excellent academic programme, it is easy to make new friends, and the building looks like a scene from Harry Potter!  -- Maximilian"

// Russia
linktext[3]="The best thing is that the students come from Canada and around the world.  You feel protected because the people around you care about you as a person.  -- Dasha"

// Japan
linktext[4]="Albert College is like a one big family.  The teachers and students are friendly, so new students are made to feel part of the school right away.  -- Saori"

// China
linktext[5]="I wish that my friends at home could experience Albert.  I had my first opportunity to experience the Canadian outdoors.  Life here is enjoyable!  -- Jie"

var ns6=document.getElementById&&!document.all
var ie=document.all

var current_testimonial_index = 0;

// show_text(index# of linktext[] to show, ID of div to write to)
function show_text(text_index, whichdiv){
	current_testimonial_index = text_index;
	
	if (ie) eval("document.all."+whichdiv).innerHTML=linktext[text_index]
	else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[text_index]
}

function display_testimonial() {
	var max_testimonials = (linktext.length - 1);
	
	if ((current_testimonial_index == undefined) || (current_testimonial_index == max_testimonials)) { 
		current_testimonial_index = 0; 
	} else { 
		current_testimonial_index =  current_testimonial_index + 1; 
	}
	
	show_text(current_testimonial_index, "testimonialtext");
}

function cycle_testimonials() {
	setInterval(display_testimonial, 5000);
}

