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 "Waveplate":
		items_array = new Array("Overview", "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", "Fresnal Rhomb Retarder", "fresnal_rhomb_rtdr.htm", "Polarization Rotators", "polar_rotators.htm", "Birefringent Filter Plate", "biref_filter.htm");
	    break;
    case "Polarizer":
		items_array = new Array("Overview", "polarizer.htm", "Glan Taylor Polarizers", "glan_taylor.htm", "Glan Laser Polarizer", "glan_laser.htm", "Glan Thompson Polarizers", "glan_thompson.htm", "Wollaston Polarizers", "wollaston.htm", "Rochon Polarizers", "rochon.htm");
	    break;
    case "Lens":
		items_array = new Array("Overview", "lens.htm", "Plano Convex Lens", "lens_bk7.htm#plano_convex", "Plano Concave Lens", "lens_bk7.htm#plano_concave", "Double Convex Lens ", "lens_bk7.htm#double_convex", "Double Concave Lens", "lens_bk7.htm#double_concave", "Achromatic Lens", "achromatic_lens.htm", "Cylindrical Lens", "cylindrical_lens.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;
	default:
        items_array = new Array();
    }
  
    if (items_array.length != 0 && items_array.length > 2) {
		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/", "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 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", "Lens", "components/lens/lens.htm", "Prism", "components/prism/prism.htm", "Windows", "components/windows/windows.htm", "E-O Switch", "components/E-O/EO_switch.htm", "A-O Switch", "components/A-O/AO_switch.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=\"/newsite/products/" + prods_array[i][2*j+1] + "\">" + prods_array[i][2*j] + "</a>";
				  } else {
				      ProdsListHTML += "<li><a href=\"/newsite/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=\"/newsite/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);
	}
}