
var smooth_timer;

function smoothHeight( id, curH, targetH, stepH, mode ) 
{
	diff = targetH - curH;
	if ( diff != 0 ) 
	{
		newH = ( diff > 0 ) ? curH + stepH : curH - stepH;
		(( document.getElementById ) ? document.getElementById( id ) : eval( "document.all['" + id + "']" )).style.height = newH + "px";
		if ( smooth_timer ) window.clearTimeout( smooth_timer );
		smooth_timer = window.setTimeout( "smoothHeight('" + id + "'," + newH + "," + targetH + "," + stepH + ",'" + mode + "')", 20 );
	}
	else if ( mode != "o" ) (( document.getElementById ) ? document.getElementById( mode ) : eval("document.all['" + mode + "']")).style.display="none";
}

/*
 *
 */ 
function rowOver( i, nColor ) 
{
  if (!nColor) nColor = "#ECECD9";
  var nameObj = (document.getElementById) ? document.getElementById('nota' + i) : eval("document.all['nota" + i + "']");
  if (nameObj != null) nameObj.style.background=nColor;
}


/*
 *
 */ 
function rowOut( i, nColor ) 
{
  var trObj = (document.getElementById) ? document.getElementById('mas' + i) : eval("document.all['mas" + i + "']");
  var nameObj = (document.getElementById) ? document.getElementById('nota' + i) : eval("document.all['nota" + i + "']");
  if (trObj == null || trObj.style.display=="none") nameObj.style.background=nColor;
}

/*
 *
 */ 
function servOC(i, href, nColor) 
{
	var trObj = ( document.getElementById ) ? document.getElementById( 'mas' + i ) : eval( "document.all['mas" + i + "']" );
	var nameObj = ( document.getElementById ) ? document.getElementById( 'nota' + i ) : eval( "document.all['nota" + i + "']" );
	var ifObj = ( document.getElementById ) ? document.getElementById( 'iframe' + i ) : eval( "document.all['iframe" + i + "']" );
	
	if ( trObj != null ) 
	{
		if ( trObj.style.display=="none" ) 
		{
			trObj.style.display="";
			if (!ifObj.src) ifObj.src = href;
			smoothHeight('iframe' + i, 0, 210, 42, 'o');
		}
		else 
		{
			smoothHeight('iframe' + i, 210, 0, 42, 'mas' + i);
		}
	}
}