//多标签切换
function more_tab(n,m,p){
	for(var i=1;i<=p;i++){
		var curC=document.getElementById("moretab"+m+"_c"+i);
		var curB=document.getElementById("moretab"+m+"_t"+i);
		if(n==i){
			curC.style.display="block";
			curB.className="active"
		}else{
			curC.style.display="none";
			curB.className="normal"
		}
	}
} 

function dinggoulist(str)
{ // loader_show('载入购物信息...');
igets("m.htm?action=dinggoulist", function(strers){
    if (!(strers == "$error$"))
  {
    try{get_id("@_dinggoulist").innerHTML=strers;}catch(e){}
	//loader_remove();
  }

  });
}
function onint()
{
	nhrefstate();
    dinggoulist();
	//openannonce();
}
function onintshop()
{
	nhrefstate();
	shopdinggoulist();
}

function openannonce()
{
if (readCookie("poond")=='')
{
  writeCookie ("poond","yes");
  DvWnd.open('公告:期货操作注意事项','annonce.htm',600,400,1,{bgc:'black',opa:0.5});
}
}

function nhrefstate()
{
  var nhref = request["hspan"];
  if(!nhref == "")
  {
    var nhrefobj = get_id(nhref);
    if (nhrefobj)
    {
      nhrefobj.className = "cur_nav";
    }
  }
  else if (location.href.indexOf("/forum")>0||location.href.indexOf("/thread")>0)
  {get_id("nav_annonce").className = "cur_nav";
  }
  else if (location.href.indexOf("/brand")>0)
  {get_id("nav_brands").className = "cur_nav";
  }
  else{get_id("nav_index").className = "cur_nav";}
}

function HighLight(nWord)    
     {    
        if(nWord!='')
         {    
            var keyword = document.body.createTextRange();    
            while(keyword.findText(nWord))    
             {    
                 keyword.pasteHTML("<font style='color:red;background:#FFFF00'>" + keyword.text + "</font>");    
                 keyword.moveStart('character',1);    
             }    
         }    
     }    
function highword(nWord)    
     {    
        var array = nWord.split(",");    
        for(var i=0;i<array.length;i++)    
         {    
             HighLight(array[i]);    
         }    
 }    
function serach_referrer()
{try{var serach_referrer=escape(document.referrer);document.write('<script language="javascript" src="http://shop.lyc.cn/js/search.htm?referrer='+serach_referrer+'"><'+'/script>');}catch(e){}}