
pdfDocument = {
{BEGIN backgroundImage}
	background: {
		image: {$backgroundImage},
		{BEGIN bgWidth}
		imgWidth: {$bgWidth},
		imgHeight: {$bgHeight},
		{END bgWidth}
	},
{END backgroundImage}
	styles: {
				bodycell: {
			fontSize:12,
		},
		headcell: {
			fontSize:12,
			bold: true
		},

	
			},
	defaultStyle: {
		fontSize: 14,
	},
	"content": [
		{BEGIN body}
		{BEGIN embedded_grid}
		{
			text: '{$jscaption flights}',
		},
		{END embedded_grid}
		{ 
			{BEGIN standalone_page}
			pageBreak: 'before',
			{END standalone_page}
			{BEGIN embedded_grid}
			embeddedPage: true,
			{END embedded_grid}
			layout: {
				hLineWidth: function(i, node) { return 0; },
				vLineWidth: function(i, node) { 
					if( node.table.embeddedPage ) {
						return (i === 0 || i === node.table.widths.length) ? 0 : 0;
					} else  {
						return 0; 
					}
				},
				hLineColor: function(i, node) { return 'gray'; },
				vLineColor: function(i, node) { return 'gray'; },
			},
			table: {
				{BEGIN embedded_grid}
				embeddedPage: true,
				{END embedded_grid}
				
				tableForm: true,
				headerRows: 0 + 1 {BEGIN embedded_grid} -1 {END embedded_grid} ,

				widths: [
														"*",
															],
							
				body: [
				{BEGIN standalone_page}
					[
						{
							colSpan: 1,
							border:[false, false,false,false],
							stack: [

																										
{
	table: {
	
				
		location: 'top',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
					[
												{
	cellId: 'c1',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	static colspan/rowspan
		
			
	
	
			"text": [
		
				
			{"text":"","hidden":"{$item_hide_breadcrumb}"},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'left',
  },

											],
					]
	}
}
,
								
																										
{
	table: {
	
				
		location: 'above-grid',
		
		
		widths: [
								"*", 
											"*", 
					 ],	
		
	
		body: [
				
					[
												{
	cellId: 'c1',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	static colspan/rowspan
		
			
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'left',
  },

																			{
	cellId: 'c2',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	static colspan/rowspan
		
			
	
	
			"text": [
		
				
			{"text":"Displaying %first% - %last% of %total%","hidden":"{$item_hide_details_found}","isHtml":true,"page_indicator":true},
				
				
			{"text":"","hidden":"{$item_hide_page_size}"},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'right',
  },

											],
					]
	}
}
,
															]
						},
					],
				{END standalone_page}

																	
	{BEGIN grid_row}
	[ 
	
	{BEGIN grid_record}
	{BEGIN grid_vrecord}
	
		{ 
			layout: 'vrecord',
			table: {
				widths: ['*'],
				body: [[
					{
						
						table: {
							tableForm: true,
							widths: [
																{BEGIN col_grid_0}
								"*",
								{END col_grid_0}
																{BEGIN col_grid_1}
								"*",
								{END col_grid_1}
																{BEGIN col_grid_2}
								"*",
								{END col_grid_2}
																{BEGIN col_grid_3}
								"*",
								{END col_grid_3}
																{BEGIN col_grid_4}
								"*",
								{END col_grid_4}
																{BEGIN col_grid_5}
								"*",
								{END col_grid_5}
																{BEGIN col_grid_6}
								"*",
								{END col_grid_6}
															],
													heights: [
															{BEGIN row_grid_0}			
								"%",
								{END row_grid_0}
															{BEGIN row_grid_1}			
								"%",
								{END row_grid_1}
															{BEGIN row_grid_2}			
								"%",
								{END row_grid_2}
															{BEGIN row_grid_3}			
								"%",
								{END row_grid_3}
															{BEGIN row_grid_4}			
								"%",
								{END row_grid_4}
															{BEGIN row_grid_5}			
								"%",
								{END row_grid_5}
															{BEGIN row_grid_6}			
								"%",
								{END row_grid_6}
															{BEGIN row_grid_7}			
								"%",
								{END row_grid_7}
														],
													
							body: [
									
					{BEGIN row_grid_0}
				[
												{BEGIN cellblock_grid_cell_top}
{
	cellId: 'cell_top',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_top}
			colSpan: {$colspan_grid_cell_top},
			{END colspan_grid_cell_top}
		
						
	
	
	
			"text": [
		
				
			{"text":"","hidden":"{$item_hide_grid_checkbox}"},
				
				
			{"text":"","hidden":"{$item_hide_grid_view}"},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'left',
  },

{END cellblock_grid_cell_top}
																		{ 
				cellId: 'cell_top',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_top',
				row:  0,
				col:  2,
				text: ''
			},
															{BEGIN cellblock_grid_cell_field41}
{
	cellId: 'cell_field41',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'left',
  },

{END cellblock_grid_cell_field41}
																			{BEGIN cellblock_grid_cell_field12}
{
	cellId: 'cell_field12',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_field12}
			colSpan: {$colspan_grid_cell_field12},
			{END colspan_grid_cell_field12}
		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'left',
  },

{END cellblock_grid_cell_field12}
																		{ 
				cellId: 'cell_field12',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_field12',
				row:  0,
				col:  2,
				text: ''
			},
							],
				{END row_grid_0}
								{BEGIN row_grid_1}
				[
												{BEGIN cellblock_grid_cell_field14}
{
	cellId: 'cell_field14',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_field14}
			colSpan: {$colspan_grid_cell_field14},
			{END colspan_grid_cell_field14}
		
						
	
	
	
			"text": [
		
				
			{"color":"#d75f5f","hidden":"{$item_hide_simple_grid_field14}","fontSize":22,"bold":true,"text":"{$jslabel flights flight_number }"},
				
				
			{"background":"#f8fa8c","hidden":"{$item_hide_simple_grid_field1}","fontSize":22,"text":{$flight_number_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field14}
																		{ 
				cellId: 'cell_field14',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_field14',
				row:  0,
				col:  2,
				text: ''
			},
															{BEGIN cellblock_grid_cell_field}
{
	cellId: 'cell_field',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"background":"#9ac5f1","hidden":"{$item_hide_simple_grid_field2}","fontSize":16,"text":{$full_airline_name_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field}
																			{BEGIN cellblock_grid_cell_field1}
{
	cellId: 'cell_field1',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_field1}
			colSpan: {$colspan_grid_cell_field1},
			{END colspan_grid_cell_field1}
		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_grid_field_label1}","fontSize":14,"text":"{$jslabel flights remaining_seats }","bold":true},
				
				
			{"color":"#d75f5f","hidden":"{$item_hide_grid_field}","fontSize":14,"bold":true,"text":{$remaining_seats_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field1}
																		{ 
				cellId: 'cell_field1',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_field1',
				row:  0,
				col:  2,
				text: ''
			},
							],
				{END row_grid_1}
								{BEGIN row_grid_2}
				[
												{BEGIN cellblock_grid_cell_field21}
{
	cellId: 'cell_field21',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_field21}
			colSpan: {$colspan_grid_cell_field21},
			{END colspan_grid_cell_field21}
		
						
	
	
	
			"text": [
		
				
			{"text":"Adult Price $","hidden":"{$item_hide_text2}","fontSize":14,"bold":true,"isHtml":true},
				
				
			{"color":"#d75f5f","hidden":"{$item_hide_grid_field2}","fontSize":14,"bold":true,"text":{$adult_price_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field21}
																		{ 
				cellId: 'cell_field21',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_field21',
				row:  0,
				col:  2,
				text: ''
			},
															{BEGIN cellblock_grid_cell_field22}
{
	cellId: 'cell_field22',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":"Child Price $","hidden":"{$item_hide_text3}","fontSize":14,"bold":true,"isHtml":true},
				
				
			{"color":"#d75f5f","hidden":"{$item_hide_grid_field3}","fontSize":14,"bold":true,"text":{$child_price_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field22}
																			{BEGIN cellblock_grid_cell_field23}
{
	cellId: 'cell_field23',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_field23}
			colSpan: {$colspan_grid_cell_field23},
			{END colspan_grid_cell_field23}
		
						
	
	
	
			"text": [
		
				
			{"text":"Infant Price $","hidden":"{$item_hide_text4}","fontSize":14,"bold":true,"isHtml":true},
				
				
			{"color":"#d75f5f","hidden":"{$item_hide_grid_field4}","fontSize":14,"bold":true,"text":{$infant_price_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field23}
																		{ 
				cellId: 'cell_field23',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_field23',
				row:  0,
				col:  2,
				text: ''
			},
							],
				{END row_grid_2}
								{BEGIN row_grid_3}
				[
												{BEGIN cellblock_grid_cell_label13}
{
	cellId: 'cell_label13',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_label13}
			colSpan: {$colspan_grid_cell_label13},
			{END colspan_grid_cell_label13}
		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_simple_grid_field16}","fontSize":14,"bold":true,"text":"{$jslabel flights from_airport }"},
				
				
			{"hidden":"{$item_hide_simple_grid_field3}","fontSize":14,"text":{$from_airport_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_label13}
																		{ 
				cellId: 'cell_label13',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_label13',
				row:  0,
				col:  2,
				text: ''
			},
															{BEGIN cellblock_grid_cell_label14}
{
	cellId: 'cell_label14',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":"{$event small_arrows_snippet}","hidden":"{$item_hide_snippet}","isHtml":true},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_label14}
																			{BEGIN cellblock_grid_cell_label15}
{
	cellId: 'cell_label15',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_label15}
			colSpan: {$colspan_grid_cell_label15},
			{END colspan_grid_cell_label15}
		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_grid_field_label}","fontSize":14,"bold":true,"text":"{$jslabel flights to_airport }"},
				
				
			{"hidden":"{$item_hide_simple_grid_field4}","fontSize":14,"text":{$to_airport_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_label15}
																		{ 
				cellId: 'cell_label15',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_label15',
				row:  0,
				col:  2,
				text: ''
			},
							],
				{END row_grid_3}
								{BEGIN row_grid_4}
				[
												{BEGIN cellblock_grid_cell_label}
{
	cellId: 'cell_label',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_label}
			colSpan: {$colspan_grid_cell_label},
			{END colspan_grid_cell_label}
		
						
	
	
	
			"text": [
		
				
			{"text":"Departure Flight","background":"#b7cde1","hidden":"{$item_hide_text}","fontSize":20,"bold":true,"isHtml":true},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_label}
																		{ 
				cellId: 'cell_label',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_label',
				row:  0,
				col:  2,
				text: ''
			},
															{BEGIN cellblock_grid_cell_label1}
{
	cellId: 'cell_label1',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_label1}
																			{BEGIN cellblock_grid_cell_label2}
{
	cellId: 'cell_label2',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_label2}
			colSpan: {$colspan_grid_cell_label2},
			{END colspan_grid_cell_label2}
		
						
	
	
	
			"text": [
		
				
			{"text":"Return Flight","background":"#b7cde1","hidden":"{$item_hide_text1}","fontSize":20,"bold":true,"isHtml":true},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_label2}
																		{ 
				cellId: 'cell_label2',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_label2',
				row:  0,
				col:  2,
				text: ''
			},
							],
				{END row_grid_4}
								{BEGIN row_grid_5}
				[
												{BEGIN cellblock_grid_cell_field59}
{
	cellId: 'cell_field59',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_simple_grid_field5}","fontSize":13,"text":{$departure_date_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field59}
																			{BEGIN cellblock_grid_cell_field64}
{
	cellId: 'cell_field64',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_simple_grid_field6}","fontSize":13,"text":{$departure_time_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field64}
																			{BEGIN cellblock_grid_cell_field63}
{
	cellId: 'cell_field63',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_simple_grid_field7}","fontSize":13,"text":{$arrival_time_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field63}
																			{BEGIN cellblock_grid_cell_field61}
{
	cellId: 'cell_field61',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field61}
																			{BEGIN cellblock_grid_cell_field62}
{
	cellId: 'cell_field62',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_simple_grid_field8}","fontSize":13,"text":{$return_date_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field62}
																			{BEGIN cellblock_grid_cell_field66}
{
	cellId: 'cell_field66',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_simple_grid_field9}","fontSize":13,"text":{$return_departure_time_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field66}
																			{BEGIN cellblock_grid_cell_field65}
{
	cellId: 'cell_field65',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_simple_grid_field10}","fontSize":13,"text":{$return_arrival_time_pdfvalue}},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field65}
											],
				{END row_grid_5}
								{BEGIN row_grid_6}
				[
												{BEGIN cellblock_grid_cell_field60}
{
	cellId: 'cell_field60',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field60}
																			{BEGIN cellblock_grid_cell_field68}
{
	cellId: 'cell_field68',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field68}
																			{BEGIN cellblock_grid_cell_field69}
{
	cellId: 'cell_field69',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field69}
																			{BEGIN cellblock_grid_cell_field67}
{
	cellId: 'cell_field67',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"hidden":"{$item_hide_grid_field1}","fontSize":14,"bold":true,"text":{$nbr_days_pdfvalue}},
				
				
			{"hidden":"{$item_hide_grid_field_label2}","fontSize":14,"bold":true,"text":"{$jslabel flights nbr_days }"},
				
		  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field67}
																			{BEGIN cellblock_grid_cell_field71}
{
	cellId: 'cell_field71',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field71}
																			{BEGIN cellblock_grid_cell_field70}
{
	cellId: 'cell_field70',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field70}
																			{BEGIN cellblock_grid_cell_field72}
{
	cellId: 'cell_field72',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'center',
  },

{END cellblock_grid_cell_field72}
											],
				{END row_grid_6}
								{BEGIN row_grid_7}
				[
												{BEGIN cellblock_grid_cell_field25}
{
	cellId: 'cell_field25',
	col:0,
	row:0,
			style: 'cell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_cell_field25}
			colSpan: {$colspan_grid_cell_field25},
			{END colspan_grid_cell_field25}
		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
          "alignment": 'left',
  },

{END cellblock_grid_cell_field25}
																		{ 
				cellId: 'cell_field25',
				row:  0,
				col:  1,
				text: ''
			},
														{ 
				cellId: 'cell_field25',
				row:  0,
				col:  2,
				text: ''
			},
														{ 
				cellId: 'cell_field25',
				row:  0,
				col:  3,
				text: ''
			},
														{ 
				cellId: 'cell_field25',
				row:  0,
				col:  4,
				text: ''
			},
														{ 
				cellId: 'cell_field25',
				row:  0,
				col:  5,
				text: ''
			},
														{ 
				cellId: 'cell_field25',
				row:  0,
				col:  6,
				text: ''
			},
							],
				{END row_grid_7}
										]
						}
					}
				]]
			}
		},
	{END grid_vrecord}
	{END grid_record}
	]
,
	{END grid_row}
	
									]
			
			}
		},
		{END body}
	]
}
