
function openWin(url,ancho,alto,scroll)
 {window.open (url,"_blank","width="+ancho+",height="+alto+",resizable=yes,scrollbars="+scroll+"")
 }


ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

vmovimiento = 0;
vsubir = 0;
vbajar = 0;

function iniciar_bajar() {
	vmovimiento = 1;
	vbajar = 1;
	vsubir = 0;
}

function iniciar_subir() {
	vmovimiento = 1;
	vbajar = 0;
	vsubir = 1;
}

function bajar() {
	if ((vmovimiento == 1) && (vbajar == 1)) {
	if (ns4) {

		if (document.mare.document.filla.top > 
		-(document.mare.document.filla.document.height -document.mare.clip.bottom)) {

			document.mare.document.filla.moveBy(0,-10);
			setTimeout("bajar()",1);}}
	if (ie4) {
		if (document.all['filla'].style.posTop > -(document.all['filla'].scrollHeight - 
		document.all['mare'].scrollHeight)) {
			document.all['filla'].style.top = document.all['filla'].style.posTop - 10;
			setTimeout("bajar()",1);}}
	}
}

function subir() {
	if ((vmovimiento == 1) && (vsubir == 1)) {
	if (ns4) {
		if (document.layers['mare'].document.layers['filla'].top < 0) {
			document.layers['mare'].document.layers['filla'].moveBy(0,10);
			setTimeout("subir()",1);}}
	if (ie4) {
		if (document.all['filla'].style.posTop < 0) {
			document.all['filla'].style.top = document.all['filla'].style.posTop + 10;
			setTimeout("subir()",1);}}
	}
}

function parar() {
	vmovimiento = 0;
	vsubir = 0;
	vbajar = 0;

}
