(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_BEVR35zm?hei=225&wid=225","price":"$35.00 Adoption Kit","name":"Adopt an American Beaver","link":"http://www.shopnwf.org/Adoption-Center/Adopt-a-Beaver/2780-BEVR35-Adopt-an-American-Beaver.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"BEVR35"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_BEVR25zm?hei=225&wid=225","price":"$25.00 Adoption Kit","name":"Adopt an American Beaver","link":"http://www.shopnwf.org/Adoption-Center/Adopt-a-Beaver/2780-BEVR25-Adopt-an-American-Beaver.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"BEVR25"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_BEVR50zm?hei=225&wid=225","price":"$50.00 Adoption Kit","name":"Adopt an American Beaver","link":"http://www.shopnwf.org/Adoption-Center/Adopt-a-Beaver/2780-BEVR50-Adopt-an-American-Beaver.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"BEVR50"}]; var largeViewDIV =document.createElement("DIV"); largeViewDIV.className='container related-item item'; largeViewDIV.innerHTML ='

Shop the National Wildlife Federation’s Related Items

'; for (var x = 0, l = items.length; x < l; x++) { var relatedHtml='

'+items[x].id+'

'+items[x].name+'

'+items[x].price+'

'; var addItem=document.createElement("DIV"); addItem.className="col-sm-4"; addItem.innerHTML=relatedHtml; largeViewDIV.appendChild(addItem); } document.querySelector('div.TOGRelatedItems').appendChild(largeViewDIV); })();