function showList(elementIdArray) {
	for (var x = 0; x < elementIdArray.length; x++) {
		if (document.getElementById(elementIdArray[x]) != null) {			
			if (elementIdArray[x] == 'brands-lookup') {
				var navRoot = document.getElementById(elementIdArray[x]);	
				var theLIs = navRoot.getElementsByTagName('li');
				for (var y = 0; y < theLIs.length; y++) {
					theLIs[y].onmouseover = function() { 
						this.className += ' over';
						this.style.zIndex = '999';
					}
					theLIs[y].onmouseout = function() { 
						this.className = this.className.replace(/ over/gi, '');;
					}
				}
			}
			else {			
				var navRoot = document.getElementById(elementIdArray[x]);
				var theLIs = navRoot.getElementsByTagName('li');
				for(var z = 0; z < theLIs.length; z++) {
					var hasChildULs = theLIs[z].getElementsByTagName('ul');
					if (hasChildULs.length > 0) { 
						theLIs[z].onmouseover = function() { 
							$(this).addClass ('over');
							$(this).children(':first').addClass('aover'); 
							this.style.zIndex = '999';
							this.setAttribute('overattr', 1);							
							// sam's code - start
							var childUL = this.getElementsByTagName('ul');
							var childIFrames = this.getElementsByTagName('IFRAME');
							// if iframe already present
							if (childIFrames.length > 0) {
								for (var r = 0; r < childIFrames.length; r++) {
									// show the iFrame
									childIFrames[r].style.display = 'block';
								}
							}
							// no iframe present
							else {
								for (var t = 0; t < childUL.length; t++) {			
									// create an iFrame
									var theIframe = document.createElement('IFRAME');								
									// style the iFrame
									theIframe.frameBorder = 0;
									theIframe.src = "javascript:false;";
									theIframe.style.left = childUL[t].offsetLeft + "px";
									theIframe.style.top = childUL[t].offsetTop + "px";
									theIframe.style.width = childUL[t].offsetWidth + "px";
									theIframe.style.height = childUL[t].offsetHeight + "px";								
									// insert the iFrame before the first UL
									childUL[t].parentNode.insertBefore(theIframe, childUL[t]);
								}
							}
							// sam's code - end
						}
						theLIs[z].onmouseout = function(){toggleMenuOff(this, 0);};				
					}
				}				
			}
		}
	}
}
function toggleMenuOff(el, second){    if(!second){
	setTimeout(function(){toggleMenuOff(el, 1);}, 0);	el.setAttribute('overattr', 0);	return;    }    if(el.getAttribute('overattr') == 1) return; $(el).children(':first').removeClass('aover');  $(el).removeClass('over');							
    // sam's code
    var childIFrames = el.getElementsByTagName('IFRAME');
    for (var r = 0; r < childIFrames.length; r++) {
    // hide the iFrame
	childIFrames[r].style.display = 'none';
    }
	// sam's code - end
}