// 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')], 'X-Plane news. Case Studies. Partners. 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_iphoneapps.jpg) no-repeat; background-position: left top;'}, 
					[ 
						Builder.node('h1', [ Builder.node('a', { href: 'index_mobile.html' }, 'X-Plane Mobile')] ), Builder.node('p', 'Portable, full featured, and now multiplayer!')
					]
				), 
				Builder.node('div', { id: 'homeBottomTile2', className: 'homeBottomTileRank2', 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: '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_levels.jpg) no-repeat; background-position: left top;'},
					[ 
						Builder.node('h1', [ Builder.node('a', { href: 'pg_levels.html' }, 'Levels of the X-Plane Sim')] ), Builder.node('p', 'Learn what it takes to get an FAA-certifiable sim.')
					]
				) 
		])
	]
);

$('homeBottom').appendChild(footerTopElement);
$('homeBottom').appendChild(footerBottomElement);