// JavaScript Document
var current_zxxx_menu_id;
	current_zxxx_menu_id="#tz_div";
var	timeid;
	
function transition(zxxx_menu_id) {
		
		if(zxxx_menu_id!=current_zxxx_menu_id){
			//alert(zxxx_menu_id+"_a");
			(zxxx_menu_id=="#tz_div"&&$("#info_class").val(1))||(zxxx_menu_id=="#fs_div"&&$("#info_class").val(2))||(zxxx_menu_id=="#zpqz_div"&&$("#info_class").val(3))||(zxxx_menu_id=="#qt_div"&&$("#info_class").val(4));
			//alert($("#info_class").val());
			$(zxxx_menu_id+"_a").addClass("fabu_menu_current");
			$(current_zxxx_menu_id+"_a").removeClass("fabu_menu_current");
              $(current_zxxx_menu_id).hide();
              $(zxxx_menu_id).fadeIn(500);
              current_zxxx_menu_id = zxxx_menu_id;
		}
}
function show_ps(which){
		$("#"+which+"_ps").css("display","block");
		//which.style.display="none";
		}
function hide_ps(which){
		$("#"+which+"_ps").css("display","none");
		}
		
function mouseon(which){
	which.style.backgroundColor="#c0d7ec";
}
function mouseoff(which){
	which.style.backgroundColor="";
}
jQuery.fn.smartFocus = function(text) {
if( $(this).val() == '' ){
$(this).val(text);
$(this).css("color","#999");
}
$(this).focus(function(){
if($(this).val() == text){
$(this).val('');
$(this).css("color","#000");
}
}).blur(function(){
if( $(this).val() == '' ){
$(this).val(text);
$(this).css("color","#999");
}
});
};

jQuery(document).ready(function(){
var keywords = "搜索合川商务、生活";
var mail = "电子邮箱";
var fs_content = "其他你想告诉客户/房商的，比如装修、家具、宽带情况、付款方式等";
var zp_content = "其他你想告诉招聘单位/求职者的，比如自身简介、学历、工作经验/招聘职位简介、薪资、要求等";
$('#keywords').smartFocus(keywords);
$('#login_url').smartFocus(mail);
$('#fs_content').smartFocus(fs_content);
$('#zp_content').smartFocus(zp_content);
$("#local_info_class_div a").click(function(){
	if($(this).html()!="自定义"){
	$('#add_l_info_class_input').val($(this).html());
	$('#local_info_class_div').hide();
	$('#please_choice').css("border-top-color","#FFF").css("border-left-color","#FFF").css("border-right-color","#FFF").css("background-color","#FFF");
	$('#please_choice').html($(this).html()+" <font color=gray size='1'>修改▼</font>");
	}
});
$("#please_choice").click(function(){
	$('#local_info_class_div').show();
	$('#please_choice').css("border-top-color","#e2c822").css("border-left-color","#e2c822").css("border-right-color","#e2c822").css("background-color","#FFF9D7");
});
$("#add_l_info_class_input").blur(function(){
	if($(this).val()!=""){
		$('#local_info_class_div').hide();
		$('#please_choice').css("border-top-color","#FFF").css("border-left-color","#FFF").css("border-right-color","#FFF").css("background-color","#FFF");
		$('#please_choice').html($(this).val()+" <font color=gray size='1'>修改▼</font>");
	}
});
});
function pause_hide(){
	clearTimeout(id); 
}
function BodyOnLoad()
{
var textarea= document.getElementById("ihc_local_info_content");
textarea.style.posHeight=textarea.scrollHeight;
}