// This was an extraordinary bugger to adapt from the original HTML, but the end product is an Include file without needing server side support for includes.
// The next step is to populate the entire thing with variables. Baby steps man, baby steps.



var footerTopElement = Builder.node('div', { id: 'homeBottomBanner'},
	[ Builder.node('div', { id: 'homeBottomBannerName' }, 
		[ Builder.node('h1', [ Builder.node('span', { className: 'mainTitle' }, 'Departures')], 'Links to more of X-Plane. Instructions. Austin\'s Adventures.')]
		),
		Builder.node('div', { id: 'homeBottomBannerPullquote' },
			[ Builder.node('p', '')
		])
	]
);
	
var footerBottomElement = Builder.node('div', { id: 'homeBottomContent'}, 
	[ 
		Builder.node('div', 
			[ 
				Builder.node('div', { id: 'homeBottomTile1', className: 'homeBottomTileRank1', style: 'background: url(images/bg_footer_desktop_box.jpg) no-repeat; background-position: left top;'}, 
					[ 
						Builder.node('h1', [ Builder.node('a', { href: 'index_desktop.html' }, 'X-Plane Desktop')] ), Builder.node('p', 'The world\'s most powerful flight simulator.')
					]
				), 
				Builder.node('div', { id: 'homeBottomTile2', className: 'homeBottomTileRank2', style: 'background: url(images/bg_footer_faa_dark.jpg) no-repeat; background-position: left top;'}, 
					[ 
						Builder.node('h1',  [Builder.node('a',{ href: 'index_pro.html' }, 'FAA-Certified X-Plane')] ), Builder.node('p', 'X-Plane has been approved for a wide range of FAA certification levels.')
					]
				), 
				Builder.node('div', { id: 'homeBottomTile3' , className: 'homeBottomTileRank3', style: 'background: url(images/bg_footer_pireps.jpg) no-repeat; background-position: left top;'}, 
					[ 
						Builder.node('h1', [ Builder.node('a', { href: 'pg_PIREPS.html' }, 'PIREPS')] ),  Builder.node('p', 'X-Plane Developers Blogs.')
					]
				), 
				Builder.node('div', { id: 'homeBottomTile3' , className: 'homeBottomTileRank3', style: 'background: url(images/bg_footer_mobile_small.jpg) no-repeat; background-position: left top;'},
					[ 
						Builder.node('h1', [ Builder.node('a', { href: 'pg_instructions_mobile.html' }, 'X-Plane Mobile Basics')] ), Builder.node('p', 'Learn to fly here.')
					]
				) 
		])
	]
);

$('homeBottom').appendChild(footerTopElement);
$('homeBottom').appendChild(footerBottomElement);