// version 27-9-2002 11:07 SOLO VALIDO PARA PAGINAS HTML
<!--
NS = ( document.getElementById && !document.all);
IE = ( document.all);
separacion = 6; 	// espacio que deja hasta el borde superior del marco
		// estaria relacionado con sep_con_bor_sup
constante = 6;	// por lo mismo de antes
descuento = 0; 	// separacion a descontar del borde derecho de la pantalla, se carga en finalizar_menu()

function iniciar_menu_flotante( ancho, tip_borde, color_fondo, sep_con_bor_sup )
{
	if ( IE )
	{
		document.write( '<DIV ID = "flotante" style ="visibility: hidden; Position: Absolute; Left: 0px; Top:' + sep_con_bor_sup + '; Z-index:20; width=' + ancho + '" >' );
		document.write( ' <table border=' + tip_borde + ' cellpadding="0" cellspacing="0" bgcolor="' + color_fondo + '" width="100%"><tr>' );
	}
	if ( NS )
	{
		document.write( '<DIV ID = "flotante" style ="visibility: hidden; Position: Absolute; Left: 0px; Top:' + sep_con_bor_sup + '; Z-index:20; width:' + ancho + '" >' );
		document.write( ' <table border=' + tip_borde + ' cellpadding="0" cellspacing="0" bgcolor="' + color_fondo + '" width="100%"><tr>' );
	}
}

function elemento_menu_flotante(  opcion_alt, enlace, imagen, marco, porcentaje_ocupacion, altura_fila, altura, anchura )
{
	document.write( '<td align="center" width="' + porcentaje_ocupacion + '%" height=' + altura_fila + '>' );
	document.write( '<a href="' + enlace + '" target="' + marco + '">' );
	document.write( '<img border="0" src="' + imagen + '" alt="' + opcion_alt + '" width="' + anchura + '" height="' + altura + '">' );
	document.write( '</a>' );
	document.write( '</td>' );
}

function imagen_menu_flotante( opcion_alt, imagen, porcentaje_ocupacion, altura_fila, altura, anchura, nombre, valor )
{
	document.write( '<td align="center" width="' + porcentaje_ocupacion + '%" height=' + altura_fila + '>' );
	document.write(' <input type="image" src="' + imagen + '" width="' + anchura + '" height="' + altura + '" name="' + nombre + '" value="' + valor + '" alt="' + opcion_alt + '">' );
	document.write( '</td>' );
}

function finalizar_menu_flotante( dto )
{
	descuento = dto;
	document.write( '</tr>' );
	document.write( '</table>' );
	document.write( '</DIV>' );
	setTimeout( 'poner_menu_flotante();', 100 );
}

timerID = setTimeout( 'null', 1 );

function poner_menu_flotante()
{
	if ( NS )
	{
		flotante = document.getElementById( "flotante" ).style;
		flotante.visibility = "visible";
	}
	else
	{
		if ( IE )
		{
			flotante.style.visibility = "visible";
		}
	}
	parar_menu_flotante();
}

ultima_pos_eje_Y = 0;

function parar_menu_flotante()
{
	if (NS)
	{
		pos_eje_Y = window.pageYOffset;
	}
	if (IE)
	{
		pos_eje_Y = document.body.scrollTop;
		var NM = document.all( 'flotante' ).style;
	}
	if ( pos_eje_Y != ultima_pos_eje_Y && pos_eje_Y > separacion -constante)
	{
		holgura = .2 * ( pos_eje_Y - ultima_pos_eje_Y - separacion + constante );
	}
	else
	{
		if (separacion - constante + ultima_pos_eje_Y > separacion - constante)
		{
			holgura = .2 * ( pos_eje_Y - ultima_pos_eje_Y );
		}
		else
		{
			holgura = 0;
		}
	}
	if ( holgura > 0 )
	{
		holgura = Math.ceil( holgura );
	}
	else
	{
		holgura = Math.floor( holgura );
	}
	if (NS)
	{
		flotante.top = parseInt( flotante.top ) + holgura + "px";
		flotante.left = ( window.innerWidth - descuento );
	}
	if (IE)
	{
		NM.pixelTop += holgura;
		flotante.style.pixelLeft = ( document.body.clientWidth - descuento );
	}
	ultima_pos_eje_Y = ultima_pos_eje_Y + holgura;
	setTimeout( 'parar_menu_flotante()', 1);
}
iniciar_menu_flotante( 5, 0, "", 0 );
elemento_menu_flotante(  "Anterior", "javascript: history.back (1)", "http://www.gobiernodecanarias.org/sanidad/scs/scs/imagenes2006/atras.gif", "", 100, 163, 15, 38 );
finalizar_menu_flotante( 64 );

//-->





