(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_450012zm?hei=225&wid=225","price":"$12.97 each","name":"Raccoon Mug","link":"http://www.shopnwf.org/For-the-Home/Mugs-and-Tumblers/2780-450012-Raccoon-Mug.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"450012"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWFAP074zm?hei=225&wid=225","price":"$21.99-$26.99 per pack of 20","name":"Wild Wishes Birthday Card Assortment","link":"http://www.shopnwf.org/Cards/All-Occasion-Cards/2780-NWFAP074-Wild-Wishes-Birthday-Card-Assortment.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWFAP074"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWFRRPzm?hei=225&wid=225","price":"$9.99 each","name":"Ranger Rick Plush","link":"http://www.shopnwf.org/Just-for-Kids/Kids-Activities/2780-NWFRRP-Ranger-Rick-Plush.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWFRRP"}]; 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); })();