﻿// JavaScript Document
var timeID;
$(document).ready(function(){
						   //整个页面装入完成后，标签区域装入静态的html
						   $("#realcontent").load("html/huihuanggaokao.html");
						   //找到标签区域内的所有li 并注册click事件
						   $("#tabSec li dl dt").each(function(index){
												 $(this).mouseover(function(){
														$("#tabSec li.tabin").removeClass("tabin");
												 		//$(this).addClass("tabin");
														 if(index==0)
														 {
														         $("#realcontent").load("html/xuexiaojianjie.html");
														 }
														 else if (index==2)
														 {
															 $("#realcontent").load("html/huihuanggaokao.html");
														 }
														 else if (index==1)
														 {
															  $("#realcontent").load("html/meizhongxinwen.html");
														 }
														 else if (index==3)
														 {
															  $("#realcontent").load("html/wenhuaziyuan.html");
														 }
														 else if (index==4)
														 {
															  $("#realcontent").load("html/zhuanyeziyuan.html");
														 }
														 else if (index==5)
														 {
															  $("#realcontent").load("html/xueshengpindao.html");
														 }
														 else {
															  $("#realcontent").load("img/sy.jpg");
															 }
														});
														 
													 });
						   
						   //对load图片绑定Ajax请求开始和交互结束的事件
						   $("#contentSec img").bind("ajaxStart",function(){
																	 //清空div 中的内容
																	 $("#realcontent").html("");
																	 //整个页面中Ajax开始之前，function就会执行
																	 $(this).show();
																	  }).bind("ajaxStop",function(){
																		  //整个页面中Ajax结束之后，function就会执行
																		  $(this).hide();
																		 // $(this).slideUp(1000);
																		  });
						   });
