$(document).ready(function(){

	//导航栏
	$("#nav li ul").hide();
	$("#nav li").hover(
		function(){$("ul", this).fadeIn("fast");}, 
		function(){$("ul", this).fadeOut("fast");}
	);
	$("#nav li").hoverClass ("sfHover");
	
	//header banner roller
	$("#banner_roller").cycle({fx:'fade', speed:1500, timeout:6000});
	
	//新闻图片滚动
	//$("#news_gallery").jCarouselLite({auto:4000, speed:2000, visible:3});
	
	//首页图片
	$("#newsimg").cycle({fx:'fade', speed:1000, timeout:5000});
	
	$("#topic_content").cycle({fx:'fade', timeout:8000, pager:'#topic_control'});
	
	//鼠标指向时行背景变换颜色
	$(".alt_li li").mouseover(function(){
		$(this).addClass("over");}).mouseout(function(){
			$(this).removeClass("over");})
	
	$(".pics_news li").mouseover(function(){
		$(this).addClass("hover");}).mouseout(function(){
			$(this).removeClass("hover");})
	
	//删除文章预览中多余的<br>
	$(".preview br").remove();
	
	//关闭首页广告
	$(".close").click(
		function(){$(this).parent().slideUp("normal");}
	);
	
	//联系方式
	$("#contact_me").click(
		function(){$("#contact").fadeIn("normal");}
	);

});

function gotoURL(url){window.open(url);}