function open_this_items(sub_focus,item_focus) {
    var items_array = new Array();
	var items_ul = "";

	switch (sub_focus)
    {
    //define detail sub-product list of some product
    case "双折射晶体":
		items_array = new Array("Overview", "biref_crystals.htm", "YVO4", "YVO4.htm", "LiNbO3", "LiNbO3.htm", "a -BBO", "a-BBO.htm", "Calcite", "Calcite.htm", "MgF2", "MgF2.htm", "Quartz", "Quartz.htm");
	    break;
    case "激光晶体":
		items_array = new Array("Overview", "laser_crystal.htm", "Ti:Sapphire", "Ti_Sapphire.htm", "Nd:YAG", "Nd_YAG.htm", "Nd:YVO 4", "Nd_YVO4.htm");
	    break;
    case "非线性晶体":
		items_array = new Array("Overview", "NLO_crystal.htm", "BBO", "BBO.htm", "KTP", "KTP.htm", "LBO", "LBO.htm", "LiNbO 3", "LiNbO3.htm");
	    break;
    case "光学晶体":
		items_array = new Array("Overview", "optical_crystal.htm", "Sapphire Crystal", "sapphire_crystal.htm", "Undoped YAG Crystal", "undoped_YAG.htm", "CaF2", "CaF2.htm");
	    break;
	case "光学玻璃":
		items_array = new Array("Optical Glass", "optical_glass.htm", "Fused Silica", "Fused_Silica.htm", "JGS1", "JGS1.htm", "JGS2", "JGS2.htm", "JGS3", "JGS3.htm");
	    break;
    case "波片":
		items_array = new Array("Overview", "waveplate.htm", "多级波片", "multi_order.htm", "低级波片", "low_order.htm", "零级波片", "zero_order.htm", "真零级波片", "true_zero_order.htm", "消色差波片", "achromatic.htm", "菲涅尔棱形延迟片", "fresnal_rhomb_rtdr.htm", "偏振旋光器", "polar_rotators.htm", "双折射滤光片", "biref_filter.htm", "波片支架", "Holders.htm");
	    break;
    case "起偏器":
		items_array = new Array("Overview", "polarizer.htm", "格兰泰勒棱镜", "glan_taylor.htm", "格兰激光棱镜", "glan_laser.htm", "格兰汤姆森棱镜", "glan_thompson.htm","格兰汤姆森偏振分光棱镜", "Glan_Thompson_Polarizer_Beamsplitter_Cube.htm", "渥拉斯通棱镜", "wollaston.htm", "洛匈棱镜", "rochon.htm","偏振薄片","Thin film Polarizer.htm","Polymer Polarizing Film-Glossy","Polarizing_Film-Glossy.htm","Polymer Polarizing Film-Non-glossy","Polarizing_Film-Non-glossy.htm","Lyot Depolarizer","Lyot_Depolarizer.htm");
	    break;
    case "透镜":
		items_array = new Array("Overview", "lens.htm", "Plano Convex Lens", "plano_convex.htm", "Plano Concave Lens", "plano_concave.htm", "Double Convex Lens", "double_convex.htm", "Double Concave Lens", "double_concave.htm", "Achromatic Lens", "achromatic_lens.htm", "Cylindrical Lens", "cylindrical_lens.htm");
	    break;
    case "棱镜":
		items_array = new Array("Overview", "prism.htm", "Penta Prism", "penta_prism.htm", "Beamsplitter Penta Prism", "beamspltr_penta.htm", "Right Angle Prism", "right_angle_prism.htm", "Anamorphic Prism", "anamorphic_prism.htm", "Corner Cube Retroreflectors", "corner_cube_retro.htm", "Dove Prism", "dove_prism.htm");
	    break;
	case "电光开关":
		items_array = new Array("E-O Q Switch LiNbo<sub>3</sub>", "EO_switch linbo3.htm","E-O Q Switch KD*P", "EO_switch kdp.htm","E-O Q Switch BBO", "EO_switch BBO.htm","Driver for E-O Q Switch EOD-50", "Driver for E-O.htm","Driver for E-O Q Switch EOD-50K", "Driver for Pockels cell EOD-50K.htm");
	    break;
    case "绿色激光器":
		items_array = new Array("GLMS-01,05,10", "GLMS-01,05,10.htm", "GLPM-08", "GLPM-08.htm");
	    break;
	case "偏振分光棱镜":
		items_array = new Array("标准偏振分光棱镜","PBS.htm","高功率偏振分光棱镜","High Power PBS.htm");
	    break;
	default:
        items_array = new Array();
    }
  
    if (items_array.length != 0 && items_array.length > 1) {
		items_ul += "<div class=\"leftlist\"><ul class=\"leftlistul\">";
		for (k=0; k<items_array.length/2; k++)
		{
			if (item_focus == items_array[2*k]) {
				items_ul += "<li class=\"itemfocus\"><a href=\"" + items_array[2*k+1] + "\">" + items_array[2*k] + "</a></li>";
			} else {
				items_ul += "<li><a href=\"" + items_array[2*k+1] + "\">" + items_array[2*k] + "</a></li>";
			}
		}
        items_ul += "</ul></div>";
    }

    //document.write("sgi");
	return items_ul;
}

function do_prods_leftlist(toptitle,subtitle,item_sel) {
	
	var prods_array = new Array();
	var toptitle_array = new Array("Material", "Components","干涉仪");

	prods_array[0] = new Array("Material Products", "/products/material/", "双折射晶体", "material/biref_crystals/biref_crystals.htm", "激光晶体", "material/laser_crystal/laser_crystal.htm", "非线性晶体", "material/NLO_crystal/NLO_crystal.htm", "被动调Q晶体", "material/passive_crystal/passive_crystal.htm", "电光晶体", "material/electro_optics/electro_optics.htm", "法拉第晶体", "material/farady_crystal/farady_crystal.htm", "光学晶体", "material/optical_crystal/optical_crystal.htm", "光学玻璃", "material/optical_glass/optical_glass.htm", "彩色玻璃", "material/color_glass/color_glass.htm");
    prods_array[1] = new Array("Components Products", "/products/components/", "波片", "components/waveplate/waveplate.htm", "起偏器","components/polarizer/polarizer.htm","偏振分光棱镜","components/PBS/PBS.htm","透镜", "components/lens/lens.htm", "棱镜", "components/prism/prism.htm", "窗片", "components/windows/windows.htm", "电光开关", "components/E-O/Pockels_cell.htm", "声光开关", "components/A-O/AO_switch.htm", "绿色激光器", "components/GreenLaserModule/GLMS-01,05,10.htm");
	 prods_array[2] = new Array("干涉仪", "/products/interferometer/", "AK-40镭射干涉仪", "interferometer/AK-40.htm", "AK-100镭射干涉仪", "interferometer/AK-100.htm");

	var start_pos = 0;
	var end_pos = prods_array.length;
	if (toptitle != '')
	{
		for (i=0; i<toptitle_array.length; i++)
		{
			if (toptitle_array[i] == toptitle)
			{
				start_pos = i;
				end_pos = i + 1; 
				break;
			}
		}
	}

    var ProdsListHTML = "";
	for (i=start_pos; i<end_pos; i++)
	{
		if (prods_array[i].length < 3) {
		   if (prods_array[i][0] == pagetitle) 
		   {
			   ProdsListHTML += "<h3><strong><a href=\"" + prods_array[i][1] + "\" class=\"topperprod\">" + prods_array[i][0] + "</strong></h3>";
		   } else {
			   ProdsListHTML += "<h3><strong><a href=\"" + prods_array[i][1] + "\">" + prods_array[i][0] + "</strong></h3>";
		   }		    
		} else {
		   ProdsListHTML += "<h3><strong>" + prods_array[i][0] + "</strong></h3><div class=\"leftlist\"><ul>";

		   var sub_items_list = "";
		   for (j=1; j<prods_array[i].length/2; j++)
		   {
			   if (prods_array[i][2*j] == subtitle)
			   {
				  sub_items_list = open_this_items(subtitle,item_sel);
				  if (sub_items_list.length == 0) {
				      ProdsListHTML += "<li class=\"itemfocus\"><a href=\"/dayopticschina/products/" + prods_array[i][2*j+1] + "\">" + prods_array[i][2*j] + "</a>";
				  } else {
				      ProdsListHTML += "<li><a href=\"/dayopticschina/products/" + prods_array[i][2*j+1] + "\">" + prods_array[i][2*j] + "</a>";
				  }
				  //open_this_items(subtitle);
                  ProdsListHTML += sub_items_list;
                  ProdsListHTML += "</li>";
			   } else {
				  ProdsListHTML += "<li><a href=\"/dayopticschina/products/" + prods_array[i][2*j+1] + "\">" + prods_array[i][2*j] + "</a></li>";		   
			   }
		   }
		   ProdsListHTML += "</ul></div>";
	    }    
	}
	//document.write (ProdsListHTML); 
	if (navigator.appName=='Microsoft Internet Explorer') 
	{
       leftnav.innerHTML=ProdsListHTML;
	} else {
       document.write(ProdsListHTML);
	}
}