﻿var child_menu1=new Array();
var child_menu2=new Array();
var child_menu3=new Array();
var child_menu4=new Array();
var child_menu5=new Array();
var child_menu6=new Array();
var child_menu7=new Array();
var child_menu8=new Array();
child_menu1[0]=new Array("学校概况","学校简介","/school.html","_self");
child_menu1[1]=new Array("学校概况","校徽校歌","/xhxg.html","_self");
child_menu1[2]=new Array("学校概况","组织机构","/zzjg.html","_self");
child_menu1[3]=new Array("学校概况","校园黄页","/huangye.html","_self");
child_menu1[4]=new Array("学校概况","荣誉一览","/rongyu/","_self");
child_menu1[5]=new Array("学校概况","校园风景","/xyfj/","_self");
child_menu1[6]=new Array("学校概况","教师一览","/jsyl/","_self");
child_menu2[0]=new Array("办学特色","科技教育","/keji/","_self");
child_menu2[1]=new Array("办学特色","艺术教育","/yishu/","_self");
child_menu2[2]=new Array("办学特色","小班化教育","/xbhjy/","_self");
child_menu3[0]=new Array("品格教育","德育足迹","/pgjy/dyzj/","_self");
child_menu3[1]=new Array("品格教育","主题教育","/pgjy/ztjy/","_self");
child_menu3[2]=new Array("品格教育","少年先锋队","/sxd/","_self");
child_menu3[3]=new Array("品格教育","书香校园","/sxxy/","_self");
child_menu3[4]=new Array("品格教育","生命与健康","/smyjk/","_self");
child_menu3[5]=new Array("品格教育","海娃拾贝","/pgjy/hwsb/","_self");
child_menu4[0]=new Array("校本研修","教研管理","/xbyx/jygl/","_self");
child_menu4[1]=new Array("校本研修","教案设计","/xbyx/jasj/","_self");
child_menu4[2]=new Array("校本研修","心得反思","/xbyx/xdfs/","_self");
child_menu4[3]=new Array("校本研修","继续教育","/xbyx/jxjy/","_self");
child_menu4[4]=new Array("校本研修","活动掠影","/xbyx/hdly/","_self");
child_menu5[0]=new Array("教育科研","科研管理","/jyky/kygl/","_self");
child_menu5[1]=new Array("教育科研","立项课题","/jyky/lxkt/","_self");
child_menu5[2]=new Array("教育科研","获奖论文","/jyky/hjlw/","_self");
child_menu5[3]=new Array("教育科研","理论参考","/jyky/llck/","_self");
child_menu6[0]=new Array("家校互动","告家长书","/jxhd/gjzs/","_self")
child_menu6[1]=new Array("家校互动","家校工作","/jxhd/jxgz/","_self")
child_menu6[2]=new Array("家校互动","家庭教育","/jxhd/jtjy/","_self");
child_menu6[3]=new Array("家校互动","海艺报","/jxhd/hyb/","_self");
child_menu7[0]=new Array("队伍建设","党务公开","/dj/","_blank");
child_menu7[1]=new Array("队伍建设","三小教工","/sxjg/","_self");
child_menu8[0]=new Array("校务公开","学校制度","/xwgk/xxzd/","_self");
child_menu8[1]=new Array("校务公开","学校文件","/xwgk/xxwj/","_self");
child_menu8[2]=new Array("校务公开","考核评比","/xwgk/khpb/","_self");
child_menu8[3]=new Array("校务公开","基建采购","/xwgk/jjcg/","_self");
child_menu8[4]=new Array("校务公开","绩效工资","/xwgk/jixiao/","_self");
child_menu8[5]=new Array("校务公开","资产管理","/xwgk/zcgl/","_self");

function doClick_topmenu(current_menu){
		 var cmenu;
		 var menu_str="";
		 var ischild=0;
		 var o_left;
		 var o_top = $("#menu").offset().top+30;
		 var page_width=1020;
		 switch(current_menu.id)
		 {
			 case "top_menu1":
			 	cmenu=child_menu1;
				ischild=1;
				o_left=page_width-700;
				break;
			 case "top_menu2":
			 	cmenu=child_menu2;
				ischild=1;
				o_left=page_width-620;
				break;
			 case "top_menu3":
			 	cmenu=child_menu3;
				ischild=1;
				o_left=page_width-540;
				break;
			 case "top_menu4":
			 	cmenu=child_menu4;
				ischild=1;
				o_left=page_width-460;
				break;
			 case "top_menu5":
			 	cmenu=child_menu5;
				ischild=1;
				o_left=page_width-380;
				break;
			 case "top_menu6":
			 	cmenu=child_menu6;
				ischild=1;
				o_left=page_width-300;
				break;
			case "top_menu7":
			 	cmenu=child_menu7;
				ischild=1;
				o_left=page_width-220;
				break;
			 case "top_menu8":
			 	cmenu=child_menu8;
				ischild=1;
				o_left=page_width-430;
				break;
		}
if (ischild==1) {
		for (var i = 0; i < cmenu.length; i++) {
			menu_str += "<span class='child_menu'><a href='" + cmenu[i][2] + "' target='" + cmenu[i][3] + "'>" + cmenu[i][1] + "</a></span>";
		}
		$("#lev2menu").addClass("lev2m");
		$("#lev2menu").css("left", o_left);
		$("#lev2menu").css("top", o_top+20);
		$("#lev2menu").css("display", "inline");
		$("#lev2menu").css("z-index","5");
		$("#lev2menu").html(menu_str);
		$("#lev2menu").show();
	}
}

function outClick_topmenu(current_menu)
{
	//$("#lev2menu").hide();
}
$(document).ready(function() {
						   $(document).click(function(){
											$("#lev2menu").hide();
										//	$(".index_bxtslist").hide();
										//	$("#index_bxts_frame").hide();
											});
						   $("#lev2menu").mouseout(function(){
								   $("#lev2menu").hide();
								   });
						   $("#lev2menu").mouseover(function(){
															 $("#lev2menu").show();
															 });
						   $("#top_tree").css("left", $("#main").offset().left)
						   });
$("#lev2menu").hide();
