//	Java Script Document


	//execute functions when page loads
	function addLoadEvent(func) {
	  var oldonload = window.onload;
	  if (typeof window.onload != 'function') {
	    window.onload = func;
	  } else {
	    window.onload = function() {
	      oldonload();
	      func();
	    }
	  }
	}
	
	addLoadEvent(chooseTestimonial);

	function $ (id){
		return document.getElementById(id);
	}


	// Array to hold testimonials 
	var randomTestimonial = new Array();
	randomTestimonial[0] = "<p>&quot;My decision to take Digital Media came from my desire to better understand the changing world of communication and information design and the impact that the Internet has had on it. Not only does Digital Media address those desires it also challenged me to do techy-type things that I would never have thought myself capable of. The fantastic instructors also made me realize that far from being a soulless technological nightmare, the web is a world of endless possibility and opportunity that is limited only by our desire and imagination.&quot;<br /><strong>Angela Tomizu, BDes (H),<br />Communication Designer</strong></p>"; 
	randomTestimonial[1] = "<p>&quot;The DMT program afforded me the necessary in-demand skills to facilitate a successful career change. The instructors actually 'work' in the industry, share their enthusiasm, and emphasize current technology and methods. Compared with other shorter duration, yet higher cost programs, DMT provides fantastic bang-for-the-buck.&quot;<br /><strong>Doug Payne<br />Web Application Developer</strong></p>"; 
	randomTestimonial[2] = "<p>&quot;The Digital Media Technology program at Malaspina University-College, took my graphic design skills and added a broad new venue in which to apply them. The level of quality in teaching and curriculum I can only truly appreciate now that I am in the work force. I highly recommend this program.&quot;<br /><strong>Andrea Butterworth<br />Content and Product Design Manager</strong></p>"; 
	randomTestimonial[3] = "<p>&quot;It's positively uplifting to hear that there are instructors out there who have shelved old-school design methods in favour of standards-based design, and are seeing their students respond in an overwhelmingly positive way.&quot;<br /><strong>Dave Shea,<br />Web Standards Project<br />Creator - CSS Zen Garden</strong></p>";
	randomTestimonial[4] = "<p>&quot;Digital Media was one of those last minute life decisions that left you with more than you bargained for. If I hadn't taken this course, I know that I would not be where I am today.<br /><strong>Amy Kristensen,<br />Digital Designer<br />(Digital Media Graduate 1999)</strong></p>";


	//	select a random number between 0 and the array length
	var testimonialCount = randomTestimonial.length

	function chooseTestimonial(){
			
			//choose a random number
			randomNumber = Math.floor((Math.random()*testimonialCount))

			var insertTestimonial = $("outputTestimonial");
			insertTestimonial.innerHTML = randomTestimonial[randomNumber]
	
	}


