﻿//替换document.getElementById
function $() 
{ 
  var elements = new Array(); 
  for (var i = 0; i < arguments.length; i++) 
  { 
  var element = arguments[i]; 
  if (typeof element == 'string') 
  element = document.getElementById(element); 
  if (arguments.length == 1) 
  return element; 
  elements.push(element); 
  } 
  return elements; 
}

function ClearTextbox(obj)
{
  if(trim(obj.value)=="请输入关键字")
    obj.value="";
}

function SetTextbox(obj)
{
  if(trim(obj.value)=="")
    obj.value="请输入关键字";
}

function tagSearch(text)
{
  if(trim(text)=="" ||trim(text)=="请输入关键字")
    return;
  var str = encodeURIComponent(trim(text));
  window.open("http://www.ruyijia.com/tag.aspx?k="+str);  
}

function trim(str){  //删除左右两端的空格
 return str.replace(/(^\s*)|(\s*$)/g, "");
}
function ltrim(str){  //删除左边的空格
 return str.replace(/(^\s*)/g,"");
}
function rtrim(str){  //删除右边的空格
 return str.replace(/(\s*$)/g,"");
}


//加入收藏
function AddFavorite(sURL, sTitle)
{
  try
  {
    window.external.addFavorite(sURL, sTitle);
  }
  catch (e)
  {
    try
    {
    window.sidebar.addPanel(sTitle, sURL, "");
    }
    catch (e)
    {
    alert("加入收藏失败，请使用Ctrl+D进行添加");
    }
  }  
}
//设为首页
function SetHome(obj,vrl){
    try{
      obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
    }
    catch(e){
      if(window.netscape) {
        try {
            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
        }  
        catch (e)  { 
            alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'");  
        }
        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
        prefs.setCharPref('browser.startup.homepage',vrl);
       }
    }
}

//动态菜单
function showTab(elm,num,total) {
	for(i=1;i<=total;i++) {
		$(elm+"_"+i).className = "" ;
	}
	$(elm+"_"+num).className = "now" ;
}
function showSub(elm,num,total) {
	for (i=1;i<=total;i++) {
		$(elm+"_sub"+i).style.display = "none" ;
	}
	$(elm+"_sub"+num).style.display = "block" ;
}


//初始化页头的一级菜单
function InitChannel(ChannelID){
  if($("menu_"+ChannelID))
  {
  if($("menu_"+ChannelID).className=="undefined" )
    $("menu_"+ChannelID).className = "now";
   else  
    $("menu_"+ChannelID).className = $("menu_"+ChannelID).className + " now";
 }
}

function InitClass(ChannelID,ClassID){
InitChannel(ChannelID);
InitSubMenu(ChannelID);
if($("submenu_"+ClassID) != null)
  $("submenu_"+ClassID).className = "now" ;
}


function InitSubMenu(ChannelID)
{

  var htmlstr = "<ul>";
  var dispsubmenu = 1;
  
  switch (ChannelID){
  case 1:
    {
    dispsubmenu = 1;
    htmlstr = htmlstr + "<li id=\"submenu_1\"><a href=\"\/class.aspx?cid=1\" target=\"_self\">聚焦<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_2\"><a href=\"\/class.aspx?cid=2\" target=\"_self\">流行<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_3\"><a href=\"\/class.aspx?cid=3\" target=\"_self\">热卖<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_4\"><a href=\"\/class.aspx?cid=4\" target=\"_self\">导购<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_5\"><a href=\"\/class.aspx?cid=5\" target=\"_self\">会展<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_6\"><a href=\"\/class.aspx?cid=6\" target=\"_self\">品质<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_7\"><a href=\"\/class.aspx?cid=7\" target=\"_self\">收藏<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_8\"><a href=\"\/class.aspx?cid=8\" target=\"_self\">保养<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_9\"><a href=\"\/class.aspx?cid=9\" target=\"_self\">人物<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_10\" class=\"last\"><a href=\"\/class.aspx?cid=10\" target=\"_self\">家居<\/a><\/li>";  
    $("seclogo").innerHTML = "<a href=\"http:\/\/news.ruyijia.com\/\"><img src=\"\/images\/sst_zx.png\" alt=\"资讯\" \/><\/a>";
    break;
    } 
  case 2:
    {
    dispsubmenu = 1;
    htmlstr = htmlstr + "<li id=\"submenu_11\"><a href=\"\/class.aspx?cid=11\" target=\"_self\">品牌图秀<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_12\"><a href=\"\/class.aspx?cid=12\" target=\"_self\">创意生活<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_13\"><a href=\"\/class.aspx?cid=13\" target=\"_self\">如意图鉴<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_21\"><a href=\"\/class.aspx?cid=21\" target=\"_self\">家居丽人<\/a><\/li>";  
    htmlstr = htmlstr + "<li id=\"submenu_22\" class=\"last\"><a href=\"\/class.aspx?cid=22\" target=\"_self\">家具模特<\/a><\/li>";
    $("seclogo").innerHTML = "<a href=\"http:\/\/pic.ruyijia.com\/\"><img src=\"\/images\/sst_ts.png\" alt=\"图赏\" \/><\/a>";
    break;
    }
 case 3:
    { 
    dispsubmenu = 1;
    htmlstr = htmlstr + "<li id=\"submenu_14\"><a href=\"\/class.aspx?cid=14\" target=\"_self\">国际趋势<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_15\"><a href=\"\/class.aspx?cid=15\" target=\"_self\">国内动态<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_16\"><a href=\"\/class.aspx?cid=16\" target=\"_self\">行业探析<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_17\"><a href=\"\/class.aspx?cid=17\" target=\"_self\">市场行情<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_18\"><a href=\"\/class.aspx?cid=18\" target=\"_self\">经营之道<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_19\"><a href=\"\/class.aspx?cid=19\" target=\"_self\">经销商之家<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_20\" class=\"last\"><a href=\"\/class.aspx?cid=20\" target=\"_self\">设计师之家<\/a><\/li>";
    $("seclogo").innerHTML = "<a href=\"http:\/\/quan.ruyijia.com\/\"><img src=\"\/images\/sst_hyq.png\" alt=\"行业圈\" \/><\/a>";    
    break;
    }  
 case 6:
    { 
    dispsubmenu = 1;
    htmlstr = htmlstr + "<li id=\"submenu_23\"><a href=\"\/Category.aspx\" target=\"_self\">家具目录<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_24\"><a href=\"\/newfur.aspx\" target=\"_self\">新品上市<\/a><\/li>";
//    htmlstr = htmlstr + "<li id=\"submenu_25\"><a href=\"\/class.aspx?cid=16\" target=\"_self\">酷品推荐<\/a><\/li>";
//    htmlstr = htmlstr + "<li id=\"submenu_26\"><a href=\"\/class.aspx?cid=17\" target=\"_self\">产品秀<\/a><\/li>";
//    htmlstr = htmlstr + "<li id=\"submenu_27\"><a href=\"\/class.aspx?cid=18\" target=\"_self\">家具关注榜<\/a><\/li>";
//    htmlstr = htmlstr + "<li id=\"submenu_28\"><a href=\"\/class.aspx?cid=19\" target=\"_self\">家具好评榜<\/a><\/li>";
    htmlstr = htmlstr + "<li id=\"submenu_29\" class=\"last\"><a href=\"http:\/\/news.ruyijia.com\/class.aspx?cid=4\" target=\"_self\">如意导购<\/a><\/li>";
    $("seclogo").innerHTML = "<a href=\"http:\/\/jia.ruyijia.com\/\"><img src=\"\/images\/sst_jjdq.png\" alt=\"家具大全\" \/><\/a>";    
    break;
    }           
 default: 
    dispsubmenu = 0;
}
 
  htmlstr = htmlstr + "<\/ul>";
  if (dispsubmenu==1)
  {
  $("submenu").style.display="";
  $("submenu").innerHTML=htmlstr;
  }
}

 

function GetCookie(cookiename,itemname){
     var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split('; ');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, cookiename.length + 1) == (cookiename + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(cookiename.length + 1));
                    break;
                }
            }
        }
        cookies = cookieValue.split('&');
         for (var i = 0; i < cookies.length; i++) {
                cookie = trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, itemname.length + 1) == (itemname + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(itemname.length + 1));
                    break;
                }
            }
         return unescape(cookieValue);
}

function GetCookieLite(name){
     var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split('; ');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
}

function InitMinLoginbox()
{
    if ($('toploginbox').style.display=='') 
        $('toploginbox').style.display='none';
    else 
        $('toploginbox').style.display=''; 
        
    return false;
}

function InitTopUserState()
{
    var username="";
    var pmcount=0;
    try{
     username= GetCookie("MemberInfo","UserName");
     pmcount=GetCookie("MemberInfo","PMCount");
    }
    catch(e)
    {}
    if (username=="")
    {
        $("nedlgin1").style.display='';
        $("nedlgin2").style.display='';
        $("hdlgin").innerHTML="";
    }
    else
    {
        $('toploginbox').style.display='none';
        $("nedlgin1").style.display='none';
        $("nedlgin2").style.display='none';
        var s="";
        if(pmcount>0)
          s="&nbsp;<img src=\"http://member.ruyijia.com/images/ico_nm.png\" \/><a href=\"http://member.ruyijia.com/?c=pminbox\">您有"+pmcount+"封未读私信<\/a>";
        var s1 = "";
            s1 = " <a href=\"http://member.ruyijia.com/\" target=\"_blank\">用户中心&raquo;</a> "  
        $("hdlgin").innerHTML= username +"，欢迎您！"+s+s1+" &nbsp;<a href=\"http://passport.ruyijia.com/logout.aspx?returl="+encodeURI(document.location) + "\" target=\"_self\">退出登录&raquo;<\/a>";
    }
    
    try{
    InitCommentUserInfo();
    }catch(e)
    {}
}

function LoginCallBack(res)
{
  if(res.value!="")
    alert(res.value);
  else
    InitTopUserState();  
}
function DoLogin()
{
  
        if ($("lguser").value.trim()=="") 
        {
           alert("请填写您的用户名！");
           return;
        } 
        if ($("lgpwd").value.trim()=="") 
        {
           alert("请填写您的密码！");
           return;
        }
        var Rmbme = ($("Rmbme").checked)
      Ruyijia.Ajax.PassportAction.UserLogin($("lguser").value.trim(),$("lgpwd").value.trim(),Rmbme,LoginCallBack);        
}

function showsubusingcat(objchked,catid,divid)
{
 //alert(objchked.parentNode.innerHTML);
 CloseAllsubcatediv();
 WriteSubCatToDiv(divid,catid);
 ShowSubCateDiv(divid);
 ClearSelectedCate();
 objchked.parentNode.className="seled";
}

function CloseAllsubcatediv()
{
$("subcate1").className="subcate hide";
$("subcate2").className="subcate hide";
$("subcate3").className="subcate hide";
$("subcate4").className="subcate hide";
}

function ClearSelectedCate()
{
    
 var items = $("catusing").getElementsByTagName("li");    
    for(i=0;i<items.length;i++)
    {   
         items[i].className='';
    }
    items = null;
}

function WriteSubCatToDiv(divid,catid)
{
$(divid).innerHTML="";
htmlcode = "";
switch(catid)
{

case 1:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=1\">办公成套家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=2\">办公台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=3\">办公椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=4\">沙发茶几</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=5\">办公屏风</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=6\">电脑桌</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=7\">会议桌</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=8\">会客椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=9\">文件柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=10\">职员桌椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=11\">演讲台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=12\">密集架</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=13\">档案柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=14\">接待台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=15\">前台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=1&subcid=16\">其他办公家具</a></p>";
 break;}
case 2:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=17\">客厅成套家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=18\">客厅沙发茶几</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=19\">客厅桌类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=20\">客厅椅类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=21\">客厅柜类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=22\">客厅架类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=23\">客厅屏风</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=24\">视听柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=25\">酒柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=26\">组合柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=27\">鞋柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=28\">地柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=2&subcid=29\">其他客厅家具</a></p>";
 break;}
case 3:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=30\">卧室成套家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=31\">卧室组合家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=32\">卧室床类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=33\">床垫</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=34\">卧室柜类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=35\">卧室架类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=36\">布艺床</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=37\">真皮床</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=38\">软体床</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=39\">电视柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=40\">实木床</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=41\">布艺软床</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=42\">衣柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=3&subcid=43\">其他卧室家具</a></p>";
 break;}
case 4:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=4&subcid=44\">书房成套家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=4&subcid=45\">写字台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=4&subcid=46\">书房书柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=4&subcid=47\">博古架</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=4&subcid=48\">书房椅子</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=4&subcid=49\">其他书房家具</a></p>";
 break;}
case 5:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=5&subcid=50\">儿童用成套家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=5&subcid=51\">儿童用柜类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=5&subcid=52\">儿童用桌椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=5&subcid=53\">童床</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=5&subcid=54\">婴儿床</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=5&subcid=55\">儿童用摇篮</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=5&subcid=56\">其他儿童家具</a></p>";
 break;}
case 6:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=57\">整体浴室</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=58\">浴室柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=59\">洗面台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=60\">洗手盆</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=61\">浴缸</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=62\">坐便器</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=63\">浴室镜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=64\">浴室挂件</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=6&subcid=65\">其他卫浴家具</a></p>";
 break;}
case 7:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=7&subcid=66\">整体厨房</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=7&subcid=67\">厨房橱柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=7&subcid=68\">厨房壁橱</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=7&subcid=69\">厨房设备</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=7&subcid=70\">菜板</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=7&subcid=71\">其他厨房家具</a></p>";
 break;}
case 8:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=8&subcid=72\">地板</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=8&subcid=73\">铁艺</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=8&subcid=74\">工艺品</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=8&subcid=75\">窗帘布艺</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=8&subcid=76\">电器</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=8&subcid=77\">地毯挂毯</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=8&subcid=78\">灯饰</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=8&subcid=79\">其他家居饰品</a></p>";
 break;}
case 9:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=9&subcid=80\">餐厅成套家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=9&subcid=81\">餐厅餐桌</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=9&subcid=82\">餐厅餐椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=9&subcid=83\">餐厅橱柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=9&subcid=84\">餐厅酒柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=9&subcid=85\">餐厅吧台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=9&subcid=86\">餐厅吧椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=9&subcid=87\">其他餐厅家具</a></p>";
 break;}
case 10:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=10&subcid=88\">木门</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=10&subcid=89\">衣帽架</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=10&subcid=90\">鞋架</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=10&subcid=91\">鞋柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=10&subcid=92\">穿衣镜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=10&subcid=93\">屏风</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=10&subcid=94\">其他门厅家具</a></p>";
 break;}
case 11:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=95\">庭院用家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=96\">户外休闲椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=97\">户外折叠桌</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=98\">户外折叠椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=99\">户外沙滩椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=100\">户外帐篷</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=101\">户外竹桌椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=102\">太阳伞</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=11&subcid=103\">其他户外家具</a></p>";
 break;}
case 12:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=12&subcid=104\">课桌椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=12&subcid=105\">学生用椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=12&subcid=106\">学校用讲台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=12&subcid=107\">学校用柜架</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=12&subcid=108\">学校用实验台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=12&subcid=109\">公寓床</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=12&subcid=110\">其他学校家具</a></p>";
 break;}
case 13:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=111\">实验台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=112\">实验柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=113\">通风柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=114\">工作台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=115\">天平台</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=116\">药品柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=117\">通风设备</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=118\">安全柜</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=119\">试验箱</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=120\">试验机</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=121\">实验箱</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=122\">实验室配套设备</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=13&subcid=123\">其他实验室家具</a></p>";
 break;}
case 14:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=14&subcid=124\">套房家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=14&subcid=125\">酒店柜类</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=14&subcid=126\">酒店沙发</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=14&subcid=127\">酒店桌椅</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=14&subcid=128\">宾馆酒店家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=14&subcid=129\">其他酒店家具</a></p>";
 break;}
case 15:
{
htmlcode+="<p><a href=\"/cateshow.aspx?cid=15&subcid=130\">剧院礼堂家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=15&subcid=131\">车站机场家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=15&subcid=132\">商场用家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=15&subcid=133\">医院用家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=15&subcid=134\">图书馆家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=15&subcid=135\">美容美发家具</a></p>";
htmlcode+="<p><a href=\"/cateshow.aspx?cid=15&subcid=136\">其他公共家具</a></p>";
 break;}

}
$(divid).innerHTML=htmlcode;
htmlcode=null;
}

function ShowSubCateDiv(divid)
{
   $(divid).className="subcate"; 
}

function catchk(chkobj,id)
{
$("catusing").className="hide"; 
$("catmaterial").className="hide";
$("catstyle").className="hide";
switch (id)
{
	case 1:
		$("catusing").className=""; 
		break;
	case 2:
		$("catmaterial").className=""; 
		break;
	case 3:
		$("catstyle").className=""; 
		break;				
}
    var items = chkobj.parentNode.parentNode.getElementsByTagName("li");  
    for(i=0;i<items.length;i++)
    {   
        if(items[i].className=='seled')
            items[i].className='';
    }
    items = null;
    chkobj.parentNode.className='seled';
}
