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 "Birefringent Crystals":
		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 "Laser Crystal":
		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 "NLO Crystal":
		items_array = new Array("Overview", "NLO_crystal.htm", "BBO", "BBO.htm", "KTP", "KTP.htm", "LBO", "LBO.htm", "LiNbO 3", "LiNbO3.htm");
	    break;
    case "Optical Crystal":
		items_array = new Array("Overview", "optical_crystal.htm", "Sapphire Crystal", "sapphire_crystal.htm", "Undoped YAG Crystal", "undoped_YAG.htm", "CaF2", "CaF2.htm");
	    break;
	case "Optical Glass":
		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 "Waveplate":
		items_array = new Array("Overview", "waveplate.htm", "High Power Waveplate", "High_Power_Waveplate.htm","Multi-order Waveplate", "multi_order.htm", "Low-order Waveplate", "low_order.htm", "Zero-order waveplate", "zero_order.htm", "True Zero-order Waveplate", "true_zero_order.htm", "Achromatic waveplate", "achromatic.htm", "Double Wavelength Waveplate", "Double_Wavelength_Waveplate.htm","Fresnal Rhomb Retarder", "fresnal_rhomb_rtdr.htm", "Polarization Rotators", "polar_rotators.htm", "Birefringent Filter Plate", "biref_filter.htm", "Holders", "Holders.htm");
	    break;
    case "Polarizer":
		items_array = new Array("Overview", "polarizer.htm", "Glan Taylor Polarizers", "glan_taylor.htm", "Glan Laser Polarizer", "glan_laser.htm","High Power Glan Laser Polarizer", "High_Power_Glan_Lase_Polarizer .htm", "Glan Thompson Polarizers", "glan_thompson.htm","Glan-Thompson Polarizer Beamsplitter Cube", "Glan_Thompson_Polarizer_Beamsplitter_Cube.htm", "High Transmission Glan-Laser Polarizer","High_Transmission_Glan_Laser_Polarizers.htm","Wollaston Polarizers", "wollaston.htm", "Rochon Polarizers", "rochon.htm","Thin film Polarizer","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 "Lens":
		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", "Fast-axis Collimation", "Fast-axis_Collimation.htm");
	    break;
    case "Prism":
		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 "E-O Q Switch":
		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 "Green Laser Module":
		items_array = new Array("GLMS-01,05,10", "GLMS-01,05,10.htm", "GLPM-08", "GLPM-08.htm");
	    break;
	case "Polarizing beam splitter":
		items_array = new Array("Standard PBS","PBS.htm","High Power PBS","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/", "High Power Crystals", "material/High_Power/High_Power_Crystals.htm","Birefringent Crystals", "material/biref_crystals/biref_crystals.htm", "Laser Crystal", "material/laser_crystal/laser_crystal.htm", "NLO Crystal", "material/NLO_crystal/NLO_crystal.htm", "Passive Crystal", "material/passive_crystal/passive_crystal.htm", "E-O Q Crystal", "material/electro_optics/electro_optics.htm", "Farady Crystal", "material/farady_crystal/farady_crystal.htm", "Optical Crystal", "material/optical_crystal/optical_crystal.htm", "Optical Glass", "material/optical_glass/optical_glass.htm", "Color Glass", "material/color_glass/color_glass.htm");
    prods_array[1] = new Array("Components Products", "/products/components/", "Waveplate", "components/waveplate/waveplate.htm", "Polarizer","components/polarizer/polarizer.htm","Polarizing beam splitter","components/PBS/Polarizing_beam_splitter.htm","Lens", "components/lens/lens.htm", "Prism", "components/prism/prism.htm", "Windows", "components/windows/windows.htm", "Coating", "components/Coating/Coating.htm","E-O Q Switch", "components/E-O/Pockels_cell.htm", "A-O Q Switch", "components/A-O/AO_switch.htm", "Green Laser Module", "components/GreenLaserModule/GLMS-01,05,10.htm","Micro-optics Assembly", "components/Micro-optics Assembly/Micro-optics Assembly.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=\"/products/" + prods_array[i][2*j+1] + "\">" + prods_array[i][2*j] + "</a>";
				  } else {
				      ProdsListHTML += "<li><a href=\"/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=\"/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);
	}
}