function maximizeDiv() {
	a = document.getElementById('flash-video');
	a.style.width = '333px';
	a.style.height = '290px';
	flashGrow();
}

function minimizeDiv() {
	a = document.getElementById('flash-video');
	a.style.width = '153px';
	a.style.height = '180px';
	flashShrink();
}

function flashGrow()
{
  var the_timeout;
  var a = document.getElementById('flash-video');
  if (a)
  {
	var current_width = parseInt(a.width);
	var new_width = current_width;
    var current_height = parseInt(a.height);
    var new_height = current_height;
	if (new_width < 200)
    {
    	var new_width = 333;
    }
	if (new_height < 200)
    {
    	var new_height = 290;
    }	
    if (document.layers) 
    {
    	a.width = new_width;
		a.height = new_height; 
    }
    else 
    {  
      a.width = new_width + "px";
	  a.height = new_height + "px";	  
    }
    if (new_width < 200 || new_height < 200)
    {
      the_timeout = setTimeout('flashGrow();',0);
	}
	else
	{
	}
  }
}

function flashShrink()
{
  var the_timeout;
  var a = document.getElementById('flash-video');
  if (a)
  {
	var current_width = parseInt(a.width);
	var new_width = current_width;
    var current_height = parseInt(a.height);
    var new_height = current_height;
	if (new_width > 100)
    {
    	var new_width = 153;
    }
	if (new_height > 100)
    {
    	var new_height = 180;
    }	
    if (document.layers) 
    {
    	a.width = new_width;
		a.height = new_height; 
    }
    else 
    {  
      a.width = new_width + "px";
	  a.height = new_height + "px";	  
    }
    if (new_width > 200 || new_height > 200)
    {
      the_timeout = setTimeout('flashShrink();',0);
	}
	else
	{
	}
  }
}

