for(var i=0;i<productNameIndexes.length;i++) {
		if(eval(productNameIndexes[i]+"ProductArray").length > 0) {
			//if(startWithProducts == "") {
				//startWithProducts = productNameIndexes[i];
				//productNameIndexesHtml += "<a href=javascript:showProducts('"+productNameIndexes[i]+"') id='"+productNameIndexes[i]+"' style='background-color:#7096bf;color:#ffffff;text-decoration:none;padding:1px 2px;' >"+ productNameIndexes[i] + "</a>";
			//}
			//else {
				productNameIndexesHtml += "<a href=javascript:showProducts('"+productNameIndexes[i]+"') id='"+productNameIndexes[i]+"' style='text-decoration:none;padding:1px 2px;'>"+ productNameIndexes[i] + "</a>";
			//}

		} else {
			productNameIndexesHtml += "<a id='"+productNameIndexes[i]+"' style='color:#C0C0C0;text-decoration:none;padding:1px 2px;' >"+productNameIndexes[i] + "</a>";
			
		}

	}
	//alert(startWithProducts)
	startWithProducts=productNameIndexes[3];
	if(document.getElementById("bodyNameAZ")) {
	
		if(document.getElementById("ListBodyNameAZIndexes"))
			document.getElementById("ListBodyNameAZIndexes").innerHTML = "<p class='titledPara'>"+productNameIndexesHtml+"</p>"


		var sURL = window.document.URL.toString();
		/*if (sURL.indexOf("?") > 0)
		{
			var arrParams = sURL.split("?");
			var arrURLParams = arrParams[1].split("=");
			if(arrURLParams[1] != "") {
				showProducts(arrURLParams[1]);	
			}
		} else {*/
			if(startWithProducts != "") 
					showProducts(startWithProducts);
		//}
				
	}
	

	

	function showProducts(startWithProducts) {
		var innerHTMLString = "<table width='675' cellpadding='7'  cellspacing='1' border=0><tr><td valign=top align=left width='44%'>";
		var productArray = eval(startWithProducts+"ProductArray");
		var productArrayLength = productArray.length;
	
		for(var i=0;i<productArrayLength;i++) {
		if(productArrayLength>12)
		{
		if(i==21){
		innerHTMLString=innerHTMLString+"</td><td valign=top>"
		}
		}
		
			if(productArray[i].title != "") {
                    
                    if (productArray[i].awebcurl.search(/http:/)<0){
                   
					    innerHTMLString=innerHTMLString+"<li class='prodList'><a  href='"+productArray[i].awebcurl+"'>"+productArray[i].title+"</a></li>"
                    }
                    else{

                        innerHTMLString=innerHTMLString+"<li class='prodList'><a  target='_blank' href='"+productArray[i].awebcurl+"'>"+productArray[i].title+"</a></li>"

                    }			}
		}
		innerHTMLString+="</td></tr></table>"
		
		if((preElement != "") && document.getElementById(preElement)) {
			document.getElementById(preElement).style.backgroundColor  = ''
			document.getElementById(preElement).style.color=''
			document.getElementById(preElement).style.textDecoration=''
			document.getElementById(preElement).style.padding='1px 2px'
			document.getElementById(preElement).style.cursor='hand'


		}
		if(document.getElementById(startWithProducts)) {
			
			document.getElementById(startWithProducts).style.backgroundColor  = '#7096bf'
			document.getElementById(startWithProducts).style.color='#ffffff'
			document.getElementById(startWithProducts).style.textDecoration='none'
			document.getElementById(startWithProducts).style.padding='1px 2px'
			document.getElementById(startWithProducts).style.cursor='hand'

		}
		preElement = startWithProducts;

		document.getElementById("productNames").innerHTML = innerHTMLString;
		

	}
