(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_BATT50?hei=225&wid=225","price":"$50.00 Adoption Kit","name":"Adopt a Bat","link":"http://www.shopnwf.org/Adoption-Center/Adopt-a-Bat/2780-BATT50-Adopt-a-Bat.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"BATT50"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_NWF2510?hei=225&wid=225","price":"$79.99 each","name":"Bat House","link":"http://www.shopnwf.org/Garden-for-Wildlife/Cover/2780-NWF2510-Bat-House.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"NWF2510"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_BATT25?hei=225&wid=225","price":"$25.00 Adoption Kit","name":"Adopt a Bat","link":"http://www.shopnwf.org/Adoption-Center/Adopt-a-Bat/2780-BATT25-Adopt-a-Bat.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"BATT25"}]; 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); })();