var macmousewheel = new SWFMacMouseWheel(flashObj);
var MIN_HEIGHT;
var flashObj;

if (!MIN_HEIGHT) MIN_HEIGHT = 0;	
function resizeFlash()
{
	
	//alert("resizeFlash(): MIN_HEIGHT=" + MIN_HEIGHT);
	var h = getHeight() - 120;
	if (h < MIN_HEIGHT) h = MIN_HEIGHT;

	if (MIN_HEIGHT == 0) 
	{
		//document.body.style.overflow = "hidden";
	}
	else 
	{
		
		//document.body.style.overflow = "visible";
	}
	if(document.getElementById("flash-content")!= null)
	{
		document.getElementById("flash-content").style.height = h+"px";
	}
	if(document.getElementById("delonghi-flash")!= null)
	{
		document.getElementById("delonghi-flash").style.height = h+"px";
	}
}

function getHeight() 
{
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	myHeight = window.innerHeight-15;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	myHeight = document.documentElement.clientHeight - 15;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	myHeight = document.body.clientHeight - 15;
  }
  return myHeight;
}

function hideDetailScrollBars()
{
	MIN_HEIGHT = 0;
	resizeFlash();
}

function showDetailScrollBars()
{
	MIN_HEIGHT = 600;
	resizeFlash();
}