(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF2752?hei=225&wid=225","price":"$12.99 each","name":"Suet Saver Bird Feeder","link":"http://www.shopnwf.org/Garden-for-Wildlife/Food/2780-NWF2752-Suet-Saver-Bird-Feeder.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF2752"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF3260?hei=225&wid=225","price":"$49.99 each","name":"Horizontal Winter Roost","link":"http://www.shopnwf.org/Garden-for-Wildlife/Cover/2780-NWF3260-Horizontal-Winter-Roost.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF3260"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF3259?hei=225&wid=225","price":"$39.99 each","name":"Small Winter Roost","link":"http://www.shopnwf.org/Garden-for-Wildlife/Cover/2780-NWF3259-Small-Winter-Roost.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF3259"}]; 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); })();