
window.onload = function clientHeight(){
	
	if(typeof(document.getElementById('clientHeight'))=="object"){
	document.getElementById('clientHeight').value=document.body.scrollHeight
	setTimeout("ice()",10);
	}else{
		setTimeout("clientHeight()",500);
		}
	
	}
function   ice(){
  var   ad   =   document.getElementById("banner");       
 
    var scrollPos = parseInt(document.body.scrollTop);
	
	if((parseInt(document.getElementById('clientHeight').value)-parseInt(window.screen.height)) > parseInt(ad.style.paddingTop.replace("px",""))){
	if(scrollPos-100 >0){	
	ad.style.paddingTop   = scrollPos-100; 
	}else{
	ad.style.paddingTop = 0
	}
	}else{
		if(scrollPos-50<(parseInt(document.getElementById('clientHeight').value)-parseInt(window.screen.height))){
			if(scrollPos-100 >0){	
	ad.style.paddingTop   = scrollPos-100; 
	}else{
	ad.style.paddingTop = 0
	}
		}
	}
	setTimeout("ice()",10);
  }  
  

  
