var lastFH;
var o;
function getCStyle(obj,prop) {
	if (document.defaultView) {
		var v = document.defaultView.getComputedStyle(obj, "").getPropertyValue(prop);
	} else {
		var v = eval('obj.currentStyle.'+prop);
	}
	return v;
}

function setFlashHeight(divName,flashHeight){
	lastFH = flashHeight;
	if (document.all)
	{
		windowHeight = document.body.offsetHeight;
	} 
	else if (document.layers)
	{
		windowHeight = window.innerHeight;
	}
	else 
	{
		windowHeight = getCStyle(o,"height");
	}
	if (flashHeight < parseInt(windowHeight))
	{
		document.getElementById("flashDiv").style.height = "100%";
	} 
	else 
	{
		document.getElementById("flashDiv").style.height = flashHeight+"px";
	}
//	alert(windowHeight+" "+flashHeight);
}
function manualResize(){
	windowHeight = getCStyle(o,"height");
	if (lastFH < parseInt(windowHeight))
	{
		document.getElementById("flashDiv").style.height = "100%";
	} 
	else 
	{
		document.getElementById("flashDiv").style.height = lastFH+"px";
	}
	
}
//window.onresize = manualResize;
window.onload = function () {
	o = document.getElementById('testDiv');
}


