function clsNavMenu(p_sPlaceHolder, p_iMaxView) {
	
	this.m_iMaxView = p_iMaxView
	this.m_oPlaceHolder = document.getElementById(p_sPlaceHolder);
	
	this.init = function() {
		this.loopItems(this.m_oPlaceHolder, 0)
	}
	
	this.loopItems = function(p_oParent, p_iLevel) {
		/**var iIndex =0;
		var iFirstLi = 0;
		var bPlaced = false;
		var bExceedsLimit = false;
		var iLimitPos = 0;
		var aHidden= new Array();
		if (p_oParent) {
			for(var i = 0; i < p_oParent.childNodes.length; i++) {
				if (p_oParent.childNodes[i].tagName == "LI" && p_oParent.childNodes[i].style.display != 'none') { 
					if (p_iLevel > 0) {
						if (iFirstLi == 0) {
							iFirstLi = i+1;
						}
					
						if (iIndex > this.m_iMaxView) {
							if (!bExceedsLimit) { 
								bExceedsLimit = true;
								iLimitPos = i;
							}
							p_oParent.childNodes[i].style.display=  'none';
						}
					}
					iIndex++;
				}
				this.loopItems(p_oParent.childNodes[i], (p_iLevel + 1))
			}
			if (bExceedsLimit = true && iFirstLi > 0) {
						var oNew = document.createElement('LI');
						var oHref = document.createElement('A');
						oNew.className = p_oParent.childNodes[iFirstLi-1].className + " navItemsShowMore";
						oHref.href = "javascript:void(0)";
						oHref.innerHTML = "meer &raquo;";
						var self = this;
						oHref.onclick = function() {
							self.unhideNodes(this);
						}
						oHref = oNew.appendChild(oHref);
						this.insertAtPosition(p_oParent, oNew,iLimitPos);
						pPlaced = true
				}
		}
		    */
	}
	
	this.unhideNodes = function(p_oNode) {
		var oParent = p_oNode.parentNode.parentNode;
		if (oParent.childNodes.length) {
			for(var i = 0; i < oParent.childNodes.length; i++) {
				if (oParent.childNodes[i].tagName == "LI") {
					if (oParent.childNodes[i].style.display == 'none') {
						oParent.childNodes[i].style.display = '';
					}
				}
			}
		}
	}
	
	this.insertAtPosition = function(root, el, pos) {
       /**
		//remove any whitespace nodes

		for(var i=0,j=root.childNodes.length;i<j ;i++){
			var x = root.childNodes[i];
			if(x.childNodes[i]===undefined){break;}

			if(x.childNodes[i].nodeType===3){

				x.removeChild(x.childNodes[i]);

				i--;

			}

		}

		//if the position is out of the current scope of the element

		if(pos>root.childNodes.length || pos < 0) {

		return false;

		}

		// if pos is the same as length then add to the end of the children array

		if (pos===root.childNodes.length) {

		root.appendChild(el);

		}

		// insert before works for all other cases

		else {

		root.insertBefore(el, root.childNodes[pos]);

		}

		return true; */
		}
}