﻿$(document).ready(function() {
    try {
        //资格证书功能
        if (_companymodule.CertificateFunction == "1") {
            if (typeof (eval(certificateMethod) == "function")) {
                certificateMethod();
            }
        }
        else {
            if ($("#certificateShowTag")) {
                $("#certificateShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#certificateShowTag")) {
            $("#certificateShowTag").hide();
        }
    }

    //友情链接功能
    try {
        if (_companymodule.FriendLinkFunction == "1") {

            if (typeof (eval(friendLinkMethod) == "function")) {
                friendLinkMethod();
            }
        }
        else {
            if ($("#friendLinkShowTag")) {
                $("#friendLinkShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#friendLinkShowTag")) {
            $("#friendLinkShowTag").hide();
        }
    }

    //视频功能
    try {
        if (_companymodule.VideoFunction == "1") {
            if (typeof (eval(videoMethod) == "function")) {
                videoMethod();
            }
        }
        else {
            if ($("#videoShowTag")) {
                $("#videoShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#videoShowTag")) {
            $("#videoShowTag").hide();
        }
    }

    //商家客服功能
    try {
        if (_companymodule.ServiceFunction == "1") {
            if (typeof (eval(serviceMethod) == "function")) {
                serviceMethod();
            }
        }
        else {
            if ($("#serviceShowTag")) {
                $("#serviceShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#serviceShowTag")) {
            $("#serviceShowTag").hide();
        }
    }

    //地图功能
    try {
        if (_companymodule.MapFunction == "1") {
            if (typeof (eval(mapMethod) == "function")) {
                mapMethod();
            }
        }
        else {
            if ($("#mapShowTag")) {
                $("#mapShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#mapShowTag")) {
            $("#mapShowTag").hide();
        }
    }

    //供求功能
    try {
        if (_companymodule.BusinessFunction == "1") {
            if (typeof (eval(businessMethod) == "function")) {
                businessMethod();
            }
        }
        else {
            if ($("#businessShowTag")) {
                $("#businessShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#businessShowTag")) {
            $("#businessShowTag").hide();
        }
    }

    //全景功能
    try {
        if (_companymodule.FlashFunction == "1") {
            if (typeof (eval(selectPhotoVsMinisiteVsFlashTag) == "function")) {
                //flashMethod();
                selectPhotoVsMinisiteVsFlashTag(3);
            }
        }
        else {
            if ($("#flashShowTag")) {
                $("#flashShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#flashShowTag")) {
            $("#flashShowTag").hide();
        }
    }

    //minisite功能
    try {
        if (_companymodule.MiniSiteFunction == "1") {
            if (typeof (eval(selectPhotoVsMinisiteVsFlashTag) == "function")) {
                //minisiteShowTag();
                selectPhotoVsMinisiteVsFlashTag(1);
            }
        }
        else {
            if ($("#minisiteShowTag")) {
                $("#minisiteShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#minisiteShowTag")) {
            $("#minisiteShowTag").hide();
        }
    }

    //相册功能
    try {
        if (_companymodule.PhotoFunction == "1") {

            if (typeof (eval(selectPhotoVsMinisiteVsFlashTag) == "function")) {
                selectPhotoVsMinisiteVsFlashTag(2);
                //photoMethod();
            }
        }
        else {
            if ($("#photoShowTag")) {
                $("#photoShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#photoShowTag")) {
            $("#photoShowTag").hide();
        }
    }
   
    //产品功能
    try {
        if (_companymodule.ProductFuction == "1") {
            if (typeof (eval(productMethod) == "function")) {
                productMethod();
            }
        }
        else {
            if ($("#productShowTag")) {
                $("#productShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#productShowTag")) {
            $("#productShowTag").hide();
        }
    }
    //背景音乐功能
    try {
        if (_companymodule.MusicFunction == "1") {
            if (typeof (eval(musicMethod) == "function")) {
                musicMethod();
            }
        }
        else {
            if ($("#musicShowTag")) {
                $("#musicShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#musicShowTag")) {
            $("#musicShowTag").hide();
        }
    }

    //新闻功能
    try {
        if (_companymodule.NewsFunction == "1") {
            if (typeof (eval(newsMethod) == "function")) {
                newsMethod();
            }
        }
        else {
            if ($("#newsShowTag")) {
                $("#newsShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#newsShowTag")) {
            $("#newsShowTag").hide();
        }
    }

    //预付卡功能
    try {
        if (_companymodule.PaymentFunction == "1") {
            if (typeof (eval(paymentMethod) == "function")) {
                paymentMethod();
            }
        }
        else {
            if ($("#paymentShowTag")) {
                $("#paymentShowTag").hide();
            }
        }
    }
    catch (e) {
        if ($("#paymentShowTag")) {
            $("#paymentShowTag").hide();
        }
    }

    //合约交易功能
    try {
        if (_companymodule.AgreementFunction == "1") {
            if (typeof (eval(agreementMethod) == "function")) {
                agreementMethod();
            }
        }
        else {
            if ($("#agreementShowTag")) {
                $("#agreementShowTag").hide();
            }
        }

    }
    catch (e) {
        if ($("#agreementShowTag")) {
            $("#agreementShowTag").hide();
        }
    }
})
  

