

learnArray = new Array("River Rats Mite Development","Private Lessons","Summer Camp");
learnHrefs = new Array("srYtHockRiverRats","srYtHockPriv","camps");

recArray = new Array("Fall/Winter League","Spring Weekend Premier League","Spring Weekday Elite League","Summer Camp", "Holiday Mini-Camp");
recHrefs = new Array("srYtHockFallInfo","srYtHockSprPremInfo","srYtHockEliteInfo","srCamps","srCampsHol");

compArray = new Array("New York City Cyclones");
compHrefs = new Array("srYtHockCyclones");

addnlArray = new Array("Age Classifications","Financial Assistance","Equipment Requirements");
addnlHrefs = new Array("srYtHockAges","srYtHockAddInfo","srYtHockAddInfo");






//===================== LEARN TO PLAY DROPDOWN ================================
function showLearn() {
	var learnDiv = document.getElementById("learn");
// Get the showLearn placeholder

	//Create and add the a element

		for (link_counter = 0;link_counter < learnArray.length;link_counter++) {
			var indiv_node = document.createElement("div");
			learnDiv.appendChild(indiv_node);
			indiv_node.className="dropDiv";
			
			
			var a_node = document.createElement("a");
			indiv_node.appendChild(a_node);
			a_node.className = "dropDiv";
			a_node.href= learnHrefs[link_counter] + ".htm";
	
			// Add text node to the a tag
			var text_node = document.createTextNode(learnArray[link_counter]);
			a_node.appendChild(text_node);
		}

}
function hideLearn() {
	// Get the bodylink placeholder
	var learnDiv = document.getElementById("learn");
	//document.write(bodylink_div.childNodes[bodylink_div.childNodes.length-1]);
	for (link_counter = learnDiv.childNodes.length - 1;link_counter >=0;link_counter--) {
		// Get the row element to be deleted
		var br_node = learnDiv.childNodes[link_counter];
		learnDiv.removeChild(br_node);
		}
}
function showhidelearn() {
	// Get the bodylink placeholder

	var learnDiv = document.getElementById("learn");
	//document.write()
	if (learnDiv.childNodes.length < 1) {
		//document.write(bodylink_div.childnodes.length);
		showLearn();
	}
	else {
		hideLearn();
	}
}

//===================== RECREATIONAL PROGRAM DROPDOWN ================================
function showRec() {
	var recDiv = document.getElementById("rec");
// Get the showLearn placeholder

	//Create and add the a element

		for (link_counter = 0;link_counter < recArray.length;link_counter++) {
			var indiv_node = document.createElement("div");
			recDiv.appendChild(indiv_node);
			indiv_node.className="dropDiv";
			
			
			var a_node = document.createElement("a");
			indiv_node.appendChild(a_node);
			a_node.className = "dropDiv";
			a_node.href= recHrefs[link_counter] + ".htm";
	
			// Add text node to the a tag
			var text_node = document.createTextNode(recArray[link_counter]);
			a_node.appendChild(text_node);
		}

}
function hideRec() {
	// Get the bodylink placeholder
	var recDiv = document.getElementById("rec");
	//document.write(bodylink_div.childNodes[bodylink_div.childNodes.length-1]);
	for (link_counter = recDiv.childNodes.length - 1;link_counter >=0;link_counter--) {
		// Get the row element to be deleted
		var br_node = recDiv.childNodes[link_counter];
		recDiv.removeChild(br_node);
		}
}
function showhiderec() {
	// Get the bodylink placeholder

	var recDiv = document.getElementById("rec");
	//document.write()
	if (recDiv.childNodes.length < 1) {
		//document.write(bodylink_div.childnodes.length);
		showRec();
	}
	else {
		hideRec();
	}
}

//===================== COMPETITIVE TRAVEL ================================
function showComp() {
	var compDiv = document.getElementById("comp");
// Get the showLearn placeholder

	//Create and add the a element
	
		for (link_counter = 0;link_counter < compArray.length;link_counter++) {
			var indiv_node = document.createElement("div");
			compDiv.appendChild(indiv_node);
			indiv_node.className="dropDiv";
			
			
			var a_node = document.createElement("a");
			indiv_node.appendChild(a_node);
			a_node.className = "dropDiv";
			a_node.href= compHrefs[link_counter] + ".htm";
	
			// Add text node to the a tag
			var text_node = document.createTextNode(compArray[link_counter]);
			a_node.appendChild(text_node);
		}

}
function hideComp() {
	// Get the bodylink placeholder
	var compDiv = document.getElementById("comp");
	//document.write(bodylink_div.childNodes[bodylink_div.childNodes.length-1]);
	for (link_counter = compDiv.childNodes.length - 1;link_counter >=0;link_counter--) {
		// Get the row element to be deleted
		var br_node = compDiv.childNodes[link_counter];
		compDiv.removeChild(br_node);
		}
}
function showhidecomp() {
	// Get the bodylink placeholder

	var compDiv = document.getElementById("comp");
	//document.write()
	if (compDiv.childNodes.length < 1) {
		//document.write(bodylink_div.childnodes.length);
		showComp();
	}
	else {
		hideComp();
	}
}

//===================== ADDITIONAL INFORMAION ================================
function showAddnl() {
	var addnlDiv = document.getElementById("addnl");
// Get the showLearn placeholder

	//Create and add the a element

		for (link_counter = 0;link_counter < addnlArray.length;link_counter++) {
			var indiv_node = document.createElement("div");
			addnlDiv.appendChild(indiv_node);
			indiv_node.className="dropDiv";
			
			
			var a_node = document.createElement("a");
			indiv_node.appendChild(a_node);
			a_node.className = "dropDiv";
			a_node.href= addnlHrefs[link_counter] + ".htm";
	
			// Add text node to the a tag
			var text_node = document.createTextNode(addnlArray[link_counter]);
			a_node.appendChild(text_node);
		}

}
function hideAddnl() {
	// Get the bodylink placeholder
	var addnlDiv = document.getElementById("addnl");
	//document.write(bodylink_div.childNodes[bodylink_div.childNodes.length-1]);
	for (link_counter = addnlDiv.childNodes.length - 1;link_counter >=0;link_counter--) {
		// Get the row element to be deleted
		var br_node = addnlDiv.childNodes[link_counter];
		addnlDiv.removeChild(br_node);
		}
}
function showhideaddnl() {
	// Get the bodylink placeholder

	var addnlDiv = document.getElementById("addnl");
	//document.write()
	if (addnlDiv.childNodes.length < 1) {
		//document.write(bodylink_div.childnodes.length);
		showAddnl();
	}
	else {
		hideAddnl();
	}
}
