//登录网站管理
jQuery(document).ready(function(){
		$("#login").colorbox({contentWidth:"300px", contentHeight:"195px"});	
});	

//菜单
var mouseover_tid = [];
var mouseout_tid = [];
jQuery(document).ready(function(){
	jQuery("#nav li").each(function(index){
		jQuery(this).hover(
			//出现
 			function(){
 				var _self = this;
 				clearTimeout(mouseout_tid[index]);
 				mouseover_tid[index] = setTimeout(function() {
 						jQuery(_self).find('ul:eq(0)').stop(true,true).slideDown("500");
 					}, 300);
				$(this).children("a:eq(0)").addClass("hover");	
 				},
			//隐藏
 			function(){
 				var _self = this;
 				clearTimeout(mouseover_tid[index]);
 				jQuery(_self).find('ul:eq(0)').stop(true,true).slideUp("fast");
 				$(this).children("a:eq(0)").removeClass("hover");
				}
 		);
	 });
}); 

//banner
jQuery(document).ready(function(){
	//带导航图标及按钮
	$('#change_4 .a_bigImg').soChange({
		thumbObj:'#change_4 .ul_change_a1 img',//导航图标
		botPrev:'#change_4 .a_last',
		botNext:'#change_4 .a_next'
	});
});

//news
jQuery(document).ready(function(){
	var $h5 = $(".sidebarNewsContent li h5");
	var $dl = $(".sidebarNewsContent dl");
	
	$h5.mousemove(function(){
		$dl.hide();
		$h5.show();
		$(this).siblings("dl").show();
		$(this).hide();
	 });	
});
