//*--------------------------------------------------------
//* Testimonials for side bar.
//*--------------------------------------------------------                            
                           
var head = '<span class="TextTESTHEAD">&ldquo;';
var body = '&rdquo;</span><br>&ldquo;<span class="TextTESTIM">';
var sig1 = '&rdquo;<br><em><strong>&ndash; ';
var sig2 = '</strong></em></span>';
var sp1  = '<img src="../images/spacer.gif" width="5" height="';
var sp2  = '" border=0><br>';
var vtop = 1;  //* Vertical height after after side menu and before quote - Can vary with each quote and lenght of page content.
var vbot = 53;  //* Vertical height after quote so it doesn't bleed into the orange boxes.
var zz1 = '';
var zz2 = '';
var zz3 = '';
//*------------------------------------ 
//* Educators (Use these in the education section of the web site)
//*------------------------------------
 var ed=new Array(5);
//* Paula Carr, CTC, Camosun College, Victoria, B.C.
zz1 = 'Quality training for future industry professionals';
zz2 = 'Camosun College is proud to offer a CITC endorsed program (Certificate in Travel Counselling).  Offering an endorsed program communicates to students and employers that we are committed to offering quality training for future industry professionals.';
zz3 = 'Paula Carr, CTC, Camosun College, Victoria, B.C.';
ed[0] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//* Dawn Aitken, CTC, Professor – School of Hospitality Recreation & Tourism, Humber College, Toronto, Ontario
zz1 = 'Extremely positive';
zz2 = 'Thank you for another great student conference – the feedback from the students has been extremely positive.';
zz3 = 'Dawn Aitken, CTC, Professor – School of Hospitality Recreation & Tourism, Humber College, Toronto, Ontario';
ed[1] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//* Becky Fitton, CTC, CDI College, Kitchener, Ontario
zz1 = 'Good career choices';
zz2 = 'Thank you for a job well done at the student conference.  My students came away feeling that they had made good career choices.  They feel hopeful and, above all, that they are both wanted and needed in the profession.';
zz3 = 'Becky Fitton, CTC, CDI College, Kitchener, Ontario';
ed[2] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//* Mitch Peiffer, CTC, CDI College, Vancouver BC 
zz1 = 'Nationally recognized';
zz2 = 'A CTC certificate is nationally recognized by potential employers and gives you the edge for employment and demonstrates your high level of competency.';
zz3 = 'Mitch Peiffer, CTC, CDI&nbsp;College, Vancouver, BC';
ed[3] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;

//* Roland Hoffman (CACE), CTC, Rem. MT, Robertson Career College, Winnipeg, Manitoba
zz1 = 'Go for certification';
zz2 = 'I like to see our students have as big an edge as possible over other job seekers.  Our advice is to go for your CTC certification, promote it in your resume and cover letter, and then sell yourself as being apart from the masses.';
zz3 = 'Roland Hoffman (CACE), CTC, Rem. MT, Robertson Career College, Winnipeg, Manitoba';
ed[4] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;

//*************************************
//* ARRAY for Other Testimonials
//*************************************
var tt=new Array(10);

//*------------------------------------
//* Travel Managers/Owners
//*------------------------------------
//* Lorene Attewell
zz1 = 'It pays to book through<br>through a CTC or CTM';
zz2 = 'They are knowledgeable because the courses the CITC offers are great.';
zz3 = 'Lorene Attewell, CTM, Uniglobe Travel, Saskatoon, Sask.';
tt[0] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;

//* Patricia Marques, CTC, Manager, CAA SCO Brantford, Ontario 
zz1 = 'Hire a CTC<br>before all others';
zz2 = 'In this day and age, the consumer is much more aware of the travel industry, and have more confidence in a Certified Travel Counsellor, which is more than enough reason to hire a CTC before all others.';
zz3 = 'Patricia Marques, CTC, Manager, CAA SCO Brantford, Ontario';
tt[1] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;

//* Sherry Froess, CTC, Sears Travel, Regina, Sask. 
zz1 = 'Training generates<br>more sales';
zz2 = 'The knowledge CTCs gain from continuous training generates more sales and keeps my customers coming back.';
zz3 = 'Sherry Froess, CTC, Sears Travel, Regina, Sask.';
tt[2] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//* Tracy Byrne, CTC, CTM, Travel Manager, ATCO TSI Travel
zz1 = 'Confidence, uniqueness';
zz2 = 'Being  certified gives us a whole new confidence, uniqueness, professionalism and reputability.  I am very proud that my team and I are a part of CTC.';
zz3 = 'Tracy Byrne, Travel Manager, ATCO TSI Travel';
tt[3] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;

//*------------------------------------
//*Suppliers
//*------------------------------------

//* Bob Abrames, CTM, Salesologist to the Travel Industry, Ottawa, Ontario'
zz1 = 'A step above';
zz2 = 'A travel agent that takes the time and effort to become a CTC or CTM is an agent dedicated to doing the best they can.  I meet a lot of agents in a year and can honestly say that certified agents are a step above.';
zz3 = 'Bob Abrames, CTM, Salesologist to the Travel Industry, Ottawa, Ontario';
tt[4] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//* Steve Crowhurst, CTC, SMP Training & Development, (City, province?) North Vancouver, British Columbia
zz1 = 'Life-long-learning';
zz2 = 'There are two types of travel counsellors – those with a job and those with a career.  CTCs tend to be the counsellors that have chosen the travel industry as a career, based on a passion for sales, service, travel, fulfilling the dreams of their clients and life-long-learning.';
zz3 = 'Steve Crowhurst, CTC, SMP Training & Development, North Vancouver, British Columbia';
tt[5] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//* Sandy Carmichael, CTC, Sandon Enterprises, Victoria, B.C.
zz1 = 'Excellence in sales and customer service';
zz2 = 'Travel counsellors of today need to demonstrate excellence in sales and customer service, as well as having the technical skills to back it up.  A CTC or CTM designation announces this clearly to prospective employers and customers.';
zz3 = 'Sandy Carmichael, CTC, Sandon Enterprises, Victoria, B.C.';
tt[6] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//*------------------------------------
//*Students
//*------------------------------------
//* Patricia Michaud, Domestic Travel Counsellor, CAA, Fredericton, NB
zz1 = 'Gaining credit';
zz2 = 'By the time I graduated, I had most of my credits needed to become certified.  By working at CAA, where almost all the agents are CTCs, I am gaining the experience needed to write my final exam to become a CTC.';
zz3 = 'Patricia Michaud, Domestic Travel Counsellor, CAA, Fredericton, NB';
tt[7] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//*------------------------------------
//*Member
//*------------------------------------

//* Marilyn Mealha, CTC, Winnipeg, MB
zz1 = 'Invaluable service';
zz2 = 'I became a CTC because I wanted to distinguish myself and the agency I work for from discount travel agencies.  I believe it shows clients that we can provide an invaluable service and can compete with do-it-yourself web bookings and discount agencies.';
zz3 = 'Marilyn Mealha, CTC, Winnipeg, MB';
tt[8] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
 
//* Claude Kulak, CTM, (Location) Discovery Group, Edmonton, Alberta
zz1 = 'Meeting expectations';
zz2 = 'The CTC/CTM designation is more and more a requirement from consumers.  It gives them confidence in the agency and the agent.';
zz3 = 'Claude Kulak, CTM, (Location) Discovery Group, Edmonton, Alberta';
tt[9] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;
vtop =  6;

	document.write('<table width="170" border="0" cellpadding="0" cellspacing="0"<tr><td align="center">');
 	document.write(sp1 + vtop + sp2);

//**  Display random Testimonial on appropriate page

   if ((thefile.substring(0,"train".length) == "train"  &  countChar(thefile, "-") <= 2) ||
		thefile.substring(0,"train-stand-intro".length) == "train-stand-intro"  ||
		thefile.substring(0,"train-bci-intro".length) == "train-bci-intro"  ||
		thefile.substring(0,"train-ed-intro".length) == "train-ed-intro"   ||
		thefile.substring(0,"train-rec-intro".length) == "train-rec-intro"  )    {
   			var whichTest=get_random(5);
   			document.write( ed[whichTest] );
   	}
	else {
		if (countChar(thefile, "-") <= 2)  {
	   		var whichTest=get_random(10);
	   		document.write( tt[whichTest] );		
		}		
	}
   
// 	if (thefile.substring(0,"about-intro".length) == "about-intro") {document.write(pm);}
// 	if (thefile.substring(0,"mem-intro".length) == "mem-intro") {document.write(pm);}
// 	if (thefile.substring(0,"news-intro".length) == "news-intro") {document.write(pm);}
// 	if (thefile.substring(0,"travel-intro".length) == "travel-intro") {document.write(pm);}
// 	if (thefile.substring(0,"contact-intro".length) == "contact-intro") {document.write(pm);}
 	
// 	if (thefile.substring(0,"about-intro".length) == "about-intro") {document.write(pm);}

//	if (thefile.substring(0,"train-intro".length) == "train-intro") {document.write(ed1);}
//	if (thefile.substring(0,"train-stand-intro".length) == "train-stand-intro") {document.write(ed2);}
//	if (thefile.substring(0,"train-bci-intro".length) == "train-bci-intro") {document.write(ed3);}
//	if (thefile.substring(0,"train-travelinst".length) == "train-travelinst") {document.write(ed4);}
//	if (thefile.substring(0,"train-careers".length) == "train-careers") {document.write(ed5);}
//	if (thefile.substring(0,"train-rec".length) == "train-rec") {document.write(ed1);}
		
//	if (thefile.substring(0,"train-ed-intro".length) == "train-ed-intro") {document.write(pm);}
 
	

//	if (thefile.substring(0,"about-intro".length) == "about-intro") {document.write(pm);}
//	if (thefile.substring(0,"about-intro".length) == "about-intro") {document.write(pm);}
	
 
	document.write('</td></tr></table>');
	document.write(sp1 + vbot + sp2);

function whichTest(count) {
//* Count is the number of itmems in the array - 1.
	count = count - 1;  //* because array is from [0] to [n]
    var ranNum= Math.round(Math.random()*  count );
    return ranNum;
}
	
function get_random() {

    var ranNum= Math.round(Math.random()*4);
    return ranNum;
}	