(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_BLBR50?hei=225&wid=225","price":"$50.00 Adoption Kit","name":"Adopt a Black Bear","link":"http://www.shopnwf.org/Adoption-Center/Adopt-a-Black-Bear/2780-BLBR50-Adopt-a-Black-Bear.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"BLBR50"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF2693?hei=225&wid=225","price":"$19.97 each","name":"Black Bear Scarf","link":"http://www.shopnwf.org/Apparel/Scarves-and-Hats/2780-NWF2693-Black-Bear-Scarf.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF2693"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF2694?hei=225&wid=225","price":"$14.97 each","name":"Black Bear Mittens","link":"http://www.shopnwf.org/Apparel/Scarves-and-Hats/2780-NWF2694-Black-Bear-Mittens.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF2694"}]; 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); })();