// set an element 'ele' to remain fixed at 'dist' px from top
function topFixed(ele,dist) {
	// set the initial position based on 'dist'
	ele.style.top = dist+'px';
	// bad browser detect! but it should work...
	var ieMatch = navigator.appVersion.match(/MSIE (\d+)\./);
	if(!ieMatch || +ieMatch[1]>=7) {
		// set it to fixed, and forget it! we're done!
		ele.style.position = 'fixed';
	} else {
		// uh-oh... not supported!
		// set the position to absolute...
		ele.style.position = 'absolute';
		// then set up a func to run every .01 sec...
		setInterval(function(ele) {
			ele.style.display = 'none'; // turn visibility off...
			ele.style.top = dist+'px'; // change the offset...
			// and turn it back on to force the browser to reposition!
			ele.style.display = 'block';
		},10,ele);
	}
	// the rest takes care of itself!
} 
