(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF1931?hei=225&wid=225","price":"$26.99 each","name":"Ultimate Oriole Feeder","link":"http://www.shopnwf.org/Garden-for-Wildlife/Food/2780-NWF1931-Ultimate-Oriole-Feeder.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF1931"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF3622?hei=225&wid=225","price":"$14.97 each","name":"Oriole Treasure Box","link":"http://www.shopnwf.org/Apparel/Jewelry/2780-NWF3622-Oriole-Treasure-Box.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF3622"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_640001zm?hei=225&wid=225","price":"$79.99 per set","name":"Oriole Field Pant Set","link":"http://www.shopnwf.org/Apparel/Dresses-and-More/2780-640001-Oriole-Field-Pant-Set.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"640001"}]; 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); })();