(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_GOWL50?hei=225&wid=225","price":"$50.00 Adoption Kit","name":"Adopt a Great Horned Owl","link":"http://www.shopnwf.org/Adoption-Center/Adopt-a-Great-Horned-Owl/2780-GOWL50-Adopt-a-Great-Horned-Owl.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"GOWL50"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_GOWL25?hei=225&wid=225","price":"$25.00 Adoption Kit","name":"Adopt a Great Horned Owl","link":"http://www.shopnwf.org/Adoption-Center/Adopt-a-Great-Horned-Owl/2780-GOWL25-Adopt-a-Great-Horned-Owl.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"GOWL25"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF3366?hei=225&wid=225","price":"$9.99 each","name":"Brown Owl Hanging Décor","link":"http://www.shopnwf.org/For-the-Home/Wall-D%C3%A9cor/2780-NWF3366-Brown-Owl-Hanging-D%C3%A9cor.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF3366"}]; 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); })();