﻿$(function() {
    $.ajax(
                {
                    type: "GET",
                    url: "/Ashx/GetInfo.ashx?type=1",
                    dataType: "json",
                    success: function(json) {
                        var str = "";
                        /*
                        if (json.jituan && json.jituan.length > 0) {

                            str += "<ul style=' width:345px'><img src='/images/index_21.jpg' width='330' height='35' border='0' usemap='#Map'/><map name='Map' id='Map'><area shape='rect' coords='237,21,270,29' href='/ArticleList.aspx?type=1' target='_blank' /></map><span class='blank8'></span>";
                        var tmp = null;
                        for (var i = 0; i < json.jituan.length; i++) {
                        tmp = json.jituan[i];
                        str += "<li class='other_1' style='font-size:10px'>" + tmp.date.split(' ')[0] + "</li><li><a target='_target' href='/Article.aspx?id=" + tmp.id + "&type=1'>" + unescape(tmp.title) + "</a></li>";
                        }
                        str += "</ul>";
                        }
                        */

                        str = "<ul style='width: 345px'><img src='images/index_21.jpg' width='330' height='35' border='0' usemap='#Map'/><map name='Map' id='Map'><area shape='rect' coords='290,21,323,29' href='/pages/201004/028a7f18-e1b2-433d-98b9-23d51407af8b.html' target='_blank' /></map><span class='blank8'></span><p class='content_p2'><span class='kong20'></span>打造全球最大最专业的平显产业交易中心，提供产品展贸、检测认证、保税仓储、物流保险、融资担保、广告资讯、营销策划、全国联保等创新型电子商务一体化综合服务。<br /><span class='kong20'></span>三年内,交易中心将发展3万家会员单位，实现年交易额500亿元人民币，创造利税10亿元，集团力争于2013年在中国创业板或境外上市。<br /><span class='blank10'></span><img src='images/8da.jpg' width='326' height='84' border='0' usemap='#Map3' /><map name='Map3' id='Map3'><area shape='rect' coords='6,4,63,37' href='http://www.neotecs.com/pages/201004/e65922de-5b54-483c-b0a8-0a5e268b0003.html' target='_blank' /><area shape='rect' coords='86,5,143,36' href='http://www.neotecs.com/pages/201004/7fcab0b3-9250-4539-9258-6dda0e502f67.html' target='_blank' /><area shape='rect' coords='169,9,223,38' href='http://www.neotecs.com/pages/201004/2376c5fc-ac31-4bc9-9e8e-0ae7aa74c033.html' target='_blank' /><area shape='rect' coords='253,10,308,37' href='http://www.neotecs.com/pages/201004/72bbbe71-ef0f-479b-98f2-895d918fa8d6.html' target='_blank' /><area shape='rect' coords='9,49,64,80' href='http://www.neotecs.com/pages/2010/13e6ae98-b269-4c2d-bf05-d090856d4d8f.html' target='_blank' /><area shape='rect' coords='84,49,143,80' href='http://www.neotecs.com/pages/201004/e6dd30de-311b-48a2-8702-a506f4086577.html' target='_blank' /><area shape='rect' coords='169,49,225,80' href='http://www.neotecs.com/pages/201004/54f380fc-e3a0-48fd-870c-73d98edc288d.html' target='_blank' /><area shape='rect' coords='253,49,307,79' href='http://www.neotecs.com/pages/201004/586b8aaf-cd30-438d-aacb-88f9e4ae6b23.html' target='_blank' /></map></p></ul>";

                        if (json.chanye && json.chanye.length > 0) {
                            str += "<ul style=' width:288px;float:left'>  <img src='/images/index_25.jpg' width='256' height='35' border='0' usemap='#Map2'/ style='float:left;margin-left:10px;' /><map name='Map2' id='Map2'><area shape='rect' coords='259,16,292,31' href='#' /><area shape='rect' coords='226,21,253,32' href='http://www.neotecs.com/ArticleList.aspx?type=2' target='_blank' /></map><span class='blank8'></span>";
                            var tmp = null;
                            for (var i = 0; i < json.chanye.length; i++) {
                                tmp = json.chanye[i];
                                str += "<li class='other_1' style='font-size:10px'>" + tmp.date.split(' ')[0] + "</li><li><a target='_target' href='/Article.aspx?id=" + tmp.id + "&type=2'>" + unescape(tmp.title) + "</a></li>";
                            }
                            str += "</ul>";
                        }

                        $("#ajaxLoaderDiv").hide();
                        $($("#menuLiContent1Div>ul")[0]).before(str);
                        $("#menuLiContent1Div").css("display", "block");
                    },
                    error: function(xmlobj, status, throwerr) {
                        alert(status);
                    }
                }
            );

    //绑定hover事件
    $("#menudivUlContent>ul>li").hover(function() {
        var $this = $(this);
        $this.addClass("currentmenun");
    }, function() {
        var $this = $(this);
        $this.removeClass("currentmenun");
        if ($(".currentmenun").length == 0) {
            $("li.sub:contains('新闻')").addClass("currentmenun");
        }
    });
    /* 
    $("#menuUlContent").children("li").click(function() {
    $("#menuUlContent>li").removeClass("currentmenun").removeAttr("cur");
    var $this = $(this);
    $this.addClass("currentmenun").attr("cur", "yes");
    var divid = $this.attr("id") + "Div";
    var $div = $("#" + divid);
    if ($div.length > 0) {
    $(".contentdiv").filter(":not(#" + divid + ")").hide();
    $div.show();
    }
    else {
    var id = $this.attr("id");
    switch (id) {
    case "menuLiContent2":
    window.open("/about/About-JD.aspx");
    break;
    case "menuLiContent3":
    window.open("/about/job.aspx");
    break;
    case "menuLiContent4":
    window.open("/about/contact.aspx");
    break;
    case "menuLiContent5":
    window.open("/about/Partners.aspx");
    break;
    }
    }
    });
    
    
    
    
    
    */
});
