(function(){ var items=[{"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_NWF98858zm?hei=225&wid=225","price":"$24.99 per box of 18","name":"Peek-A-Boo Card","link":"http://www.shopnwf.org/Cards/Wildlife/2780-NWF98858-PeekABoo-Card.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF98858"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF2002?hei=225&wid=225","price":"$19.95 each","name":"Ranger Rick 1 year Subscription","link":"http://www.shopnwf.org/Magazines/Kids-Magazines/2780-NWF2002-Ranger-Rick-1-year-Subscription.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF2002"}]; 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); })();