// JavaScript Document
var catlst = new Array(
					"轴流通风机|0|products_a.html",					
						"FZ40/35-11/12(S) 型轴流通风机|1|pro_fz40.html",
						"SFF131-11 型轴流通风机|1|pro_sff131.html",
						"PWF40/45-11/12 型喷雾轴流通风机|1|pro_pwf40.html",
						"T35-11(S)/BT35-11(S) 型轴流通风机|1|#",
						"HBF 型化纤防爆轴流通风机|1|#",
						"RDF 型热定型轴流通风机|1|pro_rdf.html",
						"CG4601 摇摆轴流风机|1|pro_cg4601.html",
						"Sonic Aire 摇摆式轴流通风机|1|pro_sonic.html",
						"SFD 斜流风机|1|pro_sfd.html",
					"离心通风机|0|products_b.html",
						"FC6-48-11/12、SFF233-11/12 型排尘离心通风机|1|pro_fc6.html",
						"SFF232-11/21 型离心通风机|1|pro_sff232.html",
						"4-72(S)、4-79(S) 型离心通风机|1|#",
						"9-19、9-26 型离心通风机|1|pro_9-19.html",
						"SFA011 型输棉风机|1|pro_sfa011.html",
						"9-12(S) 型化纤连续干燥装置氮气输送离心风机|1|pro_9-12.html",
						"JF 型节能离心通风机|1|pro_jf.html",
					"纺织主机配套风机|0|products_c.html",
						"LDF 型自动络筒机配套风机|1|pro_ldf.html",
						"QFF 型气流纺纱机配套离心风机|1|pro_qff.html",
						"FT240F/FT245F 型输棉风机|1|pro_ft240f.html",
						"TV425、TV425C 离心风机|1|pro_tv425.html",
					"节能风机|0|products_d.html",
						"KHF 型高效节能离心通风机|1|pro_khf.html",
						"XMF 型细纱机节能专用风机|1|pro_xmf.html",
						"SZ 省能型轴流通风机|1|pro_sz.html",
					"节能空调系统|0|products_e.html",
						"SFT 悬挂式加湿降温通风机组|1|pro_sft.html",
						"ASFU 型节能空调系统|1|pro_asfu.html",
					"除尘机组|0|products_f.html",
						"SZGJ(Ⅱ) 型插板式除尘机组|1|pro_szgj.html",
						"BZX—RⅢ(R3Y) 型真空吸尘系统|1|pro_bzx.html",
						"SDZ20 袋式过滤器|1|pro_szd20.html",
						"纤维分离器|1|#",
						"GZ 型空气过滤器|1|pro_gz.html",
					"水处理设备|0|products_g.html",
						"SWS 型中水回用处理设备|1|pro_sws.html",
						"XWH-3 型洗车污水回用装置|1|pro_xwh.html",
						"BZG 不锈钢自动隔栅|1|pro_bzg.html",
						"CG 型低噪声回转式鼓风机|1|pro_cg.html",
					"紧密纺纱装置改造|0|products_h.html",
						"JMF 紧密纺配套集棉风机|1|pro_jmf.html",
						"JMF 型紧密纺纱装置改造|1|pro_jmf2.html",
					"造纸厂空调设备|0|products_i.html",
						"GBK 壁式空调机组|1|pro_gbk.html",
						"WDP-C16 屋顶排风机组|1|pro_wdp.html",
					"WZ 型高效节能微孔增氧装置|0|pro_wz.html",
					"SBF 型工业排风扇|0|pro_sbf.html",
					"旋压皮带轮|0|pro_c_spinning.html",
					"WF 物料输送风机|0|pro_wf.html",
					"CJK 型节能工艺空调机组|0|pro_cjk.html",
					"GZ 型岗位送风机组|0|pro_gz2.html",
					"JM 检查门|0|pro_jm.html",
					"LF 气力输送风机|0|pro_lf.html"
					 )

function writeCatlog(){
	var tmphtml = '<ol>';
	var tmplst;
	for(var i = 0; i < catlst.length; i ++) {
		tmplst = catlst[i].split("|");
			if (tmplst[1] == 0) {
				tmphtml += '<li><a href="';
				tmphtml += tmplst[2];
				tmphtml += '" title="';
				tmphtml += tmplst[0];
				tmphtml += '">';
				tmphtml += tmplst[0];
				tmphtml += '</a></li>';
			}
		}
	tmphtml += '</ol>';
	//alert(tmphtml);
	document.write(tmphtml);
	}

function writePopMenu(){
	// <!--HTML for the Drop Down Menus associated with Top Menu Bar-->
	// <!--They should be inserted OUTSIDE any element other than the BODY tag itself-->
	// <!--A good location would be the end of the page (right above "</BODY>")-->
	
	// <!--Top Drop Down Menu 1 HTML-->
	var tmphtml = '<ul id="ddsubmenu1" class="ddsubmenustyle">';
	var tmplst;
	var istop = true;	//is top menu
	for(var i = 0; i < catlst.length; i ++) {
		tmplst = catlst[i].split("|");
		if(tmplst[1] == 0) {	//menu is level 1 
			if(istop == false) { tmphtml += '</ul></li>' }
			istop = true;
		} else {	//menu is level 2
			if(istop == true) { tmphtml += '<ul>' }
			istop = false;
		}
		tmphtml += '<li><a href="';
		tmphtml += tmplst[2];
		tmphtml += '" title="';
		tmphtml += tmplst[0];
		tmphtml += '">';
		tmphtml += tmplst[0];
		tmphtml += '</a>';
		if(tmplst[1] == 1) { tmphtml += '</li>' }
	}
	tmphtml += '</ul>';
	//alert(tmphtml)
	document.write(tmphtml);
}

function writeList(){
	// <!--HTML for the Drop Down Menus associated with Top Menu Bar-->
	// <!--They should be inserted OUTSIDE any element other than the BODY tag itself-->
	// <!--A good location would be the end of the page (right above "</BODY>")-->
	
	// <!--Top Drop Down Menu 1 HTML-->
	var tmphtml = '<ul class="proList">';
	var tmplst;
	var istop = true;	//is top menu
	for(var i = 0; i < catlst.length; i ++) {
		tmplst = catlst[i].split("|");
		if(tmplst[1] == 0) {	//menu is level 1 
			if(istop == false) { tmphtml += '</ul></li>' }
			istop = true;
		} else {	//menu is level 2
			if(istop == true) { tmphtml += '<ul>' }
			istop = false;
		}
		tmphtml += '<li><a href="';
		tmphtml += tmplst[2];
		tmphtml += '" title="';
		tmphtml += tmplst[0];
		tmphtml += '">';
		tmphtml += tmplst[0];
		tmphtml += '</a>';
		if(tmplst[1] == 1) { tmphtml += '</li>' }
	}
	tmphtml += '</ul>';
	//alert(tmphtml)
	document.write(tmphtml);
}



function toProducts(em){
	if(!em.value==""||!em.value==null){
		self.location=em.value;
	}
}


function writeAllProducts(){
	var tmphtml = '<select name="select" style="width: 150px;" onChange="toProducts(this);">';
	tmphtml += '<option selected style="color: #999999;">……… 请选择 ………</option>';
	var tmplst;
	for(var i = 0; i < catlst.length; i ++) {
		tmplst = catlst[i].split("|");
		tmphtml += '<option value="';
		tmphtml += tmplst[2];
		tmphtml += '" title="';
		tmphtml += tmplst[0];
		tmphtml += '">';
		if(tmplst[1]==0) { tmphtml += "● "} else { tmphtml += "　" }
		tmphtml += tmplst[0];
		tmphtml += '</option>';
		}
	tmphtml += '</select>';
	//alert(tmphtml);
	document.write(tmphtml);
}
