var aisidaMenu = {
	topImagePath: "images/",
	topImagePathCN: "images/cn/",
	bottomImagePath: "image/menu/bottom/",

	preloadImages: function () {
		var topMenus = this.getTopMenus();
		for (var i = 0; i < topMenus.length; i++) {
			MM_preloadImages(this.ImagePath + topMenus[i].overImage);
		}
	},

	getTopMenus: function () {
		var menus = new Array();
		menus[menus.length] = {
			href: "index.jsp",
			outImage: "template01_r2_c1.jpg",
			overImage: "template01_r2_c1_f2.jpg"
		};
		menus[menus.length] = {
			href: "index-1.jsp",
			outImage: "template01_r2_c2.jpg",
			overImage: "template01_r2_c2_f2.jpg"
		};
		menus[menus.length] = {
			href: "index-2.jsp",
			outImage: "template01_faq.jpg",
			overImage: "template01_faq_f2.jpg"
		};
		menus[menus.length] = {
			href: "index-3.jsp",
			outImage: "template01_r2_c3.jpg",
			overImage: "template01_r2_c3_f2.jpg"
		};
	//	menus[menus.length] = {
	//		href: "index-4.jsp",
	//		outImage: "template01_r2_c6.jpg",
	//		overImage: "template01_r2_c6_f2.jpg"
	//	};
	//	menus[menus.length] = {
	//		href: "index-5.jsp",
	//		outImage: "template01_r2_c7.jpg",
	//		overImage: "template01_r2_c7_f2.jpg"
	//	};
		return menus;
	},

	getTopMenusCN: function () {
		var menus = new Array();
		menus[menus.length] = {
			href: "index_cn.jsp",
			outImage: "template01_r2_c1.jpg",
			overImage: "template01_r2_c1_f2.jpg"
		};
		menus[menus.length] = {
			href: "index-1_cn.jsp",
			outImage: "template01_r2_c2.jpg",
			overImage: "template01_r2_c2_f2.jpg"
		};
		menus[menus.length] = {
			href: "index-2_cn.jsp",
			outImage: "template01_r2_c3.jpg",
			overImage: "template01_r2_c3_f2.jpg"
		};
	//	menus[menus.length] = {
	//		href: "index-3.jsp",
	//		outImage: "template01_r2_c5.jpg",
	//		overImage: "template01_r2_c5_f2.jpg"
	//	};
	//	menus[menus.length] = {
	//		href: "index-4.jsp",
	//		outImage: "template01_r2_c6.jpg",
	//		overImage: "template01_r2_c6_f2.jpg"
	//	};
	//	menus[menus.length] = {
	//		href: "index-5.jsp",
	//		outImage: "template01_r2_c7.jpg",
	//		overImage: "template01_r2_c7_f2.jpg"
	//	};
		return menus;
	},

	getBottomMenus: function () {
		var menus = new Array();
		
		return menus;
	},

	showTopMenu: function () {
		var str = "";
		str += "<table border=0 cellpadding=0 cellspacing=0>\r\n";
		str += "  <tr>\r\n";
		str += "    <td>";
		var menus = this.getTopMenus();
		for (var i = 0; i < menus.length; i++) {
			str += "<a href=\"" + menus[i].href + "\" onmouseout=\"MM_swapImgRestore();\" onmouseover=\"MM_swapImage('menu" + i + "','','" + this.topImagePath + menus[i].overImage + "',1);\">";
			str += "<img name=\"menu" + i + "\" src=\"" + this.topImagePath + menus[i].outImage + "\" align=\"absmiddle\" border=0>";
			str += "</a>";
		}
		//str += "<img src=\"" + this.topImagePath + "menu_right.jpg\" align=\"absmiddle\" border=0>";
		str += "</td>\r\n";
		str += "  </tr>\r\n";
		str += "</table>";
		document.write(str);
	},

	showTopMenuCN: function () {
		var str = "";
		str += "<table border=0 cellpadding=0 cellspacing=0>\r\n";
		str += "  <tr>\r\n";
		str += "    <td>";
		var menus = this.getTopMenusCN();
		for (var i = 0; i < menus.length; i++) {
			str += "<a href=\"" + menus[i].href + "\" onmouseout=\"MM_swapImgRestore();\" onmouseover=\"MM_swapImage('menu" + i + "','','" + this.topImagePathCN + menus[i].overImage + "',1);\">";
			str += "<img name=\"menu" + i + "\" src=\"" + this.topImagePathCN + menus[i].outImage + "\" align=\"absmiddle\" border=0>";
			str += "</a>";
		}
		//str += "<img src=\"" + this.topImagePath + "menu_right.jpg\" align=\"absmiddle\" border=0>";
		str += "</td>\r\n";
		str += "  </tr>\r\n";
		str += "</table>";
		document.write(str);
	},

	showBottomMenu: function () {
		var str = "";
		str += "<table border=0 cellpadding=0 cellspacing=0>\r\n";
		// menus
		str += "  <tr>\r\n";
		str += "    <td align=\"right\">";
		var menus = this.getBottomMenus();
		for (var i = 0; i < menus.length; i++) {
			if (i>0) {
				str += "<span class=\"style5\">|</span>";
			}
			str += "<a href=\"" + menus[i].href + "\">";
			str += "<img src=\"" + this.bottomImagePath + menus[i].outImage + "\" align=\"absmiddle\" border=0>";
			str += "</a>";
		}
		str += "</td>\r\n";
		str += "  </tr>\r\n";
		// copyright
		str += "  <tr>\r\n";
		str += "  <td> Copyright 2008 &copy; Aisida China. All rights reserved.&nbsp;&nbsp;&nbsp;</td>\r\n";
		str += "  </tr>\r\n";
		str += "</table>";
		document.write(str);
	}
}
