
	//switch tabs on load
	jQuery(function(){    //use jQuery function so prevent conflict from prototype.js

		jQuery(".tabs > li ").each(function(){
			jQuery(this).hover(
				function(event){

					var sId = jQuery(this).children("a").attr("id");
					
					jQuery(this).parent().children(".lightened").removeClass("lightened");
					jQuery(this).parent().parent().children(".actived").hide();
					//jQuery(".actived").hide();
					//jQuery(".lightened").removeClass("lightened");
					
					jQuery(this).addClass("lightened");
					jQuery(sId).addClass("actived");
					jQuery(sId).show();
			},
			function(){
				return false;
			});
			/*关闭链接默认动作*/
//				jQuery(this).click(
//					function(event){
//						event.preventDefault();
//						}
//				);
		});	//Switch tabs 

		SetRedHeadLine();//Set headline's color to red for each column
	
		//SetRedHeadLine()
		function SetRedHeadLine(){
			var centerTextUL = jQuery(".centerTextNews div ul");
			var rHeadLine = jQuery(".centerTextNews div ul li:nth-child(1)");
			
	//		centerTextUL.css({
	//			"list-style-position":"inside"
	//
	//			});
			rHeadLine.each(function(){
				jQuery(this).css({
				"text-align":"left",
				"list-style":"none",
				"background-image":"none",
				width:"215px",
				"border-bottom":"1px solid #eee",
				"margin-bottom":"7px"
				});
			jQuery(this).children("a").css({
				color:"red",
				"font-weight":"bold"
				});
			});
		}//End SetRedHeadLine();


	//You can initial the Top Navigation Tabs by hard code,or


	//	var theFirstTabHandle = jQuery("#toplink_1");
	//	var theFirstTabBar = jQuery("#sc1");
	//	//var theFirstNavi_DOM = document.getElementById("toplink_1");
	//	var dom_theFirstTabHandle = theFirstTabHandle.get(0);
	//
	//	stopTimer();
	//	navOn(dom_theFirstTabHandle);
	//	//expandcontent('sc1',theFirstNavi_DOM);//expandcontent function() has problems 
	//	theFirstTabHandle.css("display","block");
	//	theFirstTabBar.css("display","block");
	//	highlighttab(dom_theFirstTabHandle);

	//call the functions
	previoustab = "sc1";//initial the previoustab
	navOn(jQuery("#toplink_1").get(0));
	expandcontent("sc1",jQuery("#toplink_1").get(0));

	//		SetLeftTableLineHeight();
	SetLeftTableLineHeight();
	function SetLeftTableLineHeight(){
		jQuery(".line1 + table td").each(function(){
				//alert(this.tagName);
				this.style.lineHeight = "1.5em";
			});
		//alert(jQuery(".line1 + table").children("td"));
	}
	
});//jQuery(function())
	

