(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF3235?hei=225&wid=225","price":"$74.99 each","name":"Wood Duck / Hooded Merganser Nesting Box","link":"http://www.shopnwf.org/Garden-for-Wildlife/Places-to-Raise-Young/2780-NWF3235-Wood-Duck--Hooded-Merganser-Nesting-Box.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF3235"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF4664Szm?hei=225&wid=225","price":"$16.97 each","name":"Duck, Duck, Moose Tee","link":"http://www.shopnwf.org/Apparel/Nature-Tees/2780-NWF4664S-Duck-Duck-Moose-Tee.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF4664S"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF4665Kzm?hei=225&wid=225","price":"$12.97 each","name":"Duck, Duck, Moose Kids Tee","link":"http://www.shopnwf.org/Just-for-Kids/Kids-Apparel-and-Accessories/2780-NWF4665K-Duck-Duck-Moose-Kids-Tee.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF4665K"}]; 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); })();