if( document.addEventListener )
    document.addEventListener( 'DOMContentLoaded', fixform, false);

function fixform(){
  if (jQuery.browser.opera)
       return;
  // Hide forms
  $( 'form#aspnetForm' ).hide().end();
 
  $( 'form#aspnetForm' ).find( 'li label' ).not('.nofix').each( function( i ){
    var labelContent = this.innerHTML;
    var labelWidth = document.defaultView.getComputedStyle( this, '' ).getPropertyValue( 'width' );
    var labelSpan = document.createElement( 'span' );
    labelSpan.style.display = 'block';
    labelSpan.style.width = labelWidth;
    labelSpan.innerHTML = labelContent;
    this.style.display = '-moz-inline-box';
    this.innerHTML = null;
    this.appendChild( labelSpan );
  } ).end();

  $( 'form#aspnetForm' ).show().end();
}