(function( $ ){
	$( document ).ready( function( ){
		
		var fullHeight = function( iframe ){
			var $iframe = $(iframe);
			var doc = iframe.contentDocument || iframe.contentWindow.document;
			
			if( doc.body && doc.body.scrollHeight ){
				$iframe.css( 'overflow', 'hidden' ).height( doc.body.scrollHeight );
			}
		};
		
		
		$( '#content iframe.demo' ).each( function( ){
			var doc = this.contentDocument || this.contentWindow.document;
			if( doc && doc.readyState == 'complete' ){
				fullHeight( this );
			} else {
				$(this).load( function( e ){
					fullHeight( e.target );
				} );
			}
		} );
	} ); 
} )( jQuery );