var adsDiv = document.getElementById('ads');
if (adsDiv.childNodes.length < 7) 
{	
	adsDiv.parentNode.style.display = 'none';
}
