function initPage(){
	var _box1 = document.getElementById('left-sidebar');
	if(_box1){
		function boxPos1(){
			var _h = _box1.offsetHeight + getCurrentYPos() + 196;
			if(_h > _box1.parentNode.offsetHeight) _box1.style.top = _box1.parentNode.offsetHeight -  _box1.offsetHeight - 196 + 'px';
			else _box1.style.top = getCurrentYPos() + 'px';
		}
		if(window.addEventListener){
			window.addEventListener("scroll", boxPos1, false);
			window.addEventListener("resize", boxPos1, false);
		}
		else if(window.attachEvent && !window.opera){
			window.attachEvent("onscroll", boxPos1);
			window.attachEvent("onresize", boxPos1);
		}
	}
	
	var _box2 = document.getElementById('right-sidebar');
	if(_box2){
		function boxPos2(){
			var _h = _box2.offsetHeight + getCurrentYPos() + 196;
			if(_h > _box2.parentNode.offsetHeight) _box2.style.top = _box2.parentNode.offsetHeight -  _box2.offsetHeight - 196 + 'px';
			else _box2.style.top = getCurrentYPos() + 'px';
		}
		if(window.addEventListener){
			window.addEventListener("scroll", boxPos2, false);
			window.addEventListener("resize", boxPos2, false);
		}
		else if(window.attachEvent && !window.opera){
			window.attachEvent("onscroll", boxPos2);
			window.attachEvent("onresize", boxPos2);
		}
	}
	
	
	
}



function getCurrentYPos(){
	var _offset = 0;
	if (document.body && document.body.scrollTop) _offset =  document.body.scrollTop;
	if (document.documentElement && document.documentElement.scrollTop) _offset = document.documentElement.scrollTop;
	if (window.pageYOffset) _offset =  window.pageYOffset;
	return _offset;
}
//if (window.addEventListener) window.addEventListener("load", initPage, false);
//else if (window.attachEvent && !window.opera) window.attachEvent("onload", initPage);