linka='';
thisPage='menu.htm';
imgPath='images/';
lev1img='yes';	
lev1OpName='open.gif';
lev1OpHeight='13';
lev1OpWidth='38';
lev1ClosName='closed.gif';
lev1ClosHeight='13';
lev1ClosWidth='38';
lev2img='yes';
lev2Name='bullet.gif';
lev2Height='13';
lev2Width='54';
lev2Char='no';
bullet = '&#155; ';
base = 'main';

var x = 0
page = location.search.substr(1).split("?")
for (x=0;x<=page.length;x++) {
	eval(page)
	}
page = escape(page);
page = page.slice(7);


function subMenu(name,linkb) {
 this.name = name;
 this.linkb = linkb;
}
document.write('<BASE target="' + base + '">');

// Menu 1
if (page=='what') {
thisMenu = new Array();
thisMenu[0] = new subMenu('开始','whatis/what1.htm');
thisMenu[1] = new subMenu('随后','whatis/what2.htm');
thisMenu[2] = new subMenu('以后','whatis/what3.htm');
thisMenu[3] = new subMenu('演职员名单','whatis/cast.htm');
}

// Menu 2
if (page=='char') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Macross 传奇','character/char1_1.htm');
thisMenu[1] = new subMenu('南十字军','character/char2_1.htm');
thisMenu[2] = new subMenu('新的一代','character/char3_1.htm');
}

// Menu 3
if (page=='episode') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Macross 传奇','episode/episode11.htm');
thisMenu[1] = new subMenu('南十字军','episode/episode21.htm');
thisMenu[2] = new subMenu('新的一代','episode/episode31.htm');
thisMenu[3] = new subMenu('Robotech II','episode/episode4.htm');
thisMenu[4] = new subMenu('Untold Story','episode/episode5.htm');
}

// Menu 4
if (page=='mecha') {
thisMenu = new Array();
thisMenu[0] = new subMenu('独联体部队','mecha/ebsis.htm');
thisMenu[1] = new subMenu('太空堡垒部队','mecha/rdf.htm');
thisMenu[2] = new subMenu('南十字军','mecha/asc.htm');
thisMenu[3] = new subMenu('堡垒远征军','mecha/ref.htm');
thisMenu[4] = new subMenu('天顶星人','mecha/zen.htm');
thisMenu[5] = new subMenu('机器人统治者','mecha/master.htm');
thisMenu[6] = new subMenu('因维得人','mecha/invid.htm');
}

// Menu 6
if (page=='photo') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Macross 传奇','album/page_01.htm');
thisMenu[1] = new subMenu('南十字军','albumx/album2.htm');
thisMenu[2] = new subMenu('新的一代','albumx/album3.htm');
thisMenu[3] = new subMenu('哨兵','albumx/album4.htm');
}

// Menu 7
if (page=='music') {
thisMenu = new Array();
thisMenu[0] = new subMenu('歌曲说明','music/readme.htm');
thisMenu[1] = new subMenu('Robotech CD 1','music/cd1.htm');
thisMenu[2] = new subMenu('Robotech CD 2','music/cd2.htm');
thisMenu[3] = new subMenu('Robotech CD 3','music/cd3.htm');
thisMenu[4] = new subMenu('Robotech CD 4','music/cd4.htm');
thisMenu[5] = new subMenu('Robotech CD 5','music/cd5.htm');
}

// Menu 8
if (page=='comic') {
thisMenu = new Array();
thisMenu[0] = new subMenu('出版公司','comic/comic11.htm');
thisMenu[1] = new subMenu('前传系列','comic/class11.htm');
thisMenu[2] = new subMenu('麦克罗斯系列','comic/class21.htm');
thisMenu[3] = new subMenu('哨兵系列','comic/class31.htm');
thisMenu[4] = new subMenu('南十字军系列','comic/class41.htm');
thisMenu[5] = new subMenu('新生一代系列','comic/class51.htm');
thisMenu[6] = new subMenu('战后系列','comic/class61.htm');
thisMenu[7] = new subMenu('新堡垒漫画','comic/class81.htm');
thisMenu[8] = new subMenu('看看还有什么','comic/class71.htm');
thisMenu[9] = new subMenu('出版年表','comic/comic3.htm');
}

// Menu 9
if (page=='novel') {
thisMenu = new Array();
thisMenu[0] = new subMenu('出版简介','novel/intro.htm');
thisMenu[1] = new subMenu('原版前言','novel/acknow.htm');
thisMenu[2] = new subMenu('内容说明','novel/list.htm');
}

// Menu 10
if (page=='rpg') {
thisMenu = new Array();
thisMenu[0] = new subMenu('纸上RPG 简介','rpg/rpg.htm');
thisMenu[1] = new subMenu('第一系列','rpg/rpg11.htm')
thisMenu[2] = new subMenu('第二系列','rpg/rpg21.htm');
thisMenu[3] = new subMenu('第三系列','rpg/rpg31.htm');
thisMenu[4] = new subMenu('Macross 系列','rpg/rpg41.htm');
}

// Menu 11
if (page=='book') {
thisMenu = new Array();
thisMenu[0] = new subMenu('图画集','rbook/rbook.htm');
thisMenu[1] = new subMenu('杂志','rbook/magazine.htm');
}

// Menu 12
if (page=='down') {
thisMenu = new Array();
thisMenu[0] = new subMenu('英文原版','download/part1a.htm');
thisMenu[1] = new subMenu('中文发行版','download/part2.htm');
thisMenu[2] = new subMenu('中英双语版','download/part3a.htm');
thisMenu[3] = new subMenu('电影版','download/part4.htm');
thisMenu[4] = new subMenu('片头与片尾','download/part5.htm');
thisMenu[5] = new subMenu('删节镜头','download/part6.htm');
}

// Menu 13
if (page=='other') {
thisMenu = new Array();
thisMenu[0] = new subMenu('南十字军徽标','others/icon/icon.htm');
thisMenu[1] = new subMenu('南十字军防区','others/smap.htm');
thisMenu[2] = new subMenu('Robotech 字体','others/font/font.htm');
thisMenu[3] = new subMenu('战机图片','others/plane/plane.htm');
thisMenu[4] = new subMenu('Macross 特区','macross/mac.htm');
thisMenu[5] = new subMenu('Mospeada 特区','others/mospeada/mos.htm');
}

