	function amazon()
{
        // only execute if the array exists
	if(asin!='undefined')
	{
		var amazonDiv=document.getElementById('amazon-products');
		var i;
	    // make an iframe inside the division for each product in the array
		for(i in asin)
		{
		 amazonDiv.innerHTML=amazonDiv.innerHTML+'<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&npa=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=web052-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins='+asin[i]+'" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>';
		}
amazonDiv.innerHTML="<h4>Book(s) I've read and recommend for this topic</h4>"+amazonDiv.innerHTML;
	}
}
amazon();
 