(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_430009zm?hei=225&wid=225","price":"$39.99 each","name":"Buffalo Run Fleece Throw","link":"http://www.shopnwf.org/For-the-Home/Throws-Bedding-and-Bath/2780-430009-Buffalo-Run-Fleece-Throw.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"430009"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_690024zm?hei=225&wid=225","price":"$39.99 each","name":"Moose Plaid Flannel Night Shirt","link":"http://www.shopnwf.org/Apparel/Loungewear/2780-690024-Moose-Plaid-Flannel-Night-Shirt.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"690024"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF57529SQ?hei=225&wid=225","price":"$82.29 per 48","name":"Rustic Floral & Plaid Flat Photo Card","link":"http://www.shopnwf.org/Cards/Photo-Christmas-Cards/2780-NWF57529SQ-Rustic-Floral--Plaid-Flat-Photo-Card.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF57529SQ"}]; 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); })();