//Menu creation
var mopTitle=new Array();
var mopLink=new Array();
var mopID=new Array();
var mopParent=new Array();
var mopHeight=new Array();
var mopNav=new Array();
var mopCount=0;
var navLinks="";

//Test searchString has been initialized
try {a=" "+searchString;}
catch(e) {searchString="";}

var searchTable="<table class=searchTable>";
searchTable=searchTable + "<tr><th colspan=2 align=left><hr>Search...</th></tr>";
searchTable=searchTable + "<tr><td><form name='searchform'><input name=searchSite value='" + searchString + "'></form></td>";
searchTable=searchTable + "<td><input type=image src='go.gif' alt='Search' onclick=doSearch('";

var searchTableEnd="')></td></tr>";
searchTableEnd=searchTableEnd + "<tr><td colspan=2 align=center>";
searchTableEnd=searchTableEnd + "<input type=image src='tips.jpg' alt='Hints and tips' onclick='showTips()'>";
searchTableEnd=searchTableEnd + "</td></tr></table>";

//Temp disable above
//var searchTable="<!--";
//var searchTableEnd="-->";

function makeMop(op) {
//This creates either member, media or public access by loading arrays with menu options
 if (op=="members") {
  makeMemberMop();
  makeNavPath('Member Access','member_services.asp');
 }
 else {
  if (op=="media") {
   makeMediaMop();
   makeNavPath('Media Access','media.asp');
  }
  else {
   if (op=="college") {
    makeCollegeMop();
    makeNavPath('College Governance','coll_govern_home.asp');
   }
   else {
    if (op=="gov") {
     makeGovMop();
     makeNavPath('Government Legislation','government_Legislation.asp');
    }
    else {
     makePublicMop();
     makeNavPath('Public Access','public.asp');
    }
   }
  }
 }
}


function makePublicMop() {
 mopCount=33;

 a=0;
 while (a<=mopCount) {
  mopHeight[a]="";
  mopNav[a]="";
  a++;
 }

 mopTitle[0]='* About the College';
 mopLink[0]='';
 mopID[0]='menu_A';
 mopParent[0]='';

	 mopTitle[1]='Meet the Council and Staff';
	 mopLink[1]='pub_meet_council_and_staf.asp';
	 mopID[1]='menu_AA';
	 mopParent[1]='menu_A';

	 mopTitle[2]='Vision, Mission and Values';
	 mopLink[2]='pub_miss_vis_and_val.asp';
	 mopID[2]='menu_AB';
	 mopParent[2]='menu_A';

	 mopTitle[3]='Protecting the Public';
	 mopLink[3]='pub_protect_pub.asp';
	 mopID[3]='menu_AC';
	 mopParent[3]='menu_A';

	 mopTitle[4]='Regulation Under Health Professions Act (HPA)';
	 mopLink[4]='pub_reg_health_prof_act.asp';
	 mopID[4]='menu_AD';
	 mopParent[4]='menu_A';
	 mopHeight[4]=30;

	 mopTitle[5]='Minimum Standards of Training';
	 mopLink[5]='pub_min_stand_of_train.asp';
	 mopID[5]='menu_AE';
	 mopParent[5]='menu_A';

	 mopTitle[6]='Minimum Standards of Practice (Clinical & Ethical)';
	 mopLink[6]='pub_min_stand_of_prac.asp';
	 mopID[6]='menu_AF';
	 mopParent[6]='menu_A';
	 mopHeight[6]=30;

	 mopTitle[7]='Minimum Standards of Competence';
	 mopLink[7]='pub_min_stand_of_comp.asp';
	 mopID[7]='menu_AG';
	 mopParent[7]='menu_A';
	 mopHeight[7]=30;

 mopTitle[8]='* Becoming a Member';
 mopLink[8]='';
 mopID[8]='menu_B';
 mopParent[8]='';

	 mopTitle[9]='Application Process';
	 mopLink[9]='pub_bec_mem_info.asp';
	 mopID[9]='menu_BA';
	 mopParent[9]='menu_B';

	 mopTitle[10]='Internationally Trained Technologists';
	 mopLink[10]='pub_bec_mem_int_trained.asp';
	 mopID[10]='menu_BB';
	 mopParent[10]='menu_B';
	 mopHeight[10]=30;

	 mopTitle[11]='Reinstatement as an MLT';
	 mopLink[11]='pub_bec_mem_reinst_mlt.asp';
	 mopID[11]='menu_BC';
	 mopParent[11]='menu_B';

 mopTitle[12]='* Career Profile';
 mopLink[12]='';
 mopID[12]='menu_C';
 mopParent[12]='';

	 mopTitle[13]='Medical Laboratory Science';
	 mopLink[13]='pub_lab_science.asp';
	 mopID[13]='menu_CA';
	 mopParent[13]='menu_C';

	 mopTitle[14]='Medical Laboratory Technologists';
	 mopLink[14]='pub_lab_techs.asp';
	 mopID[14]='menu_CB';
	 mopParent[14]='menu_C';

	 mopTitle[15]='Specialties in Medical Laboratory Science';
	 mopLink[15]='pub_spec_med_lab_science.asp';
	 mopID[15]='menu_CC';
	 mopParent[15]='menu_C';
	 mopHeight[15]=30;

 mopTitle[16]='* Conduct of College Members';
 mopLink[16]='';
 mopID[16]='menu_D';
 mopParent[16]='';

	 mopTitle[17]='Conduct Process';
	 mopLink[17]='pub_conduct_process.asp';
	 mopID[17]='menu_DA';
	 mopParent[17]='menu_D';

	 mopTitle[18]='Lodging a Complaint';
	 mopLink[18]='pub_lodge_complaint.asp';
	 mopID[18]='menu_DB';
	 mopParent[18]='menu_D';

	 mopTitle[19]='Complaint Process/Decisions';
	 mopLink[19]='pub_proc_decisions.asp';
	 mopID[19]='menu_DC';
	 mopParent[19]='menu_D';

 mopTitle[20]='* Convention Information';
 mopLink[20]='';
 mopID[20]='menu_E';
 mopParent[20]='';

	 mopTitle[21]='Convention Program';
	 mopLink[21]='pub_conv_prog.asp';
	 mopID[21]='menu_EA';
	 mopParent[21]='menu_E';

	 mopTitle[22]='Exhibitor Information';
	 mopLink[22]='pub_exib_info.asp';
	 mopID[22]='menu_EB';
	 mopParent[22]='menu_E';

 mopTitle[23]='* Employment Opportunities';
 mopLink[23]='pub_employ_opps.asp';
 mopID[23]='menu_F';
 mopParent[23]='';

 mopTitle[24]='* Health Tips';
 mopLink[24]='pub_health_tips.asp';
 mopID[24]='menu_G';
 mopParent[24]='';

 mopTitle[25]='* Laboratory in the News';
 mopLink[25]='pub_lab_in_the_news.asp';
 mopID[25]='menu_H';
 mopParent[25]='';

 mopTitle[26]='* Links';
 mopLink[26]='pub_links.asp';
 mopID[26]='menu_I';
 mopParent[26]='';

 mopTitle[27]='* Media Resources';
 mopLink[27]='';
 mopID[27]='menu_J';
 mopParent[27]='';

	 mopTitle[28]='Media Contacts';
	 mopLink[28]='pub_media_contacts.asp';
	 mopID[28]='menu_JA';
	 mopParent[28]='menu_J';

	 mopTitle[29]='Media Files';
	 mopLink[29]='pub_media_files.asp';
	 mopID[29]='menu_JB';
	 mopParent[29]='menu_J';

	 mopTitle[30]='Media Package';
	 mopLink[30]='pub_media_pack.asp';
	 mopID[30]='menu_JC';
	 mopParent[30]='menu_J';

	 mopTitle[31]='Media Releases';
	 mopLink[31]='pub_media_release.asp';
	 mopID[31]='menu_JD';
	 mopParent[31]='menu_J';

	 mopTitle[32]='National Medical Laboratory Week';
	 mopLink[32]='pub_nat_med_lab_week.asp';
	 mopID[32]='menu_JE';
	 mopParent[32]='menu_J';

	 mopTitle[33]='Story Ideas';
	 mopLink[33]='pub_story_ideas.asp';
	 mopID[33]='menu_JF';
	 mopParent[33]='menu_J';

 mopCount++;
 mopTitle[mopCount]=searchTable + 'public' + searchTableEnd;
 mopLink[mopCount]='';
 mopID[mopCount]='menu_K';
 mopParent[mopCount]='';
 mopHeight[mopCount]=100;

}


function makeMediaMop() {
 mopCount=6;

 a=0;
 while (a<=mopCount) {
  mopHeight[a]="";
  mopNav[a]="";
  a++;
 }

 mopTitle[0]='* Media Resources';
 mopLink[0]='';
 mopID[0]='menu_A';
 mopParent[0]='';

	 mopTitle[1]='Media Contacts';
	 mopLink[1]='med_media_contacts.asp';
	 mopID[1]='menu_AA';
	 mopParent[1]='menu_A';

	 mopTitle[2]='Media Files';
	 mopLink[2]='med_media_files.asp';
	 mopID[2]='menu_AB';
	 mopParent[2]='menu_A';

	 mopTitle[3]='Media Package';
	 mopLink[3]='med_media_pack.asp';
	 mopID[3]='menu_AC';
	 mopParent[3]='menu_A';

	 mopTitle[4]='Media Releases';
	 mopLink[4]='med_media_release.asp';
	 mopID[4]='menu_AD';
	 mopParent[4]='menu_A';

	 mopTitle[5]='National Medical Laboratory Week';
	 mopLink[5]='med_nat_med_lab_week.asp';
	 mopID[5]='menu_AE';
	 mopParent[5]='menu_A';

	 mopTitle[6]='Story Ideas';
	 mopLink[6]='med_story_ideas.asp';
	 mopID[6]='menu_AF';
	 mopParent[6]='menu_A';

 mopCount++;
 mopTitle[mopCount]=searchTable + 'media' + searchTableEnd;
 mopLink[mopCount]='';
 mopID[mopCount]='menu_B';
 mopParent[mopCount]='';
 mopHeight[mopCount]=100;

}


function makeMemberMop() {
 mopCount=53;

 a=0;
 while (a<=mopCount) {
  mopHeight[a]="";
  mopNav[a]="";
  a++;
 }

 mopTitle[0]='* Advocacy Programs';
 mopLink[0]='';
 mopID[0]='menu_A';
 mopParent[0]='';

	 mopTitle[1]='Advocacy Program Policy';
	 mopLink[1]='advo_prog_policy.asp';
	 mopID[1]='menu_AA';
	 mopParent[1]='menu_A';

	 mopTitle[2]='National Medical Laboratory Week';
	 mopLink[2]='national_med_lab_week.asp';
	 mopID[2]='menu_AB';
	 mopParent[2]='menu_A';

		 mopTitle[3]='Information & Forms';
		 mopLink[3]='nat_med_info_forms.asp';
		 mopID[3]='menu_ABA';
		 mopParent[3]='menu_AB';

		 mopTitle[4]='Handbook';
		 mopLink[4]='nat_med_lab_handbook.asp';
		 mopID[4]='menu_ABB';
		 mopParent[4]='menu_AB';

		 mopTitle[5]='Archive';
		 mopLink[5]='nat_med_lab_archive.asp';
		 mopID[5]='menu_ABC';
		 mopParent[5]='menu_AB';

	 mopTitle[6]=' Student Career Handbook';
	 mopLink[6]='stu_career_handbook.asp';
	 mopID[6]='menu_AC';
	 mopParent[6]='menu_A';

 mopTitle[7]='* Award Program';
 mopLink[7]='';
 mopID[7]='menu_B';
 mopParent[7]='';

	 mopTitle[8]='Award Program Policy';
	 mopLink[8]='award_prog_policy.asp';
	 mopID[8]='menu_BA';
	 mopParent[8]='menu_B';

	 mopTitle[9]='Award of Distinction';
	 mopLink[9]='';
	 mopID[9]='menu_BB';
	 mopParent[9]='menu_B';

		 mopTitle[10]='Information & Forms';
		 mopLink[10]='aod_info_and_forms.asp';
		 mopID[10]='menu_BBA';
		 mopParent[10]='menu_BB';

		 mopTitle[11]='Current Year Recipient';
		 mopLink[11]='aod_curr_year_recipient.asp';
		 mopID[11]='menu_BBB';
		 mopParent[11]='menu_BB';

		 mopTitle[12]='Archive';
		 mopLink[12]='aod_archive.asp';
		 mopID[12]='menu_BBC';
		 mopParent[12]='menu_BB';

	 mopTitle[13]='Bursary Award';
	 mopLink[13]='bursary_award.asp';
	 mopID[13]='menu_BC';
	 mopParent[13]='menu_B';

	 mopTitle[14]='Other Award & Funding Sources';
	 mopLink[14]='other_award_and_fund.asp';
	 mopID[14]='menu_BD';
	 mopParent[14]='menu_B';

	 mopTitle[15]='Award of Merit';
	 mopLink[15]='merit_award.asp';
	 mopID[15]='menu_BE';
	 mopParent[15]='menu_B';

	 mopTitle[16]='Student Awards';
	 mopLink[16]='student_award.asp';
	 mopID[16]='menu_BF';
	 mopParent[16]='menu_B';

 mopTitle[17]='* Bulletin Board';
 mopLink[17]='memb_serv_bulletin_board.asp';
 mopID[17]='menu_C';
 mopParent[17]='';

 mopTitle[18]='* Calendar of Events';
 mopLink[18]='memb_serv_cal_of_events.asp';
 mopID[18]='menu_D';
 mopParent[18]='';

 mopTitle[19]='* Continuing Competence Program';
 mopLink[19]='';
 mopID[19]='menu_E';
 mopParent[19]='';

	 mopTitle[20]='Announcements';
	 mopLink[20]='cont_comp_announce.asp';
	 mopID[20]='menu_EA';
	 mopParent[20]='menu_E';

	 mopTitle[21]='Program Specifics';
	 mopLink[21]='coll_gov_faqs.asp';
	 mopID[21]='menu_EB';
	 mopParent[21]='menu_E';

	 mopTitle[22]='Forms';
	 mopLink[22]='coll_gov_forms.asp';
	 mopID[22]='menu_EC';
	 mopParent[22]='menu_E';

	 mopTitle[23]='Member Comments';
	 mopLink[23]='cont_comp_member_comments.asp';
	 mopID[23]='menu_ED';
	 mopParent[23]='menu_E';

 mopTitle[24]='* Continuing Education Links';
 mopLink[24]='cont_ed_links.asp';
 mopID[24]='menu_F';
 mopParent[24]='';

 mopTitle[25]='* Convention';
 mopLink[25]='';
 mopID[25]='menu_G';
 mopParent[25]='';

	 mopTitle[26]='Announcements';
	 mopLink[26]='memb_serv_announcements.asp';
	 mopID[26]='menu_GA';
	 mopParent[26]='menu_G';

	 mopTitle[27]='Convention Policy';
	 mopLink[27]='convention_policy.asp';
	 mopID[27]='menu_GB';
	 mopParent[27]='menu_G';

	 mopTitle[28]='Current Year Information';
	 mopLink[28]='conv_curr_year_info.asp';
	 mopID[28]='menu_GC';
	 mopParent[28]='menu_G';

	 mopTitle[29]='Archive';
	 mopLink[29]='conv_archive.asp';
	 mopID[29]='menu_GD';
	 mopParent[29]='menu_G';

 mopTitle[30]='* Forms';
 mopLink[30]='memb_serv_forms.asp';
 mopID[30]='menu_H';
 mopParent[30]='';

 mopTitle[31]='* Laboratory in the News';
 mopLink[31]='lab_in_the_news.asp';
 mopID[31]='menu_I';
 mopParent[31]='';

 mopTitle[32]='* Links';
 mopLink[32]='memb_serv_links.asp';
 mopID[32]='menu_J';
 mopParent[32]='';

 mopTitle[33]='* Online Renewal';
 mopLink[33]='';
 mopID[33]='menu_K';
 mopParent[33]='';

	 mopTitle[34]='Renewal Announcements';
	 mopLink[34]='renew_announce.asp';
	 mopID[34]='menu_KA';
	 mopParent[34]='menu_K';

	 mopTitle[35]='Practice Permit Renewal';
	 mopLink[35]='https://rsmart.ca/secure/acmlt/ACMLT_Renewal.asp'
	 mopID[35]='menu_KB';
	 mopParent[35]='menu_K';
	 mopNav[35]='X';

	 mopTitle[36]='Renewal Checklist';
	 mopLink[36]='https://rsmart.ca/secure/acmlt/ACMLT_Renewal.asp?go=checklist'
	 mopID[36]='menu_KC';
	 mopParent[36]='menu_K';
	 mopNav[36]='X';

 mopTitle[37]='* Publications';
 mopLink[37]='memb_serv_publications.asp';
 mopID[37]='menu_L';
 mopParent[37]='';

 mopTitle[38]='* Survey';
 mopLink[38]='memb_serv_survey.asp';
 mopID[38]='menu_M';
 mopParent[38]='';

 mopTitle[39]='* Suggestions';
 mopLink[39]='memb_serv_suggestions.asp';
 mopID[39]='menu_N';
 mopParent[39]='';

 mopTitle[40]='* Volunteering With the College';
 mopLink[40]='';
 mopID[40]='menu_O';
 mopParent[40]='';

	 mopTitle[41]='Volunteering';
	 mopLink[41]='memb_serv_volunteering.asp';
	 mopID[41]='menu_OA';
	 mopParent[41]='menu_O';

	 mopTitle[42]='Council';
	 mopLink[42]='memb_serv_council.asp';
	 mopID[42]='menu_OB';
	 mopParent[42]='menu_O';

		 mopTitle[43]='President Elect';
		 mopLink[43]='prez_elect.asp';
		 mopID[43]='menu_OBA';
		 mopParent[43]='menu_OB';

		 mopTitle[44]='Councilor';
		 mopLink[44]='counciller.asp';
		 mopID[44]='menu_OBB';
		 mopParent[44]='menu_OB';

	 mopTitle[45]='Regulatory Committees';
	 mopLink[45]='';
	 mopID[45]='menu_OC';
	 mopParent[45]='menu_O';

		 mopTitle[46]='Registration Committee';
		 mopLink[46]='regulatory_registration.asp';
		 mopID[46]='menu_OCA';
		 mopParent[46]='menu_OC';

		 mopTitle[47]='Competence Committee';
		 mopLink[47]='regulatory_competence.asp';
		 mopID[47]='menu_OCB';
		 mopParent[47]='menu_OC';

		 mopTitle[48]='Legislation Sub-Committee';
		 mopLink[48]='leg_sub_committee.asp';
		 mopID[48]='menu_OCC';
		 mopParent[48]='menu_OC';

	 mopTitle[49]='Ad Hoc Working Groups/Task Forces';
	 mopLink[49]='';
	 mopID[49]='menu_OD';
	 mopParent[49]='menu_O';
	 mopHeight[49]=30;

		 mopTitle[50]='RATF';
		 mopLink[50]='ratf.asp';
		 mopID[50]='menu_ODA';
		 mopParent[50]='menu_OD';

		 mopTitle[51]='MLA Regulation Steering Committee (RSC)';
		 mopLink[51]='rsc_steering_committee.asp';
		 mopID[51]='menu_ODB';
		 mopParent[51]='menu_OD';
		 mopHeight[51]=30;

		 mopTitle[52]='Editorial/Proofreading';
		 mopLink[52]='liason_officers.asp';
		 mopID[52]='menu_ODC';
		 mopParent[52]='menu_OD';

 mopTitle[53]='* Update Your Contact Information';
 mopLink[53]='https://rsmart.ca/secure/acmlt/ACMLT_Updates.asp?returnto=' + escape(document.URL);
 mopID[53]='menu_P';
 mopParent[53]='';
 mopNav[53]='X';

 mopCount++;
 mopTitle[mopCount]=searchTable + 'members' + searchTableEnd;
 mopLink[mopCount]='';
 mopID[mopCount]='menu_Q';
 mopParent[mopCount]='';
 mopHeight[mopCount]=100;

}


function makeCollegeMop() {
 mopCount=22;

 a=0;
 while (a<=mopCount) {
  mopHeight[a]="";
  mopNav[a]="";
  a++;
 }

 mopTitle[0]='* About the College';
 mopLink[0]='';
 mopID[0]='menu_A';
 mopParent[0]='';

	 mopTitle[1]='College Regulatory Mandate';
	 mopLink[1]='college_reg_man.asp';
	 mopID[1]='menu_AA';
	 mopParent[1]='menu_A';

	 mopTitle[2]='MLT Competence';
	 mopLink[2]='mlt_competence.asp';
	 mopID[2]='menu_AB';
	 mopParent[2]='menu_A';

	 mopTitle[3]='MLT Conduct';
	 mopLink[3]='mlt_conduct.asp';
	 mopID[3]='menu_AC';
	 mopParent[3]='menu_A';

	 mopTitle[4]='Organizational Chart';
	 mopLink[4]='org_chart.asp';
	 mopID[4]='menu_AD';
	 mopParent[4]='menu_A';

	 mopTitle[5]='Vision, Mission, and Values';
	 mopLink[5]='vis_mission_and_values.asp';
	 mopID[5]='menu_AE';
	 mopParent[5]='menu_A';

 mopTitle[6]='* Annual General Meeting (AGM)';
 mopLink[6]='annual_gen_meet.asp';
 mopID[6]='menu_B';
 mopParent[6]='';

 mopTitle[7]='* Announcements';
 mopLink[7]='coll_gov_announcements.asp';
 mopID[7]='menu_C';
 mopParent[7]='';

 mopTitle[8]='* Bylaws';
 mopLink[8]='coll_gov_bylaws.asp';
 mopID[8]='menu_D';
 mopParent[8]='';

 mopTitle[9]='* Code of Ethics';
 mopLink[9]='code_of_ethics.asp';
 mopID[9]='menu_E';
 mopParent[9]='';

 mopTitle[10]='* Council';
 mopLink[10]='coll_gov_council.asp';
 mopID[10]='menu_F';
 mopParent[10]='';

	 mopTitle[11]='Highlights';
	 mopLink[11]='council_highlights.asp';
	 mopID[11]='menu_FA';
	 mopParent[11]='menu_F';

	 mopTitle[12]='Nomination Process';
	 mopLink[12]='council_nomination_proces.asp';
	 mopID[12]='menu_FB';
	 mopParent[12]='menu_F';

		 mopTitle[13]='Election to Council';
		 mopLink[13]='elect_to_council.asp';
		 mopID[13]='menu_FBA';
		 mopParent[13]='menu_FB';

		 mopTitle[14]='Call for Nominations';
		 mopLink[14]='call_to_nominations.asp';
		 mopID[14]='menu_FBB';
		 mopParent[14]='menu_FB';

	 mopTitle[15]='Meet the Council & Staff';
	 mopLink[15]='coll_meet_council_and_staff.asp';
	 mopID[15]='menu_FC';
	 mopParent[15]='menu_F';

	 mopTitle[16]='Meeting Schedule';
	 mopLink[16]='meeting_schedule.asp';
	 mopID[16]='menu_FD';
	 mopParent[16]='menu_F';

 mopTitle[17]='* Mandatory Registration';
 mopLink[17]='mand_reg.asp';
 mopID[17]='menu_G';
 mopParent[17]='';

 mopTitle[18]='* Policies';
 mopLink[18]='coll_gov_policies.asp';
 mopID[18]='menu_H';
 mopParent[18]='';

 mopTitle[19]='* Position Statements';
 mopLink[19]='pos_statements.asp';
 mopID[19]='menu_I';
 mopParent[19]='';

 mopTitle[20]='* Professional Conduct';
 mopLink[20]='prof_conduct.asp';
 mopID[20]='menu_J';
 mopParent[20]='';

 mopTitle[21]='* Standards of Practice';
 mopLink[21]='stands_of_prac.asp';
 mopID[21]='menu_K';
 mopParent[21]='';

 mopTitle[22]='* Voluntary Membership';
 mopLink[22]='vol_reg.asp';
 mopID[22]='menu_L';
 mopParent[22]='';

 mopCount++;
 mopTitle[mopCount]=searchTable + 'college' + searchTableEnd;
 mopLink[mopCount]='';
 mopID[mopCount]='menu_M';
 mopParent[mopCount]='';
 mopHeight[mopCount]=100;

}


function makeGovMop() {
 mopCount=0;

 a=0;
 while (a<=mopCount) {
  mopHeight[a]="";
  mopNav[a]="";
  a++;
 }

 mopTitle[0]='* Health Professions Act<br>&nbsp;&nbsp;and Regulations';
 mopLink[0]='govt_leg_act_and_reg.asp';
 mopID[0]='menu_A';
 mopParent[0]='';
 mopHeight[0]=30;

 mopCount++;
 mopTitle[mopCount]=searchTable + 'gov' + searchTableEnd;
 mopLink[mopCount]='';
 mopID[mopCount]='menu_B';
 mopParent[mopCount]='';
 mopHeight[mopCount]=100;

}



function makeNavPath(baseName,baseLink) {
//This function creates the navigation links by determining the current page name,
//comparing to location within mopLink array, then working backwards to create
//history of parent links back to Home


 var a,b,c,d,e,s;
 var sep=" >> ";
 var re=/\*/g;

//Always initialize links with Home and base info supplied
 navLinks="<a class='txtlink2' href='welcome.asp'>Home</a>" + sep;
 navLinks=navLinks + "<a class='txtlink2' href='" + baseLink + "'>" + baseName + "</a>" + sep;

 a=document.URLUnencoded;
 b=a.length - 1;
 c="";
 e=/"\"/;
 while (b>=0) {
  d=a.substr(b,1);
  if (d=="/" || d==e) {
   b=-1;
  }
  else {
   c=d + c;
  }
  b=b-1;
 }

//Locate link with this page
 d=-1;
 b=mopCount;
 while (b>=0) {
//Hard code indexes where outside call and return url
  if(mopNav[b]=="X") {}
  else {
   a = mopLink[b].match(c);
   if(a!=null) {
    d=b;
    b=0;
   }
  }
  b=b-1;
 }


//Add each page to links in inverse order from child back to all parents
 s="";
 while (d>=0) {
  c=mopTitle[d].replace(re,"");

  if (mopLink[d]>"  ") {
   s = "<a class='txtlink2' href='" + mopLink[d] + "'>" + c + "</a>" + sep + s;
  }
  else {
   s = "<a class='txtlink2'>" + c + "</a>" + sep + s;
  }

  c=mopParent[d];
  d=-1
  if (c>" ") {
   b=mopCount;
   while (b>=0) {
    if(mopID[b]==c) {
     d=b;
     b=0;
    }
    b=b-1;
   }
  }
 }
 navLinks=navLinks + s;

}

function doSearch(loc) {
 var b;
 var fm=document.forms["searchform"];
 var ss=fm.elements["searchSite"].value;
 b=/\+/g;
 ss=ss.replace(b,"[]");
 var s="search_site.asp?showgroup=x&menucall=" + loc + "&searchfor=" + escape(ss);
 window.open(s,"_self");
//alert(fm);
}


function moveSearch(idx) {
 var fm=document.forms["searchcontinue"];
// var ss=fm.elements["srchstring"].value;
 var ss=fm.elements["fmtstring"].value;
 var b=/\+/g;
 ss=ss.replace(b,"[]");
 b=/\^/g;
 var c=String.fromCharCode(34);
 ss=ss.replace(b,c);

 var ss="?searchfor=" + escape(ss);
 var m="&menucall=" + fm.elements["mloc"].value;
 var id="&searchid=" + fm.elements["searchid"].value;
 var g="&showgroup=" + idx;
 var s="search_site.asp" + ss + m + id + g;
 window.open(s,"_self");
//alert(ss);
}


function showTips() {
  var sx=screen.availWidth;
  var sy=screen.availHeight;
  var dx=sx * .6;
  var dy=sy * .7
  sx=sx * .2
  sy=sy * .15
  dx=dx.toString();
  dy=dy.toString();
  sx=sx.toString();
  sy=sy.toString();
  var b="height=" + dy + ",width=" + dx + ",top=" + sy + ",left=" + sx
  b=b + ",scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no";
// var b="top=0,left=0,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no";
 window.open ("search_tips.asp","",b);
}
