(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_600004zm?hei=225&wid=225","price":"$36.99-$39.99 each","name":"Loon and Lilies Pullover","link":"http://www.shopnwf.org/Apparel/Pullovers-and-Cardigans/2780-600004-Loon-and-Lilies-Pullover.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"600004"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF4562Szm?hei=225&wid=225","price":"$24.99-$26.99 each","name":"Never a Loon Tee","link":"http://www.shopnwf.org/Apparel/View-All-Apparel/2780-NWF4562S-Never-a-Loon-Tee.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF4562S"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_363002zm?hei=225&wid=225","price":"$34.97 each","name":"Turtle/Loon Necklace Set","link":"http://www.shopnwf.org/Apparel/Jewelry/2780-363002-TurtleLoon-Necklace-Set.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"363002"}]; 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); })();