
// main buildings object
var buildingsobject = {
	'forest': {
		'key': '1',
		'loukey': '.',
		'loufkey' : 'a',
		'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': ':',
		'loufkey' : 'b',
		'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': ',',
		'loufkey' : 'c',
		'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': ';',
		'loufkey' : 'd',
		'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',
		'loufkey' : 't',
		'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',
		'loufkey' : '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',
		'loufkey': '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',
		'loufkey' : '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',
		'loufkey': '5',
		'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',
		'loufkey' : 'e',
		'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',
		'loufkey': 'k',
		'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',
		'loufkey' : 'l',
		'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',
		'loufkey': 'm',
		'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',
		'loufkey' : 'n',
		'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',
		'loufkey': 'j',
		'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',
		'loufkey' : 'z',
		'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',
		'loufkey': '1',
		'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',
		'loufkey' : 'o',
		'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',
		'loufkey' : 'p',
		'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',
		'loufkey': 's',
		'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',
		'loufkey' : 'q',
		'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',
		'loufkey' : 'w',
		'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',
		'loufkey': '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': 4
		}
	},
	'shipyard': {
		'key': 'y',
		'loukey': 'v',
		'loufkey' : 'y',
		'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',
		'loufkey' : 'u',
		'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',
		'loufkey' : 'v',
		'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',
		'loufkey' : 'r',
		'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'
};
// lou-f 
var loufhotkeys = {
	'a': 'forest',
	'b': 'stone',
	'c': 'iron',
	'd': 'lake',
	't': "port",
	'2': 'foresters',
	'3': 'stonemine',
	'4': 'ironmine',
	'5': 'farm',
	'e': 'villa',
	'k': 'sawmill',
	'l': 'masons',
	'm': 'smelter',
	'n': 'grainmill',
	'j': 'forum',
	'z': 'storehouse',
	'1': 'hide',
	'0': 'cabin',
	'p': 'barracks',
	's': 'guardhouse',
	'q': 'arena',
	'w': 'academy',
	'x': 'castle',
	'y': 'shipyard',
	'u': 'stable',
	'v': 'blacksmith',
	'r': 'sorctower'
};

var trooptype= {
	
  	'Guard' :{
		'troopnum' : 0,
        'name':'Guards',
        'buildstats':{
            'Foodcost': 2,
            'wood': 100,
            'stone': 0,
            'iron':0,
			'gold':0
        },
        'otherstats':{
            'unitslots':0,
            'carrycapacity':0,
            'transportcapacity':0,
        },
			'militarystats':{
            'enlistmentspeed':50*100,
            'attack':10,
            'infantrydef':10,
            'calvarydef':10,
			'mysticdef':10,
            'artillerydef':10,
            'citydamage':0,

        }
    },
    'Ballista': {
		'troopnum': '1',
		'name':'Ballista',
		'buildstats':{
			'Foodcost': 25,
			'wood': 400,
			'stone': 0,
			'iron':600,
			'gold':0
		},
		'otherstats':{
			'unitslots':10,
			'carrycapacity':0,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':3500*100,
			'attack':50,
			'infantrydef':200,
			'calvarydef':100,
			'mysticdef':200,
			'artillerydef':400,
			'citydamage':0

		}
	},
	'Ranger' :{
		'troopnum': '2',
		'name':'Ranger',
		'buildstats':{
			'Foodcost': 3,
			'wood': 160,
			'stone': 0,
			'iron':0,
			'gold':0
			
		},
		'otherstats':{
			'unitslots':1,
			'carrycapacity':10,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':250*100,
			'attack':30,
			'infantrydef':40,
			'calvarydef':10,
			'mysticdef':25,
			'artillerydef':15,
			'citydamage':0

		}
	},
	'Triari':{
		'troopnum': '3',
		'name':'Triari',
		'buildstats':{
			'Foodcost': 3,
			'wood':0,
			'stone': 0,
			'iron':140,
			'gold':40
			
		},
		'otherstats':{
			'unitslots':1,
			'carrycapacity':20,
			'transportcapacity':0
		},
    'militarystats':{
			'enlistmentspeed':300*100,
			'attack':10,
			'infantrydef':30,
			'calvarydef':50,
			'mysticdef':20,
			'artillerydef':15,
			'citydamage':0

		}
	},
	'Priestess':{
		'troopnum': '4',
		'name':'Priestess',
		'buildstats':{
			'Foodcost': 3,
			'wood': 0,
			'stone': 0,
			'iron':90,
			'gold':100
			
		},
		'otherstats':{
			'unitslots':1,
			'carrycapacity':10,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':350*100,
			'attack':25,
			'infantrydef':20,
			'calvarydef':30,
			'mysticdef':50,
			'artillerydef':10,
			'citydamage':0

		}
	},
	'Vanquisher':{
		'troopnum': '5',
		'name':'Vanquisher',
		'buildstats':{
			'Foodcost': 6,
		   	'wood': 0,
			'stone': 0,
			'iron':150,
			'gold':0
			
		},
		'otherstats':{
			'unitslots':1,
			'carrycapacity':10,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':200*100,
			'attack':50,
			'infantrydef':15,
			'calvarydef':12,
			'mysticdef':10,
			'artillerydef':15,
			'citydamage':0

		}
	},
	'Sorcerer':{
		'troopnum': '6',
		'name':'Sorcerer',
		'buildstats':{
			'Foodcost': 5,
		   	'wood': 0,
			'stone': 0,
			'iron':50,
			'gold':150
			
		},
		'otherstats':{
			'unitslots':1,
			'carrycapacity':5,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':600*100,
			'attack':70,
			'infantrydef':15,
			'calvarydef':10,
			'mysticdef':30,
			'artillerydef':15,
			'citydamage':0

		}
	},
	'Scout':{
		'troopnum': '7',
		'name':'Scout',
		'buildstats':{
			'Foodcost': 5,
		   	'wood': 0,
			'stone': 0,
			'iron':40,
			'gold':120
			
		},
		'otherstats':{
			'unitslots':2,
			'carrycapacity':0,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':300*100,
			'attack':10,
			'infantrydef':10,
			'calvarydef':10,
			'mysticdef':10,
			'artillerydef':10,
			'citydamage':0

		}
	},
	'Arbalist':{
		'troopnum': '8',
		'name':'Arbalist',
		'buildstats':{
			'Foodcost': 10,
		   	'wood': 150,
			'stone': 0,
			'iron':0,
			'gold':200
			
		},
		'otherstats':{
			'unitslots':2,
			'carrycapacity':15,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':600*100,
			'attack':40,
			'infantrydef':40,
			'calvarydef':90,
			'mysticdef':30,
			'artillerydef':40,
			'citydamage':0

		}
	},
	'Praetor':{
		'troopnum': '9',
		'name':'Praetor',
		'buildstats':{
			'Foodcost': 15,
		   	'wood': 0,
			'stone': 0,
			'iron':200,
			'gold':160
			
		},
		'otherstats':{
			'unitslots':2,
			'carrycapacity':20,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':700*100,
			'attack':60,
			'infantrydef':50,
			'calvarydef':20,
			'mysticdef':90,
			'artillerydef':40,
			'citydamage':0

		}
	},
	'Horseman':{
		'troopnum': '10',
		'name':'Horseman',
		'buildstats':{
			'Foodcost': 25,
		   	'wood': 0,
			'stone': 0,
			'iron':250,
			'gold':100
			
		},
		'otherstats':{
			'unitslots':2,
			'carrycapacity':15,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':500*100,
			'attack':90,
			'infantrydef':40,
			'calvarydef':30,
			'mysticdef':20,
			'artillerydef':40,
			'citydamage':0

		}
	},
	'Druid':{
		'troopnum': '11',
		'name':'Druid',
		'buildstats':{
			'Foodcost': 20,
		   	'wood': 0,
			'stone': 0,
			'iron':100,
			'gold':350
			
		},
		'otherstats':{
			'unitslots':2,
			'carrycapacity':10,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':1300*100,
			'attack':120,
			'infantrydef':30,
			'calvarydef':20,
			'mysticdef':50,
			'artillerydef':40,
			'citydamage':0

		}
	},
	'Ram':{
		'troopnum': '12',
		'name':'Ram',
		'buildstats':{
			'Foodcost': 50,
		   	'wood': 500,
			'stone': 0,
			'iron':300,
			'gold':0
			
		},
		'otherstats':{
			'unitslots':10,
			'carrycapacity':0,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':2500*100,
			'attack':50,
			'infantrydef':20,
			'calvarydef':20,
			'mysticdef':20,
			'artillerydef':50,
			'citydamage':250

		}
	},
	'Scorpion':{
		'troopnum': '13',
		'name':'Scorpion',
		'buildstats':{
			'Foodcost': 50,
		   	'wood': 300,
			'stone': 600,
			'iron':200,
			'gold':0
			
		},
		'otherstats':{
			'unitslots':10,
			'carrycapacity':0,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':4000*100,
			'attack':150,
			'infantrydef':100,
			'calvarydef':100,
			'mysticdef':200,
			'artillerydef':50,
			'citydamage':250

		}
	},
	'Galley':{
		'troopnum': '14',
		'name':'Galley',
		'buildstats':{
			'Foodcost': 500,
		   	'wood': 15000,
			'stone': 0,
			'iron':5000,
			'gold':5000
			
		},
		'otherstats':{
			'unitslots':100,
			'carrycapacity':1000,
			'transportcapacity':500
		},
		'militarystats':{
			'enlistmentspeed':40000*100,
			'attack':3000,
			'infantrydef':4000,
			'calvarydef':4000,
			'mysticdef':2000,
			'artillerydef':2000,
			'citydamage':0

		}
	},
	'Stinger':{
		'troopnum': '15',
		'name':'Stinger',
		'buildstats':{
			'Foodcost': 300,
		   	'wood': 6000,
			'stone': 0,
			'iron':4000,
			'gold':2000
			
		},
		'otherstats':{
			'unitslots':100,
			'carrycapacity':1500,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':25000*100,
			'attack':1200,
			'infantrydef':4500,
			'calvarydef':4500,
			'mysticdef':2000,
			'artillerydef':6000,
			'citydamage':0

		}
	},
	'Warship':{
		'troopnum': '16',
		'name':'Warship',
		'buildstats':{
			'Foodcost': 2500,
	   		'wood': 30000,
			'stone': 0,
			'iron':10000,
			'gold':20000
			
		},
		'otherstats':{
			'unitslots':400,
			'carrycapacity':3000,
			'transportcapacity':0
		},
		'militarystats':{
			'enlistmentspeed':80000*100,
			'attack':12000,
			'infantrydef':5000,
			'calvarydef':5000,
			'mysticdef':2500,
			'artillerydef':6000,
			'citydamage':4000

		}
	},
	'Senator':{
		'troopnum': '17',
		'name':'Senator',
		'buildstats':{
			'Foodcost': 100,
   			'wood': 0,
			'stone': 0,
			'iron':50000,
			'gold':100000
		
		},
		'otherstats':{
			'unitslots':1,
			'carrycapacity':0,
			'transportcapacity':0
		},
	  	'militarystats':{
			'enlistmentspeed':60000*100,
			'attack':10,
			'infantrydef':100,
			'calvarydef':50,
			'mysticdef':20,
			'artillerydef':10,
			'citydamage':0

		}
	}
};

