function aVoid(id, str, xia, pid) {
    $("#" + str + " .one_buttons").hide();
    $("#" + xia + " a").hide();
    $("#click" + id + "").show();
    $("#a" + id + "").show();

}
function dVoid(id, str, xia, number, pid) {
    $("#" + pid + " .shop_listTitle").removeClass("onfull");
    $("#" + str + " .clicks").hide();
    $("#" + xia + " a").hide();
    $("#click" + id + "").show();
    $("#a" + id + "").show();
    $("#" + pid + " .shop_listTitle").eq(number).addClass("onfull");
}
function sVoid(id, str, xia, number, pid) {
    $("#" + pid + " .shop_listTitle").removeClass("onfull");
    $("#" + str + " ." + xia + "").hide();
    $("#" + xia + " a").hide();
    $("#click" + id + "").show();
    $("#a" + id + "").show();
    $("#" + pid + " .shop_listTitle").eq(number).addClass("onfull");

}
function pVoid(str, id, xia, number, pid) {
    $("." + str + " .divtitle").removeClass("grids");
    $("." + xia + " a").hide();
    $(".tabclass").hide();
    $(".spanclass").hide();
    $("#a" + pid + "").show();
    $("#span" + id + "").show();
    $("." + str + " .divtitle").eq(number).addClass("grids");
    $("#tablist" + id + "").show();
}
function gvoid(str, id, xia) {
    $("." + str + " .aaaaaaaaa").hide();
    $("#a" + id + "").show();
    $("." + xia + "").hide();
    $("#list" + id + "").show();
}
function onchangtable(str, id, tab, job) {
    $(".qing span").hide();
    if (id == 1) {
        $(".qing span").show();
    }
    $("." + str + "").hide();
    $("." + tab + "").hide();
    $("#aa" + id + "").show();
    $("#tab" + job + "").show();
}
function onchangtab(str, id, pid) {
    $("." + str + "").hide();
    $("#tab" + id + "").show();
    $("." + str + "pubdou .pubdoua").hide();
    $("#a" + id + "").show();
}
function onchangtab(str, id) {
    $("." + str + "").hide();
    $("." + str + "_tab").removeClass("selected");
    $(".tab" + id).addClass("selected");
    $("#tab" + id + "").show();
    $("." + str + "pubdou .pubdoua").hide();
    $("#a" + id + "").show();
}
function changtabs(id) {
    $(".tabclass").hide();
    $(".xia a").hide();
    $("#tablist" + id + "").show();
    $("#a" + id + "").show();
}
function tabspit(id) {
    $(".listclass001").hide();
    $(".homebg").hide();
    $("#div" + id + "").show();
    $("#home" + id + "").show();
}
function steel(id, number, pid, dd, di) {
    $(".steel li").removeClass("zystee" + pid);
    $(".steel li").removeClass("zystee" + number);
    $(".steel li strong a").removeClass("colorzy" + pid);
    $(".steel li strong a").removeClass("colorzy" + number);
    $(".jyinfo").hide();
    $(".frames").hide();
    $("#zy" + di + "").show();
    $("#frimae" + di + "").show();
    $(".steel li").eq(id).addClass("zystee" + pid);
    $(".steel li").eq(dd).addClass("zystee" + number);
    $(".steel li strong a").eq(id).addClass("colorzy" + pid);
    $(".steel li strong a").eq(dd).addClass("colorzy" + number);

}
function DrawImg(obj, boxWidth, boxHeight) {
    var imgWidth = obj.width();
    var imgHeight = obj.height();
    if ((boxWidth / boxHeight) >= (imgWidth / imgHeight)) {
        //重新设置img的width和height
        obj.width((boxHeight * imgWidth) / imgHeight);
        obj.height(boxHeight);
        //让图片居中显示
        var margin = (boxWidth - obj.width()) / 2;
        obj.css("margin-left", margin);
    }
    else {
        //重新设置img的width和height
        obj.width(boxWidth);
        obj.height((boxWidth * imgHeight) / imgWidth);
        //让图片居中显示
        var margin = (boxHeight - obj.height()) / 2;
        obj.css("margin-top", margin);
    }
}
