/**
 * cci.js
 *
 * javascript for CCI public web site: www.cimconcepts.com
 * 10/27/2011 k.wells (CIM Concepts Inc.)
 * 12/27/2011 kaw - simplified logic; use link id values (the old way worked for IE but not other browsers)
 */

function set_active_menu(idx) {
    var menulink = document.getElementById("main-menu-link" + idx);
    if (menulink) {
        menulink.className = "active";
    }
}

function XXset_active_menu_OLD(idx) {
    var menu = document.getElementById("main-menu");
    if (menu) {
    	if (menu.childNodes.length > idx) {
    	    var menuItem = menu.childNodes(idx);
    	    if (menuItem) {
    	    	var menuLinks = menuItem.getElementsByTagName("a");
    	    	if (menuLinks.length > 0) {
                    menuLinks(0).className = "active";
                }
            }
        }
    }
}

