
	//INIT VARS
	var sticky = -1;	
	var noAreas = 3;
	
	//DEFINE AREAS
	var areas = new Array(noAreas);
	areas[0] = 'surrey-sussex-hants';
	//areas[1] = 'lancashire-merseyside';
	//areas[1] = 'herts-cambs-bucks';
	areas[1] = 'essex-london-kent';
	areas[2] = 'head-office';
	
	//DEFINE INFO
	var info = new Array(noAreas);
	info[0] = '<h3>Berkshire, Hampshire, Surrey and Sussex</h3><p><strong>Fran Padgham</strong><br />14 Castle Street<br />Farnham<br />Surrey GU9 7JA</p><p>Mob: 07799 376 691<br />Tel: 0333 240 9711<br />Email: <a href=\'mailto:&#102;&#114;&#97;&#110;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;\'>&#102;&#114;&#97;&#110;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;</a></p>';
	//info[1] = '<h3>Lancashire and Greater Manchester</h3><p><strong>Lucy Carlton</strong><br />10 Larkspur Close<br />Bolton<br />BL1 8UG</p><p>Mob: 07860 839522<br />Email: <a href=\'mailto:&#108;&#117;&#99;&#121;&#99;&#97;&#114;&#108;&#116;&#111;&#110;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;\'>&#108;&#117;&#99;&#121;&#99;&#97;&#114;&#108;&#116;&#111;&#110;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;</a></p>';
	//info[1] = '<h3>Bedfordshire, Hertfordshire and Cambridgeshire</h3><p><strong>Lucy Cantwell</strong><br />12 Leeds Smith Drive<br />Sandy<br />Bedfordshire SG19 1LU</p><p>Tel: 01767 680330<br />Mob: 07957 199955<br />Email: <a href=\'mailto:&#108;&#117;&#99;&#121;&#99;&#97;&#110;&#116;&#119;&#101;&#108;&#108;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;\'>&#108;&#117;&#99;&#121;&#99;&#97;&#110;&#116;&#119;&#101;&#108;&#108;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;</a></p>';
	info[1] = '<h3>London, Essex, Kent and Middlesex</h3><p><strong>Sam Padain</strong><br />58 Malpas Road<br />Brockley<br />London SE4 1BS</p><p>Mob: 07754 855 243<br />Tel: 0333 240 9712<br />Email: <a href=\'mailto:&#115;&#97;&#109;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;\'>&#115;&#97;&#109;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;</a></p>';
	info[2] = '<h3>Head Office</h3><p><strong>Birthworks</strong><br />58 Malpas Road<br />Brockley<br />London SE4 1BS </p><p>Tel: 0333 240 9710<br />Email: <a href=\'mailto:&#111;&#102;&#102;&#105;&#99;&#101;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;\'>&#111;&#102;&#102;&#105;&#99;&#101;&#64;&#98;&#105;&#114;&#116;&#104;&#119;&#111;&#114;&#107;&#115;&#46;&#99;&#111;&#46;&#117;&#107;</a></p>';
	
	//DEFINE IMAGE MAPS
	var coords = new Array(noAreas);
	coords[0] = '269,374,268,366,274,363,269,346,287,351,299,350,314,359,328,367,344,373,335,378,325,387,308,384,291,389,277,397,265,387,261,377';
	//coords[1] = '222,236,227,227,237,221,253,239,250,247,257,255,252,265,234,256,222,258';
	//coords[1] = '298,294,313,294,318,290,325,300,328,307,330,317,327,324,317,323,323,333,315,340,304,345,296,337,294,317,302,305';
	coords[1] = '302,345,302,353,321,364,344,374,356,366,359,356,358,352,345,354,337,350,346,340,353,331,343,325,335,320,327,323,319,324,323,333,313,342';
	// WITH LANCASHIRE VERSION coords[3] = '268,390,255,392,244,399,227,392,213,401,205,418,191,411,172,413,160,428,144,421,173,401,181,381,198,369,226,368,239,350,217,361,198,351,184,347,163,350,159,334,186,323,196,301,193,287,175,293,182,275,178,264,191,264,204,267,222,263,232,256,250,264,256,255,250,246,254,239,236,222,216,227,205,207,216,188,197,194,185,198,184,222,173,227,179,206,174,193,166,198,155,213,144,228,129,235,134,267,131,301,124,318,96,323,56,343,25,349,6,330,6,310,28,292,46,267,21,253,24,235,33,210,67,215,75,200,60,196,79,178,102,171,115,176,131,173,166,178,144,169,130,155,128,138,133,121,117,108,95,89,103,55,127,19,136,17,160,34,165,9,192,16,215,8,213,26,191,60,218,52,249,54,244,77,229,115,237,137,261,157,283,202,302,215,312,252,326,268,332,278,359,280,363,305,356,323,344,326,337,321,329,321,329,308,319,292,306,296,299,296,303,307,294,320,297,340,303,350,287,352,270,349,272,362,265,367,261,377';
	//coords[3] = '268,390,255,392,244,399,227,392,213,401,205,418,191,411,172,413,160,428,144,421,173,401,181,381,198,369,226,368,239,350,217,361,198,351,184,347,163,350,159,334,186,323,196,301,193,287,175,293,182,275,178,264,191,264,204,267,222,263,224,259,221,256,224,247,223,238,229,230,229,222,216,227,205,207,216,188,197,194,185,198,184,222,173,227,179,206,174,193,166,198,155,213,144,228,129,235,134,267,131,301,124,318,96,323,56,343,25,349,6,330,6,310,28,292,46,267,21,253,24,235,33,210,67,215,75,200,60,196,79,178,102,171,115,176,131,173,166,178,144,169,130,155,128,138,133,121,117,108,95,89,103,55,127,19,136,17,160,34,165,9,192,16,215,8,213,26,191,60,218,52,249,54,244,77,229,115,237,137,261,157,283,202,302,215,312,252,326,268,332,278,359,280,363,305,356,323,344,326,337,321,329,321,329,308,319,292,306,296,299,296,303,307,294,320,297,340,303,350,287,352,270,349,272,362,265,367,261,377';
	coords[2] = '268,390,255,392,244,399,227,392,213,401,205,418,191,411,172,413,160,428,144,421,173,401,181,381,198,369,226,368,239,350,217,361,198,351,184,347,163,350,159,334,186,323,196,301,193,287,175,293,182,275,178,264,191,264,204,267,222,263,232,256,250,264,256,255,250,246,254,239,236,222,216,227,205,207,216,188,197,194,185,198,184,222,173,227,179,206,174,193,166,198,155,213,144,228,129,235,134,267,131,301,124,318,96,323,56,343,25,349,6,330,6,310,28,292,46,267,21,253,24,235,33,210,67,215,75,200,60,196,79,178,102,171,115,176,131,173,166,178,144,169,130,155,128,138,133,121,117,108,95,89,103,55,127,19,136,17,160,34,165,9,192,16,215,8,213,26,191,60,218,52,249,54,244,77,229,115,237,137,261,157,283,202,302,215,312,252,326,268,332,278,359,280,363,305,356,323,344,326,337,321,329,321,327,324,322,323,318,323,322,332,322,337,314,338,306,343,303,350,287,352,270,349,272,362,265,367,261,377';
	//PRELOAD IMAGES
	var locImages = new Array(noAreas);
	for (var i = 0; i < noAreas; i++)
	{
		locImages[i] = new Image();
		locImages[i].src = 'files/image/birthworks-' + areas[i] + '.gif';
	}
	
	//RENDER POLY
	document.write('<map name="Map">');
	for (var i = 0; i < noAreas; i++)
	{
		document.write('<area shape="poly" coords=' + coords[i] + ' onmouseover="mapover(' + i + ')" onmouseout="mapout(' + i + ')" onclick="stickit(' + i + ')" title="Click to make these contact details \'sticky\'" />');
	}
	document.write('</map>');
	
	//DEFINE FUNCTIONS
	function mapover(area)
	{
		//alert(locImages[area].src);
		document.getElementById('locmap').src = locImages[area].src;
		document.getElementById('locinfo').innerHTML = info[area];
	}
	
	function mapout(area)
	{
		if (sticky == -1)
		{
			document.getElementById('locinfo').innerHTML = '';
			document.getElementById('locmap').src = 'files/image/birthworks-base-map.gif';
		}
		else
		{
			document.getElementById('locinfo').innerHTML = info[sticky];
			document.getElementById('locmap').src = locImages[sticky].src;
		}
	}
	
	function stickit(area)
	{
		document.getElementById('locinfo').innerHTML = info[area];
		//this.blur();
		sticky = area;
	}
	
	
	
	
	
	
	
	
	
	
	
