/* The original script used a slightly complex mixture of jQuery and normal JavaScript,
 * I've modified that script to be more jQuery-centric.
 */
$(document).ready(function() {
	if($.browser.mozilla) {
		// Hide the form(s) so the user doesn't see it/them being fixed
		$('form.cmxform').hide();
		
		// Fix the form(s) so it/they display(s) properly in Mozilla browsers
		$('form.cmxform').find('li>label').not('.nocmx').each(function(i) {
			var labelWidth = $(this).width();
			$(this).wrapInner('<span></span>');
			var $span = $(this).children();
			$span.css({display: 'block', width: labelWidth});
			$(this).css({display: '-moz-inline-block'});
		});
		
		$('form.cmxform').show();
	}
});