

teensArray = new Array("Soccer Games","Basketball Games","Gymnastics","Rock Climbing");
teenAnchorsArray = new Array("team","team","gym","rock");

toddlerArray = new Array("Micro-Soccer","Toddler Adventure Center");
toddlerAnchorsArray = new Array("team","toddler");

allAgesArray = new Array("Basketball, Baseball, Football, Soccer or Volleyball Parties","Ultimate Birthday Challenge","Rock Climbing Parties","Gymnastics Parties");
allAgesAnchorsArray = new Array("team","UBC","rock","gym");

adultsArray = new Array("Competitive Basketball Games","Competitive Soccer Games");
adultAnchorsArray = new Array("team","team");




//===================== TEENS PARTIES DROPDOWN ================================
function showTeens() {
	var teensDiv = document.getElementById("teens");
// Get the showLearn placeholder

	//Create and add the a element

		for (link_counter = 0;link_counter < teensArray.length;link_counter++) {
			var indiv_node = document.createElement("div");
			teensDiv.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= "fhPartySports.htm#"+teenAnchorsArray[link_counter];
			
			// Add text node to the a tag
			var text_node = document.createTextNode(teensArray[link_counter]);
			a_node.appendChild(text_node);
		}

}
function hideTeens() {
	// Get the bodylink placeholder
	var teensDiv = document.getElementById("teens");
	//document.write(bodylink_div.childNodes[bodylink_div.childNodes.length-1]);
	for (link_counter = teensDiv.childNodes.length - 1;link_counter >=0;link_counter--) {
		// Get the row element to be deleted
		var br_node = teensDiv.childNodes[link_counter];
		teensDiv.removeChild(br_node);
		}
}
function showhideteens() {
	// Get the bodylink placeholder

	var teensDiv = document.getElementById("teens");
	//document.write()
	if (teensDiv.childNodes.length < 1) {
		//document.write(bodylink_div.childnodes.length);
		showTeens();
	}
	else {
		hideTeens();
	}
}


//===================== TODDLER PARTIES ================================
function showtoddler() {
	var toddlerDiv = document.getElementById("toddler");
// Get the showtoddler placeholder

	//Create and add the a element

		for (link_counter = 0;link_counter < toddlerArray.length;link_counter++) {
			var indiv_node = document.createElement("div");
			toddlerDiv.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= "fhPartySports.htm#"+ toddlerAnchorsArray[link_counter];
	
			// Add text node to the a tag
			var text_node = document.createTextNode(toddlerArray[link_counter]);
			a_node.appendChild(text_node);
		}

}
function hidetoddler() {
	// Get the bodylink placeholder
	var toddlerDiv = document.getElementById("toddler");
	//document.write(bodylink_div.childNodes[bodylink_div.childNodes.length-1]);
	for (link_counter = toddlerDiv.childNodes.length - 1;link_counter >=0;link_counter--) {
		// Get the row element to be deleted
		var br_node = toddlerDiv.childNodes[link_counter];
		toddlerDiv.removeChild(br_node);
		}
}
function showhidetoddler() {
	// Get the bodylink placeholder

	var toddlerDiv = document.getElementById("toddler");
	//document.write()
	if (toddlerDiv.childNodes.length < 1) {
		//document.write(bodylink_div.childnodes.length);
		showtoddler();
	}
	else {
		hidetoddler();
	}
}
//===================== ALL AGES PARTIES DROPDOWN ================================
function showAllAges() {
	var allAgesDiv = document.getElementById("allAges");
// Get the showLearn placeholder

	//Create and add the a element

		for (link_counter = 0;link_counter < allAgesArray.length;link_counter++) {
			var indiv_node = document.createElement("div");
			allAgesDiv.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= "fhPartySports.htm#"+ allAgesAnchorsArray[link_counter];
	
			// Add text node to the a tag
			var text_node = document.createTextNode(allAgesArray[link_counter]);
			a_node.appendChild(text_node);
		}

}
function hideAllAges() {
	// Get the bodylink placeholder
	var allAgesDiv = document.getElementById("allAges");
	//document.write(bodylink_div.childNodes[bodylink_div.childNodes.length-1]);
	for (link_counter = allAgesDiv.childNodes.length - 1;link_counter >=0;link_counter--) {
		// Get the row element to be deleted
		var br_node = allAgesDiv.childNodes[link_counter];
		allAgesDiv.removeChild(br_node);
		}
}
function showhideAllAges() {
	// Get the bodylink placeholder

	var allAgesDiv = document.getElementById("allAges");
	//document.write()
	if (allAgesDiv.childNodes.length < 1) {
		//document.write(bodylink_div.childnodes.length);
		showAllAges();
	}
	else {
		hideAllAges();
	}
}


//===================== ADULT PARTIES DROPDOWN ================================
function showAdults() {
	var adultsDiv = document.getElementById("adults");
// Get the showLearn placeholder

	//Create and add the a element

		for (link_counter = 0;link_counter < adultsArray.length;link_counter++) {
			var indiv_node = document.createElement("div");
			adultsDiv.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= "fhPartySports.htm#"+ adultAnchorsArray[link_counter];
	
			// Add text node to the a tag
			var text_node = document.createTextNode(adultsArray[link_counter]);
			a_node.appendChild(text_node);
		}

}
function hideAdults() {
	// Get the bodylink placeholder
	var adultsDiv = document.getElementById("adults");
	//document.write(bodylink_div.childNodes[bodylink_div.childNodes.length-1]);
	for (link_counter = adultsDiv.childNodes.length - 1;link_counter >=0;link_counter--) {
		// Get the row element to be deleted
		var br_node = adultsDiv.childNodes[link_counter];
		adultsDiv.removeChild(br_node);
		}
}
function showhideadults() {
	// Get the bodylink placeholder

	var adultsDiv = document.getElementById("adults");
	//document.write()
	if (adultsDiv.childNodes.length < 1) {
		//document.write(bodylink_div.childnodes.length);
		showAdults();
	}
	else {
		hideAdults();
	}
}

