//*--------------------------------------------------------
//* Testimonials for side bar.
//* 2011-01-31 Remove quotes from Travel Section pages
//* 2011-06-14 Add CT array for CTM RETREAT page events-ctm-e.asp
//*--------------------------------------------------------                            
                           
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(9);

//*------------------------------------
//* 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
//*------------------------------------
 
//* 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[4] = 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[5] = 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[6] = 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[7] = 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[8] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;

//*------------------------------------ 
//* CT ARRAY
//* Added 2011-06-14  Display only on the CTM RETREAT page. events-ctm-e.asp
//*------------------------------------
 var ct=new Array(4);
 
//*  
zz1 = 'The value of my CTM';
zz2 = 'CAA mandates all their Travel Managers become CTM and I am so very proud of that. I believe it distinguishes me as a professional with a passion for our industry. Having attended the special three-day program and then writing  a strategic plan to improve my agency business was one of the best investment I’ve made in enhancing my career.';
zz3 = 'Glenda Hunter CTM- Manager, CAA Atlantic';
ct[0] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;


zz1 = 'Propels me well ahead of other industry personnel';
zz2 = 'I acquired the CTM designation in 1997 because I had been invited to teach the Travel & Tourism program at a local private college. At the time, I considered the effort laborious and time consuming but the instructor\'s position made it mandatory. Well, that 6 month contract lasted for 5 years. During that time I acquired university certification in adult education and became a paid writer in the field of travel and educational presses. I also taught many adult education programs at a local high school to well-heeled seniors who wanted to learn the secrets of the travel industry.  These learners later became treasured clients.<br><br>The CITC Certified Travel Manager is a professional designation that propels me well ahead of other industry personnel. For my clients, it means trust, honesty and due diligence. ';
zz3 = 'Lise Archambault CTM - Algonquin Travel Ottawa';
ct[1] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;

zz1 = 'Level of credibility and professional status';
zz2 = 'As a long time travel professional, I received my CTC designation in 1980 by the mid 90\'s I was questioning my career choice, but when I looked around at other opportunities, I decided that travel was in my blood and the only thing I wanted to do... it is pleasurable work dealing with clients who are happy (98% of the time!).  I decided that I needed to re commit to my profession and even though I had Managed an agency for many years, I knew that my strength was travel but not administration or marketing. To survive and thrive I needed to improve on these areas.<br><br>I was fortunate to take 3 of my courses at the University of Western Ontario – no one in my class was in travel so I learned from a different perspective how to achieve the end result I wanted. I had to figure out how "making, storing and marketing widgets" applied to the retail travel business! It was a challenge that I quite enjoyed!<br><br>I took a public speaking course with Canadian Airlines that was terrific. I had been escorting coach tours since 1977 but had never had any "formal" training. I discovered through this course how to prepare and deliver a better presentation! I still use the skills I learned then when making presentations today.<br><br>I am proud to say I earned by CTM in 1997 – one of the first in London. I know today the CTM training is offered at a retreat with other travel managers, however, I would recommend stepping outside of your comfort zone and doing it through a local college or university.<br><br>I am proud of my accomplishments and my designations. New clients ask me about the "letters after my name" and I am pleased to explain to them what it means – I believe it has given me a level of credibility and professional status that many other agency managers do not have.  A little effort can go a long way.';
zz3 = 'Heather Hines CTM, Cruise & Leisure Consultant/Manager, CWT The travel bug';
ct[2] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;

zz1 = 'Opened many new doors';
zz2 = 'I earned my CTM designation in 1999 and even after selling my travel agency in 2007, I continued to maintain my CTM status. Having CTM has opened many new doors for me including other areas of tourism and I highly recommend getting your certification. It is a sign of knowledge and dedication to your career and can lead you to many opportunities for future career development.';
zz3 = 'Maura Lee Rafferty CTM';
ct[3] = head + zz1 + body + zz2 + sig1 + zz3 + sig2;


vtop =  6;

//* Check for exception pages
if (thefile.substring(0,"travel".length) != "travel") {

	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 (thefile.substring(0,"events-ctm".length) == "events-ctm")  {
	   		var whichTest=get_random2(4);  //* Notice different routine - fixes undefined bug.
	   		document.write( ct[whichTest] );
	//   		alert( whichTest);
		}   	
	else {
		if (countChar(thefile, "-") <= 2)  {
	   		var whichTest=get_random(9);
	   		document.write( tt[whichTest] );		
		}		
	}
   
// 	if (thefile.substring(0,"about-intro".length) == "about-intro") {document.write(pm);}
 
 
	document.write('</td></tr></table>');
	document.write(sp1 + vbot + sp2);
	
}  //* Check for 	

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;
}	

//* http://www.shawnolson.net/a/789/make-javascript-mathrandom-useful.html
function get_random2( max ) {
    //var ranNum= Math.round(Math.random()* x + 1);
    var ranNum=	Math.floor(Math.random()*max);
//	  alert("ranNum=" + ranNum);
    return ranNum;
}
