document.observe('dom:loaded',function () {
	$$('label').each (function(myLabel) {
		myLabel.observe('click',function() {
			if (Prototype.Browser.IE) this.writeAttribute('for',this.htmlFor);
			$$('input#'+this.readAttribute('for')+'[type=radio]').each(function(myRadio) {
				myRadio.click();
				$$('input[name="'+myRadio.readAttribute('name')+'"][type=radio]').each(function(groupRadio) {
					$$('label[for="'+groupRadio.readAttribute('id')+'"]').each(function(labelForR) {
						if (Prototype.Browser.IE) labelForR.writeAttribute('for',labelForR.htmlFor);
						if (labelForR.readAttribute('for')==myRadio.readAttribute('id')) {
							labelForR.addClassName('here');
						} else {
							labelForR.removeClassName('here');
						}
					});
				});
			});
		});
	});
	$$('input[type=radio]').each(function(radio){radio.addClassName('radio')});
});
