﻿
function display(id) {
	$(id).style.display = $(id).style.display == '' ? 'none' : '';
}
/*==================== 首页-隐藏代码=====================*/
function clickeds(tableid){
		if(document.getElementById(tableid).style.display=="none"){
			document.getElementById(tableid).style.display = '';
		}else{
			document.getElementById(tableid).style.display = 'none';
		}
}

function clickReturn(){

}
	
$(document).ready(function(){
	// input //
   $(".input").mouseover(function(){
		$(this).addClass("inputOff");}).mouseout(function(){
		$(this).removeClass("inputOff");});

	// button //
	$(".buttonAOn").hover(function(){
		$(this).addClass("buttonAUp");
	},function(){
		$(this).removeClass("buttonAUp");
	})

	// buttonL //
	$(".buttonLOn").hover(function(){
		$(this).addClass("buttonLUp");
	},function(){
		$(this).removeClass("buttonLUp");
	})

	// buttonB //
	$(".buttonBOn").hover(function(){
		$(this).addClass("buttonBUp");
	},function(){
		$(this).removeClass("buttonBUp");
	})

	// 新贴 //
	$(".pageNewBot").hover(function(){
		$(this).attr("class","pageNewOverBot");
		$(this).children(".zpageNewBot").css("display","block");
	},function(){
		$(this).attr("class","pageNewBot");
		$(this).children(".zpageNewBot").css("display","none");
	})
	
	// 浏览帖子 //
	$(".leftH3X").hover(function(){
		$(this).next(".meminfo").css("display","block");
	},function(){
		$(this).next(".meminfo").css("display","none");
	})
	
	// 面包屑航导 新建 200911201426 //
	$(".position").hover(function(){
		$(this).children(".positionList").css("display","block");
	},function(){
		$(this).children(".positionList").css("display","none");
	})

})

$(function(){
	// 最多可选项数 //
	$("#reason").hide();
	$("#checkbox").click(function(){
	if($(this).attr("checked"))
		$("#reason").show();
	else
		$("#reason").hide();
	});

	//显示层
	$(".showDiv").click(function(){
		$(".vObj").show();
		
	});
	//最小化层	
	$(".minDiv").click(function(){
		$(".vObj").hide();
	})

	//论坛首页栏目收缩
	$(".moduleTop").toggle(function(){
		$(this).addClass("moduleOpen");
	},function(){
		$(this).removeClass("moduleOpen");
	});
	
	//在线列表伸缩变换
	$("#onlinetubiao").click(
		function(){	
			$("#memberdetail").slideToggle(1);
			if($(this).attr("class")=='onlineClose'){
				$(this).removeClass().addClass('onlineOpen');
			}else{
				$(this).removeClass().addClass('onlineClose');
			}				
		}
	);	    
})




