/* ********************************************************************************************
// This section creates the site structure node array. It uses navmap to get the complete list of
// nodes on the site structure. This code also calculates the parent of each node. The parent is not
// available by default.
// ************************************************************************************************ */

/* CODING NOT COMPRESS TOGETHER YET
// Add the site structure node to the array, and give it the default parent of 0
nodeList[i] = new Node($node.assetid,"$node.description","$node.absurl",$node.level,$node.children, 0);
if ($node.level != 1) {				// If this node is not the top level, look for it's parent.
	for(p = i - 1; p > 0; p--) {		// Search up the site structure node list.
		if (nodeList[p].children > 0) {	// If the node has children, you have found the parent
			nodeList[p].children--;	// Decrease its number of children
			break;			// Stop looking for the parent
		}
	}
	nodeList[i].parent = nodeList[p].id;	// Set the parent asset id
}
i++;
*/

nodeList[i]=new Node(2685,"Athletic Training","/Programs/athletictraining/index.html",1,13,0);if(1!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3018,"Mission Statment","/Programs/athletictraining/missionstatement.html",2,0,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2742,"Current Students","/Programs/athletictraining/currentstudents.html",2,11,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3032,"Events","/Programs/athletictraining/eventsrd.cfm",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2745,"Policies","/Programs/athletictraining/policies.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3037,"Application Packet","/Programs/athletictraining/assets/applicationpacketrd.cfm",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2747,"Curriculum","/Programs/athletictraining/curriculum.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2748,"Student Profiles","/Programs/athletictraining/student_profiles.html",3,1,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3029,"Student Profile Submission Form","/Programs/athletictraining/studentprofileform.cfm",4,0,0);if(4!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2749,"Links","/Programs/athletictraining/links.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2750,"Scholarships","/Programs/athletictraining/scholarships.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2751,"ATEP Admission","/Programs/athletictraining/atepadmission.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2752,"Injury Episodes","/Programs/athletictraining/injury_episodes.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2687,"Students Intern Rams","/Programs/athletictraining/studentsinternrams.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3021,"Outside the Classroom","/Programs/athletictraining/outsidetheclassroom.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2743,"Prospective Student","/Programs/athletictraining/prospectivestudent.html",2,7,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3033,"Curriculum","/Programs/athletictraining/curriculumrd.cfm",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2753,"Top Reasons","/Programs/athletictraining/topreasons.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2688,"Fast Track","/Programs/athletictraining/fasttrack.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2701,"Accreditation Status","/Programs/athletictraining/accreditationstatus.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2746,"Application Packet","/Programs/athletictraining/assets/applicationpacket.pdf",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3034,"Admission","/Programs/athletictraining/admissionrd.cfm",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2933,"Alumni Comments","/Programs/athletictraining/alumnicomments.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3038,"Athletic Training Services","/Programs/athletictraining/atservices.html",2,3,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3036,"Facutly and Staff","/Programs/athletictraining/facultyandstaffrd.cfm",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3017,"Hours of Operation","/Programs/athletictraining/hours.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2740,"Athletic Forms","/Programs/athletictraining/athleticforms.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3002,"Faculty and Staff","/Programs/athletictraining/facultyandstaff.html",2,0,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3045,"Graduate Intern Information","/Programs/athletictraining/gradintern.html",2,0,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2702,"Alumni","/Programs/athletictraining/alumni.html",2,0,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2958,"Facility","/Programs/athletictraining/facility.html",2,0,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3030,"What is AT?","/Programs/athletictraining/whatisat.html",2,1,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3039,"Athletic Training Month","/Programs/athletictraining/atmonth.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3027,"Request Information","/Programs/athletictraining/request.html",2,0,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(2744,"Events","/Programs/athletictraining/events.html",2,0,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3079,"ATEP Endowment Fundraising Dinner","/Programs/athletictraining/endowment/index.html",2,5,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3083,"Annual Dinner","/Programs/athletictraining/endowment/annualdinner.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3084,"ATEP Endowment Board","/Programs/athletictraining/endowment/board.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3082,"Donations","/Programs/athletictraining/endowment/donations.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3080,"History","/Programs/athletictraining/endowment/history.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(6898,"Sponsors","/Programs/athletictraining/endowment/sponsors.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3051,"President's Run","/Programs/athletictraining/presidentsrun/index.html",2,2,0);if(2!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(3052,"Results","/Programs/athletictraining/presidentsrun/results.html",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
nodeList[i]=new Node(7003,"Athletic Training","/Programs/athletictraining/presidentsrun/athletictraining.cfm",3,0,0);if(3!=1){for(p=i-1;p>0;p--){if(nodeList[p].children>0){nodeList[p].children--;break;}}nodeList[i].parent=nodeList[p].id;}i++;
 
