var myEvents = [
{'id':3259,'gmid':21,'date':'1130','title':'Canterbury choir dedication','dets':'A new choir started at Canterbury Cathedral in 1093 by Prior Ernulf and completed by Prior Conrad was dedicated in the presence of Henry I, David of Scotland and many English Earls.' },
{'id':3071,'gmid':45,'date':'Feb 1136','title':'Treaty of Durham','dets':'A peace treaty signed by King David of Scotland and King Stephen. The Scottish King had invaded northern England in January and had captured many of the major towns including Carlisle and Newcastle. In response, Stephen had raised a large army and marched north to Durham. King David agreed to talk rather than fight and an arrangement was agreed allowing the Scots to keep Carlisle in return fo...' },
{'id':1298,'gmid':329,'date':'1138','title':'Calder Abbey attacked by the Scots','dets':'Monks of the Savigny order were attacked by the Scots under the control of David I, and were forced to return to Furness Abbey.' },
{'id':382,'gmid':244,'date':'Aug 22 1138','title':'Battle of \'the Standard\'','dets':'David I of Scotland was defeated at the battle of \'the Standard\' in Yorkshire. The name for the battle came from the banners that were carried into battle by the English.' },
{'id':1260,'gmid':197,'date':'Jun 1141','title':'Matilda enters London','dets':'Matilda and her supporters entered London for her coronation. Her supporters included David I, king of the Scots. Geoffrey de Mandeville who controlled the Tower of London, abandoned his king as he saw Matilda had the upper hand. He joined her side and offered her the Tower of London. He did this to ensure he kept the Earldom of Essex which made him one of the most powerful barons of the time.' },
{'id':1370,'gmid':328,'date':'1142','title':'Dundrennan Abbey founded','dets':'David I, King of the Scots may have been involved in the foundation of this Cistercian abbey in Scotland. The founding monks probably came from Rievaulx.' },
{'id':855,'gmid':25,'date':'May 22 1149','title':'Henry (II) knighted by David','dets':'Henry the future king of England (Henry II) was knighted at Carlisle by David, King of the Scots.' },
{'id':1379,'gmid':334,'date':'1150','title':'Kinloss Abbey founded','dets':'Another Cistercian abbey helped by David I, King of the Scots. The first monks came from Melrose.' },
{'id':1549,'gmid':305,'date':'Jun 1153','title':'Malcolm IV becomes King of the Scots','dets':'After the death of David I Malcolm became king. He was crowned at Scone.' },
];

var myMarkers = [
{'gmid':21,'latitude': 51.2796, 'longitude': 1.0829, 'loc': 'Canterbury Cathedral', 'typ': 0 },
{'gmid':45,'latitude': 54.7751, 'longitude': -1.5776, 'loc': 'Durham Castle', 'typ': 0 },
{'gmid':329,'latitude': 54.44402, 'longitude': -3.46494, 'loc': 'Calder Abbey', 'typ': 0 },
{'gmid':244,'latitude': 54.37354, 'longitude': -1.44734, 'loc': 'Battle of the Standard', 'typ': 0 },
{'gmid':197,'latitude': 51.50667, 'longitude': -0.106277, 'loc': 'London', 'typ': 0 },
{'gmid':328,'latitude': 54.808936, 'longitude': -3.946668, 'loc': 'Dundrennan Abbey', 'typ': 0 },
{'gmid':25,'latitude': 54.8948, 'longitude': -2.9389, 'loc': 'Carlisle Cathedral', 'typ': 0 },
{'gmid':334,'latitude': 57.63371, 'longitude': -3.566185, 'loc': 'Kinloss Abbey', 'typ': 0 },
{'gmid':305,'latitude': 56.4179, 'longitude': -3.404037, 'loc': 'Scone', 'typ': 0 },
];

