	var numberOfNews = 4;
	function changeNews (id) {
		for (var i = 1; i <= numberOfNews; i++) {
			var ref = document.getElementById('newsRef'+i);
			var detail = document.getElementById('newsDetail'+i);
			if (ref != null && detail != null) {
			   if (id == i) {
				ref.setAttribute("class", "active");
				ref.setAttribute("className","active");
				detail.setAttribute("class", "section newsDetail show");
				detail.setAttribute("className","section newsDetail show");
			   } else {
				ref.setAttribute("class", "");
				ref.setAttribute("className","");
				detail.setAttribute("class", "section newsDetail");
				detail.setAttribute("className","section newsDetail");
			   }
                        }
		}
            hidePromo();
	}


function hidePromo(){
    rollonoffPromo(promoId,''); 
}

function rollonoffPromo (id, type) {
   var promoRef = document.getElementById('promoRef'+id);
   var promo= document.getElementById('promo'+id);
  
    if (type == 'on') {
          changeNews(numberOfNews +1); 
          promoRef.setAttribute("class", "active");
	  promoRef.setAttribute("className","active");
	  promo.setAttribute("class", "section newsDetail show");
	  promo.setAttribute("className","section newsDetail show");
      } else {
          promoRef.setAttribute("class", "");
	  promoRef.setAttribute("className","");
          promo.setAttribute("class", "section newsDetail");
	  promo.setAttribute("className","section newsDetail");
      }
}
