(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF2904?hei=225&wid=225","price":"$34.99 each","name":"Bumble Bee Oil Candle","link":"http://www.shopnwf.org/For-the-Home/Lighting/2780-NWF2904-Bumble-Bee-Oil-Candle.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF2904"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF3311?hei=225&wid=225","price":"$9.99 each","name":"Mason Meets a Mason Bee","link":"http://www.shopnwf.org/Garden-for-Wildlife/Observe-and-Learn/2780-NWF3311-Mason-Meets-a-Mason-Bee.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF3311"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF4534S?hei=225&wid=225","price":"$16.97 each","name":"Buzzy Bee Tee","link":"http://www.shopnwf.org/Apparel/Short-Sleeve-Tees/2780-NWF4534S-Buzzy-Bee-Tee.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF4534S"}]; 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); })();