
function floatCattree() {
	//setTimeout('posNavigation()',500);
}


function posNavigation() {
	myScrollOffsets = { 
		left: (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft),
		top: (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop)
	};
	containerObj = document.getElementById('occasion-content');
	ulShopCattree =document.getElementById('shop-cattree');
	cattreeHeight = ulShopCattree.offsetHeight; 
	extraCheck = 45;
	newMarginTop = (myScrollOffsets.top - 215 );
	if (!containerObj) {
		containerObj = document.getElementById('maincontent');
		
		cattreeHeight += ulShopCattree.nextSibling.nextSibling.offsetHeight;
		extraCheck = 85;
		newMarginTop -= 45;
	}
	
	
	
	if (newMarginTop > 0) {
		if (newMarginTop + cattreeHeight > containerObj.offsetHeight) {
			ulShopCattree.style.marginTop = (containerObj.offsetHeight - cattreeHeight - extraCheck) + 'px';
		} else {
			ulShopCattree.style.marginTop = newMarginTop + 'px';
		}
	} else {
		ulShopCattree.style.marginTop = '0px';
	}
	/*divNavigation = document.getElementById('navigation');
	hNavigation = divNavigation.offsetHeight + offset;
	topNavigation = windowHeight - hNavigation;
	divNavigation.style.top = (topNavigation + myScrollOffsets.top) + 'px';*/
}
