			var checkCounter = 0;
			var contentBannerWrapperHeight = 0;
      
			
			var timer = 10;
			function checkForBannersFrontPage(){
        
        if(document.getElementById("advertorial") != undefined) {
          contentBannerWrapperHeig = 0;
          removeEmptyBanners();
        }
        else{
        
				contentBannerWrapperHeight = $('#contentBannerWrapper').height();
					
				if( contentBannerWrapperHeight > 30) {
					$('#contentBannerWrapper').css('display','block');
				}
							
				checkCounter++;
				if(checkCounter<timer && bannersLoaded()==false) {
					setTimeout(checkForBannersFrontPage,1000);
				}
				if(checkCounter>=timer || bannersLoaded()==true) {
					removeEmptyBanners();
				}
        }
			};	
			function bannersLoaded(){
				return contentBannerWrapperHeight > 30;
			};	  
			function removeEmptyBanners(){
				if(contentBannerWrapperHeight<30){
					$('#contentBannerWrapper').remove(); 
				}
			};
			