function captureLinks() {                
	$$('.TextoAumenta').each(function(el) {
		el.addEvent('click',function(e) {			
			changeStyle(+1,'');
		});
	});
	
	$$('.TextoDisminuye').each(function(el) {
		el.addEvent('click',function(e) {			
			changeStyle(-1,'');
		});
	});
	
	$$('.ImprimirPagina').each(function(el) {
		el.addEvent('click', function(e) {
			window.print();
		});
	});
	var features='toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no';
	$each($$('a.nuevaVentana'), function(el) {
            var title = (el.getProperty('title') != null) ? el.getProperty('title') : '';
            el.setProperty('title', title  + " (se abre en una nueva ventana)");
            el.addEvent('click', function(e) {
                    var ev = new Event(e);
                    window.open(this.href, 'nuevaVentana', features);
                    ev.stop();                      
            });
    });
}

window.addEvent('domready', function(){
    var cookie = readCookie("style");
    var title = cookie ? cookie : getPreferredStyleSheet();
    setActiveStyleSheet(title);
    
    captureLinks();
});
