// JScript source code
$(function () {
    $("img").scrollLoading();
});
$(document).ready(function () {
    var left = $(".sjx").css("left");
    BeginSignMove(left)
    $("#about").css("left", "340px")
    $("#sheying").css("left", "470px");
    $("#lxi").css("left", "765px");
    //GGImage("500px");
    //setTimeout("GGImage('0px')", 5000)
    $(".setcity").hover(function () {
        $(".setcityitems").stop().animate({ top: "0px" }, { queue: false, duration: 1000 })
    })
    $(".setcityitems").hover(function () { }, function () { $(this).stop().animate({ top: "-100px" }, { queue: false, duration: 1000 }) })
    $(".zuopin>dl.content>dd").hover(function () { $(this).css("background", "#7F5757") }, function () { $(this).css("background", "#CDCDCD") })
    $(".menu2 .m2 li a").each(function (i, ITEM) {
        switch (i) {
            case 1:
                $(ITEM).hover(function () { BeginSignMove("240px"); ShowMinMenu("", "1"); })
                break;
            case 2:
                $(ITEM).hover(function () { BeginSignMove("365px"); ShowMinMenu("about", "1"); })
                break;
            case 3:
                $(ITEM).hover(function () { BeginSignMove("490px"); ShowMinMenu("sheying", "1"); })
                break;
            case 4:
                $(ITEM).hover(function () { BeginSignMove("615px"); ShowMinMenu("", "1"); })
                break;
            case 5:
                $(ITEM).hover(function () { BeginSignMove("745px"); ShowMinMenu("", "1"); })
                break;
            case 6:
                $(ITEM).hover(function () { BeginSignMove("870px"); ShowMinMenu("lxi", "1"); })
                break;
        }
    })
})
function GGImage(Height) {
    $("#HomeGG").stop().animate({ height: Height }, { queue: false, duration: 1000 });
}
function BeginSignMove(x) {
    $(".sjx").stop().animate({ left: x }, { queue: false, duration: 300 });
}
function ShowMinMenu(Name, Opacity) {
    $(".minmenu").stop().animate({ opacity: "0" }, "normal", function () { $(this).css("display", "none") })
    if (Name.length == 0) return;
    $("#" + Name).css("display", "block")
    $("#" + Name).stop().animate({ opacity: Opacity }, "normal");
}

