/**
 +----------------------------------------------------------
 * JS脚本
 +----------------------------------------------------------
 * Author: ABiao
 * Time: 2011-08-18 $
 * [MxCMS!] (C)2008-2011 Muchsun Inc.
 +----------------------------------------------------------
 * jquery 调用函数
 +----------------------------------------------------------
 */
$(function(){
	$(".case_nav li").click(function(){
		var Lindex =$(".case_nav li").index($(this));
		$(".case_nav li").removeClass("foucs")
		$(this).addClass("foucs")
	})
	$(".answer_list .an_title").click(function(){
		var Lindex = $(".answer_list .an_title").index($(this));
		$(".answer_list .an_title").removeClass("an_bg")
		$(this).addClass("an_bg");
		
		$(".answer_list .an_content").hide();
		$(".answer_list .an_content").eq(Lindex).show();
	})	
})

function chkfrm(){
	df		= document.frm;
	if(!df.seltype.value){
		alert("请选择要搜索的类型！");
		df.seltype.focus();
		return false;
	}
	if(!df.keywords.value){
		alert("请填写要搜索的关键字！");
		df.keywords.focus();
		return false;
	}
	return true;
}

//首页_分公司
function show_float(id, chk){
	if(chk == 'over'){
		document.getElementById("t_float_"+id).style.display = "";
	}else{
		document.getElementById("t_float_"+id).style.display = "none";	
	}
}

//微博和博客
function show_div(object, act){
	if(act=='over'){
		document.getElementById(object).style.display = '';
	}else{
		document.getElementById(object).style.display = 'none';	
	}
}
