// JavaScript Document
// update the flash embed height when told to by the flash movie

function updateFlash(newHeight){

	var y;
	if (self.innerHeight) {
		y = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		y = document.documentElement.clientHeight;
	} else if (document.body) {
		y = document.body.clientHeight;
	}

	if (newHeight < y){
		newHeight = y;
	}

	document.getElementById('bm').style.height = newHeight + 'px';
}