function displayRecentlyViewedItems(productList) {
	var item = new Object();
	var innerHtml = "";
	var itemsPerRow = 5;
	var rows = Math.ceil(productList.length / itemsPerRow);
	
	if(productList.length > 0) {

		//***************************
		//******* OPEN TABLE ********
		//***************************
		innerHtml += '';
		innerHtml += '<table border="0" cellpadding="0" cellspacing="0">';

		for(var r = 0; r < rows; r++){
			//***************************
			//****** OPEN TABLE ROW *****
			//***************************
			innerHtml += '<tr valign="top">';
			for(var c = 0; c < itemsPerRow; c++){
				//***************************
				//****** OPEN TABLE CELL ****
				//***************************
				innerHtml += '<td align=center>';
				var calc = 0;
				if(r != 0){
					calc = itemsPerRow * r;
				}
				var item = productList[c + (calc)];
				if(item){
					//*********************************
					//***** HTML FOR IMAGE DISPLAY ****
					//*********************************
					innerHtml += '<div class="rvItemImg">';
					innerHtml += '<a href="' + item.url + '">';
					innerHtml += '<img src="' + item.imageThumbnailUrl + '" border="0">';
					innerHtml += '</a>';
					innerHtml += '</div>';
					//***********************************
					//*** HTML FOR LINK/PRICE DISPLAY ***
					//***********************************
					innerHtml += '<div class="sectionLink">';
		 			innerHtml += '<span class="yst-section-item-title"><table border="0" cellpadding="0" cellspacing="0"><TR><TD width="129" align="center"><a class="leftnav" href="' + item.url + '"><font color="#8C8C8C" style="font-size:11px;" >' + item.name + '</font></a></td></tr></table></span><img src="http://site.emitations.com/images/spacer.gif" height="2">';
	
					if(item.rating){
						innerHtml += '<img src="http://site.healthstand.com/itempage/stars/' + item.rating + 'star.jpg" border="0">';
					}
					innerHtml += '</div>';
				}else{
					innerHtml += '&nbsp;';
				}
				//***************************
				//****** CLOSE TABLE CELL ***
				//***************************
				innerHtml += '</td>';
				if(c != itemsPerRow - 1){innerHtml += '<td><img src="http://site.emitations.com/images/spacer.gif" width="40"></td>';}
			}
			//***************************
			//****** CLOSE TABLE ROW ****
			//***************************
			innerHtml += '</tr>';
			innerHtml += '<tr><td><img src="http://site.emitations.com/images/spacer.gif" height="15"></td></tr>';
		}

		//***************************
		//******* CLOSE TABLE *******
		//***************************
		innerHtml += '</table>';
		
	}
	//***************************
	//******* SET DIV HTML ******
	//***************************
	document.getElementById("recentlyViewedProducts").innerHTML = innerHtml;
	return false;
}



