function create_menu(basepath) { var base = (basepath == 'null') ? '' : basepath; base = base + 'pages/' document.write( '