// JavaScript Document
$(document).ready(function(){
	$("#nav span").html("今天是：" + myDate.toLocaleDateString());
	//alert($("#gonggao").height());
	///////////////////////////////////////////////////
	$(".link ol li").click(function(){
		$(".link ol li").removeClass("link_h3_on")
		$(this).addClass("link_h3_on")
		$(".link ul").hide();
		$(".link ul").eq($(".link ol li").index(this)).show();
										})
	///////////////////////////////////////////////////
	$(".ListPage .right ul li").mouseover(function(){ 
  		$(this).addClass("over");
		$(this).css("color","#FFF");
		$(this).find("a").css("color","#FFF");
		}).mouseout(function(){
  			$(this).removeClass("over");
			$(this).css("color","#666");
			$(this).find("a").css("color","#666");
			})
  	$(".ListPage .right ul li:odd").addClass("alt");
  ///////////////////////////////
  $("#nav ul >li").hover(
						 function(){
							 $(this).find("ol").show().css({"opacity": "0.8" });
							 },
						 function(){
							 $(this).find("ol").hide();
							 }
						 )
					 })
	///////////////////////////////////////////////////////////

//DUI LIAN
 $(document).ready(function(){
   $("#adl").jFloat({
      position:"left",
      top:100,
      height:300,
      width:120,
      left:20
    });//将页面中id为adl的容器中的内容设置为左浮动广告，广告距窗口顶部0px,距左侧20px。
   $("#adr").jFloat({
      position:"right",
      top:100,
      height:300,
      width:120,
      right:20
   });//将页面中id为adr的容器中的内容设置为右浮动广告，广告距窗口顶部0px，距右侧20px。
   /*$("#ad").jFloat({
      position:"left",
      top:260,
      width:100,
      height:50,
      allowClose:false
   });//将面面中id为ad的容器中的内容设置为左右浮动（即左右两侧内容样式等一样），广告中容器顶部260px，距左侧0,不允许关闭。*/
 });