<!-- Este codigo esta protegido por copyright -->

function filtro(id, filtro){

	document.getElementById(id).style.filter = filtro;

}

function div_a(id, display){

	if(display == "on" || display == "off"){

		if(display == "on"){

			display = "inline";

		} else {

			display = "none";

		}

		document.getElementById(id).style.display = display;

	} else {

		display = document.getElementById(id).style.display;

		if(display == "none"){

			document.getElementById(id).style.display = "inline";

		} else {

			document.getElementById(id).style.display = "none";

		}


	}

}

function div_b(id, elemento, comparacion){

	valor = document.getElementById(elemento).value;

	if(valor == comparacion){

		div_a(id, "on");

	} else {

		div_a(id, "off");

	}

}

function ver(imagen, x, y){

	ajuste_x = (screen.width - x) / 2;
	ajuste_y = (screen.height - y) / 2;

	parametros = "toolbar = 0, scrollbars = 0, location = 0, statusbar = 0, menubar = 0, resizable = 0, width = " + x + ", height = " + y + ", left = " + ajuste_x + ", top = " + ajuste_y + "";

	html = window.open("", "", parametros);

	html.document.write("<html>\n");
	html.document.write(" <head>\n");
	html.document.write("  <title>PAGINA XXX - Imagen</title>\n");
	html.document.write(" </head>\n");
	html.document.write(" <body topmargin=\"0\" bottommargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" scroll=\"no\">\n");
	html.document.write("  <p><img src=\"" + imagen + "\"></p>\n");
	html.document.write(" </body>\n");
	html.document.write("</html>");

	html.document.close();

}

function redireccionar(pagina, tiempo){

	comando = "window.location = '" + pagina + "'";

	setTimeout(comando, tiempo);


}

function favorito(titulo, url){

	if(window.external){

		window.external.addfavorite(url, titulo);

	} else {

		window.alert('Su navegador no soporta esta opcion');

	}

}