﻿document.writeln('<script type="text/javascript" src="http://www.zjypw.com/js/TopSearchNew.js"></script>');

document.writeln('<div class="zjw_ss">');
document.writeln('            <div class="zjw_ssl">');
document.writeln('                <a href="http://www.zjypw.com" target="_blank" title="宗教用品网">');
document.writeln('                    <img src="http://www.zjypw.com/css/zjypw/images/zj_logo.gif" alt="宗教用品网" /></a></div>');
document.writeln('            <div class="zjw_ssr">');
document.writeln('                <div id="zjw_ssru">');
document.writeln('                    <a href="javascript:void(0);" class="zzss85" onclick="zjw_ss_js(0,\'zjw_ssru\',\'zjw_ssq\',6)"><h2>产品 </h2></a>');
document.writeln('                    <ul></ul>');
document.writeln('                    <a href="javascript:void(0);" class="zzss88" onclick="zjw_ss_js(1,\'zjw_ssru\',\'zjw_ssq\',6)"><h2>企业</h2></a>');
document.writeln('                    <ul></ul>');
document.writeln('                    <a href="javascript:void(0);" class="zzss88" onclick="zjw_ss_js(2,\'zjw_ssru\',\'zjw_ssq\',6)"><h2>求购</h2></a>');
document.writeln('                    <ul></ul>');;
document.writeln('                    <a href="javascript:void(0);" class="zzss88" onclick="zjw_ss_js(3,\'zjw_ssru\',\'zjw_ssq\',6)"><h2>资讯</h2></a>');
document.writeln('                    <ul></ul>');
document.writeln('                    <a href="javascript:void(0);" class="zzss88" onclick="zjw_ss_js(4,\'zjw_ssru\',\'zjw_ssq\',6)"><h2>招商</h2></a>');
document.writeln('                    <ul></ul>');
document.writeln('                    <a href="javascript:void(0);" class="zzss88" onclick="zjw_ss_js(5,\'zjw_ssru\',\'zjw_ssq\',6)"><h2>经销</h2></a>');
document.writeln('                    <div class="zjw_rxh">');
document.writeln('                    </div>');
document.writeln('                </div>');
document.writeln('                <div class="zjw_ssrd">');
document.writeln('                    <div id="zjw_ssq0" class="zjw_ssk" style="display: block;" vas="http://www.zjypw.com/search/product.aspx">');
document.writeln('                        <input type="text" name="qk_ss_cp" id="qk_ss_cp" value="输入产品名称" onblur="if(this.value==\'\')this.value=\'输入产品名称\';inputOnblur();"');
document.writeln('                            onfocus="if(this.value==\'输入产品名称\')this.value=\'\';" onclick="javascript:cleartxts(this);"');
document.writeln('                            onkeyup=\'keyup(this,event)\' />');
document.writeln('                    </div>');
document.writeln('                    <div id="zjw_ssq1" class="zjw_ssk" style="display: none;" vas="http://www.zjypw.com/search/company.aspx">');
document.writeln('                        <input type="text" name="qk_ss_qy" id="qk_ss_qy" value="输入公司名称" onblur="if(this.value==\'\')this.value=\'输入公司名称\';inputOnblur();"');
document.writeln('                            onfocus="if(this.value==\'输入公司名称\')this.value=\'\';" onclick="javascript:cleartxts(this);"');
document.writeln('                            onkeyup=\'keyup(this,event)\' />');
document.writeln('                    </div>');
document.writeln('                    <div id="zjw_ssq2" class="zjw_ssk" style="display: none;" vas="http://qiugou.zjypw.com/search/typeid2">');
document.writeln('                        <input type="text" name="qk_ss_qg" id="qk_ss_qg" value="输入任意关键词" onblur="if(this.value==\'\')this.value=\'输入任意关键词\';inputOnblur();"');
document.writeln('                            onfocus="if(this.value==\'输入任意关键词\')this.value=\'\';" onclick="javascript:cleartxts(this);"');
document.writeln('                            onkeyup=\'keyup(this,event)\' />');
document.writeln('                    </div>');
document.writeln('                    <div id="zjw_ssq3" class="zjw_ssk" style="display: none;" vas="http://www.zjypw.com/news/default.aspx?sid=2">');
document.writeln('                        <input type="text" name="qk_ss_zx" id="qk_ss_zx" value="输入任意关键词" onblur="if(this.value==\'\')this.value=\'输入任意关键词\';inputOnblur();"');
document.writeln('                            onfocus="if(this.value==\'输入任意关键词\')this.value=\'\';" onclick="javascript:cleartxts(this);"');
document.writeln('                            onkeyup=\'keyup(this,event)\' />');
document.writeln('                    </div>');
document.writeln('                    <div id="zjw_ssq4" class="zjw_ssk" style="display: none;" vas="http://www.zjypw.com/search/project.aspx">');
document.writeln('                        <input type="text" name="qk_ss_zs" id="qk_ss_zs" value="输入任意关键词" onblur="if(this.value==\'\')this.value=\'输入任意关键词\';inputOnblur();"');
document.writeln('                            onfocus="if(this.value==\'输入任意关键词\')this.value=\'\';" onclick="javascript:cleartxts(this);"');
document.writeln('                            onkeyup=\'keyup(this,event)\' />');
document.writeln('                    </div>');
document.writeln('                    <div id="zjw_ssq5" class="zjw_ssk" style="display: none;" vas="http://www.zjypw.com/search/sell.aspx">');
document.writeln('                        <input type="text" name="qk_ss_jx" id="qk_ss_jx" value="输入任意关键词" onblur="if(this.value==\'\')this.value=\'输入任意关键词\';inputOnblur();"');
document.writeln('                            onfocus="if(this.value==\'输入任意关键词\')this.value=\'\';" onclick="javascript:cleartxts(this);"');
document.writeln('                            onkeyup=\'keyup(this,event)\' />');
document.writeln('                    </div>');
document.writeln('                    <input type="button" name="" value="" class="zjw_ss_btn" onclick="getsearch();" />');
document.writeln('                    <div id="companydiv" class="suggest" style="display: none;">');
document.writeln('                    </div>');
document.writeln('                    <div id="productdiv" class="suggest" style="display: none;">');
document.writeln('                    </div>');
document.writeln('                    <input type="hidden" id="_hidNav" name="_hidNav" value="http://www.zjypw.com/search/product.aspx"');
document.writeln('                        val="qk_ss_cp" />');
document.writeln('                    <style style="text/css">');
document.writeln('                        .suggest');
document.writeln('                        {');
document.writeln('                           position: absolute;');
document.writeln('                            z-index: 9999;');
document.writeln('                            background: #fff;');
document.writeln('                            margin-left: 7px;');
document.writeln('                            top: 121px;');
document.writeln('                            width: 425px;');
document.writeln('                            font-size: 12px;');
document.writeln('                            color: #000000;');
document.writeln('                            text-align: left;');
document.writeln('                            border: 1px solid #000;');
document.writeln('                            height: auto !important;');
document.writeln('                            height: 20px;');
document.writeln('                            min-height: 20px;');
document.writeln('                            clear: both;');
document.writeln('                        }');
document.writeln('                        .suggestOver');
document.writeln('                        {');
document.writeln('                            background: #3366CC;');
document.writeln('                            padding: 2px 0 2px 0;');
document.writeln('                            color: white;');
document.writeln('                        }');
document.writeln('                    </style>');
document.writeln('                    <script src=\'http://www.zjypw.com/zjypw/ajaxsuggest/searchnew.js\'></script>');
document.writeln('                    <script type="text/javascript">');
document.writeln('    function keyup(a,evt)');
document.writeln('    {');
document.writeln('        var nav = document.getElementById("_hidNav").value;');
document.writeln('        var skey = document.getElementById(jQuery("#_hidNav").attr("val")).value;');
document.writeln('                var value = nav;');
document.writeln('                if(value == "http://www.zjypw.com/search/company.aspx")');
document.writeln('                {');
document.writeln('                    suggest(evt,a, "company");');
document.writeln('                }');
document.writeln('                else if(value == "http://www.zjypw.com/search/product.aspx" || value == "http://gongying.zjypw.com/search/typeid1" || value == "http://gongying.zjypw.com/search/typeid2")');
document.writeln('                {');
document.writeln('                   suggest(evt,a, "product");');
document.writeln('                }');
document.writeln('    }');
document.writeln('         ');
document.writeln('                    </script>');
document.writeln('');
document.writeln('               </div>');
document.writeln('            </div>');
document.writeln('        </div>');





var $topsearch = {
    init:function(n,prarm0,prarm,intlen){
        var BaoQian=document.getElementById(prarm0);
        var BiaoQianL=BaoQian.getElementsByTagName('a');
        for(i=0;i<BiaoQianL.length;i++)
            BiaoQianL[i].className="zzss88";
        BiaoQianL[n].className="zzss85";
	    for(var j=0;j<intlen;j++)
	    {
	        document.getElementById(prarm+j).style.display='none';	
	    }
	    document.getElementById(prarm+n).style.display='block';
	    document.getElementById("_hidNav").value = jQuery("#"+prarm+n).attr("vas");
	    jQuery("#_hidNav").attr("val",jQuery("#"+prarm+n+" input").attr("name"));
	    jQuery('#companydiv').hide();jQuery('#productdiv').hide();
    }
};

   
//搜索分类划动导航
function zjw_ss_js(n,prarm0,prarm,intlen)
  {
var BaoQian=document.getElementById(prarm0);
var BiaoQianL=BaoQian.getElementsByTagName('a');
    for(i=0;i<BiaoQianL.length;i++)
      BiaoQianL[i].className="zzss88";
    BiaoQianL[n].className="zzss85";
    jQuery("h3[id^='nva_']").each(function(){
        jQuery(this).removeClass("zjnv_xd1");
    });
    jQuery("#nva_"+(n+1)).addClass("zjnv_xd1");
	for(var j=0;j<intlen;j++)
	{
	   document.getElementById(prarm+j).style.display='none';	
	}
	document.getElementById(prarm+n).style.display='block';
	document.getElementById("_hidNav").value = jQuery("#"+prarm+n).attr("vas");
	jQuery("#_hidNav").attr("val",jQuery("#"+prarm+n+" input").attr("name"));
	jQuery('#companydiv').hide();jQuery('#productdiv').hide();
  }

