function showMenu(strMenuID)
{
    var strMain = strMenuID.replace('menu_', '');
    var strSub = strMain;
    strMain = Left(strMain, 1);
    strSub = strSub.replace(strMain, '');
    
    // highlight the primary nav
    var liSideNav = getElementById_s('menu_' + strMain);
    if (liSideNav) {
        liSideNav.className = 'bold';
    }
    
    // show the sub nav
    var ulSubNav = getElementById_s('menu_' + strMain + '0');
    if (ulSubNav) {
        ulSubNav.className = 'nobold';
        ulSubNav.style.display = 'block';
    }
    
    // highlight the sub nav
    var liSubNav = getElementById_s(strMenuID);
    if (liSubNav) {
        liSubNav.className = 'bold';
        
        // unhighlight the primary nav if a sub nav is highlighted
        liSideNav.className = 'nobold';
    }
}

// getElementById Special to handle quirky browsers
// most will use getElementById()
function getElementById_s(id){
    var obj = null;
    if(document.getElementById){
    /* Prefer the widely supported W3C DOM method, if
    available:-
    */
    obj = document.getElementById(id);
    }else if(document.all){
    /* Branch to use document.all on document.all only
    browsers. Requires that IDs are unique to the page
    and do not coincide with NAME attributes on other
    elements:-
    */
    obj = document.all[id];
    }
    /* If no appropriate element retrieval mechanism exists on
    this browser this function always returns null:-
    */
    return obj;
}

function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}
function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}

findabroker = new Image(305,46);
findabroker.src = "../images/FindABroker.gif";
findabroker2 = new Image(305,46);
findabroker2.src = "../images/FindABroker_hover.gif";

function swap(){
	if (document.images){
		for (var x=0;
		x<swap.arguments.length;
			x+=2) {
			document[swap.arguments[x]].src = eval(swap.arguments[x+1] + ".src");
		}
	}
}

function popupURL(URL, intWidth, intHeight) {
    var day = new Date();
    var id = day.getTime();
    var winl = (screen.width - intWidth) / 2;
    var wint = (screen.height - intHeight) / 2;
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=' + intWidth + ',height=' + intHeight + ',left = ' + winl + ',top = ' + wint);");
}

