function scrollToTop(objectID){

	// Get an object top position from the upper left viewport corner
	// Tested with relative and nested objects
	o = document.getElementById(objectID)
	oTop = o.offsetTop 
	
	// Get top position from the parent object
	while(o.offsetParent!=null) 
	{ // Parse the parent hierarchy up to the document element
		oParent = o.offsetParent  // Get parent object reference
		oTop += oParent.offsetTop // Add parent top position
		o = oParent
	}
	
	// Return top position
	window.scrollTo(0,oTop);
}

function setFlashHeight(divid, newH)
{
    document.getElementById(divid).style.height = newH+"px";
}
