//导航菜单
var current_child = null;
var current_parent = null;
var parent_sign = false;	//一级菜单的mouseover状态标记
var child_sign = false;	//二级菜单的mouseover状态标记
function show_child(id)
{
	//一级导航
	parent_sign = true;
	var parent = document.getElementById("first_nav_" + id);
	//alert(parent.className+'=========');
	parent.className = "choose";
	if (current_parent){
		if (current_parent!=parent) current_parent.className = ""
	}else{
		current_parent = document.getElementById("first_nav_1");
		current_child = document.getElementById("second_nav_1");
		if (current_parent != parent) current_parent.className = ""
	}
	current_parent = parent;
	//二级导航
	child_sign = false;
	var child = document.getElementById("second_nav_"+id);
	if (child) child.className = "";
	if (current_child && current_child != child) current_child.className = "hide";	
	current_child = child;
}

var iTimeoutID = null;
function menu_back()
{
	if ( !parent_sign && !child_sign && current_parent!= source_parent)
	{
		show_child(source_parent);
	}
	window.clearTimeout(iTimeoutID);
}

function set_parent_sign()
{
	parent_sign = true;
}

function set_child_sign()
{
	child_sign = true;
}

function clear_parent_sign()
{
	parent_sign = false;
	iTimeoutID = window.setTimeout(menu_back,1000);
}

function clear_child_sign()
{
	child_sign = false;
	iTimeoutID = window.setTimeout(menu_back,1000);
}
//表格背景S
 $(function(){
      //table
   	  $("#col_bg tr").mouseover(function(){
	     $(this).removeClass("");
	  	 $(this).addClass("col_bg");
	  });
	  $("#col_bg tr").mouseout(function(){
	  	 $(this).removeClass("col_bg");
		 $(this).addClass("");
	  });
	
	//ul  
	  // $("#myul li").click(function(){
	      // clearClass();	//还原样式
	  	  //$(this).addClass("col_bg");
	  //});
	 	  
		//还原样式
	 //  function clearClass(){
	   //	  $("#myul li").removeClass("col_bg");
		//  $("#myul li").addClass("");
	 //  }	  
	   
   });
//表格背景E
//简历助手
   $(this).scroll(function() { // 页面发生scroll事件时触发 
		var bodyTop = 0;  
		if (typeof window.pageYOffset != 'undefined') { 
		bodyTop = window.pageYOffset; 
		} 
		else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') 
		{ 
		bodyTop = document.documentElement.scrollTop; 
		} 
		else if (typeof document.body != 'undefined') { 
		bodyTop = document.body.scrollTop; 
		} 
		$("#funScroll").css("top", 5 + bodyTop) // 设置层的CSS样式中的top属性  
}); 
//简历助手E
//点击显示隐藏S
function showInfo(jid){
document.getElementById('showInfo'+jid).style.display=='none'?document.getElementById('showInfo'+jid).style.display='block':document.getElementById('showInfo'+jid).style.display='none';
}
function showInfo1(jid,bid){
document.getElementById('showInfo'+bid).style.display=='none'?document.getElementById('showInfo'+bid).style.display='block':document.getElementById('showInfo'+bid).style.display='none';
document.getElementById('showInfo'+jid).style.display=='none'?document.getElementById('showInfo'+jid).style.display='block':document.getElementById('showInfo'+jid).style.display='none';
}
//点击显示隐藏S

