﻿// JavaScript Document
$(document).ready(function(){
	$("#allSort dl dd").hover(function(){
		$(this).children("a").addClass("bold");
		$(this).addClass("hover");
		$(this).children("a").css("color", "#8c0b01");
		$(this).children(".item").show();
	},function(){
		$(this).children("a").removeClass("bold");
		$(this).removeClass("hover");
		$(this).children("a").css("color", "#734d01");
		$(this).children(".item").hide();
	});
	$('#mycarousel').jcarousel();
	$('#carouselsale1').jcarousel({
		scroll: 1
	});
	$('#carouselsale2').jcarousel({
		scroll: 1
	});
	/*********新闻、公告、最新服务***********/
	$("#listen-tab").find(".tab").eq(0).css("background-color", "#FFFFFF");
	$("#listen-tab").find(".tab").eq(0).css("border-bottom", "none");
	$("#listen-tab").find(".tab").eq(0).addClass("bold");
	$("#listen-tab").next(".tabdetail").show();
	$("#listen-tab .tab").mouseover(function(){	
		
		$("#listen-tab .tab").css("background-color", "#fafafa");
		$("#listen-tab .tab").css("border-bottom", "solid 1px #EEEEEE");
		$("#listen-tab .tab").removeClass("bold");
		$("#listen-tab").nextAll().hide();
		
		$(this).css("background-color", "#FFFFFF");
		$(this).css("border-bottom", "none");
		$(this).addClass("bold");
		var tabID = $(this).attr("id");
		$("#tab-"+tabID).show();
	});
});
