// JavaScript Document
var catlst = new Array(
					"AXIAL FAN|0|products_a.html",					
						"FZ40/35-11/12(S) AXIAL FAN|1|pro_fz40.html",
						"SFF131-11 AXIAL FAN|1|pro_sff131.html",
						"PWF40/45-11/12 MIST SPRAYING AXIAL FAN|1|pro_pwf40.html",
						"T35-11 (S) /BT35-11 (S) AXIAL FAN|1|#",
						"HBF EXPLOSIVE-PROOF AXIAL FAN FOR CHEMICAL FIBER|1|#",
						"RDF AXIAL FAN FOR THERMAL SETTING|1|pro_rdf.html",
						"SONICAIRE SWING FAN|1|pro_sonic.html",
						"CG4601 AXIAL FAN|1|pro_cg4601.html",
						"SFD TUBLAR FAN|1|pro_sfd.html",
					"CENTRIFUGAL FAN|0|products_b.html",
						"FC6-48-11/12 , SFF233-11/12 CENTRIFUGAL FAN FOR EXTRACTION DUST|1|pro_fc6.html",
						"SFF232-11/21 CENTRIFUGAL FAN|1|pro_sff232.html",
						"4-72 (S) , 4-79 (S) CENTRIFUGAL FAN|1|#",
						"9-19, 9-26 CENTRIFUGAL FAN|1|pro_9-19.html",
						"SFA011 FAN FOR CONVEYING COTTON|1|pro_sfa011.html",
						"9-12 (S) NITROGEN CONVEY CENTRIFUGAL FAN FOR CHEMICAL FIBER CONTINUOUS DRY |1|pro_9-12.html",
						"JF EFFICIENCY CENTRIFUGAL FAN|1|pro_jf.html",
					"FAN FOR TEXTILE MACHINE|0|products_c.html",
						"LDF SUPPLEMENTARY FAN FOR AUTOCORO|1|pro005.html",
						"QFF CENTRIFUGAL FAN FOR OE SPINNING|1|pro_qff.html",
						"FT240F/FT245F FAN FOR CONVEYING COTTON|1|pro_ft240f.html",
						"TV425, TV425C CENTRIFUGAL FAN|1|pro_tv425.html",
					"ENERGY-SAVING FAN|0|products_d.html",
						"KHF HIGH-EFFICIENCY CENTRIFUGAL FAN|1|pro_khf.html",
						"XMF suction fan for ring frame |1|pro_xmf.html",
						"SZ ENERGY-SAVING AXIAL FAN|1|pro_sz.html",
					"ENERGY-SAVING AIR-CONDITIONING SYSTEM|0|products_e.html",
						"SFT HANGING, HUMIDIFYING, VENTILATING, UNIT|1|pro_sft.html",
						"ASFU ENERGY-SAVING AIR-CONDITIONING SYSTEM|1|pro_asfu.html",
					"FILTER|0|products_f.html",
						"SZGJ(II) FLASH BOARD FILTER|1|pro_szgj.html",
						"BZX-RIII(R3Y) VACUUM CLEANER SYSTEM|1|pro_bzx.html",
						"SZD20 BAG TYPE FILTER|1|pro_szd20.html",
						"FIBER SEPARATOR|1|#",
						"GZ AIR FILTER|1|pro_gz.html",
					"WATER TREATMENT EQUIPMENT|0|products_g.html",
						"THE SWS RECLAIMED WATER TREATMENT EQUIPMENT|1|pro_sws.html",
						"XWH-3 CAR WASH WATER RECYCLE UNIT|1|pro_xwh.html",
						"BZG TYPE SS AUTOMATIC GRILL|1|pro_bzg.html",
						"CG LOW-NOISE ROTATIVE BLOWER|1|pro_cg.html",
					"COMPACT YARN EQUIPMENT\'S REFORM |0|products_h.html",
						"JMF COLLECTING FAN FOR COMPACT YARN|1|pro_jmf.html",
						"JMF COMPACT YARN EQUIPMENT'S REFORM|1|pro_jmf2.html",
					"PAPER MILL AIR-CONDITION|0|products_i.html",
						"GBK WALL TYPE AIR-CONDITIONING UNIT|1|pro_gbk.html",
						"WDP-C16 roof exhaust unit|1|pro_wdp.html",
					"WZ TYPE HIGH EFFICIENCY ENERGY-SAVING MICROPORE OXYGEN-ADDING EQUIPS|0|pro_wz.html",
					"SBF EXHAUST FAN FOR INDUSTRY|0|pro_sbf.html",
					"SPINNING BELT PULLEY WHEEL|0|pro_c_spinning.html",
					"WF MATERIAL TRANSFER FAN|0|pro_wf.html",
					"CJK ENERGY-SAVING AIR-CONDITIONG|0|pro_cjk.html",
					"GZ SPOT BLOWING UNIT|0|pro_gz2.html",
					"JM ACCESS DOOR|0|pro_jm.html",
					"LF PNEUMATIC CONVEYOR FAN|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].toUpperCase();
		tmphtml += '">';
		tmphtml += tmplst[0].toUpperCase();
		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].toUpperCase();
		tmphtml += '">';
		tmphtml += tmplst[0].toUpperCase();
		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;">...... SELECT ......</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].toUpperCase();
		tmphtml += '">';
		if(tmplst[1]==0) { tmphtml += "+ "} else { tmphtml += "　" }
		tmphtml += tmplst[0].toUpperCase();
		tmphtml += '</option>';
		}
	tmphtml += '</select>';
	//alert(tmphtml);
	document.write(tmphtml);
}
