document.observe("dom:loaded", function() {

	$$('a.changeCSS').each( function(element) {

		element.observe("click", function(event) {

			new Ajax.Request(element.readAttribute("href"), {

				onComplete: function(response){
					
					$('cssid').writeAttribute("href", response.responseText);
				}

			});

			Event.stop(event);

		});

	});


	$$('a.changeCSSFontSize').each( function(element) {

		element.observe("click", function(event) {

			new Ajax.Request(element.readAttribute("href"), {

				onComplete: function(response){
									
					$('body').setStyle({
					  fontSize: response.responseText+'em'
					});
				}

			});

			Event.stop(event);

		});

	});


});
