-
Notifications
You must be signed in to change notification settings - Fork 41
/
map.js
76 lines (61 loc) · 35.1 KB
/
map.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
var rsr = Raphael('map', '700', '1100');
var regions = [];
// White object to show the borders, dodgy Illustrator work by original artist!
var white_object = rsr.path("M419.137,446.783c0.892-0.921,2.534-1.323,3.485-0.257c7.671,7.738,15.388,15.436,23.105,23.131 c1.154,1.142,2.094,2.564,2.322,4.203c2.421,16.046,4.91,32.087,7.35,48.132c0.896,4.319,2.657,8.391,4.017,12.573 c2.07,6.415,4.283,12.784,6.404,19.183c0.906,3.305,4.029,5.166,6.127,7.663c3.065,2.651,5.453,6.236,9.277,7.883 c9.667,4.787,19.297,9.652,28.96,14.447c1.227,0.59,2.41,1.375,3.115,2.581c5.489,8.758,11.098,17.441,16.628,26.174 c0.859,1.339,1.619,2.767,2.692,3.957c3.176,1.991,6.626,3.508,9.842,5.438c0.024,0.386,0.071,1.159,0.095,1.545 c-2.717,2.088-5.779,3.668-8.505,5.741c7.337,14.406,15.203,28.548,22.719,42.865c0.541,0.829,0.297,1.817,0.254,2.742 c-5.327,0.159-10.593-0.987-15.882-1.476c4.341,5.317,11.026,7.718,16.37,11.798c1.407,1.185,1.907,3.034,2.654,4.648 c3.516,7.828,7.074,15.637,10.609,23.457c1.079,2.21,0.285,4.701,0.197,7.029c-0.381,2.721-0.338,5.515-0.962,8.195 c-1.38,2.235-3.365,4.05-5.069,6.044c-3.816,4.404-7.944,8.543-11.541,13.132c6.52,3.792,13.077,7.548,19.762,11.04 c2.936-6.192,5.344-12.62,8.099-18.892c0.505-1.154,1.326-2.571,2.816-2.336c9.483-0.025,18.968,0.008,28.452-0.014 c1.961-0.03,3.877,0.442,5.792,0.821c5.023,0.888,10.049,1.78,15.062,2.737c1.833,0.311,3.076,1.803,4.473,2.895 c6.201,5.307,12.432,10.578,18.638,15.881c0.897,0.823,2.031,1.619,2.268,2.906c1.33,6.65,2.056,13.41,3.494,20.042 c0.316,2.855,1.057,5.772,0.393,8.636c-1.879,8.668-3.86,17.312-5.784,25.97c-1.203,4.312-1.523,8.936-3.3,13.048 c-6.586,6.839-13.493,13.38-19.956,20.343c1.386,0.566,2.809,1.033,4.21,1.583c-0.149,0.891-0.387,1.795-1.119,2.398 c-2.988,2.957-6.112,5.776-9.203,8.625c-1.333,1.255-3.277,1.193-4.976,1.324c-2.834,0.055-5.657,0.318-8.487,0.366 c0.553,1.266,1.557,2.422,1.506,3.88c0.015,3.166,0.046,6.336-0.018,9.504c-0.041,2.378-2.141,3.903-3.352,5.74 c-2.188,2.652-3.951,5.714-6.467,8.059c-3.627,1.297-7.626,0.711-11.352,1.628c2.447,1.102,5.164,1.333,7.683,2.236 c3.517,1.21,6.978,2.59,10.422,3.999c3.151,1.319,4.901,4.674,7.942,6.086c8.564-1.17,16.974-3.48,25.51-4.92 c1.1-0.328,2.352,0.383,2.176,1.637c-0.66,2.878-2.568,5.373-2.944,8.312c0.564,5.426,2.587,10.629,3.033,16.067 c-0.896,1.244-2.311,1.94-3.568,2.751c-3.469,2.076-6.874,4.254-10.301,6.398c-2.769,1.834-6.18,2.003-9.255,3.033 c-1.221,0.314-1.596,1.673-2.167,2.641c-0.887,1.95-2.097,3.774-2.689,5.848c-0.047,2.282,0.781,4.541,0.306,6.829 c-4.325,0.274-8.556-1.07-12.852-1.079c-3.567,1.798-6.032,5.283-9.654,7.012c-5.28,1.693-10.637,3.147-15.927,4.807 c-2.141,0.575-3.115,2.768-4.49,4.296c-1.724,1.913-2.956,4.359-5.149,5.793c-3.075-0.299-5.891-1.781-8.861-2.557 c-6.921-2.34-13.886-4.545-20.815-6.854c-1.329-0.462-2.763-0.362-4.114-0.095c-9.79,1.966-19.665,3.494-29.451,5.469 c-0.874,1.75-1.458,3.635-2.395,5.357c-0.434,0.888-1.639,1.424-2.508,0.818c-2.985-1.527-5.666-3.58-8.579-5.232 c-0.531-0.333-1.103-0.495-1.718-0.488c-4.831-0.101-9.67,0.294-14.483,0.262c-3.546-1.92-6.402-4.914-9.765-7.141 c0.346,2.79-1.593,5.077-3.596,6.741c-3.471,1.273-7.263,1.418-10.744,2.649c-1.472,1.284-1.549,3.662-3.291,4.684 c-2.633,0.252-5.015-1.378-7.59-1.482c-4.814,2.23-10.251,2.035-15.373,3.053c-0.629,3.059-0.481,6.219-1.119,9.275 c-0.13,0.855-1.198,1.185-1.95,1.073c-7.075-0.77-14.106-1.903-21.176-2.709c-2.729-0.285-5.427-1.06-8.179-0.968 c-1.432,1.653-0.972,4.397-2.565,6.048c-1.025,0.388-1.902-0.414-2.734-0.872c-6.687-4.434-13.351-8.903-20.064-13.294 c-1.451-0.868-3.213-0.82-4.827-1.115c-1.975-0.196-3.98-0.881-5.961-0.432c-3.737,1.211-7.171,3.284-11.041,4.097 c-2.685,0.567-5.34,1.26-8.016,1.867c-3.334,0.413-4.416,4.144-6.951,5.833c-2.003,0.599-4.135,0.521-6.191,0.838 c-1.299,2.97-2.872,5.83-3.974,8.883c-0.592,1.497,1.058,2.739,0.894,4.216c-0.95,1.469-2.564,2.304-3.853,3.439 c1.082,1.266,2.149,2.547,3.131,3.901c-0.913,2.631-1.412,5.588-3.203,7.793c-2.036,1.147-4.429,1.409-6.584,2.282 c-0.19,2.897,1.149,5.841,0.344,8.678c-1.222,0.887-2.783,0.2-4.124,0.046c-3.81-0.895-7.68-1.533-11.46-2.54 c-2.771-1.017-3.368-4.437-5.653-6.033c-3.624-1.101-7.48-1.116-11.138-2.064c-1.011-0.288-1.674-1.15-2.415-1.825 c-1.218,1.135-2.376,2.469-3.988,3.044c-3.198-1.603-4.855-5.167-7.935-6.94c-2.68-0.171-5.387-0.171-8.067-0.003 c-2.32,0.852-3.819,3.226-6.272,3.807c-3.545,0.215-7.055-0.555-10.581-0.81c-0.776-0.021-1.823-0.312-2.28,0.552 c-2.111,3.45-2.808,7.74-5.448,10.854c-2.904,1.081-6.144,0.886-9.034,2.016c-2.064,1.762-2.371,4.945-4.681,6.506 c-2.298,1.043-4.788,1.582-7.127,2.527c1.647,1.696,3.579,3.099,5.096,4.928c-1.118,1.973-3.07,3.194-4.763,4.62 c-2.001,1.553-3.851,3.303-5.926,4.761c-0.961,0.842-2.116-0.137-2.618-1.003c-2.355-3.819-4.371-7.837-6.687-11.676 c-0.524-0.954-1.59-1.331-2.519-1.748c-2.351-0.965-4.638-2.114-7.108-2.75c-2.116,2.306-3.25,6.045-6.71,6.642 c-2.275,0.548-4.537,1.431-6.903,1.404c-1.784-1.136-3.068-2.971-4.141-4.76c-0.173-1.476,0.511-2.855,0.905-4.231 c0.734-2.038,1.149-4.214,2.221-6.108c2.16-1.574,4.768-2.349,7.168-3.47c2.397-0.941,4.64-2.325,7.175-2.875 c1.691,0.203,2.884,1.655,4.318,2.462c8.103-7.577,16.051-15.315,24.167-22.876c0.491-0.594,1.28-1.104,1.338-1.924 c0.233-3.23-0.232-6.493,0.321-9.7c3.722-1.086,7.746-1.094,11.248-2.893c2.225-1.073,4.662-1.764,6.733-3.119 c0.986-2.266-0.272-5.343,1.796-7.126c4.121-3.157,8.454-6.028,12.612-9.133c0.623-0.45,1.113-1.125,1.038-1.922 c0.057-3.513,0.352-7.018,0.243-10.53c-0.17-3.323,1.371-6.363,2.108-9.527c0.389-1.182,0.524-3.026,2.083-3.189 c4.185,0.326,8.117,2.513,12.329,2.509c2.21-2.121,4.58-4.165,6.412-6.624c-0.152-2.4-2.055-4.241-2.614-6.532 c0.086-1.867,0.989-3.584,1.787-5.233c0.497-1.224,1.871-1.541,3.038-1.726c8.461-1.396,16.925-2.763,25.385-4.164 c4.095-0.847,8.025,1.04,12.016,1.609c1.672,0.349,3.216-1.4,4.825-0.539c3.178,1.416,6.151,3.265,9.339,4.672 c0.865,0.427,1.857,0.33,2.789,0.253c7.113-0.947,14.211-2.026,21.338-2.873c0.712-0.112,1.577-0.18,1.949-0.911 c-0.132-3.14-1.043-6.225-0.861-9.376c0.021-0.755,0.56-1.341,0.995-1.894c5.443-5.872,10.787-11.833,16.238-17.698 c2.722-3.101,5.715-5.961,8.272-9.206c-0.402-0.699-0.953-1.333-1.155-2.117c-0.39-4.361-0.419-8.739-0.55-13.11 c-0.028-2.487,0.128-5-0.376-7.449c-0.101-0.938-1.05-1.357-1.689-1.887c-3.417-2.335-6.729-4.818-10.146-7.148 c-2.267-1.834-4.489,1.501-6.913,0.954c-0.533-0.51-0.932-1.128-1.273-1.763c-2.764-5.425-5.591-10.818-8.264-16.287 c-0.88-1.39-0.298-3.006,0.175-4.416c2.842-8.06,5.673-16.125,8.476-24.198c-4.737-2.738-9.753-4.969-14.544-7.603 c-1.079-0.428-1.669-1.968-0.578-2.723c3.689-2.896,7.603-5.505,11.265-8.441c-1.452-0.915-3.142-1.385-4.543-2.373 c-0.898-0.694-0.347-1.806-0.05-2.65c2.391-5.552,5-11.016,7.282-16.61c0.505-0.989-0.453-1.745-1.153-2.256 c-2.38-1.708-4.799-3.362-7.182-5.063c-0.86-0.63-1.812-1.355-1.956-2.49c1.095-3.29,3.138-6.153,4.51-9.324 c0.58-1.502,1.852-2.676,3.504-2.808c4.561-0.678,9.064-1.863,13.686-2.063c1.413,1.732,2.313,3.792,3.47,5.691 c1-0.373,2.028-0.71,2.947-1.267c0.719-1.715,0.044-3.602-0.208-5.347c-1.939-0.491-3.949-0.739-5.819-1.464 c-1.382-0.519-1.433-2.224-1.779-3.429c-0.739-2.966-0.919-6.089-2.032-8.946c-1.567-1.647-4.015-2.182-5.662-3.769 c-0.515-0.642-0.544-1.766,0.164-2.289c1.147-1.15,2.482-2.094,3.621-3.253c-3.664-2.82-7.551-5.334-11.252-8.1 c-1.655-1.183-2.031-3.31-2.717-5.092c-0.803-2.567-1.953-5.027-2.595-7.637c-0.32-0.982,0.469-1.79,1.293-2.166 c2.669-1.375,5.518-2.376,8.138-3.853c-0.776-2.805-1.942-5.473-2.927-8.203c-0.397-1.218-0.887-2.635-0.152-3.827 c2.256-4.27,4.573-8.51,6.828-12.781c0.236-0.596,0.66-1.18,0.595-1.846c-0.959-3.123-3.862-5.529-3.853-8.951 c-0.047-4.089,0.183-8.175,0.201-12.261c-0.073-1.609,1.494-2.375,2.699-3.014c2.512-1.271,5.049-2.493,7.509-3.866 c-0.739-3.26-2.799-6.031-3.481-9.307c2.234-1.624,4.797-2.731,6.979-4.431c-0.77-1.798-1.605-3.597-2.901-5.081 c-1.744,1.201-3.265,3.773-5.682,3.135c-1.301-1.376-1.991-3.179-2.989-4.762c-2.636,3.169-4.69,6.768-7.186,10.042 c-0.541,0.987-2.193,1.298-2.888,0.316c-1.581-1.908-3.368-3.726-4.487-5.955c-0.089-2.203,1.151-4.214,1.503-6.369 c-1.69,0.798-3.326,1.741-5.152,2.203c-1.918-2.573-3.255-5.503-4.806-8.296c-4.649-8.541-9.28-17.093-13.937-25.627 c-1.236-2.114,0.101-4.427,0.669-6.52c1.486-4.32,2.525-8.791,4.161-13.056c2.14-4.008,5.443-7.272,7.644-11.245 c1.508-3.616,2.696-7.362,4.139-11.006c0.446-1.38,1.905-1.915,3.068-2.546c4.363-2.131,8.677-4.363,13.045-6.484 c4.882-1.652,7.829-6.192,11.631-9.397c4.42-4.525,9.461-8.463,13.504-13.333c4.176-2.944,7.481-6.922,11.304-10.289 c3.721-3.702,7.681-7.154,11.386-10.874c1.928-1.968,4.246-3.563,5.905-5.787c-0.252-2.085-1.549-3.871-2.317-5.793 c-1.908-4.393-4.055-8.681-5.947-13.077c-0.675-1.291,0.481-2.344,1.362-3.122C408.286,456.29,413.711,451.536,419.137,446.783z");
white_object.attr({fill: '#FFFFFF','stroke-width': '0','stroke-opacity': '1'}).data('id', 'white-object');
// Midlands
var midlands = rsr.path(" M518.329,776.694c0,0,0.381,4.696,0.732,6.441c1.361,0.161,2.736,0.274,4.106,0.419c0.132,1.483,0.209,2.967,0.324,4.457 c1.369,0.944,2.716,1.923,4.025,2.958c-0.263,2.122-0.324,4.297-0.986,6.348c-2.538,2.242-5.666,3.731-8.144,6.05 c-0.158,2.091,0.641,4.124,0.986,6.172c-2.198,0.66-2.719,2.928-3.444,4.821c-2.105-0.187-4.175-0.634-6.28-0.783 c-0.802,2.772-1.744,5.497-2.647,8.238c-4.028,3.374-8.733,5.895-12.749,9.305c0.907,1.669,2.023,3.214,3.039,4.821 c-1.092,1.407-2.194,2.821-3.417,4.119c-1.118-1.611-1.808-3.557-3.282-4.889c-4.032,0.769-7.962,2.171-11.79,3.646 c-0.024,1.394,0.003,2.8,0,4.2c-2.395,0.925-4.767,1.95-7.266,2.566c-1.133-3.137-2.114-6.318-3.241-9.454 c1.504-0.693,3.005-1.406,4.43-2.255c-1.273-2.539-3.513-4.393-4.889-6.847c-0.552-2.548,2.362-2.691,4.119-2.782 c-0.063-1.783-0.478-3.522-0.851-5.254c1.042-0.932,2.584-1.596,2.944-3.066c0.542-2.45,1.108-5.089,0.149-7.509 c0.63-0.521,1.671-1.396,2.304-1.913c0,0-0.548-1.829-1.967-4.029c-2.18-3.443-3.628-7.309-5.902-10.683 c-5.134-3.987-12.545-5.257-16.072-11.156c0.065-1.902,0.692-3.742,0.878-5.632c-3.319-2.355-6.715-4.586-10.237-6.631 c2.012-3.234,4.775-5.919,6.955-9.035c0.5-0.623,0.541-1.432,0.702-2.174c-5.362-2.278-10.987-3.887-16.274-6.334 c0.179-3.044,0.384-6.078,0.621-9.116c1.264-1.014,3.7-1.561,3.309-3.619c-0.6-5.119-0.91-10.319-1.985-15.356 c-2.085-1.798-4.703-2.829-7.023-4.281c-1.371-0.922-3.342-1.534-3.727-3.349c-1.028-3.827-1.907-7.697-2.836-11.547 c-0.932-3.032,2.21-5.898,0.459-8.833c2.219-3.374,4.283-6.849,6.699-10.089c1.613,0.829,3.339,1.708,4.241,3.376 c3.576,5.863,7.346,11.608,10.872,17.503c0.71,0.91,1.229,2.458,2.539,2.553c4.269-0.286,8.488-1.036,12.736-1.553 c2.001-0.183,4.163-0.973,6.064,0.068c2.361,1.093,3.608,1.498,5.272,2.276c1.304,0.558,1.352,0.021,2.132-0.767 c0.49-0.495,1.117-1.565,1.618-2.306c1.608-2.82,3.329-5.582,5.051-8.333c1.107-1.97,4.034-1.195,5.254-3.039 c1.063-1.393,2.124-2.683,3.079-4.268c0.916-1.624,7.809,2.518,8.445,0.136c1.103-2.566,2.574-4.476,4.005-6.504 c1.344,0.323,3.106,0.485,6.016,0.17c1.963,0.59-0.698,3.824-0.324,6.105c4.133-0.27,7.002-1.763,9.72-2.549 c2.791-3.711,6.143-6.777,7.678-7.737c1.016-1.515,2.979-6.229,3.594-5.694c3.604,3.637,5.524,13.591,9.134,17.224 c1.536,1.572,7.885-11.061,9.746-9.915c1.1,0.677,2.193,1.364,3.206,2.16c1.477,1.241,3.296,1.932,4.929,2.931 c1.159,0.691,1.675,1.999,2.242,3.16c3.355,7.56,6.774,15.097,10.21,22.622c0.587,1.276,1.257,2.612,1.121,4.065 c-0.177,3.183-0.574,6.352-0.783,9.535c0.007,1.168-0.625,2.186-1.364,3.039c-5.071,5.695-10.213,11.314-15.261,17.031 c-0.941,0.805-1.479,2.632-0.135,3.322c4.932,3.127,10.253,5.629,15.194,8.752c-1.379,1.817-2.625,3.77-4.254,5.375 c-2.677,1.315-5.757,1.15-8.549,2.039c-1.632,1.953-1.626,4.764-2.363,7.131c-3.023-0.992-6.223-0.697-9.346-0.716 c-3.344,0.005-7.4,0.237-10.741,0.213C528.01,772.163,518.329,776.694,518.329,776.694z");
midlands.attr({fill: '#CC3300','stroke-width': '0','stroke-opacity': '1'}).data({'id': 'midlands', 'region': 'Midlands'});
regions.push(midlands);
// Greater London
var greater_london = rsr.path("M542.384,876.763c2.564-1.587,5.688-0.948,8.537-0.947c0.366,1.271,0.186,2.894,1.313,3.815 c1.612,1.391,3.229,2.793,4.968,4.031c0.785,0.702,1.846,0.254,2.753,0.103c3.145-0.763,6.222-1.874,9.466-2.17 c0.895,2.228,1.805,4.455,2.553,6.743c-1.455,2.102-3.417,3.804-4.796,5.958c-1.533,4.81-3.45,9.499-5.129,14.266 c-0.7,2.299-2.613,4.114-4.785,5.027c-2.164-0.328-3.924-1.897-5.971-2.616c-1.623,1.376-3.112,2.896-4.654,4.361 c-1.033-1.295-1.961-2.667-2.874-4.04c-1.268-0.159-2.537-0.27-3.799-0.418c-0.505-1.434-0.925-2.906-1.628-4.253 c-1.914-0.109-2.756,2.228-4.076,3.327c-0.068-1.443,0.718-3.373-0.803-4.3c-3.742-2.661-7.798-4.869-11.499-7.582 c-0.266-2.599,1.701-4.883,1.854-7.455c-0.45-1.92-1.327-3.701-1.898-5.58c2.986-0.636,6.122-0.465,9.044-1.382 C534.896,881.584,538.532,878.983,542.384,876.763z");
greater_london.attr({fill: '#8B0000','stroke-width': '0','stroke-opacity': '1'}).data({'id': 'greater-london', 'region': 'Greater London'});
regions.push(greater_london);
// West Country
var west_country = rsr.path(" M442.25,873.787c0,0-0.119,1.236-0.157,2.379c-0.018,1.163,0.662,2.777,0.662,2.777c3.472,7.405,6.592,14.971,10.372,22.23 c-0.823,0.921-1.654,1.853-2.458,2.796c1.044,4.465,3.585,8.622,3.376,13.33c-0.054,1.363,0.141,2.823-0.405,4.119 c-3.215,1.649-6.794,2.455-9.994,4.146c1.163,7.264,2.253,14.532,3.322,21.811c0.234,1.862,1.198,4.19-0.783,5.456 c-3.591-1.728-6.929-3.918-10.48-5.713c-1.624-0.913-3.463-0.098-5.171,0.057c-2.042,0.387-3.539,0.537-3.539,0.537 c-1.328,0.462-1.535,1.217-0.906,2.256c1.647,2.369,3.1,4.863,4.659,7.293c0.985,0.138,1.977,0.278,2.971,0.405 c-0.503,2.057-1.015,4.12-1.202,6.24c1.005,0.141,2.012,0.277,3.025,0.419c0.734,3.119,1.268,6.295,2.188,9.373 c0.902-0.17,1.795-0.411,2.715-0.5c0.91,0.621,1.489,1.583,2.12,2.471c-4.84,2.089-10.384,1.303-15.315,2.998 c-1.572,2.937-0.875,6.52-1.621,9.71c-9.351-0.931-18.643-2.483-27.983-3.539c-1.049-0.081-2.211-0.242-3.12,0.419 c-0.781,1.579-1.168,3.317-1.729,4.984c-6.945-4.148-13.501-8.912-20.326-13.249c-2.931-1.626-6.452-1.073-9.575-2.053 c0,0-2.173-0.27-2.809,0.135c-4.088,1.65-8.052,3.709-12.412,4.565c-2.681,0.67-5.424,1.135-8.076,1.918 c-2.877,0.744-3.977,3.887-6.213,5.551c-2.029,0.596-4.252,0.142-6.24,0.932c-1.107,0.7-1.487,2.052-2.026,3.174 c-1.051,2.585-2.393,5.046-3.417,7.644c-0.642,1.361,0.143,2.79,0.419,4.146c-1.312,1.267-3.469,2.028-3.984,3.89 c0.644,1.829,2.393,3,3.592,4.47c-0.584,1.685-1.033,3.464-1.958,5.011c-2.088,1.323-4.713,1.366-6.888,2.512 c-0.691,0.344-0.965,1.223-0.878,1.958c0.195,2.109,0.526,4.205,0.567,6.334c-3.716-0.557-7.372-1.407-11.034-2.228 c-3.687-0.577-3.701-5.923-7.361-6.577c-3.519-0.698-7.095-1.145-10.615-1.837c-0.36-0.967-0.599-1.984-1.134-2.863 c-0.726-0.45-1.515-0.758-2.282-1.107c-0.768-0.349-2.454-1.851-2.174-0.797c0.279,1.054,0.696,2.136,0.513,3.255 c-0.599,0.743-1.326,1.374-2.039,2.012c-2.02-1.777-3.794-3.805-5.807-5.578c-1.169-1.074-2.847-0.813-4.295-0.864 c-2.212,0.048-4.426-0.107-6.631,0.108c-2.893,0.708-4.604,4.346-7.86,3.836c-3.955-0.078-8.024-1.552-11.912-0.635 c-2.445,3.385-3.289,7.681-5.497,11.223c-2.735,1.441-6.041,0.998-8.914,2.053c-2.509,1.545-2.724,5.046-5.011,6.793 c-2.893,1.369-6.19,1.75-9.008,3.282c-0.217,0.335-0.648,1.016-0.864,1.35c1.82,1.906,4.154,3.26,5.807,5.335 c-2.575,2.105-5.049,4.358-7.82,6.213c-2.254-3.574-4.178-7.343-6.321-10.98c-1.431-2.556-4.544-3.097-6.982-4.268 c-1.875-0.685-3.655-1.869-5.699-1.918c-2.286,1.704-3.195,4.675-5.389,6.483c-2.096,0.895-4.374,1.566-6.658,1.688 c-1.086-0.96-2.681-2.206-2.093-3.849c0.526-1.992,1.158-3.974,1.904-5.888c0.507-1.296,1.936-1.744,3.079-2.296 c3.214-1.319,6.339-2.865,9.616-4.025c1.441,0.929,2.756,2.18,4.443,2.647c0.707-0.236,1.343-0.645,1.891-1.134 c5.343-5.239,10.914-10.24,16.207-15.531c3.168-3.16,6.852-5.838,9.616-9.373c0.646-3.029,0.003-6.207,0.432-9.278 c3.171-0.628,6.438-0.972,9.386-2.391c2.671-1.279,5.552-2.155,8.076-3.714c1.903-1.865,0.444-5.108,1.742-7.212 c4.265-3.377,8.873-6.317,13.168-9.656c0.985-0.732,1.278-1.988,1.256-3.147c0.029-4.192,0.052-8.39,0.297-12.574 c-0.014-0.153,0.484-1.639,0.635-2.12c0.432-2.003,0.977-3.97,1.648-5.902c4.022,0.52,7.812,2.295,11.871,2.552 c1.946-0.789,3.141-2.679,4.673-4.038c1.529-1.688,3.6-3.072,4.403-5.281c-0.397-2.57-2.454-4.548-2.836-7.104 c0.334-1.535,0.7-3.859,2.661-3.971c7.264-1.292,14.569-2.365,21.838-3.633c1.643-0.247,3.335-0.629,5.011-0.689 c1.005-0.036,1.999,0.052,2.985,0.351c0.986,0.299,1.362,0.435,2.593,0.621c2.137,0.328,4.29,1.19,6.469,0.675 c0.934-0.134,1.958-0.592,2.85-0.041c2.775,1.259,5.389,2.856,8.144,4.16c1.6,0.758,3.424,0.427,5.119,0.27 c7.194-0.969,14.382-1.99,21.582-2.917c1.118-0.21,2.713-0.336,3.039-1.675c0.267-3.307-0.887-6.536-0.932-9.832 c-0.108-0.886,0.613-1.49,1.121-2.093c5.176-5.679,10.368-11.351,15.572-17.003l1.445-1.594l1.918-1.729l1.297-1.567 c2.454-2.856,4.833-5.774,6.78-9.008c1.331-2.358,3.649-4.208,4.187-6.955c-0.373-0.267-1.126-0.8-1.499-1.067 c-2.62,1.549-4.033,4.408-6.55,6.077c-0.395-5.841-0.382-11.71-0.648-17.557c3.199-2.002,6.458-3.904,9.724-5.794 c0.927-0.599,1.963-1.108,2.647-1.999c0.303-3.586-0.379-7.167-0.432-10.75c2.681,0.01,5.429-0.26,8.049,0.459 c1.488,1.003,2.641,2.422,3.984,3.606c3.223-1.015,6.203-2.7,9.454-3.619c6.918-0.795,13.948-0.379,20.853-1.188 c0.094-0.285,0.271-0.863,0.365-1.148c-1.185-1.858-2.714-3.458-3.998-5.24c1.938-1.169,3.994-2.125,6.05-3.066 c1.972,1.944,3.864,3.968,5.767,5.983c1.61,1.403,0.885,3.737,0.999,5.605C444.505,856.137,443.378,863.184,442.25,873.787z");
west_country.attr({fill: '#CC3300','stroke-width': '0','stroke-opacity': '1'}).data({'id': 'west-country', 'region': 'West Country'});
regions.push(west_country);
// South East
var south_east = rsr.path(" M520.466,895.46l0.594-1.634c0.303-1.06,0.691-2.105,0.81-3.201c-0.566-2.424-1.935-4.556-2.566-6.955 c-0.859-4.102-2.225-8.081-3.552-12.047c-2.014-0.627-4.305-0.68-6.118-1.756c-1.947-2.568-3.78-5.241-5.47-7.982 c-1.127-1.575,0.836-2.843,2.107-3.376c2.039-0.572,2.445,2.721,4.416,2.661c1.554,0.071,3.104-0.187,4.646-0.378 c0.109-0.914,0.213-1.822,0.311-2.728c-3.273-1.358-6.645-2.492-9.778-4.16c0.615-2.719,1.762-5.28,2.512-7.955 c0.47-2.712-1.098-5.406-0.581-8.103c1.43-2.113,3.388-3.808,5.024-5.753c-1.274-3.028-2.663-6.007-4.214-8.9 c-4.004,2.734-8.03,5.44-11.912,8.346c0.829,1.478,2.243,2.772,2.485,4.497c-0.709,1.797-2.175,3.164-3.309,4.7 c-0.77,0.792-1.567,2.268-2.877,1.661c-1.161-1.668-1.992-3.52-3.039-5.254c-3.128,0.883-6.27,1.762-9.319,2.89 c0.058,0.796,0.006,1.599,0.082,2.404c-0.004,1.806-0.289,1.996-2.438,2.846c-1.329,0.529-4.545,1.771-7.879,2.705 c-1.351-3.846-2.959-8.265-4.081-12.492c0.718-1.389,2.503-1.598,3.755-2.337c-1.022-1.453-2.155-2.824-3.363-4.119 c-0.793,1.702-1.536,3.438-2.323,5.146c-1.925-0.167-3.791-0.695-5.632-1.242c-1.452,3.536-2.464,7.236-3.795,10.818 c-0.65,2.4-3.318,3.115-5.146,4.403c-1.107,0.82-2.898,1.337-2.985,2.958c-0.964,7.392-1.7,14.816-2.715,22.203 c-0.122,1.495-0.517,3.108,0.203,4.524c2.102,4.569,4.105,9.197,6.28,13.735c2.175,4.538,1.297,2.715,1.297,2.715 s2.53,4.777,3.444,7.334c-0.855,0.971-1.73,1.938-2.58,2.917c1.45,2.411,2.863,9.4,2.863,9.4c0.503,3.398,0.133,5.273-0.203,8.684 c-3.085,1.633-6.491,2.55-9.67,3.984c0.958,6.829,2.108,13.629,3.052,20.461c0.193,1.682,0.699,3.37,0.527,5.078 c-0.757,1.225-2.086,1.908-3.214,2.742c-3.933-1.824-7.493-4.351-11.412-6.186c-2.17-0.393-4.36,0.439-6.523,0.635 c1.067,2.158,2.392,4.17,3.687,6.199c1.226,0.188,2.656,0.444,3.915,0.707c-0.19,1.929-0.884,3.896-1.17,6.023 c0.702,0.207,1.815,0.294,2.419,0.625c0.872,2.418,1.413,6.069,2.062,8.557c1.017,0.242,1.524-0.464,2.275,0.179 c1.38,1.184,2.53,2.722,4.262,3.425c1.722,0.709,3.576,1.034,5.389,1.445c0.895-1.404,1.409-3.2,2.809-4.187 c3.287-1.361,6.91-1.545,10.305-2.552c1.376-0.526,2.122-1.911,2.985-3.012c-0.823-2.272-2.409-4.221-2.971-6.577 c0.4-0.556,0.833-1.08,1.31-1.567c5.042,3.441,9.544,7.688,14.68,10.967c3.908,0.184,7.87-0.078,11.79-0.284l2.039-0.473 c3.892,1.524,7.078,4.356,10.899,6.01c0.88-1.875,1.671-3.799,2.661-5.618c10.573-2.1,21.206-3.823,31.792-5.861l2.293-0.454 c5.784,2.364,11.857,3.982,17.746,6.077c4.211,1.181,8.072,3.008,12.401,3.641c2.56-2.418,4.365-5.492,6.739-8.076 c1.002-1.051,2.48-1.399,3.809-1.85c4.438-1.293,8.857-2.63,13.289-3.944c5.07-1.407,7.679-7.202,12.979-8.036l1.418-1.378 c2.083,1.984,5.021,2.683,7.82,2.863c-0.013-2.091-0.686-4.324,0.338-6.28c0.931-2.023,1.977-4,2.958-5.996 c0.58-1.069,1.161-2.335,2.404-2.755c3.048-1.125,6.494-1.144,9.305-2.904c3.918-2.373,7.784-4.817,11.655-7.266 c1.208-0.515,0.802-1.975,0.662-2.971c-0.802-3.833-1.718-7.632-2.499-11.466c-0.682-3.007,1.492-5.62,2.134-8.441 c-4.847,0.584-9.539,2.01-14.356,2.768c-3.729,0.557-7.402,2.061-11.196,1.783c-3.362-1.986-5.493-5.753-9.332-6.969 c-3.972-1.401-7.784-3.277-11.925-4.146c-3.354-0.722-6.65-1.692-10.008-2.377c-0.415-0.016-0.943-0.146-1.418-0.148 c-0.475-0.003-0.905,0.125-1.121,0.635c-1.055,1.641-1.327,3.88-3.039,5.024c-2.447-0.193-4.727-1.27-7.144-1.607 c-1.18,0.178-2.161,0.992-3.336,1.202c-1.468-0.702-2.523-1.99-3.728-3.039c-1.704,4.51-3.263,9.065-5.011,13.56 c-0.884,2.142-4.767,4.434-4.767,4.434c-1.221,0.832-2.5,0.101-2.867-0.024c0,0-2.365-1.268-4.103-2.06 c-1.089,1.083-2.152,2.198-3.255,3.268c-0.671,0.553-1.355,1.599-2.336,1.013c-1.294-1.264-2.121-2.909-3.12-4.389 c-1.347-0.174-2.695-0.313-4.038-0.459c-0.473-1.049-0.911-2.099-1.364-3.147c-1.669,1.484-2.649,4.096-5.119,4.335 c-0.066-1.982,0.214-3.932,0.297-5.902c0.084-0.793-0.785-1.157-1.283-1.567c-3.241-2.078-6.457-4.191-9.697-6.267 C519.619,898.862,520.023,897.412,520.466,895.46z M469.021,974.753c0.578-0.472,1.248-1.054,2.058-0.738 c2.705,0.749,5.223,2.045,7.862,2.999c1.883,0.656,3.395,1.997,4.826,3.343c-1.177,2.097-3.883,2.032-5.457,3.627 c-0.714,1.546-0.604,3.329-1.196,4.924c-2.213,1.319-4.873,1.623-7.352,2.191c-1.662-1.698-3.157-3.623-5.216-4.863 c-1.98-1.195-3.936-2.428-5.934-3.584c-1.37-0.937-3.087-0.588-4.636-0.68c0.425-0.484,0.76-1.075,1.33-1.399 C460.087,979.322,465.269,978.188,469.021,974.753z");
south_east.attr({fill: '#8B0000','stroke-width': '0','stroke-opacity': '1'}).data({'id': 'south-east', 'region': 'South East'});
regions.push(south_east);
// Yorkshire & Humber
var yorkshire_humber = rsr.path(" M494.819,624.632c0.353,0.71,3.166,1.38,3.166,1.38c1.884,0.721,3.576,1.872,5.281,2.941c-2.485,2.023-5.451,3.361-7.892,5.431 c-0.988,0.871-0.208,2.272,0.24,3.226c6.389,11.934,12.78,23.864,19.114,35.828c1.719,3.385,3.869,6.567,5.161,10.157 c-3.162-0.176-6.305-0.608-9.452-0.915c-1.433-0.142-2.973-0.344-4.036-1.41c-3.28-3.107-6.36-6.427-9.602-9.572 c-0.984-0.891-2.2-1.967-3.631-1.65c-2.659,0.54-5.177,1.621-7.772,2.385c-4.885,1.678-9.962,2.589-15.015,3.593 c-1.495,0.297,2.858,1.357,5.585,2.384c0.249-0.529,2.677-2.671,4.279-2.334c3.802-0.417,11.158-3.283,10.175-2.543 c-0.445,0.346,6.093,2.98,7.106,7.476c0.18,0.799,11.666,8.081,13.377,11.401c-1.862,0.885-5.968,6.702-8.472,10.117 c-1.009-0.702-3.764-6.723-6.279-12.543c-2.201-5.065-3.857-6.124-4.613-6.034c-2.486-0.142-4.345,5.771-5.069,6.599 c-1.178,0.771-5.919,5.147-8.507,8.696c-2.777,0.971-5.857,1.538-7.353,2.129c-0.926,0.366,2.438-5.442-1.278-6.438 c-1.013,0.136-6.06,0.233-8.091-0.191c-1.213,0.707-4.397,6.205-5.023,7.234c-0.812,1.756-7.644-1.97-8.98-0.926 c-1.255,2.167-2.042,3.028-3.849,5.542c-1.355,2.06-4.601,1.187-5.866,3.391c-2.803,4.088-4.941,8.604-8.102,12.453 c-2.696-1.002-5.196-2.639-8.027-3.211c-6.314,0.507-12.555,1.694-18.859,2.341c-4.664-7.307-8.387-12.488-12.644-20.04 c-0.516-0.763-1.509-2.693-2.668-3.303c-2.448-1.427-5.196-2.843-6.743-5.373c-2.626-3.952-5.313-7.853-8.042-11.733 c-1.163-2.173-3.931-1.296-5.926-1.65c-0.582-1.641-1.701-3.356-1.11-5.146c0.733-2.347,1.667-4.626,2.476-6.946 c1.05-3.15,3.782-4.744,5.756-7.232l-1.15-1.425c-4.062-4.193-7.797-8.691-11.672-13.053c-2.176-2.7-6.024-2.366-9.062-3.331 c-0.349-1.734-0.615-3.49-0.96-5.221c-2.366-0.279-4.737-0.25-7.112-0.3c-1.964-2.853-3.688-5.878-5.146-9.017 c2.019-3.399,3.607-7.075,5.971-10.247c2.665-1.258,5.674-1.517,8.417-2.566c0.98-0.215,1.139-1.246,1.14-2.085 c-0.04-3.91-0.915-7.805-0.63-11.718c0.591-2.115,1.986-3.883,3.001-5.806c0.925-1.425,1.6-3.458,3.541-3.706 c4.213-0.946,8.421-1.913,12.663-2.731c2.179-0.578,3.482,2.145,5.506,2.19c2.526-1.264,4.484-3.404,6.977-4.726 c1.523-0.147,3.037,0.28,4.546,0.45c0.521-1.189,0.884-2.466,1.605-3.556c2.892-1.978,6.73-1.343,9.752,0.015 c1.554,1.086,2.419,2.872,3.676,4.261c1.95,2.628,4.872,2.936,7.884,3.529l13.219-5.823l23.054,0.841l5.251-7.233 c5.935,2.921,10.872,6.328,16.727,9.406c2.09,1.196,3.028,3.526,4.306,5.446C481.638,604.073,488.21,614.366,494.819,624.632z");
yorkshire_humber.attr({fill: '#CC3300','stroke-width': '0','stroke-opacity': '1'});
yorkshire_humber.transform("m0.900176, 0, 0, 0.900176, 85.6568, 56.7095").data({'id': 'heaven-on-earth', 'region': 'Yorkshire'});
regions.push(yorkshire_humber);
// North East
var north_east = rsr.path("M408.28,519.309l7.727,23.045 l1.013,3.299c0,0,1.965,6.166,3.383,9.499c1.012,2.337,3.092,3.942,4.846,5.701c2.345,2.099,4.438,4.454,6.601,6.736l20.494,10.277 c0,0-4.441,6.106-4.441,6.106l-22.46-0.78l-13.413,6.031c-1.13-0.418-3.644-1.212-4.666-1.86c-1.898-1.635-2.946-4.068-4.921-5.611 c-2.197-1.134-4.651-1.668-7.052-2.175c-2.848,0.629-6.316,1.53-7.172,4.756c-1.401,0.004-2.963-0.608-4.216,0.255 c-2.056,1.336-3.971,2.882-5.986,4.276c-1.399-0.736-2.615-1.98-4.201-2.25c-3.014,0.409-5.931,1.45-8.987,1.605 c-0.365-2.426-0.012-5.236-1.77-7.202c-2.671-3.312-5.913-6.115-8.447-9.542c0.731-1.408,1.48-2.82,2.145-4.261 c-1.509-1.716-3.56-3.079-4.606-5.131c1.411-3.5,4.468-8.531,4.468-8.531s-5.349-7.691-7.529-10.553 c-3.565,1.095-6.034,4.114-9.227,5.896c-1.482-2.554-3.102-5.061-4.246-7.787c0.496-2.06,2.158-3.688,3.151-5.551 c-0.454-1.586-1.117-3.133-1.275-4.786c1.634-3.536,4.208-6.561,5.971-10.037c-3.838-5.312-8.509-9.962-12.303-15.303 c3.374-3.677,7.235-6.854,10.787-10.352c4.926-4.974,10.193-9.6,15.153-14.538c2.079-2.046,4.457-3.856,6.106-6.286 c0.249-1.898-1.103-3.634-1.77-5.356c-2.197-4.65-4.287-9.34-6.496-13.983c-0.408-1.026-1.078-2.064-0.96-3.211 c3.451-3.428,7.319-6.418,10.892-9.722c2.581-2.124,4.948-4.488,7.637-6.481c8.76,8.346,17.177,17.052,25.715,25.625 c1.121,0.963,1.504,2.421,1.71,3.826C402.67,483.081,405.449,501.196,408.28,519.309z");
north_east.attr({fill: '#FF6666','stroke-width': '0','stroke-opacity': '1'});
north_east.transform("m0.900176, 0, 0, 0.900176, 85.6568, 56.7095").data({'id': 'north-east', 'region': 'North East'});
regions.push(north_east);
// North West
var north_west = rsr.path(" M344.654,615.13c-1.35,0.492-1.856,0.9-3.075,2.997c0,0-3.773,6.248-5.209,9.641c1.262,3.943,3.834,7.432,6.076,10.907 c2.111,0.077,4.235-0.062,6.331,0.285c0.904,1.522,0.307,3.647,1.395,5.011c2.53,1.009,5.371,0.978,7.877,2.07 c1.314,0.885,2.275,2.182,3.316,3.361c3.071,3.688,6.502,7.09,9.362,10.952c-1.718,1.908-3.994,3.512-4.711,6.106 c-0.907,2.982-2.427,5.79-2.986,8.867c0.192,1.633,1.747,4.33,1.939,5.949c0,0,3.215,0.197,3.372,0.202l0.503,0.005 c1.508-0.047,2.318,1.435,3.113,2.486c2.874,4.183,5.708,8.379,8.612,12.543c-2.692,4.56-5.764,8.884-8.507,13.413 c0.526,0.892,1.074,1.766,1.62,2.656c-0.445,0.826-1.002,2.272-1.002,2.272c-0.259,1.017-0.405,3.068-0.227,3.638 c1.353,5.252,2.72,9.185,3.239,14.6c-3.259,1.589-6.734,2.812-9.767,4.816c-2.818,2.75-5.152,5.986-8.087,8.627 c-2.777,2.102-6.328,2.987-8.987,5.251c-0.963,2.035-0.254,4.652-1.485,6.526c-3.578,2.255-7.412,4.15-11.252,5.926 c-0.918-2.137-1.957-4.209-3.211-6.166c-3.041,0.469-6.113,2.56-9.182,1.2c-2.055-0.668-4.18-1.1-6.256-1.68 c-0.947-3.68-1.624-7.417-2.401-11.132c-0.495-3.13-4.087-3.788-6.181-5.581c1.325-1.205,2.786-2.255,4.021-3.556 c0.821-0.707,0.743-2.123-0.225-2.656c-4.218-3.439-9.014-6.133-13.128-9.707l-1.455-1.875c-1.371-3.34-2.818-6.693-3.466-10.262 c3.345-1.642,6.936-2.864,10.067-4.906c0.083-0.263,0.248-0.787,0.33-1.05c-0.754-4.262-3.196-8.061-4.021-12.303 c2.525-5.113,5.122-10.22,8.102-15.093l2.19-0.03c-0.84-4.531-4.862-7.721-5.926-12.183c-0.211-4.755,0.105-9.519,0.36-14.268 c3.187-1.763,6.502-3.297,9.722-4.996c1.044-0.542,2.295-1.581,1.755-2.911c-0.962-3.065-2.89-5.784-3.496-8.972 c2.291-1.391,4.75-2.517,6.931-4.081c0.942-0.573,0.596-1.813,0.21-2.611c-1.111-2.292-2.435-4.475-3.421-6.826l-0.9-1.98 c-2.73,0.426-4.607,2.636-6.691,4.231c-1.437-1.725-2.215-3.89-3.661-5.596c-0.687-0.206-1.382-0.355-2.085-0.465 c-2.867,3.924-5.249,8.219-8.417,11.913c-1.863,0.172-2.988-2.314-3.766-3.766c0.313-3.177,2.091-5.999,2.596-9.137 c-0.088-1.017-0.635-1.587-1.65-1.71c-2.404,0.867-4.501,2.379-6.811,3.451c-1.936-2.852-3.377-5.995-5.071-8.987 c-4.578-8.393-9.123-16.812-13.728-25.19c-0.435-0.977-1.238-1.993-0.765-3.106c1.424-4.796,2.962-9.565,4.396-14.358 c1.138-4.596,4.576-8.049,7.157-11.868c2.935-3.4,3.894-7.867,5.506-11.943c0.805-1.862,1.023-4.381,3.121-5.296 c4.223-2.142,8.465-4.243,12.708-6.346c1.485-0.85,3.36-0.607,4.801-1.47c8.405-7.962,16.785-15.95,25.19-23.915 c4.134,4.391,7.811,9.185,11.688,13.803c-1.632,2.869-3.587,5.545-5.236,8.402c-1.232,1.968,0.546,4.088,0.555,6.151 c-0.819,1.841-2.331,3.289-3.061,5.176c0.056,1.051,0.658,1.958,1.11,2.881c1.552,2.759,2.976,5.61,4.801,8.207 c3.314-1.652,5.99-4.291,9.137-6.211c2.092,2.583,3.879,5.391,5.776,8.117c-1.369,3.069-3.611,5.861-4.231,9.197 c0.92,1.987,2.876,3.277,4.276,4.936c-0.532,1.415-2.056,2.798-1.71,4.336c2.605,3.996,6.518,6.936,9.332,10.772 c1.05,1.866,0.711,4.12,0.855,6.181c-1.734,0.367-3.532,0.594-5.161,1.32c-1.565,1.257-2.263,3.244-3.331,4.891 c-1.004,1.942-2.511,3.717-2.896,5.911c-0.04,4.01,0.581,7.996,0.735,12.003C349.351,613.933,346.634,614.512,344.654,615.13z");
north_west.attr({fill: '#CC3300','stroke-width': '0','stroke-opacity': '1'});
north_west.transform("m0.900176, 0, 0, 0.900176, 85.6568, 56.7095").data({'id': 'north-west', 'region': 'North West'});
regions.push(north_west);
// West Midlands
var west_midlands = rsr.path(" M349.819,758.112c-0.387,1.134-0.985,1.811-2.235,2.491c-4.205,1.969-7.951,4.539-12.234,6.349 c-1.237-2.041-2.256-4.187-3.256-6.346c-2.137,0.319-4.236,0.874-6.271,1.59c-0.007,2.292,0.8,4.774-0.105,6.947 c-1.888,1.691-4.392,2.702-6.826,3.331c-2.264-1.618-3.022-4.501-4.546-6.721c-3.741,0.467-7.444,1.146-11.162,1.755 c-1.444,0.286-3.291,0.432-3.931,2.01c-1.501,2.96-3.247,5.824-4.381,8.957c3.816,3.125,8.099,5.618,11.868,8.807 c-0.763,3.636-2.669,6.869-4.066,10.277c-1.612,3.882-3.593,7.615-4.921,11.612c2.165,1.006,4.407,1.791,6.571,2.806 c-0.228,0.84,0.032,1.996-0.75,2.596c-4.078,3.323-8.733,5.93-12.528,9.602c5.244,2.774,11.504,6.042,16.864,8.59l-1.171,3.428 c-2.752,7.952-5.532,15.898-8.357,23.825c-0.471,1.443-1.103,2.867-1.155,4.411c0.687,2.239,1.97,4.244,3.016,6.331 c2.196,4.059,4.041,8.308,6.361,12.303c1.782-0.58,3.489-1.482,5.371-1.695c1.565,0.464,2.838,1.553,4.171,2.461 c4.198,3.106,8.546,6.014,12.723,9.152c4.065-2.261,8.044-4.679,12.018-7.096c0.268-4.383-0.712-8.74-0.33-13.113 c2.635-0.205,4.777-0.028,7.419-0.129c2.076-0.165,4.223,0.99,4.223,0.99c2.071,1.267,2.153,1.553,3.872,3.25 c2.711-0.819,5.264-2.051,7.892-3.091c2.731-1.193,5.77-0.71,8.657-0.99c4.734-0.408,9.5-0.19,14.223-0.75 c-1.377-1.908-3.083-3.589-4.171-5.686c1.814-2.21,4.88-2.827,7.247-4.321l2.624-1.328c0,0,2.717,2.612,3.902,4.104 c1.668,2.063,4.036,3.605,5.221,6.031c0.31,2.506,0.054,5.039,0.105,7.562c2.077-1.217,4.376-2.188,6.091-3.916 c2.277-4.664,2.978-10.004,5.491-14.568c2.041,0.456,4.057,1.042,6.091,1.545c1.611-2.936,2.101-6.348,3.916-9.182 c0.608-1.374,2.342-1.182,3.556-1.62c-0.408-1.584-0.788-3.19-1.11-4.786c1.195-0.983,2.645-1.698,3.601-2.941 c0.578-1.602,0.541-3.338,0.675-5.011c-1.17-0.393-3.682,0.151-3.181-1.785c1.357-1.469,3.143-2.447,4.636-3.766 c-2.113-4.313-4.465-8.506-6.616-12.798c-0.983-2.333-3.606-3.049-5.581-4.276c-5.122-2.882-11.337-5.148-13.953-10.847 c0.076-1.858,0.643-3.655,1.02-5.461c-1.01-0.713-2.031-1.415-3.061-2.085l-2.25-1.38c-2.042-1.425-4.283-2.572-6.181-4.186 c-0.406-1.287,0.68-2.316,1.35-3.271c2.321-2.793,4.627-5.608,6.796-8.522c-5.582-2.877-11.79-4.282-17.449-6.991 c0.007-3.767,0.44-7.522,0.585-11.282c-0.056-2.136,2.321-2.805,3.736-3.856c-0.329-4.843-1.122-9.634-1.575-14.463 c0.034-2.443-2.617-3.143-4.276-4.276c-2.401-1.23-4.565-3.008-7.172-3.766c-2.193,0.719-4.196,1.912-6.331,2.776 c-5.659,2.002-7.834,8.357-12.738,11.402c-2.421,1.303-4.924,2.465-7.307,3.841C350.274,754.673,350.049,756.538,349.819,758.112z");
west_midlands.attr({fill: '#8B0000','stroke-width': '0','stroke-opacity': '1'});
west_midlands.transform("m0.900176, 0, 0, 0.900176, 85.6568, 56.7095").data({'id': 'west-midlands', 'region': 'West Midlands'});
regions.push(west_midlands);
// East Anglia
var east_anglia = rsr.path(" M636.994,803.5c0.214,1.31,0.697,3.577,1.28,7.365s-0.703,7.473-1.563,11.11c-2.283,10.905-4.869,21.743-7.182,32.642 c-0.324,1.313-0.557,2.758-1.559,3.759c-4.418,4.652-9.225,8.918-13.576,13.636c-1.302,1.637-3.321,3.304-4.886,5.093 c-1.565,1.789-3.679,3.204-4.71,5.394c-0.249,2.246,2.546,2.255,4.009,2.995c-2.95,3.022-5.882,6.146-9.289,8.649 c-5.224,1.219-10.75,0.297-16.037,1.27c-0.815,0.346-1.174,0.964-1.075,1.855c0.984,2.145,3.702,3.51,3.378,6.166 c-0.072,3.284,0.257,6.613-0.22,9.873c-1.989,3.379-4.699,6.279-6.961,9.48c-1.059,1.316-2.072,3.096-3.978,3.149 c-5.098,0.544-10.206,0.993-15.31,1.467c-1.483,0.196-3.099-0.082-4.457,0.647c-1.541,2.248-2.273,4.936-3.654,7.283 c-2.705-0.393-5.268-1.424-7.964-1.81c-1.076,0.209-2.029,0.766-3.015,1.205c-1.205-1.077-2.411-2.151-3.529-3.308 c1.791-2.408,4.053-4.445,5.684-6.969c-0.727-3.703-2.243-7.339-4.131-10.62c-3.663,0.776-7.288,1.711-10.897,2.698 c-0.915,0.143-1.986,0.705-2.815,0.039c-1.763-1.277-3.545-2.586-5.029-4.177c-0.232-0.466-0.308-1.385-0.434-2.23 c-0.313-2.318-0.285-2.378-2.912-2.219c-2.685,0.226-5.43-0.197-8.072,0.346c-4.847,2.504-9.228,5.854-14.083,8.347 c-3.147,1.02-6.524,0.946-9.773,1.439c-2.091-4.476-2.717-9.478-4.785-13.949c-2.104-2.162-6.303-0.786-8.017-3.61 c-1.628-2.489-5.377-6.799-4.283-7.434c0.744-0.808,2.056,1.635,3.251,2.531c2.804,0.478,5.874-0.36,8.69-0.497l0.585-6.284 c-3.397-1.506-7.033-2.815-10.425-4.327c0.747-2.775,1.983-5.403,2.582-8.214c0.028-2.321-0.732-4.557-0.873-6.859 c-0.249-1.344,1.06-2.14,1.792-3.052c1.363-1.595,3.235-2.897,3.979-4.921c-1.349-4.396-4.102-8.219-5.527-12.585 c-0.058-2.015,0.879-3.919,1.271-5.874c2.185,0.392,4.536,0.713,6.753,0.923c0.606-1.67,1.694-4.521,2.364-4.946 c0.69-0.9,2.032-1.207,2.032-1.207c0.776-0.479,0.607-1.366,0.275-2.973c-0.344-1.33-0.83-2.987-1.085-4.507 c2.849-2.223,6.085-3.946,8.78-6.354c1.143-2.971,1.057-6.31,1.303-9.461c-1.537-1.108-3.088-2.192-4.609-3.312 c-0.161-1.824-0.243-3.652-0.359-5.473c-1.573-0.201-3.148-0.337-4.716-0.526c-0.23-1.523-0.385-2.788-0.48-4.319 c4.596-1.713,9.235-4.796,14.32-4.528c4.954,0.067,9.689-0.175,14.645-0.094c2.352,0.018,5.995,0.942,6.66,1.74 c1.013-2.922,1.568-5.975,2.562-8.9c2.018-0.401,4.373-0.818,6.297-1.102c3.527-0.725,4.149-2.143,4.573-2.54 c2.31-2.567,1.842-2.612,4.114-5.212c2.074,0.87,3.936,2.23,6.096,2.898c1.539,0.145,1.892-1.663,2.523-2.701 c2.747-6.384,5.401-12.809,8.082-19.22c0.441-1.017,1.037-2.388,2.407-2.143c8.85-0.059,17.703,0.018,26.555-0.026 c6.785-0.331,13.34,1.766,19.995,2.734c2.993,0.745,6.51,0.491,8.878,2.789c6.711,5.645,13.335,11.394,20.051,17.036 c1.482,1.326,3.455,2.564,3.703,4.73C635.139,792.034,636.121,797.758,636.994,803.5z");
east_anglia.attr({fill: '#CC3300','stroke-width': '0','stroke-opacity': '1'});
east_anglia.transform("m0.900176, 0, 0, 0.900176, 85.6568, 56.7095").data({'id': 'east-anglia', 'region': 'East Anglia'});
regions.push(east_anglia);
// Iterate through the regions & change Yorkshire's fill colour to gold
for (var i = 0; i < regions.length; i++) {
// Change Yorkshire's fill colour to gold
if (regions[i].data('id') == 'heaven-on-earth') {
regions[i].node.setAttribute('fill', 'gold');
}
// Showing off
regions[i].mouseover(function(e){
this.node.style.opacity = 0.7;
document.getElementById('region-name').innerHTML = this.data('region');
});
regions[i].mouseout(function(e){
this.node.style.opacity = 1;
});
}