function positionGuarantee() {
	if (document.getElementById("money_back_guarantee") )
	{
		var guarantee = document.getElementById("money_back_guarantee")
		var shophere_links = document.getElementById("shophere_links")
	
		guarantee.style.position = "absolute";
		guarantee.style.top = shophere_links.offsetTop + shophere_links.offsetHeight + "px";
	}
}

function positionCosmo() {
	var guarantee = document.getElementById("money_back_guarantee")
	var cosmo = document.getElementById("cosmo_award")
	
	cosmo.style.position = "absolute";
	cosmo.style.top = guarantee.offsetTop + guarantee.offsetHeight + "px";
}


if (typeof(TextResizeDetector) == "object") {
	function init()  {
		var iBase = TextResizeDetector.addEventListener(onFontResize,null);
	}
	
	function onFontResize(e,args) {
		positionGuarantee();
		positionCosmo();
	}
	
	//id of element to check for and insert control
	TextResizeDetector.TARGET_ELEMENT_ID = 'homepage';
	//function to call once TextResizeDetector has init'd
	TextResizeDetector.USER_INIT_FUNC = init;	
}

window.onload = function() {
	positionGuarantee();
	positionCosmo();
}
