guiTypes = {

	containerWindowType = {
		name = "technology_idea_entry"
		size = { width = 64 height = 64 }
		clipping = no

		background = {
			name = "Background"
			spriteType = "GFX_tech_idea_bg"
		}

		iconType = {
			name = "idea_traits"
			position = { x = 43 y = 46 }
			spriteType = "GFX_idea_traits_strip"
			centerposition = yes
			alwaystransparent = yes
			frame = 1
		}
	}

	positionType = { #X is icon scale with 100 being 1 Y is a position offset
		name = "technology_sharing_offset"
		position = { x = 100 y = 0 }
	}

	positionType = { #X is icon scale with 100 being 1 Y is a position offset
		name = "technology_sharing_faction_offset"
		position = { x = 75 y = -5 }
	}

	containerWindowType = {
		name = "technology_sharing_entry"
		size = { width = 64 height = 64 }
		clipping = no

		background = {
			name = "Background"
			spriteType = "GFX_commonwealth_research"
		}
	}

	containerWindowType = {
		name = "countrytechnologyview"
		position = { x=-606 y=78} #78
		show_position = { x=-6 y =78 } #78
		show_animation_type = decelerated
		hide_animation_type = accelerated
		animation_time = 300
		size = { width=550 height=100%% }
		margin = { top = 0 bottom = -5 }
		clipping = no

		#hide_sound = menu_close_window
		show_sound = menu_open_window

		background = {
			name = "Background"
			quadTextureSprite ="GFX_tiled_plain_bg"
		}


		iconType ={
			name ="production_header_bg"
			spriteType = "GFX_header_bg"
			position = { x= 5 y = 07 }
			Orientation = "UPPER_LEFT"
		}

		instantTextboxType = {
			name = "research_title"
			position = { x = 45 y = 8 }

			font = "hoi_36header"
			borderSize = {x = 0 y = 0}
			text = "RESEARCH_RESEARCH"
			maxWidth = 240
			maxHeight = 20
			format = left
		}

		containerWindowType = {
			name = "tabs"
			position = { x=0 y=44 }
			size = { width = 100%% height = 30 }

			buttonType = {
				name = "research_slots_tab"
				position = { x = -250 y = -15 }
				quadTextureSprite = "GFX_tab_large"
				text = "RESEARCH_TAB_SLOTS"
				buttonFont = "hoi_20b"
				frame = 1
				clicksound = click_default
				Orientation = "CENTER"
			}

			buttonType = {
				name = "facilities_tab"
				position = { x = 0 y = -15 }
				quadTextureSprite = "GFX_tab_large"
				buttonFont = "hoi_20b"
				frame = 2
				text = "RESEARCH_TAB_FACILITIES"
				clicksound = click_default
				Orientation = "CENTER"
			}
		}

		containerWindowType = {
			name ="research_slots"
			position = { x=0 y=85 }
			size = { width=550 height=-1 }
			verticalScrollbar = "right_vertical_slider"
			scroll_wheel_factor = 40
			smooth_scrolling = yes
			margin = { top = 0 bottom = 13 }

			background = {
				name = "Background"
				quadTextureSprite ="GFX_tiled_window2_1b_border"
			}

			background = {
				name = "Background"
				quadTextureSprite ="GFX_tiled_generic_overlay_bg1"
			}

			containerWindowType = {
				name ="slots_window"
				position = { x = 0 y=140 }
				size = { width=550 height=-1 }
				verticalScrollbar = "right_vertical_slider"
				scroll_wheel_factor = 40
				smooth_scrolling = yes

				background = {
					name = "Background"
					spriteType = "GFX_tiled_window_transparent"
				}

				gridboxType = {
					name = "research_slots_grid"
					position = { x =15 y=0 }
					size = { width = -20 height = 100%% }
					slotsize = { width = 500 height = 100 }
					format = "UPPER_LEFT"
				}
			}

			containerWindowType = {
				name = "research_win_top"
				position = { x = 1 y = 0 }
				size = { width = 100% height = 80% }

				background = {
					name = "Background"
					spriteType ="GFX_research_top_win"
				}

				iconType = {
					name = "focus_bonuses_bg"
					position = { x = 263 y = 14 }
					spriteType = "GFX_win_header_short_right"
				}

				iconType = {
					name = "focus_bonuses"
					position = { x = 167 y = 108 }
					spriteType = "GFX_focus_bonuses_icon"
				}

				instantTextboxType = {
					name = "limited_research_bonus_text"
					position = { x = 37 y = 110 }
					font = "hoi_18mbs"
					borderSize = {x = 0 y = 0}
					text = "LIMITED_RESEARCH_BONUS"
					maxWidth = 130
					maxHeight = 20
					format = left
					fixedsize = yes
				}

				instantTextboxType = {
					name = "limited_research_bonus_value"
					position = { x = 198 y = 110 }
					font = "hoi_18mbs"
					borderSize = {x = 0 y = 0}
					text = "999"
					maxWidth = 50
					maxHeight = 20
					format = left
				}

				iconType = {
					name = "research_speed_icon"
					position = { x = 435 y = 13 }
					spriteType = "GFX_research_speed_icon"
				}

				instantTextboxType = {
					name = "research_speed_text"
					position = { x = 295 y = 15 }
					font = "hoi_18mbs"
					borderSize = {x = 0 y = 0}
					text = "RESEARCH_SPEED"
					maxWidth = 125
					maxHeight = 20
					format = left
					fixedsize = yes
				}

				instantTextboxType = {
					name = "research_speed_value"
					position = { x = 460 y = 16 }
					font = "hoi_18mbs"
					borderSize = {x = 0 y = 0}
					text = "999"
					maxWidth = 50
					maxHeight = 20
					format = right
				}

				gridboxType = {
					name = "research_groups_grid"
					position = { x = 328 y = 5 }
					size = { width = 192 height = 128 }
					slotsize = { width = 64 height = 64 }
					format = "RIGHT"
					max_slots_horizontal = 1
					max_slots_vertical = 8
				}
			}
		}

		containerWindowType = {
			name ="facilities"
			position = { x=0 y=80 }
			size = { width=550 height=-5 }

			# containerWindowType facilities_view (cf. facility_roster.gui) is embedded by code here
		}



		buttonType = {
			name = "close_button"
			position = { x = -42 y = 9 }
			quadTextureSprite ="GFX_closebutton"
			buttonFont = "Main_14_black"
			shortcut = "ESCAPE"
			Orientation = "UPPER_RIGHT"
			clicksound = click_close
			pdx_tooltip = "CLOSE"
		}
	}

	containerWindowType = {
		name = "research_slot_entry"
		position = { x=0 y=0 }
		size = { width=500 height= 71 }
		clipping = no

		background = {
			name = "Background"
			quadTextureSprite ="GFX_research_line_bg"
			clicksound = click_default
		}

		iconType = {
			name = "empty_research_slot_glow"
			position = { x=12 y=15 }
			spriteType = "GFX_empty_research_slot_glow"
		}

#		iconType = {
#			name = "folder"
#			position = { x=12 y=12 }
#			spriteType = "GFX_research_folder_strip"
#			alwaystransparent = yes
#		}

		iconType = {
			name = "designer"
			position = { x=450 y=49 }
			spriteType = "GFX_research_folder_strip"
			centerposition = yes
		}

		iconType = {
			name = "technology"
			position = { x=252 y=49 }
			spriteType = "GFX_research_folder_strip"
			centerposition = yes
			alwaystransparent = yes
		}

		iconType = {
			name = "equipment"
			position = { x = 328 y = 10 }
			spriteType = "GFX_land_equipment_role_icons"
			frame = 1
		}

		iconType = {
			name = "carrier_fighter"
			position = { x = 349 y = 31 }
			spriteType = "GFX_airwing_carrier_icon"
		}

		instantTextboxType = {
			name = "title"
			position = { x = 30 y = 6 }

			font = "hoi_18mbs"
			borderSize = {x = 0 y = 0}
			maxWidth = 250
			maxHeight = 20
			format = left
		}

		instantTextboxType = {
			name = "year"
			position = { x = 38 y = 43 }

			font = "hoi_18mbs"
			borderSize = {x = 0 y = 0}
			maxWidth = 50
			maxHeight = 22
			format = left
		}

		instantTextboxType = {
			name = "eta"
			position = { x = 348 y = 6 }

			font = "hoi_18mbs"
			borderSize = {x = 0 y = 0}
			maxWidth = 125
			maxHeight = 20
			format = right
		}

		iconType = {
			name = "research_progressbar_frame_icon"
			spriteType = "GFX_research_progressbar_frame"
			position = { x=385 y=26 } #62 #79
		}

		iconType = {
			name = "research_progressbar"
			spriteType = "Gfx_research_progressbar"
			position = { x=387 y=28 }	#65 #81
		}
	}
}
