function hideItems() {
	var list = document.getElementById("subNav").getElementsByTagName("ul");
	for(i=0;i<list.length;i++) {
		list[i].style.display="none";
	}
}

function navMenu() {
	
	if (!document.getElementsByTagName){ return; }
	var anchors = document.getElementsByTagName('a');
	
	for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];
			
		var relAttribute = String(anchor.getAttribute('rel'));
		
		if (anchor.getAttribute('href') && (relAttribute.toLowerCase().match('menutrigger'))){
			
			anchor.onmouseover= function() { 
				var nameAttribute = this.getAttribute('name') + "Nav";
				var thismenu = document.getElementById(nameAttribute);
				hideItems();
				thismenu.style.display="inline";
				return false;
			}
		}
	}
}
function openindex(p_1){
	//myImage = new Image()
	//myImage.src = pl.replace("/\//");
	//alert (p_l.value);
	OpenWindow=window.open("", "LuromaTech", "width=900, toolbar=yes,scrollbars=yes,menubar=yes");
	OpenWindow.document.write("<TITLE>LuromaTech </TITLE>");
	OpenWindow.document.write("<HTML>");
	OpenWindow.document.write("<BODY>");
	OpenWindow.document.write("<IMG SRC='" + p_1 + "' ALIGN=CENTER VALIGN=TOP>");
	OpenWindow.document.write("</BODY>");
	OpenWindow.document.write("</HTML>");
	OpenWindow.document.close();
}
