var isIndex = false;
//判断是否在首页打开
var url_1 = window.location.href;

if(url_1.indexOf("showIndex.do")!=-1 || url_1.indexOf("portal/index.html")!=-1){
   isIndex = true;
}
function loadSort(){
    var jsonObj=[{"attentionPoint":"服饰箱包","childSortList":[{"attentionPoint":"精品男装","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":2,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0035c0a8010d","sortName":"精品男装"},{"attentionPoint":"女鞋/裸靴/皮鞋","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-003cc0a8010d","sortName":"女鞋/皮鞋/裸靴"},{"attentionPoint":"男鞋/牛皮/商务鞋","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-003dc0a8010d","sortName":"男鞋/牛皮/商务鞋"},{"attentionPoint":"配饰/帽子/围巾","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-003fc0a8010d","sortName":"配饰/帽子/围巾"},{"attentionPoint":"品牌女装","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0033c0a8010d","sortName":"品牌女装"},{"attentionPoint":"皮具/钱包/背包/旅行包","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":5,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-003ec0a8010d","sortName":"皮具/钱包/背包/旅行包"},{"attentionPoint":"内衣/睡衣/家居服","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":7,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0040c0a8010d","sortName":"内衣/睡衣/家居服"}],"fatherCode":"1","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ea018555-0122-1000-e000-0001c0a801c2","sortName":"服饰箱包"},{"attentionPoint":"运动户外","childSortList":[{"attentionPoint":"运动鞋","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0041c0a8010d","sortName":"运动鞋"},{"attentionPoint":"运动用品","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0046c0a8010d","sortName":"运动用品"},{"attentionPoint":"户外装备","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":7,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0047c0a8010d","sortName":"户外装备"},{"attentionPoint":"瑜伽健美","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":9,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0049c0a8010d","sortName":"瑜伽健美"},{"attentionPoint":"运动服","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0044c0a8010d","sortName":"运动服"},{"attentionPoint":"健身器械","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":8,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0048c0a8010d","sortName":"健身器械"}],"fatherCode":"1","gradation":2,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ea018555-0122-1000-e000-0002c0a801c2","sortName":"运动户外"},{"attentionPoint":"家居生活","childSortList":[{"attentionPoint":"居家日用","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-004dc0a8010d","sortName":"居家日用"},{"attentionPoint":"家居家饰品","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-004fc0a8010d","sortName":"家具家饰"},{"attentionPoint":"车类用品","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"eec3e482-0123-1000-e000-0320c0a80142","sortName":"车类用品"},{"attentionPoint":"个人护理","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":2,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-004ec0a8010d","sortName":"个人护理"},{"attentionPoint":"文具用品","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"94edcb87-0127-1000-e000-01300af413ef","sortName":"文具用品"}],"fatherCode":"1","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ea018555-0122-1000-e000-0003c0a801c2","sortName":"家居生活"},{"attentionPoint":"母婴用品","childSortList":[{"attentionPoint":"孕妇装/妈妈专区","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"2666eb1d-0123-1000-e000-00d9c0a8010d","sortName":"孕妇装/妈妈专区"},{"attentionPoint":"喂哺用品/尿片","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-005ac0a8010d","sortName":"喂哺用品/尿片"},{"attentionPoint":"童装/童鞋/配饰","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":7,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-005ec0a8010d","sortName":"童装/童鞋/配饰"},{"attentionPoint":"卫浴洗护","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"08a7b9ba-0124-1000-e000-002dc0a80142","sortName":"卫浴洗护"},{"attentionPoint":"童床/童被","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-005bc0a8010d","sortName":"童床/童被"},{"attentionPoint":"推车/学步","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-005dc0a8010d","sortName":"推车/学步"},{"attentionPoint":"益智/玩具/胎教","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":5,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-005cc0a8010d","sortName":"益智/玩具/胎教"}],"fatherCode":"1","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ea018555-0122-1000-e000-0004c0a801c2","sortName":"母婴用品"},{"attentionPoint":"数码家电","childSortList":[{"attentionPoint":"家用电器","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0005c0a801c2","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0064c0a8010d","sortName":"家用电器"},{"attentionPoint":"办公设备/耗材","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0005c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0067c0a8010d","sortName":"办公设备/耗材"},{"attentionPoint":"电脑产品","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0005c0a801c2","gradation":2,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0063c0a8010d","sortName":"电脑产品"},{"attentionPoint":"手机数码","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0005c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0062c0a8010d","sortName":"手机数码"}],"fatherCode":"1","gradation":5,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ea018555-0122-1000-e000-0005c0a801c2","sortName":"数码家电"},{"attentionPoint":"图书音像","childSortList":[{"attentionPoint":"影视   \r\n   内地 | 港台 | 欧美 | 卡通动画   \r\n   日韩 | 其他 |","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"8e0fa65b-0117-1000-e000-00070af47891","sortName":"影视"},{"attentionPoint":"图书\r\n小说 ｜ 历史 ｜ 传记 ｜ 艺术设计\r\n文学 ｜ 旅游 ｜ 美食 ｜ 美容保健\r\n教育 ｜ 经管 ｜ 职场 ｜ 家居休闲 \r\n儿童 ｜ 励志 ｜ 心理 ｜ 母婴幼教\r\n其他 ｜","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":8,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"8e0fa65b-0117-1000-e000-00080af47891","sortName":"图书"},{"attentionPoint":"刊物","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":9,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"8e0fa65b-0117-1000-e000-000a0af47891","sortName":"刊物"},{"attentionPoint":"音乐/歌舞","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":5,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"8e0fa65b-0117-1000-e000-000c0af47891","sortName":"音乐/歌舞"},{"attentionPoint":"乐器","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"9ce2f7a4-0123-1000-e000-0074c0a8010d","sortName":"乐器"},{"attentionPoint":"报纸","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"08a7b9ba-0124-1000-e000-003bc0a80142","sortName":"报纸"}],"fatherCode":"1","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ea018555-0122-1000-e000-0006c0a801c2","sortName":"图书音像"},{"attentionPoint":"生活服务","childSortList":[{"attentionPoint":"数字电视","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":9,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"05675c41-011d-1000-e000-0004c0a80108","sortName":"数字电视"},{"attentionPoint":"电影票务","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"08a7b9ba-0124-1000-e000-0004c0a80142","sortName":"电影票务"},{"attentionPoint":"优惠券票","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"612ff53f-0124-1000-e000-003ec0a80142","sortName":"优惠券票"},{"attentionPoint":"游玩","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"eec3e482-0123-1000-e000-0499c0a80142","sortName":"游玩"},{"attentionPoint":"出行票务","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"eec3e482-0123-1000-e000-049dc0a80142","sortName":"出行票务"},{"attentionPoint":"保险","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"eec3e482-0123-1000-e000-049bc0a80142","sortName":"保险"},{"attentionPoint":"便民服务","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"7ff2742e-0124-1000-e000-00790af413ef","sortName":"便民服务"},{"attentionPoint":"车展门票","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ec54c039-0124-1000-e000-02bd0af413ef","sortName":"车展门票"},{"attentionPoint":"手机订报/贺卡","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"b5ab8056-0125-1000-e000-07da0af413ef","sortName":"手机订报/贺卡"},{"attentionPoint":"儿童摄影","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"8bed2b75-0128-1000-e000-064a0af413ef","sortName":"儿童摄影"},{"attentionPoint":"鲜花速递","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"b5ab8056-0125-1000-e000-07e60af413ef","sortName":"鲜花速递"},{"attentionPoint":"展会门票","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"79678480-012a-1000-e000-09be0af413ef","sortName":"展会门票"}],"fatherCode":"1","gradation":8,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ea018555-0122-1000-e000-0008c0a801c2","sortName":"生活服务"},{"attentionPoint":"工艺特产","childSortList":[{"attentionPoint":"会员专区","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0009c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"47c03e6f-0120-1000-e000-00d6c0a801fa","sortName":"会员专区"},{"attentionPoint":"礼品","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0009c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"eec3e482-0123-1000-e000-04aac0a80142","sortName":"礼品"},{"attentionPoint":"特产","childSortList":[],"fatherCode":"ea018555-0122-1000-e000-0009c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ce9b35b3-0121-1000-e000-0000c0a80191","sortName":"特产"}],"fatherCode":"1","gradation":9,"htmlUrl":"","isSell":0,"showOnSms":0,"sortCode":"ea018555-0122-1000-e000-0009c0a801c2","sortName":"工艺特产"}];
                var content="";
                jQuery.each(jsonObj,
                    function(i,item){
                        if(i<=7){
                            if(i==7){
                                content = content+"<div class=\"menu\" style=\"border-bottom:0px;\"><span class=\"span1\">"+item.sortName;
                            }
                            else{
                                content = content+"<div class=\"menu\"><span class=\"span1\">"+item.sortName;
                            }
                                content = content+"<\/span><span class=\"span2\">";
                                
                                if(item.childSortList!=null&&item.childSortList.length>0){
                                    jQuery.each(item.childSortList,function(j,child){
                                        if(j==0){
                                            content = content+child.sortName;
                                        }
                                        if(j==1){
                                            content = content+" | "+child.sortName;
                                        }
                                    });
                                }
                                
                                content = content +"<\/span><a href=\"#\"><img src="+baseURL+"\/image\/portal\/newImages\/icon_triangle2.gif><\/a>"
                                      +"<div class=\"leftmenu_float\">";
                            if(item.childSortList!=null&&item.childSortList.length>0){
                                if(item.htmlUrl!=null&&item.htmlUrl!=''){
                                	content = content+"<ul class=\"float_left\"><li><a href=\"/mall"+item.htmlUrl+"\">"+item.sortName+"<\/a><\/li><\/ul>";
                                }else{
                                	content = content+"<ul class=\"float_left\"><li>"+item.sortName+"<\/li><\/ul>";
                                }
                                content = content+"<ul class=\"float_list\">";
                                jQuery.each(item.childSortList,function(j,child){
                                    content = content+"<li><a style=\"cursor:pointer;\" value=\""+child.sortCode+"\">"+child.sortName+"<\/a><\/li>";
                                });
                                content = content+"<\/ul>";
                            }
                            content = content+"<\/div><\/div>";
                        }
                    }
                );
                
                if(isIndex){
                	
                	jQuery("#leftmenu_t").hide();
                    jQuery("#leftmenu_t_index").show();
                    
                    jQuery("#leftmenu_t_index").before(content);
                 //   jQuery("#leftmenu_t_index").html("");
                 //   jQuery("#leftmenu").show();
                    
                }
                else{
                	jQuery("#leftmenu_t").html("");
                    jQuery("#leftmenu_t").before(content);
                }
                
                if(isIndex){
                 //   jQuery("#SortMenu_open").show();
                 //   jQuery("#SortMenu").hide();
                	
                	 jQuery("#SortMenu").hide();
                     jQuery("#SortMenu_open").show();
                     var left = jQuery("#SortMenu_open").position().left-3;
                     var top = jQuery("#SortMenu_open").position().top+37;
                     jQuery("#leftmenu").css({"position":"absolute","top":top,"left":left,"z-index":"100"});
                     jQuery("#leftmenu").show();
                }
                else{
        
                   //不在首页打开的时候，弹出左边分类菜单
        
                    jQuery("#sortList").hover(
                        function(){
                            jQuery("#SortMenu").hide();
                            jQuery("#SortMenu_open").show();
                            var left = jQuery("#SortMenu_open").position().left-3;
                            var top = jQuery("#SortMenu_open").position().top+37;
                            jQuery("#leftmenu").css({"position":"absolute","top":top,"left":left,"z-index":"100"});
                            jQuery("#leftmenu").show();
                        },
                        function(){
                            jQuery("#leftmenu").hide();
                            jQuery("#SortMenu_open").hide();
                            jQuery("#SortMenu").show();
                    }
                    );
                }
        
                //弹出左边分类菜单的子分类层
                jQuery("#leftmenu .menu").hover(
                    function(){
                        var left = jQuery(this).position().left+8;
                        var top = jQuery(this).position().top+2;
                        jQuery(this).find(".leftmenu_float .float_left").css({"position":"absolute","top":top,"left":left,"z-index":"101"});
                        jQuery(this).find(".leftmenu_float .float_list").css({"position":"absolute","top":top,"left":left,"z-index":"101"});
                        jQuery(this).find(".leftmenu_float .float_left").show();
                        jQuery(this).find(".leftmenu_float .float_list").show();
        
                    },
                    function(){
                        jQuery(this).find(".leftmenu_float .float_left").hide();
                        jQuery(this).find(".leftmenu_float .float_list").hide();
                    }
                );
                
                jQuery(".leftmenu_float .float_list li a").click(
                        function(){
                                var sortCode = jQuery(this).attr("value");
                                // window.open("/mall/searchMerdiseOrMerchant.d.html?sortCode="+sortCode);
                                //openPostWindow("_blank",baseURL+"/searchMerdiseOrMerchant.d.html?sortCode="+sortCode);
								 jQuery("#sortCode").attr("value",sortCode);
				                 jQuery("#search_form").submit();
                            }
                        );
        
        //左边列表加载完成
        
        jQuery(".float_list li a").bind("mouseenter",
            function(){
                jQuery(this).css({"background-color":"#f6fbff"});
            }
        );
        
        jQuery(".float_list li a").bind("mouseleave",
            function(){
                jQuery(this).css({"background-color":"#ffffff"});
            }
        );

        //得到所有分类下拉列表
 			var jsonObj = [{"adColumnCode":"","attentionPoint":"精品男装","fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":2,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144042640.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0035c0a8010d","sortName":"精品男装"},{"adColumnCode":"","attentionPoint":"女鞋/裸靴/皮鞋","fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144123968.jpg","sortCode":"9ce2f7a4-0123-1000-e000-003cc0a8010d","sortName":"女鞋/皮鞋/裸靴"},{"adColumnCode":"","attentionPoint":"男鞋/牛皮/商务鞋","fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144148015.jpg","sortCode":"9ce2f7a4-0123-1000-e000-003dc0a8010d","sortName":"男鞋/牛皮/商务鞋"},{"adColumnCode":"","attentionPoint":"配饰/帽子/围巾","fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144351671.jpg","sortCode":"9ce2f7a4-0123-1000-e000-003fc0a8010d","sortName":"配饰/帽子/围巾"},{"adColumnCode":"","attentionPoint":"品牌女装","fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144011656.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0033c0a8010d","sortName":"品牌女装"},{"adColumnCode":"","attentionPoint":"皮具/钱包/背包/旅行包","fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":5,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144212406.jpg","sortCode":"9ce2f7a4-0123-1000-e000-003ec0a8010d","sortName":"皮具/钱包/背包/旅行包"},{"adColumnCode":"","attentionPoint":"内衣/睡衣/家居服","fatherCode":"ea018555-0122-1000-e000-0001c0a801c2","gradation":7,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144325296.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0040c0a8010d","sortName":"内衣/睡衣/家居服"},{"adColumnCode":"","attentionPoint":"运动鞋","fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144418031.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0041c0a8010d","sortName":"运动鞋"},{"adColumnCode":"","attentionPoint":"运动用品","fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144529375.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0046c0a8010d","sortName":"运动用品"},{"adColumnCode":"","attentionPoint":"户外装备","fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":7,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144558593.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0047c0a8010d","sortName":"户外装备"},{"adColumnCode":"","attentionPoint":"瑜伽健美","fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":9,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144641453.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0049c0a8010d","sortName":"瑜伽健美"},{"adColumnCode":"","attentionPoint":"运动服","fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144439875.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0044c0a8010d","sortName":"运动服"},{"adColumnCode":"","attentionPoint":"健身器械","fatherCode":"ea018555-0122-1000-e000-0002c0a801c2","gradation":8,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930154252203.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0048c0a8010d","sortName":"健身器械"},{"adColumnCode":"","attentionPoint":"居家日用","fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144742203.jpg","sortCode":"9ce2f7a4-0123-1000-e000-004dc0a8010d","sortName":"居家日用"},{"adColumnCode":"","attentionPoint":"家居家饰品","fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144900625.jpg","sortCode":"9ce2f7a4-0123-1000-e000-004fc0a8010d","sortName":"家具家饰"},{"adColumnCode":"","attentionPoint":"车类用品","fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144924968.jpg","sortCode":"eec3e482-0123-1000-e000-0320c0a80142","sortName":"车类用品"},{"adColumnCode":"","attentionPoint":"个人护理","fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":2,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930144827578.jpg","sortCode":"9ce2f7a4-0123-1000-e000-004ec0a8010d","sortName":"个人护理"},{"adColumnCode":"","attentionPoint":"文具用品","fatherCode":"ea018555-0122-1000-e000-0003c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"","sortCode":"94edcb87-0127-1000-e000-01300af413ef","sortName":"文具用品"},{"adColumnCode":"","attentionPoint":"孕妇装/妈妈专区","fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145008171.jpg","sortCode":"2666eb1d-0123-1000-e000-00d9c0a8010d","sortName":"孕妇装/妈妈专区"},{"adColumnCode":"","attentionPoint":"喂哺用品/尿片","fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930153054921.jpg","sortCode":"9ce2f7a4-0123-1000-e000-005ac0a8010d","sortName":"喂哺用品/尿片"},{"adColumnCode":"","attentionPoint":"童装/童鞋/配饰","fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":7,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145249515.jpg","sortCode":"9ce2f7a4-0123-1000-e000-005ec0a8010d","sortName":"童装/童鞋/配饰"},{"adColumnCode":"","attentionPoint":"卫浴洗护","fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930152934203.jpg","sortCode":"08a7b9ba-0124-1000-e000-002dc0a80142","sortName":"卫浴洗护"},{"adColumnCode":"","attentionPoint":"童床/童被","fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145124828.jpg","sortCode":"9ce2f7a4-0123-1000-e000-005bc0a8010d","sortName":"童床/童被"},{"adColumnCode":"","attentionPoint":"推车/学步","fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145220937.jpg","sortCode":"9ce2f7a4-0123-1000-e000-005dc0a8010d","sortName":"推车/学步"},{"adColumnCode":"","attentionPoint":"益智/玩具/胎教","fatherCode":"ea018555-0122-1000-e000-0004c0a801c2","gradation":5,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145200750.jpg","sortCode":"9ce2f7a4-0123-1000-e000-005cc0a8010d","sortName":"益智/玩具/胎教"},{"adColumnCode":"","attentionPoint":"家用电器","fatherCode":"ea018555-0122-1000-e000-0005c0a801c2","gradation":3,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145453531.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0064c0a8010d","sortName":"家用电器"},{"adColumnCode":"","attentionPoint":"办公设备/耗材","fatherCode":"ea018555-0122-1000-e000-0005c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145519546.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0067c0a8010d","sortName":"办公设备/耗材"},{"adColumnCode":"","attentionPoint":"电脑产品","fatherCode":"ea018555-0122-1000-e000-0005c0a801c2","gradation":2,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145404796.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0063c0a8010d","sortName":"电脑产品"},{"adColumnCode":"","attentionPoint":"手机数码","fatherCode":"ea018555-0122-1000-e000-0005c0a801c2","gradation":1,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145347078.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0062c0a8010d","sortName":"手机数码"},{"adColumnCode":"","attentionPoint":"影视   \r\n   内地 | 港台 | 欧美 | 卡通动画   \r\n   日韩 | 其他 |","fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":6,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930150433046.jpg","sortCode":"8e0fa65b-0117-1000-e000-00070af47891","sortName":"影视"},{"adColumnCode":"","attentionPoint":"图书\r\n小说 ｜ 历史 ｜ 传记 ｜ 艺术设计\r\n文学 ｜ 旅游 ｜ 美食 ｜ 美容保健\r\n教育 ｜ 经管 ｜ 职场 ｜ 家居休闲 \r\n儿童 ｜ 励志 ｜ 心理 ｜ 母婴幼教\r\n其他 ｜","fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":8,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930150659578.jpg","sortCode":"8e0fa65b-0117-1000-e000-00080af47891","sortName":"图书"},{"adColumnCode":"","attentionPoint":"刊物","fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":9,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930150533046.jpg","sortCode":"8e0fa65b-0117-1000-e000-000a0af47891","sortName":"刊物"},{"adColumnCode":"","attentionPoint":"音乐/歌舞","fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":5,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930150405062.jpg","sortCode":"8e0fa65b-0117-1000-e000-000c0af47891","sortName":"音乐/歌舞"},{"adColumnCode":"","attentionPoint":"乐器","fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":4,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930150341921.jpg","sortCode":"9ce2f7a4-0123-1000-e000-0074c0a8010d","sortName":"乐器"},{"adColumnCode":"","attentionPoint":"报纸","fatherCode":"ea018555-0122-1000-e000-0006c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930154620156.jpg","sortCode":"08a7b9ba-0124-1000-e000-003bc0a80142","sortName":"报纸"},{"adColumnCode":"","attentionPoint":"数字电视","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":9,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20091023151647549.jpg","sortCode":"05675c41-011d-1000-e000-0004c0a80108","sortName":"数字电视"},{"adColumnCode":"","attentionPoint":"电影票务","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145922250.jpg","sortCode":"08a7b9ba-0124-1000-e000-0004c0a80142","sortName":"电影票务"},{"adColumnCode":"","attentionPoint":"优惠券票","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20091022151053999.jpg","sortCode":"612ff53f-0124-1000-e000-003ec0a80142","sortName":"优惠券票"},{"adColumnCode":"","attentionPoint":"游玩","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930150050921.jpg","sortCode":"eec3e482-0123-1000-e000-0499c0a80142","sortName":"游玩"},{"adColumnCode":"","attentionPoint":"出行票务","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930150031750.jpg","sortCode":"eec3e482-0123-1000-e000-049dc0a80142","sortName":"出行票务"},{"adColumnCode":"","attentionPoint":"保险","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145950234.jpg","sortCode":"eec3e482-0123-1000-e000-049bc0a80142","sortName":"保险"},{"adColumnCode":"","attentionPoint":"便民服务","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20091023151415268.jpg","sortCode":"7ff2742e-0124-1000-e000-00790af413ef","sortName":"便民服务"},{"adColumnCode":"","attentionPoint":"车展门票","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"","sortCode":"ec54c039-0124-1000-e000-02bd0af413ef","sortName":"车展门票"},{"adColumnCode":"","attentionPoint":"手机订报/贺卡","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"","sortCode":"b5ab8056-0125-1000-e000-07da0af413ef","sortName":"手机订报/贺卡"},{"adColumnCode":"","attentionPoint":"儿童摄影","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"","sortCode":"8bed2b75-0128-1000-e000-064a0af413ef","sortName":"儿童摄影"},{"adColumnCode":"","attentionPoint":"鲜花速递","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"","sortCode":"b5ab8056-0125-1000-e000-07e60af413ef","sortName":"鲜花速递"},{"adColumnCode":"","attentionPoint":"展会门票","fatherCode":"ea018555-0122-1000-e000-0008c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"","sortCode":"79678480-012a-1000-e000-09be0af413ef","sortName":"展会门票"},{"adColumnCode":"","attentionPoint":"会员专区","fatherCode":"ea018555-0122-1000-e000-0009c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145738828.jpg","sortCode":"47c03e6f-0120-1000-e000-00d6c0a801fa","sortName":"会员专区"},{"adColumnCode":"","attentionPoint":"礼品","fatherCode":"ea018555-0122-1000-e000-0009c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145711875.jpg","sortCode":"eec3e482-0123-1000-e000-04aac0a80142","sortName":"礼品"},{"adColumnCode":"","attentionPoint":"特产","fatherCode":"ea018555-0122-1000-e000-0009c0a801c2","gradation":0,"htmlUrl":"","isSell":0,"showOnSms":0,"showPhoto":"sortPhoto/20090930145620234.jpg","sortCode":"ce9b35b3-0121-1000-e000-0000c0a80191","sortName":"特产"}];
                var content="";
                jQuery.each(jsonObj,
                    function(i,item){
                            content = content+"<li><a style=\"cursor:pointer;\" id=\""+item.sortCode+"\" value=\""+item.sortCode+"\">"+item.sortName+"<\/a><\/li>";
                    }
                );
                jQuery("#allSort").append(content);
                
                jQuery("#InputDrop2 li a").hover(
                        function(){
                            jQuery(this).css({"background-color":"#f6fbff"});
                        },
                        function(){
                            jQuery(this).css({"background-color":"#ffffff"});
                        }
                    );
                
              //下拉弹出所有分类
                
                jQuery("#Input2").click(
                    function(){
                        var left2 = jQuery("#Input2").position().left;
                        var top2 =  jQuery("#Input2").position().top+28;
                        jQuery("#InputDrop2").css({"position":"absolute","top":top2,"left":left2,"z-index":"101"});
                        jQuery("#InputDrop2").show();
                        jQuery("#InputDrop2").focus();
                    }
                );
                jQuery("#Input2All").bind("mouseleave",
                    function(){
                        jQuery("#InputDrop2").hide();
                    }
                );
                
                //选择分类下拉框事件
                jQuery("#InputDrop2 ul li a").click(
                    function(){
                       // var sortName = jQuery(this).html();
                       jQuery("#Input2 span").html(jQuery(this).html().substring(0,5));
                       jQuery("#sortCode").attr("value",jQuery(this).attr("value"))
                       jQuery("#InputDrop2").hide();

                    }
                );
                



        
           
        
        
        //下拉弹出搜索类别
        jQuery("#Input1").click(
            function(){
                var left1 = jQuery("#Input1").position().left;
                var top1 =  jQuery("#Input1").position().top+28;
                jQuery("#InputDrop1").css({"position":"absolute","top":top1,"left":left1,"z-index":"101"});
                jQuery("#InputDrop1").show();
                jQuery("#InputDrop1").focus();
            }
        );
        jQuery("#Input1All").bind("mouseleave",
            function(){
                jQuery("#InputDrop1").hide();
            }
        );

        

        //选择搜索类别事件

        jQuery("#InputDrop1 ul li a").click(
            function(){
                jQuery("#Input1 span").html(jQuery(this).html());
                jQuery("#type").attr("value",jQuery(this).attr("value"))
                jQuery("#InputDrop1").hide();

            }
        );

       

        //开始搜索
        jQuery("#searchBtn").click(
            function(){
                var searchWord = jQuery.trim(jQuery("#searchText").attr("value"));
                jQuery("#keyword").attr("value",searchWord);
                openPostWindowForm("search_form");
                jQuery("#search_form").submit();
            }
        );

         jQuery("#search_form").submit(
            function(){
                var searchWord = jQuery.trim(jQuery("#searchText").attr("value"));
                openPostWindowForm("search_form");
                jQuery("#keyword").attr("value",searchWord);
            }
        );

        
         jQuery("#dslink1").click(
                    function(){
                        var left = jQuery("#dslink1").position().left-9;
                        var top = jQuery("#dslink1").position().top-5;
                        jQuery("#lay1").css({"top":top,"left":left});
                        jQuery("#lay1").show();
                    },
                    function(){
                    }
                );
            jQuery("#lay1").bind("mouseleave",
                    function(){
                        jQuery("#lay1").hide();
                    }
                );
    }
    if(!isIndex){$(document).ready(function(){loadSort();});}
    else loadSort();
