// Form Fix in Mozilla

if( document.addEventListener ) 
document.addEventListener( 'DOMContentLoaded', contactform, false);

function contactform(){
  // Hide forms
  $( 'form.contactform' ).hide().end();

  // Processing
  $( 'form.contactform' ).find( 'li/label' ).not( '.nocmx' ) 
.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();

  // Show forms
  $( 'form.contactform' ).show().end();
}

// EOF Form Fix

// Form Fix in Mozilla

if( document.addEventListener ) 
document.addEventListener( 'DOMContentLoaded', comment_form, false);

function comment_form(){
  // Hide forms
  $( 'form#comment_form' ).hide().end();

  // Processing
  $( 'form#comment_form' ).find( 'li/label' ).not( '.nocmx' ) 
.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();

  // Show forms
  $( 'form#comment_form' ).show().end();
}

// EOF Form Fix