function toggleDebug() {
	// This toggles debugging information, if debugging is turned on:
	var d = document.getElementById('debug');
	if (d.style.display == 'block') {
		d.style.display = 'none';
	}
	else {
		d.style.display = 'block';
	}
	return false;
}

$(function(){
	if ($.browser.msie) {
		$('label.image').click(function() {
			// This enables images as labels in IE6/7
			// Any label with the class 'image' will call a click function
			// on the corresponding input [ie, with a matching id]:							
			var id = $(this).attr('for');
			$('#'+id).click();
			// NOTE: we should really use change() and not click(), but IE doesn't support it
		});
	}
});
