/*
###############################################################################
# Show random profile with picture, hyperlink, and first few lines of profile #
###############################################################################

To use this script, reference this script in the head section of the document you want a random profile to appear in.
<script type="text/javascript" src="randomprofile.js" language="JavaScript"></script>

In the document at the place where you want the random profile picture with corresponding text and hyperlink,
paste the following

<script language="javascript">
	showProfile();
</script>

*/

var imagenumber = 3 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
/*images[1] = "profiles/pics/kmaclean_sm.jpg"*/
images[1] = "profiles/pics/mckenziebros.jpg"
/*images[3] = "profiles/pics/trevorclarke_sm.jpg"*/
/*images[4] = "profiles/pics/sam&dorothylacoste_sm.jpg"*/
/*images[4] = "profiles/pics/apaterson_sm.jpg" */
images[2] = "profiles/pics/dZdebiak_sm.jpg"
images[3] = "profiles/pics/dwestgeest_sm.jpg"
var image = images[rand1]

Quotation = new Array
/*Quotation[1] = "<strong>Kathaleen MacLean<br />Instructor, Interior Design Technology </strong> <br /><br><p>Kathaleen MacLean has a passion for interior design. She is now sharing that passion with students in NAIT&rsquo;s Interior Design Technology program, a program that helped launch her career.</p><p><a href='Profiles/kmaclean.htm'>read more</a>...<br />"*/
Quotation[1] = "<strong>Don &amp; John McKenzie</strong> <br /><br>More balance in his life is what Pipe Trades Instructor Don Mckenzie was looking for when he left a lucrative job in industry 3 years ago, for a teaching position at NAIT. It turned out to be such a positive move, he encouraged his older brother John to do the same last year.<br><br><a href='Profiles/McKenzieBrothers.htm'>read more</a>...<br />"
/*Quotation[3] = "<strong>Trevor Clarke<br />Instructor, Business & Lawyer </strong> <br /><br>Trevor Clarke left Corporate Law more than 13 years ago to try a teaching career at NAIT. &ldquo;It was very busy, very demanding, very stressful and I have always liked teaching, so I thought it was a good time to make a change, says Trevor Clarke. </p><p><a href='Profiles/trevorclarke.htm'>read more</a>...<br />"*/
/*Quotation[4] = "<strong>Sam &amp; Dorothy Lacoste </strong><br /><br>Sam and Dorothy Lacoste wanted to come home. After 12 years in Winnipeg, the couple wanted to move back to Edmonton to be closer to family. Alberta’s economic opportunities made 2006 the right time for the move. And NAIT provided Sam and Dorothy with opportunities to continue to grow and be challenged in their respective professions.<br><br><a href='Profiles/SamDorothyLacoste.htm'>read more</a>...<br />"*/
/*Quotation[4] = "<strong>Alex Paterson <br>Lab Tech/Instructor, Building Environmental Systems Technology</strong><br /><br>Alex Paterson talks up NAIT every chance he can get. He has been here three times as a student and is now working as a Lab Tech and Instructor in the Building Environmental Systems Technology Program. <p><a href='Profiles/apaterson.htm'>read more</a>...<br />" */
Quotation[2] = "<strong>Dave Zdebiak <br>Associate Chair, Electrician</strong><br /><br>Dave Zdebiak didn’t expect to find passion in teaching when he joined NAIT in 2000 after more than 30 years as an electrician. He was more interested in enhancing his technical skills. But Dave soon discovered the passion, a satisfaction that comes from helping students understand concepts and solve problems and, last year, he graduated with a Bachelor of Education. <p><a href='Profiles/dzdebiak.htm'>read more</a>...<br />"
Quotation[3] = "<strong>Daniel Westgeest <br>Chair, Retail Meatcutting</strong><br /><br>He is the last person in a class of Culinary Arts students you would expect to burn the bacon. Then again, a kitchen not far from his office probably is not where you would expect the Chair of the Retail Meatcutting program while on his four for five leave. But that is exactly where Daniel Westgeest, an advocate of lifelong learning and recent Culinary Arts diploma grad, spent his year off. And the bacon, well, the meat guru forgot it in the oven when he slipped out for coffee. <p><a href='Profiles/dwestgeest.htm'>read more</a>...<br />"
var Quote = Quotation[rand1]


links = new Array
/*links[1] = "profiles/kmaclean.htm"*/
links[1] = "profiles/Mckenziebrothers.htm"
/*links[3] = "profiles/trevorclarke.htm" */
/*links[4] = "profiles/samdorothylacoste.htm"*/
/*links[4] = "profiles/apaterson.htm" */
links[2] = "profiles/dzdebiak.htm"
links[3] = "profiles/dwestgeest.htm"
var link = links[rand1]

//var whichQuotation=Math.round(Math.random()*(Q-1));
//function showQuotation(){document.write(Quotation[rand1]);}
//showQuotation();

function showProfile(){document.write('<A HREF="' + link + '"><IMG SRC="' + image + '" border="0"></a><p>' + Quote );}
//showProfile();

//document.write('<br><br><A HREF="' + link + '"><IMG SRC="' + image + '" border="0"></a><p>' + Quote )


