
// main buildings object
var buildingsobject = {
	'forest': {
		'key': '1',
		'loukey': '.',
		'name': 'Forest Node',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -81px -54px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -150px -100px',
		'stats': {
			'woodresnodebonus': 45
		}
	},
	'stone': {
		'key': '2',
		'loukey': ':',
		'name': 'Stone Node',
		'background': 'url("images/buildings/building_set_small.png") no-repeat 0 -54px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat 0 -100px',
		'stats': {
			'stoneresnodebonus': 45
		}
	},
	'iron': {
		'key': '3',
		'loukey': ',',
		'name': 'Iron Node',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -81px -513px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -150px -950px',
		'stats': {
			'ironresnodebonus': 45
		}
	},
	'lake': {
		'key': '4',
		'loukey': ';',
		'name': 'Lake Node',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -54px -54px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -100px -100px',
		'stats': {
			'foodresnodebonus': 45
		}
	},
	'port': {
		'key': 'o',
		'loukey': 'r',
		'name': 'Port',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -54px -297px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -100px -550px',
		'stats': {
			'tradeships': 30,
			'goldtaxbonus': 50
		}
	},
	'foresters': {
		'key': 'f',
		'loukey': '2',
		'name': 'Foresters Hut',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -27px -27px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -50px -50px',
		'stats': {
			'woodproduction': 300
		}
	},
	'stonemine': {
		'key': 's',
		'loukey': '3',
		'name': 'Stone Mine',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -81px -27px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -150px -50px',
		'stats': {
			'stoneproduction': 300
		}
	},
	'ironmine': {
		'key': 'i',
		'loukey': '4',
		'name': 'Iron Mine',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -54px -135px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -100px -250px',
		'stats': {
			'ironproduction': 300
		}
	},
	'farm': {
		'key': 'a',
		'loukey': '1',
		'name': 'Farm Estate',
		'background': 'url("images/buildings/building_set_small.png") no-repeat 0 -27px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat 0 -50px',
		'stats': {
			'foodproduction': 300
		}
	},
	'villa': {
		'key': 'v',
		'loukey': 'u',
		'name': 'Villa',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -54px -243px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -100px -450px',
		'stats': {
			'goldproduction': 400
		}
	},
	'sawmill': {
		'key': 'l',
		'loukey': 'l',
		'name': 'Sawmill',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -27px -108px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -50px -200px',
		'stats': {
			'woodprocessingbonus': 75,
			'woodstoragebonus': 200
		}
	},
	'masons': {
		'key': 'h',
		'loukey': 'a',
		'name': 'Masons Hut',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -81px -108px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -150px -200px',
		'stats': {
			'stoneprocessingbonus': 75,
			'stonestoragebonus': 200
		}
	},
	'smelter': {
		'key': 'z',
		'loukey': 'd',
		'name': 'Smelter',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -54px -216px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -100px -400px',
		'stats': {
			'ironprocessingbonus': 75,
			'ironstoragebonus': 200
		}
	},
	'grainmill': {
		'key': 'g',
		'loukey': 'm',
		'name': 'Grain Mill',
		'background': 'url("images/buildings/building_set_small.png") no-repeat 0 -135px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat 0 -250px',
		'stats': {
			'foodprocessingbonus': 75,
			'foodstoragebonus': 200
		}
	},
	'forum': {
		'key': 'm',
		'loukey': 'p',
		'name': 'Forum',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -54px -27px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -100px -50px',
		'stats': {
			'tradecarts': 200,
			'goldtaxbonus': 20
		}
	},
	'storehouse': {
		'key': 'r',
		'loukey': 's',
		'name': 'Storehouse',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -27px -135px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -50px -250px',
		'stats': {
			'storage': 200000
		}
	},
	'hide': {
		'key': 'q',
		'loukey': 'h',
		'name': 'Hideaway',
		'background': 'url("images/buildings/building_set_small.png") no-repeat 0 -243px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat 0 -450px',
		'stats': {
			'reshidden': 15000
		}
	},
	'cabin': {
		'key': 'c',
		'loukey': 'c',
		'name': 'Cabin',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -81px 0',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -150px 0',
		'stats': {
			'constructspeed': 100,
			'cabinproductionbonus': 30
		}
	},
	'barracks': {
		'key': 'b',
		'loukey': 'b',
		'name': 'Barracks',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -54px 0',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -100px 0',
		'stats': {
			'armysize': 1000,
			'enlistmentspeedbonus': 25
		}
	},
	'guardhouse': {
		'key': 'u',
		'loukey': 'k',
		'name': 'Guardhouse',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -27px -405px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -50px -750px',
		'stats': {
			'guardenlistmentspeed': 150
		}
	},
	'arena': {
		'key': 't',
		'loukey': 'g',
		'name': 'Training Arena',
		'background': 'url("images/buildings/building_set_small.png") no-repeat 0 -270px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat 0 -500px',
		'stats': {
			'infenlistmentspeed': 150
		}
	},
	'academy': {
		'key': 'y',
		'loukey': 'z',
		'name': 'Academy',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -81px -243px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -150px -450px',
		'stats': {
			'sacredenlistmentspeed': 150
		}
	},
	'castle': {
		'key': 'x',
		'loukey': 'x',
		'name': 'Castle',
		'background': 'url("images/buildings/building_set_small.png") no-repeat 0 -162px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat 0 -300px',
		'stats': {
			'armysizeexpon': armysize*4
		}
	},
	'shipyard': {
		'key': 'y',
		'loukey': 'v',
		'name': 'Shipyard',
		'background': 'url("images/buildings/building_set_small.png") no-repeat 0 -324px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat 0 -600px',
		'stats': {
			'navyenlistmentspeed': 150
		}
	},
	'stable': {
		'key': 'e',
		'loukey': 'e',
		'name': 'Stable',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -81px -135px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -150px -250px',
		'stats': {
			'cavenlistmentspeed': 150
		}
	},
	'blacksmith': {
		'key': 'k',
		'loukey': 'y',
		'name': 'Blacksmith',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -81px -378px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -150px -700px',
		'stats': {
			'artienlistmentspeed': 150
		}
	},
	'sorctower': {
		'key': 'w',
		'loukey': 'j',
		'name': 'Sorcerers Tower',
		'background': 'url("images/buildings/building_set_small.png") no-repeat -27px -378px',
		'medbackground': 'url("images/buildings/building_set_medium.png") no-repeat -50px -700px',
		'stats': {
			'mysticenlistmentspeed': 150
		}
	}

}

// reference object for hotkeys
var hotkeys = {
	1: 'forest',
	2: 'stone',
	3: 'iron',
	4: 'lake',
	o: "port",
	f: 'foresters',
	s: 'stonemine',
	i: 'ironmine',
	a: 'farm',
	v: 'villa',
	l: 'sawmill',
	h: 'masons',
	z: 'smelter',
	g: 'grainmill',
	m: 'forum',
	r: 'storehouse',
	q: 'hide',
	c: 'cabin',
	b: 'barracks',
	u: 'guardhouse',
	t: 'arena',
	y: 'academy',
	x: 'castle',
	p: 'shipyard',
	e: 'stable',
	k: 'blacksmith',
	w: 'sorctower'
}

// reference object for lou sharestrings
var louhotkeys = {
	'.': 'forest',
	':': 'stone',
	',': 'iron',
	';': 'lake',
	'r': "port",
	'2': 'foresters',
	'3': 'stonemine',
	'4': 'ironmine',
	'1': 'farm',
	'u': 'villa',
	'l': 'sawmill',
	'a': 'masons',
	'd': 'smelter',
	'm': 'grainmill',
	'p': 'forum',
	's': 'storehouse',
	'h': 'hide',
	'c': 'cabin',
	'b': 'barracks',
	'k': 'guardhouse',
	'g': 'arena',
	'z': 'academy',
	'x': 'castle',
	'v': 'shipyard',
	'e': 'stable',
	'y': 'blacksmith',
	'j': 'sorctower'
}

