jQuery.extend({
	ub:function(){
		var ub;
		if(jQuery.browser.msie){
			return ub = 'IE'+Math.floor(jQuery.browser.version);
		}
		else if(jQuery.browser.opera){
			return ub = 'OP';
		}
		else if(jQuery.browser.mozilla){
			return ub = 'FF';
		}
		else if(jQuery.browser.safari){
			return ub = 'SA';
		}
		else{
			return false;
		}
	}
});
jQuery(document).ready(function(){
	jQuery(".index_top .left li").hover(
		function(){
			jQuery(this).css("background","#CCC");
		},
		function(){
			jQuery(this).css("background","none");
		}
	);
	jQuery(".index_top .right li").hover(
		function(){
			jQuery(this).css("background","#CCC");
		},
		function(){
			jQuery(this).css("background","none");
		}
	);
	jQuery(".sidebar1 .sidebar1_1 li.da").hover(
		function(){
			jQuery(this).css("background","#CCC");
		},
		function(){
			jQuery(this).css("background","none");
		}
	);
	jQuery(".sidebar1 .sidebar1_2 li.da").hover(
		function(){
			jQuery(this).css("background","#CCC");
		},
		function(){
			jQuery(this).css("background","none");
		}
	);
	jQuery(".sidebar1 .sidebar1_3 li.da").hover(
		function(){
			jQuery(this).css("background","#CCC");
		},
		function(){
			jQuery(this).css("background","none");
		}
	);
	jQuery(".sidebar1 .sidebar1_4 li.da").hover(
		function(){
			jQuery(this).css("background","#CCC");
		},
		function(){
			jQuery(this).css("background","none");
		}
	);
	jQuery(".jqList").hover(
		function(){
			jQuery(this).css("background","url(./images/list1_bgh.jpg) repeat-x");
			jQuery(this).css("color","#FFF");
		},
		function(){
			if(jQuery(this).attr("sw")==0){
				jQuery(this).css("background","url(./images/list1_bg.jpg) repeat-x");
				jQuery(this).css("color","#666");
			}else{
				jQuery(this).css("background","url(./images/list1_bgh.jpg) repeat-x");
				jQuery(this).css("color","#FFF");
			}
		}
	);
	jQuery(".jqList_txt1").each(function(){
		jQuery(this).attr("height",jQuery(this).height());
	});
	jQuery(".jqList").each(function(){
		jQuery(this).attr("sw",0);
	});
	jQuery(".jqList_txt1").css("height",0);
	jQuery(".jqList_txt1").css("opacity",1);
	jQuery(".jqList").click(
		function(){
			jQuery(".jqList_txt1").animate({
				height:"0px",
				opacity:0
			},300);
			jQuery(".jqList").attr("sw",0);
			if(jQuery(this).next(".jqList_txt1").height()==0){
				jQuery(".jqList").css("background","url(./images/list1_bg.jpg) repeat-x");
				jQuery(".jqList").css("color","#666");
				jQuery(this).next(".jqList_txt1").animate({
					height:jQuery(this).next(".jqList_txt1").attr("height"),
					opacity:1
				},300);
				jQuery(this).attr("sw",1);
			}else{
				jQuery(this).next(".jqList_txt1").animate({
					height:"0px",
					opacity:0
				},300);
			}
		}
	);
});
