if(document.addEventListener )document.addEventListener( 'DOMContentLoaded', inntelform, false);

function inntelform(){
 
  // Hide forms
  $("form.inntelform").hide().end();

  // Processing
  $("form.inntelform").find("label").not(".wideLabel").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';
    // 11 May 2011 - This changed from this.innerHTML = null; to the below.   
	// Due to IE9 rendering literal null in the label as well as the copied text!
	this.innerHTML = '';
    this.appendChild( labelSpan );
  } ).end();

  // Show forms
  $( 'form.inntelform' ).show().end();
}
