var style1 = {"border":1, "shadow":1, "color":{"border":"#333333", "shadow":"#d9d9d9", "textON":"#ffffff", "textOVER":"#ff0000", "bgON":"#ffc259", "bgOVER":"#FFE79E"}, "css":{"ON":"clsCMOn", "OVER":"clsCMOver"}};
var style_top = {"border":1, "shadow":1, "color":{"border":"#000000", "shadow":"#000000", "textON":"#ffffff", "textOVER":"#ff0000", "bgON":"#000000", "bgOVER":"#000000"}, "css":{"ON":"clsCMOn", "OVER":"clsCMOver"}};

var MENU_ITEMS =
[
	{"hidden_top":1, "pos":[0,10], "size":[0,0],"itemoff":[0,60],"leveloff":[0,0],"delay":500,"style":style_top},
// County //
	{code:"SubItem 1",
		sub:[
			{"size":[20,125], "itemoff":[19,0], "leveloff":[0,30], "style":style1},
			{target: 'main', code:'&nbsp;&nbsp;Location', url:"/english/intro/location.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Meteorological Climate', url:"/english/intro/climate.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Natural Resources', url:"/english/intro/resources.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Transport', url:"/english/intro/transport.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Economic and Social Development', url:"/english/intro/econdev.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Dynamic Economic and Social Development of Fusui County', url:"/english/intro/dynamic.htm"}
			]
	},
	
// Industry //
	{code:"SubItem 2",
		sub:[
			{"size":[20,150], "itemoff":[19,0], "leveloff":[0,0], "style":style1},
			{target: 'main', code:'&nbsp;&nbsp;Sugarcane and Sugar Industry', url:"/english/industry/industry.htm#sugar"},
			{target: 'main', code:'&nbsp;&nbsp;Sisal and Sisal Processing Industry', url:"/english/industry/industry.htm#sisal"},
			{target: 'main', code:'&nbsp;&nbsp;Cement and Building Material Industry', url:"/english/industry/industry.htm#cement"},
			{target: 'main', code:'&nbsp;&nbsp;Mining Industry', url:"/english/industry/industry.htm#mining"},
			]
	},
	
// Investment //
	{code:"SubItem 3",
		sub:[
			{"size":[20,115], "itemoff":[19,0], "leveloff":[0,0], "style":style1},
			{target: 'main', code:'&nbsp;&nbsp;Advantage', url:"/english/invest/advantage.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Investment Park', url:"/english/invest/park.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Investment Policy', url:"/english/invest/policy.jsp"},
			{target: 'main', code:'&nbsp;&nbsp;Investment Costs', url:"/english/invest/costs.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Investment Progress', url:"/english/invest/progess.htm"},
			{target: 'main', code:'&nbsp;&nbsp;Investment Project', url:"/english/invest/project.jsp"},
			{target: 'main', code:'&nbsp;&nbsp;Consultation', url:"/english/invest/consultation.jsp"},
			{target: 'main', code:'&nbsp;&nbsp;Complain', url:"/english/invest/complain.jsp"}
			]
	},

];

function menuEvent(name, index, ev){
	if (!CMenus[name]) return;
    var ind = CMenus[name].root.cd[index].index;
	var scrollYOffset = 0;
	var scrollXOffset = 0;
	if (document.all) {
		scrollYOffset = document.body.scrollTop + 108;
		scrollXOffset = document.body.scrollLeft;
	} else if (document.layers || document.getElementById) {
		scrollYOffset = pageYOffset + 108;
		scrollXOffset = pageXOffset;
	}
	
    CMenus[name].moveXY(CMenus[name].root.frameoff[1] + scrollXOffset,CMenus[name].root.frameoff[0] + scrollYOffset);
	mEvent(name, ind, ev);
}