/* ********************************************************************************************
// 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(3408,"Social Work","/Programs/socialwork/index.html",1,9,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(4706,"What is Social Work?","/Programs/socialwork/whatissocialwork.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(4711,"Mission","/Programs/socialwork/mission.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(4710,"BSW Bachelor of Social Work","/Programs/socialwork/bswbachelor.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(4708,"Field Work Experience","/Programs/socialwork/fieldwork.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(4713,"Course Descriptions","/Programs/socialwork/coursedescriptions.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(3409,"Faculty","/Programs/socialwork/faculty.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(4709,"Related Links and Resources","/Programs/socialwork/relatedlinks.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(4714,"More Information / Contact Us","/Programs/socialwork/contactus.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(4707,"SSWO","/Programs/socialwork/sswo.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++;
 

