if ( showHeaderOnFirst )
if ( !showHeaderOnFirst )
	protected void writeSimpleMasterPage( DataOutputStream out,			SimpleMasterPageDesign design ) throws IOException	{		writeMasterPage( out, design );		boolean showHeaderOnFirst = design.isShowHeaderOnFirst( );		if ( showHeaderOnFirst )		{			IOUtil.writeShort( out, FIELD_SHOW_HEADER_ON_FIRST );			IOUtil.writeBool( out, showHeaderOnFirst );		}		boolean showFooterOnLast = design.isShowFooterOnLast( );		if ( showFooterOnLast )		{			IOUtil.writeShort( out, FIELD_SHOW_FOOTER_ON_LAST );			IOUtil.writeBool( out, showFooterOnLast );		}		boolean floatingFooter = design.isFloatingFooter( );		if ( floatingFooter )		{			IOUtil.writeShort( out, FIELD_FLOATING_FOOTER );			IOUtil.writeBool( out, floatingFooter );		}		DimensionType headerHeight = design.getHeaderHeight( );		if ( headerHeight != null )		{			IOUtil.writeShort( out, FEILD_HEADER_HEIGHT );			writeDimension( out, headerHeight );		}		DimensionType footerHeigh = design.getFooterHeight( );		if ( footerHeigh != null )		{			IOUtil.writeShort( out, FEILD_FOOTER_HEIGHT );			writeDimension( out, footerHeigh );		}	}