var myEvents = [
{'id':1264,'gmid':3,'date':'1138','title':'Arundel Castle siege','dets':'Matilda was given refuge by William de Albini at Arundel Castle. Stephen built siege works around the castle in response.' },
{'id':2182,'gmid':81,'date':'1138','title':'Ludlow castle siege','dets':'Ludlow Castle was captured on behalf of Matilda in 1138 and King Stephen besieged the castle in an attempt to regain it. During the siege the King bravely saved Prince Henry of Scotland from being injured by a grappling hook thrown from the castle.' },
{'id':3095,'gmid':72,'date':'1139','title':'Leeds Castle siege','dets':'King Stephen besieged Leeds Castle which was being held against him by supporters of Matilda. The castle fell to the King and he took control of it.' },
{'id':3096,'gmid':216,'date':'Dec 1140','title':'Stephen besieges Lincoln','dets':'Lincoln, held by Matilda\'s supporters, was besieged by King Stephen. The siege would continue until February the next year.' },
{'id':875,'gmid':216,'date':'Feb 2 1141','title':'Battle of Lincoln','dets':'Matilda\'s forces defeated and captured King Stephen at the battle of Lincoln. Stephen was held captive until September when Matilda\'s forces were defeated at Winchester.' },
{'id':1259,'gmid':209,'date':'Apr 1141','title':'Matilda is elected Queen','dets':'After Stephen had been captured at Lincoln, Matilda was elected as Queen of England at Winchester. Her new position as ruler of England was not to last for long' },
{'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':874,'gmid':327,'date':'Sep 14 1141','title':'Rout of Winchester','dets':'Matilda\'s forces were besieging a royalist held castle at Wolvesey near Winchester and were attacked and defeated by a royalist relief army. King Stephen who was being held captive at the time was exchanged for Robert, earl of Gloucester one of Matilda\'s supporters who was captured in the defeat.' },
{'id':3097,'gmid':239,'date':'Oct 1142','title':'Oxford siege and Matilda\'s escape','dets':'Oxford was besieged by King Stephen trapping Matilda inside the city. But just before Christmas Matilda managed to escape across the snow and ice of the frozen Thames dressed in white so that she would not be seen. Matilda escaped to Wallingford Castle and Oxford fell to the King.' },
{'id':1030,'gmid':331,'date':'1145','title':'Stephen takes Farringdon Castle','dets':'King Stephen captures the castle at Farringdon from Matilda.' },
];

var myMarkers = [
{'gmid':3,'latitude': 50.8562, 'longitude': -0.5536, 'loc': 'Arundel Castle', 'typ': 0 },
{'gmid':81,'latitude': 52.36742, 'longitude': -2.72339, 'loc': 'Ludlow Castle', 'typ': 0 },
{'gmid':72,'latitude': 51.2493, 'longitude': 0.6294, 'loc': 'Leeds Castle', 'typ': 0 },
{'gmid':216,'latitude': 53.23429, 'longitude': -0.540707, 'loc': 'Lincoln Castle', 'typ': 0 },
{'gmid':209,'latitude': 51.06482, 'longitude': -1.313225, 'loc': 'Winchester', 'typ': 0 },
{'gmid':197,'latitude': 51.50667, 'longitude': -0.106277, 'loc': 'London', 'typ': 0 },
{'gmid':327,'latitude': 51.059019, 'longitude': -1.310136, 'loc': 'Wolvesey Castle', 'typ': 0 },
{'gmid':239,'latitude': 51.75227, 'longitude': -1.25582, 'loc': 'Oxford', 'typ': 0 },
{'gmid':331,'latitude': 51.6593, 'longitude': -1.57204, 'loc': 'Faringdon Castle', 'typ': 0 },
];

