function getItemInfo(iItemAbbrv) {

var returnArray = (-1,-1);
var boolFound = false;

	for (m=0; m < lftnavMap.length; m++) {
		if (lftnavMap[m][0] == iItemAbbrv) {
			boolFound = true;
			break;
		}
	}

	if (boolFound) {
		return lftnavMap[m];
	} else {
		return returnArray;
	}
}

function LN_Check_Level(clLoop, clId, clLoopClassName, clIdClassName, clLoopParentClass) {

	var LoopArray = clLoop.split(lftnavIdDelimit);
	var IdArray = clId.split(lftnavIdDelimit);
	var  LoopArrayLength = LoopArray.length;
	var  IdArrayLength = IdArray.length;

	if (LoopArray[LoopArray.length-1].indexOf("bl") > -1) {
			LoopArrayLength = LoopArrayLength - 1;	
			//alert("This is This is modified loop len: " + LoopArrayLength);	
	} 
	//document.writeln("This is a test. cl: " + clLoop, ", " + clId + "," + cli);
	//Id Equal Equal Loop

	if (clLoop == clId) {	
		//document.writeln("Equal");
		return 1;
	//Opens BrandSectionHeading
	} else if ((clLoopParentClass == "BrandSectionLabel") && (LoopArrayLength - 2  == IdArrayLength)) {
		//document.writeln("Child");
		if (LN_Check_Family(IdArrayLength, LoopArray, IdArray)) {
			return 2;
		} else {
			return -1;
		}	
	//Child
	} else if (LoopArrayLength - 1  == IdArrayLength) {
		//document.writeln("Child");
		if (LN_Check_Family(IdArrayLength, LoopArray, IdArray)) {
			return 2;
		} else {
			return -1;
		}	
	//Sibbling
	} else if ((LoopArrayLength == IdArrayLength) && (LoopArrayLength > 1)) {
		if (LN_Check_Family(IdArrayLength, LoopArray, IdArray)) {
			//document.writeln("true sib: Loop Len: " + LoopArrayLength + ", " + clLoop + " Id Length: " + IdArrayLength + ", " + clId);
			return 3;
		} else if ((clLoopParentClass != -1) && (clLoopParentClass != "BrandSectionLabel")) {
			return 4;
		} else {
			return -1;
		}	

	//Parent
	} else if (LoopArrayLength < IdArrayLength) {
		//document.writeln("Parent");
		if (LN_Check_Family(LoopArrayLength, LoopArray, IdArray)) {
			//document.writeln("true Parent: Loop Len: " + LoopArrayLength + ", " + clLoop + " Id Length: " + IdArrayLength + ", " + clId);
			return 4;
		} else if ((clLoopParentClass != -1) && (clLoopParentClass != "BrandSectionLabel")) {
			return 4;
		} else {
			return -1;
		}
	} else { return -1; }
} //End LN_Check_Level

function LN_Check_Family(cfLength, cfLoopArray, cfIdArray) {

	var cfAreEqual = true;
	//document.writeln("Check: " + cfLength + ", " + cfLoopArray[0] + ", " + cfIdArray[0]);

	for(cfCnt = 1; cfCnt < cfLength; cfCnt++) {
		if (cfLoopArray[cfCnt] != cfIdArray[cfCnt]) {
			cfAreEqual = false;
			break;
		}	
	}

	if (cfAreEqual) {
		return true;
	} else {
		return false;
	}
}

function LN_toggle_direct(iId) {
	//alert("Git Here");
	var isInFamily = false;
	var lastWasLabel = false;
//	alert("Got Here iId: "  + iId);
	var idArray = iId.split(lftnavIdDelimit);

	for(i = 0; i < document.all('container').all.length; i++){ 
	if (document.all('container').all[i].tagName == "DIV") {
		var loopIdArray = document.all('container').all[i].id.split(lftnavIdDelimit);
		/*
		if (isInFamily) {
			alert("Looping Length: " + idArray.length + " Loop Length: " + loopIdArray.length + "Loop Text: " + document.all('container').all[i].innerText + "Loop Id: " + document.all('container').all[i].id);
		}
		*/

		if ((isInFamily) && (idArray.length > loopIdArray.length)) {
			//alert("Got In Break Id Length: " + idArray.length + " Loop Length: " + loopIdArray.length + "Loop Text: " + document.all('container').all[i].innerText + "Loop Id: " + document.all('container').all[i].id);
			break;
		}

		if ((isInFamily) && (document.all('container').all[i].className == "BrandSectionLabel") && (idArray.length + 2 == loopIdArray.length)) {
			if (loopIdArray[loopIdArray.length-1].indexOf("blON") > -1) {
				document.all['container'].all(i).style.display = '';
				lastWasLabel = true;
			}
		} else if ((isInFamily) && (lastWasLabel) && (idArray.length + 2 == loopIdArray.length)) {
				document.all['container'].all(i).style.display = '';
		} else if ((isInFamily) && (idArray.length + 1 == loopIdArray.length)) {
			//alert("Got In Display");
			document.all['container'].all(i).style.display = '';
			lastWasLabel = false;
		} else if (iId == document.all('container').all[i].id) {
				//alert("Got In True Id Length: " + idArray.length + " Loop Length: " + loopIdArray.length + "Loop Text: " + document.all('container').all[i].innerText + "Loop Id: " + document.all('container').all[i].id);
				isInFamily = true;
		} 
	}
	}
	//alert("Done with loop.");
}
