// JavaScript Document
window.onload = function() {
	var zoom = 1.05;
	var paper = Raphael("carte",460,260).initZoom();
	
    var ville = {};
	
	//Affichage des villes
	ville.verneuil_sur_avre = paper.path("M242.2,162.2L239.5,160.7L231.7,160.7L229.3,161.9L223.7,165.4L217.2,168.7L216.2,164.7L212.7,164.7L211.3,166.2L203.7,166.2L202,164.7L194,163.4L192.2,160.7L189.2,160.7L187.5,156.9L183.5,150.7L182,150.7L177.2,153.4L174,155.4L171.5,155.2L168.2,156.9L166,159.2L156.2,154.4L154.7,150.7L158.5,147.4L161.5,147.4L163.5,147.4L167.2,144.9L168,143.4L174,144.7L179.2,140.2L177.2,136.9L179,134.2L189.2,131.2L196,128.7L199.8,126.2L201,124.4L197.5,120.7L194.5,118.9L188.5,114.9L181.5,110.9L176,110.2L177.2,103.7L177.2,97L171.2,94.7L171.5,79.4L174.5,75.4L177.2,70.7L180.5,75L182.2,75L182.2,76.9L189,77.2L194.2,79.4L199.7,79.4L201.7,77.7L205.7,77.2L211.3,75L220,73.9L226.2,75L233,75L237.5,75L241.7,72.7L244.7,76.7L244.7,83.7L252.2,87.7L252.2,90.7L262,97L266.5,105.4L268.2,110.9L271.2,112.4L281.5,112.4L285.5,114.2L287.2,115.9L287.2,119.9L282.2,121.9L278.5,123.2L278,129.2L273.5,133.4L270.5,133.4L265.5,137.7L262.2,139.2L259.5,143.7L256.7,147.9L256.5,153.2L252.7,156.4L247.5,159.3L245,160.7L242.2,162.2").attr({ fill:'#FFD600', 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);

	ville.balines = paper.path("M294,89.6L293,93.9L291.7,97.1L290.5,99.2L290.5,101.7L294,104.7L298,106.9L298,110.4L296.2,112.7L296.2,118.4L294.2,121.2L291.7,121.2L287.2,119.9L287.2,115.9L285.5,114.2L281.5,112.4L271.2,112.4L268.2,110.9L266.5,105.4L262,97L252.2,90.7L252.2,87.7L264.7,88.4L267.5,92.4L272.7,92.4L273,88.7L278.7,87.7L287.2,88.2L291.5,88.4L294,89.6").attr({ fill:'#E30613' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.piseux = paper.path("M211.3,74.7L211.3,70.7L211.3,66.9L209.7,65.4L210.5,61.9L211.8,54.7L213,49.4L215.5,45.7L213.7,42.4L213.7,40.7L218,40.7L221,40.7L222.2,42.4L225.2,40.7L228,40.7L231.7,40.7L236.2,40.7L238.2,42.4L241.5,43.4L245.7,42.7L245.7,40.7L243.2,37.9L243.5,31.9L245.7,33.2L248.2,31.9L250.2,30.2L256.7,30.2L258,27.7L261,27.7L267,25.9L271,25.9L274,27.4L278,31.2L279.7,33.7L283.2,34.9L287.2,33.4L293.2,30.4L299.5,27.7L305.2,25.9L307.7,23.7L310.2,23.7L310.2,25.7L312.2,28.2L315,29.2L316.2,31.2L314.5,32.7L310.2,33.4L309.5,37.4L309.7,41.2L310.5,45.7L307,47.9L302.7,52.2L299.7,55.2L298,56.2L298.2,60.4L300.5,60.4L301.5,63.7L305,66.7L308.7,70.7L312.7,72.7L313.2,74.7L313.7,79.7L314,84.2L310,85.4L306.2,87.4L303.7,88.7L300.5,90.4L296,90.4L291.5,88.4L287.2,88.2L278.7,87.7L273,88.7L272.7,92.4L267.5,92.4L264.7,88.4L263,88.2L252.2,87.7L244.7,83.7L244.7,76.7L241.7,72.7L237.5,75L226.2,75L220,73.9L211.3,74.7").attr({ fill:'#005091' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.rueil_la_gadeliere = paper.path("M312.7,170.9L311.2,174.4L311.2,177.7L311.2,181.4L314.5,182.7L316.2,185.9L313.7,187.4L315,189.7L318.5,191.9L318.5,195.4L312.5,195.4L306.7,195.4L300.5,197.4L293.2,199.4L291,200.9L287.2,200.9L283.2,196.7L278,192.2L275.1,188.7L276.7,185.9L274,183.7L274,181.4L275.1,178.7L274,176.4L269.2,177.2L265.5,179.2L259.5,183.7L255.7,187.4L253.7,190.7L253.7,194.9L253.7,198.7L252.2,203.7L250.7,207.9L248.7,210.9L245,210.9L243.2,212.4L239.5,212.4L235.2,209.4L232.7,208.4L230,206.7L227.7,200.9L224.2,193.2L221,186.7L217.2,181.7L213.2,178.4L209.7,174.4L208.5,170.9L209.7,168.7L211.3,166.2L212.7,164.7L216.2,164.7L217.2,168.7L223.7,165.4L231.7,160.7L239.5,160.7L242.2,162.2L247.5,159.3L252.7,156.4L256.5,153.2L256.7,147.9L262.2,139.2L265.5,137.7L270.5,133.4L273.5,133.4L278,129.2L282.5,130.2L282.5,131.7L284,135.2L287.2,138.7L285,142.7L287.2,145.9L287.2,154.2L298,158.6L303.5,161.2L308.2,164.9L312.7,170.9").attr({ fill:'#CF043C' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.montigny_sur_avre = paper.path("M344.7,131.9L350,135.2L352,135.2L352,138.9L348.3,143.7L344.7,146.7L344.7,150.7L341.5,153.9L339.7,155.9L339.7,158.4L336.7,161.2L333.2,161.2L332,161.2L332,164.4L332,166.9L325.5,170.9L322,168.7L318.7,168.7L316.2,169.9L312.7,170.9L309.2,165.7L303.5,161.2L296.5,157.9L290.2,155.7L287.2,154.2L287.2,145.9L285,142.7L287.2,138.7L290,140.2L293.5,140.2L295.2,137.2L301.7,137.2L312.7,137.2L315,135.2L326,135.2L326,130.2L329,125.9L331.2,125.9L334.5,132.4L338.7,135.2L344.7,131.9").attr({ fill:'#CDD500' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.courteilles = paper.path("M329,125.9L326,130.2L326,135.2L325,135.2L318.5,135.2L315,135.2L312.7,137.2L307.2,137.2L301.7,137.2L298,137.2L295.2,137.2L293.5,140.2L290,140.2L287.2,138.7L284,135.2L282.5,131.7L282.5,130.2L278,129.2L278.5,123.2L287.2,119.9L291.7,121.2L294.2,121.2L296.2,118.4L296.2,112.7L298,110.4L298,106.9L293.7,104.4L290.5,101.7L290.5,99.2L293,93.9L294,89.6L296,90.4L300.5,90.4L306.2,87.4L314,84.2L314.7,89.4L312.7,92.4L312.7,97.1L314.5,99.7L314.5,111.7L317.5,111.7L322.5,114.9L329,119.7L329,125.9").attr({ fill:'#F5B0D0' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.tillieres_sur_avre = paper.path("M351,111.7L347,111.7L343.5,115.7L341.7,119.7L341.7,123.7L345.8,125.7L344.7,131.9L341.7,133.9L338.7,135.2L334.5,132.4L332.5,128.4L331.2,125.9L329,125.9L329,119.7L322.5,114.9L317.5,111.7L314.5,111.7L314.5,99.7L312.7,97.1L312.7,92.4L314.7,89.4L314,84.2L312.7,72.7L308.7,70.7L301.5,63.7L300.5,60.4L298.2,60.4L298,56.2L307,47.9L310.5,45.7L309.5,37.4L310.2,33.4L314.5,32.7L316.2,31.2L318.2,31.2L326,38.4L331,42.7L337.2,49.7L345.5,49.7L349.2,49.7L352.7,52.7L357.7,50.4L361.2,47.9L362.7,49.4L365.7,58L365.7,64.7L369.2,70.7L371.7,75.7L375.5,81.4L375.5,84.4L373.2,87.4L369.7,92.4L367,94.7L363.5,94.7L359.5,97.1L355.5,99.7L357,103.2L357.5,107.4L354.2,110.2L351,111.7").attr({ fill:'#0094AA' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.breux_sur_avre = paper.path("M362.7,49.4L364.2,44.7L364.2,42.7L361,38.4L366,29.2L369.5,33.4L373.7,34.2L373.7,38.2L373.7,40.7L375.5,47.9L379,51.7L382.5,51.7L384.7,52.9L386.7,49.9L388.5,44.4L392.5,50.2L394.5,51.2L401,58L397.2,61.9L401,64.7L411,70.7L407.7,74.7L407.5,77.7L411,78.9L413.5,80.4L419.5,80.4L420.5,83.2L417,84.7L412.7,84.7L409.2,84.7L409.7,88.7L406.5,88.7L404.5,92.4L404.7,85.7L403.2,83.2L401,84.7L398.2,92.4L399.2,94.2L398.2,97L394.5,93.7L390.7,99.2L386.5,97.1L382.5,99.2L380.2,92.4L379.5,85.7L375.5,84.4L375.5,81.4L365.7,64.7L365.7,58L362.7,49.4").attr({ fill:'#FFD600' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);

	ville.pullay = paper.path("M156.2,154.4L154.7,156.9L154.7,158.7L152.2,160.2L148.5,161.7L148.5,166.2L145.5,168.7L144.5,170.8L138.7,169.7L135.8,171.9L134.7,176.4L130.2,172.7L125.2,168.7L125.2,164.2L121.7,163.9L118.7,163.7L115.5,161.2L114.6,159.5L116.2,158.2L123,147.4L124.5,143.4L124.5,139.4L127.7,135.9L132,131.9L134.7,129.2L134.7,124.4L137.2,122.9L138.7,120.7L138.7,117.2L137.2,115.4L138.2,113.2L142.5,112.7L144.5,115.4L146.7,115.4L148.7,113.4L152.5,110.2L156.2,104.7L160,106.9L168.2,110.2L176,110.2L181.5,110.9L188.5,114.9L194.5,118.9L197.5,120.7L201,124.4L199.8,126.2L196,128.7L189.2,131.2L179,134.2L177.2,136.9L179.2,140.2L174,144.7L168,143.4L167.2,144.9L163.5,147.4L158.5,147.4L154.7,150.7L156.2,154.4").attr({ fill:'#AE8CC0' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);

	ville.mandres = paper.path("M116.2,70.7L123,68.7L128.7,66.4L134.5,63.9L139.7,60.4L142.5,62.2L142.5,64.7L143.7,66.7L147.5,65.5L148.7,70.7L148.7,74.9L150.5,77.9L155,75.7L158.2,74.7L161.7,75.7L164.7,73.7L166.7,75.2L171.2,80.3L171.2,86.2L171.2,94.7L177.2,97L177.2,103.7L176,110.2L172,110.2L168.2,110.2L160,106.9L156.2,104.7L152.5,110.2L148.7,113.4L146.7,115.4L144.5,115.4L142.5,112.7L138.2,113.2L137.2,115.4L131.7,115.4L127.2,115.4L121.7,118.9L118.2,122.7L114.2,119.7L108.5,122.7L103.5,122.7L97,124.4L94.5,118.2L94.5,112.2L100.5,106.9L106,106.5L111.7,103.9L112.2,99.9L121.7,89.4L121.7,85.4L118,76.9L116.4,71.5L116.2,70.7").attr({ fill:'#EB5D0B' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);

	ville.bourth = paper.path("M71.7,57.2L71.7,54.2L68.5,52.2L68.5,46.4L67.2,45.2L67.2,42.7L69.5,41.2L71.7,39.2L73.2,39.2L73.2,35.9L77.5,35.9L80.5,31.9L85,29.4L88.7,27.4L92.7,27.4L95.2,27.4L95.2,30.7L96.7,33.4L96.7,36.4L98.7,38.9L97,40.7L96.7,42.3L98.7,44.7L101.2,45.7L104.5,43.7L107.7,42.3L109.2,44.4L109.2,46.7L109.2,48.9L107.2,51.4L105.5,52.2L104.7,55.4L106,57.2L105.7,60.9L107.5,62.2L109.2,62.2L112.5,65.4L116.2,70.7L118,76.9L120.2,81.4L121.7,85.4L121.7,89.4L118,93.2L115.2,97L112.2,99.9L111.7,103.9L108.5,105.7L105,106.9L100.5,106.9L97.5,109.9L94.5,112.2L94.5,114.2L94.5,118.2L95.7,121.2L97,124.4L94.5,127.2L90.5,128.9L88.2,130.4L85.5,130.4L83.7,131.9L81,131.9L78.7,133.2L75.7,133.2L73.7,131.2L71.7,128.4L69.5,125.4L67.2,123.2L65.7,120.2L64,116.4L64,114.9L65.2,111.2L64,108.2L62.5,104.4L62.5,99.4L61.2,94.7L60,88.9L60,82.7L60,77.7L58.5,74.2L56.2,70.2L54.7,67.2L54.7,65.4L58.2,62.9L62,60.7L66.2,59.9L69.2,58.7L71.7,57.2").attr({ fill:'#E30613' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.les_barils = paper.path("M137.2,115.4L138.7,117.2L138.7,120.7L137.2,122.9L134.7,124.4L134.7,129.2L132,131.9L127.7,135.9L124.5,139.4L124.5,143.4L123,147.4L119.5,152.4L116.2,158.2L112.7,160.9L108.5,164.7L103.7,162.9L101,162.9L97,164.7L90.7,167.4L86.2,168.7L84.2,168.7L77,168.7L77,164.7L75.5,159.2L75.5,154.9L71.7,156.4L68.2,155.2L64.7,156.4L62.7,154.9L62.7,147.9L65.5,145.2L69.5,145.2L73.7,138.7L73.7,133.2L73.7,131.2L75.7,133.2L78.7,133.2L81,131.9L83.7,131.9L85.5,130.4L88.2,130.4L94.5,127.2L96.7,123.8L103.5,122.7L108.5,122.7L114.2,119.7L118.2,122.7L121.7,118.9L127.2,115.4L131.7,115.4L137.2,115.4").attr({ fill:'#789110' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.saint_victor_sur_avre = paper.path("M166,159.2L163,161.4L163,164.4L163,168.7L163,171.7L161.5,174.7L157.8,177.7L157,180.2L159.2,185.4L157.8,188.2L154.7,192.2L150.7,195.9L152.2,199.9L154.7,204.7L149.7,204.7L145.7,207.4L142,210.8L138.7,210.8L138.7,213.9L135.8,215.2L133,215.2L130.5,220.7L128.5,220.7L124.2,216.9L113.5,217.4L113.5,209.4L116.2,204.2L116.2,192.2L120.2,192.2L121.7,188.9L125.2,186.9L125.2,184.2L126.7,181.4L129.2,181.4L132.7,179.9L134.7,176.4L135.8,171.9L138.7,169.7L144.5,170.8L145.5,168.7L148.5,166.2L148.5,161.7L154.7,158.7L154.7,156.9L156.2,154.4L166,159.2").attr({ fill:'#CDD500' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.armentieres_sur_avre = paper.path("M126.7,181.4L125.2,184.2L125.2,186.9L121.7,188.9L120.2,192.2L116.2,192.2L116.2,198.7L116.2,204.2L113.5,209.4L113.5,217.4L108.5,222.4L100.7,232.2L100.7,235.7L97.5,235.7L94.5,232.4L90.8,232.9L83.5,228.9L77,226.2L72.7,229.4L69.5,232.9L69.5,237.2L67,239.7L59.2,241.4L54.9,235.9L49.7,234.9L47,231.7L47,228.2L43,228.2L43.2,226.2L51,226.2L58.7,226.2L61,223.7L64.7,220.7L72.7,220.7L80,220.7L84.2,217.4L87,212.4L94.5,207.4L97.2,201.2L100.7,197.9L104.2,195.7L105.7,192.2L111.2,186.2L116.7,186.2L121.7,184.9L123.2,180.2L126.7,181.4").attr({ fill:'#F08013' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.gournay_le_guerin = paper.path("M73.7,131.2L73.7,134.7L73.7,138.7L71,142.4L69.5,145.2L65.5,145.2L62.7,147.9L62.7,151.2L62.7,154.9L64.7,156.4L68.2,155.2L71.7,156.4L75.5,154.9L75.5,159.2L77,164.7L77,168.7L74.5,171.9L71.5,173.4L67.2,173.4L64.2,176.7L60.5,181.7L54.7,185.7L51.7,189.2L47,192.2L42.7,188.9L38,186.9L33,183.4L29.2,178.4L26.7,176.4L24.2,178.4L22.7,177.2L19.2,177.2L19.2,179.2L16,180.4L14,178.4L6.2,180.9L0.7,174.2L3.2,172.2L6.2,168.7L8.7,165.2L13,162.9L14.2,159.2L17,157.7L21.7,155.4L28,153.2L32.2,151.7L35.5,151.2L37.2,147.9L37.2,141.7L35.7,139.4L38.8,136.9L42.5,134.9L42.5,131.2L45.7,129.2L47.5,124.4L54.7,121.2L60.7,119.7L64.9,118.4L67.2,123.2L69.5,125.4L71.7,128.4L73.7,131.2").attr({ fill:'#7689C4' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.saint_christophe_sur_avre = paper.path("M134.7,176.4L132.7,179.9L129.2,181.4L126.7,181.4L123.2,180.2L121.7,184.9L116.7,186.2L111.2,186.2L105.7,192.2L104.2,195.7L100.7,197.9L97.2,201.2L94.5,207.4L90.5,210.2L87,212.4L84.2,217.4L80,220.7L72.7,220.7L67.7,220.7L70,216.9L71,212.4L67.7,208.7L64.5,205.7L62.7,201.7L60.2,198.5L54.7,199.7L50.2,198.5L47.5,197.4L47,192.2L51.3,189.4L54.7,185.7L60.5,181.7L67.2,173.4L71.5,173.4L74.5,171.9L77,168.7L86.2,168.7L97,164.7L101,162.9L104.7,163.3L108.5,164.7L114.6,159.5L115.5,161.2L118.7,163.7L121.7,163.9L125.2,164.2L125.2,168.7L130.2,172.7L134.7,176.4").attr({ fill:'#F5B0D0' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	ville.chennebrun = paper.path("M67.7,220.7L64.7,220.7L61,223.7L58.7,226.2L53.7,226.2L51,226.2L46,226.2L43.2,226.2L42.2,223.4L43.7,223.4L47,223.4L47,220.7L44.7,217.9L38.8,217.9L38.8,214.7L38.8,212.4L41.7,209.4L38.8,206.4L43.5,200.9L47.5,197.4L50.2,198.5L54.7,199.7L60.2,198.5L62.7,201.7L64.5,205.7L67.7,208.7L71,212.4L70,216.9L67.7,220.7").attr({ fill:'#7E1974' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);

	var current = null;
	for (var state in ville) {
		(function (st, state) {
			st[0].style.cursor = "pointer";
			
			st[0].onclick = function () {
				
					switch (state) {
						case "verneuil_sur_avre":
							document.location.href="/communes/verneuil-sur-avre-67.html";
						break;
						case "balines":
							document.location.href="/communes/balines-52.html";
						break;
						case "piseux":
							document.location.href="/communes/piseux-61.html";
						break;
						case "rueil_la_gadeliere":
							document.location.href="/communes/rueil-la-gadeliere-63.html";
						break;
						case "montigny_sur_avre":
							document.location.href="/communes/montigny-sur-avre-60.html";
						break;
						case "courteilles":
							document.location.href="/communes/courteilles-57.html";
						break;
						case "tillieres_sur_avre":
							document.location.href="/communes/tillieres-sur-avre-66.html";
						break;
						case "breux_sur_avre":
							document.location.href="/communes/breux-sur-avre-54.html";
						break;
						case "pullay":
							document.location.href="/communes/pullay-62.html";
						break;
						case "mandres":
							document.location.href="/communes/mandres-59.html";
						break;
						case "bourth":
							document.location.href="/communes/bourth-53.html";
						break;
						case "les_barils":
							document.location.href="/communes/les-barils-56.html";
						break;
						case "saint_victor_sur_avre":
							document.location.href="/communes/saint-victor-sur-avre-65.html";
						break;
						case "armentieres_sur_avre":
							document.location.href="/communes/armentieres-sur-avre-51.html";
						break;
						case "gournay_le_guerin":
							document.location.href="/communes/gournay-le-guerin-58.html";
						break;
						case "saint_christophe_sur_avre":
							document.location.href="/communes/saint-christophe-sur-avre-64.html";
						break;
						case "chennebrun":
							document.location.href="/communes/chennebrun-55.html";
						break;	
					}
				};			
			
			st[0].onmouseover = function () {
				
					switch (state) {
						case "verneuil_sur_avre":
							ville[state].color = "#FFD600";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "balines":
							ville[state].color = "#E30613";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "piseux":
							ville[state].color = "#005091";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "rueil_la_gadeliere":
							ville[state].color = "#CF043C";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "montigny_sur_avre":
							ville[state].color = "#CDD500";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "courteilles":
							ville[state].color = "#F5B0D0";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "tillieres_sur_avre":
							ville[state].color = "#0094AA";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "breux_sur_avre":
							ville[state].color = "#FFD600";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "pullay":
							ville[state].color = "#AE8CC0";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "mandres":
							ville[state].color = "#EB5D0B";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "bourth":
							ville[state].color = "#E30613";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "les_barils":
							ville[state].color = "#789110";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "saint_victor_sur_avre":
							ville[state].color = "#CDD500";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "armentieres_sur_avre":
							ville[state].color = "#F08013";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "gournay_le_guerin":
							ville[state].color = "#7689C4";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "saint_christophe_sur_avre":
							ville[state].color = "#F5B0D0";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;
						case "chennebrun":
							ville[state].color = "#7E1974";
							current && ville[current].animate({"fill-opacity": "1"}, 500) && (document.getElementById(current).style.display = "");
						break;	
					}
				st.animate({"fill-opacity": "0.7"}, 500);
				paper.safari();
				document.getElementById(state).style.display = "block";
				current = state;
			};
			
			st[0].onmouseout = function () {
				st.animate({fill: st.color,"fill-opacity": "1"}, 500);
				paper.safari();
			};
		})(ville[state], state);
	}
	
	var paper = Raphael("frontiere",700,450).initZoom();
	
	frontiere  = paper.path("M316.6,5L316.6,7L318.6,9.5L321.3,10.5L322.6,12.5L324.6,12.5L332.3,19.8L337.3,24L343.6,31L351.8,31L355.6,31L359.1,34L364.1,31.8L367.6,29.3L369.1,30.8L370.6,26L370.6,24L367.3,19.8L372.3,10.5L375.8,14.8L380.1,15.5L380.1,19.5L380.1,22L381.8,29.3L385.3,33L388.8,33L391.1,34.3L393.1,31.3L394.8,25.8L398.8,31.5L400.8,32.5L407.3,39.4L403.6,43.3L407.3,46L417.3,52L414.1,56L413.8,59L417.3,60.3L419.8,61.8L425.8,61.8L426.8,64.5L423.3,66L419.1,66L415.6,66L416.1,70L412.8,70L410.8,73.8L411.1,67L409.6,64.5L407.3,66L404.6,73.8L405.6,75.5L404.6,78.3L400.8,75L397.1,80.5L392.8,78.4L388.8,80.5L386.6,73.8L385.8,67L381.8,65.8L379.6,68.8L376.1,73.8L373.3,76L369.8,76L365.8,78.4L361.8,81L363.3,84.5L363.8,88.8L360.6,91.5L357.3,93L353.3,93L349.8,97L348.1,101L348.1,105L352.2,107L351.1,113.3L356.3,116.5L358.3,116.5L358.3,120.3L354.7,125L351.1,128L351.1,132L347.8,135.3L346.1,137.3L346.1,139.8L343.1,142.5L339.6,142.5L338.3,142.5L338.3,145.8L338.3,148.3L331.8,152.3L328.3,150L325.1,150L322.6,151.3L319.1,152.3L315.6,147L314.6,146.2L319.1,152.3L317.6,155.8L317.6,159L317.6,162.8L320.8,164L322.6,167.3L320.1,168.8L321.3,171L324.8,173.3L324.8,176.8L318.8,176.8L313.1,176.8L306.8,178.8L299.6,180.8L297.3,182.3L293.6,182.3L289.6,178L284.3,173.5L281.4,170L283.1,167.3L280.3,165L280.3,162.8L281.4,160L280.3,157.8L275.6,158.5L271.8,160.5L265.8,165L262.1,168.8L260.1,172L260.1,176.3L260.1,180L258.6,185L257.1,189.3L255.1,192.3L251.3,192.3L249.6,193.8L245.8,193.8L241.6,190.8L239.1,189.8L236.3,188L234.1,182.3L230.6,174.5L227.3,168L223.6,163L219.6,159.8L216.1,155.8L214.8,152.3L216.1,150L217.7,147.5L210.1,147.5L208.3,146L200.3,144.8L198.6,142L195.6,142L193.8,138.3L189.8,132L188.3,132L183.6,134.8L180.3,136.8L177.8,136.5L174.6,138.3L172.3,140.5L169.3,142.8L169.3,145.8L169.3,150L169.3,153L167.8,156L164.1,159L163.3,161.5L165.6,166.8L164.1,169.5L161.1,173.5L157.1,177.3L158.6,181.3L161.1,186L156.1,186L152.1,188.8L148.3,192.1L145.1,192.1L145.1,195.3L142.2,196.5L139.3,196.5L136.8,202L134.8,202L130.6,198.3L119.8,198.8L114.8,203.8L107.1,213.5L107.1,217L103.8,217L100.8,213.8L97.2,214.3L89.8,210.3L83.3,207.5L79.1,210.8L75.8,214.3L75.8,218.5L73.3,221L65.6,222.8L61.2,217.3L56.1,216.3L53.3,213L53.3,209.5L49.3,209.5L49.6,207.5L48.6,204.8L50.1,204.8L53.3,204.8L53.3,202L51.1,199.3L45.2,199.3L45.2,196L45.2,193.8L48.1,190.8L45.2,187.8L49.8,182.3L53.8,178.8L53.3,173.5L49.1,170.3L44.3,168.3L39.3,164.8L35.6,159.8L33.1,157.8L30.6,159.8L29.1,158.5L25.6,158.5L25.6,160.5L22.3,161.8L20.3,159.8L12.6,162.3L7.1,155.5L9.6,153.5L12.6,150L15.1,146.5L19.3,144.3L20.6,140.5L23.3,139L28.1,136.8L34.3,134.5L38.6,133L41.8,132.5L43.6,129.3L43.6,123L42.1,120.8L45.2,118.3L48.8,116.3L48.8,112.5L52.1,110.5L53.8,105.8L61.1,102.5L67.1,101L71.3,99.8L71.3,99.8L70.3,97.8L70.3,96.3L71.6,92.5L70.3,89.5L68.8,85.8L68.8,80.8L67.6,76L66.3,70.3L66.3,64L66.3,59L64.8,55.5L62.6,51.5L61.1,48.5L61.1,46.8L64.6,44.3L68.3,42L72.6,41.3L75.6,40L78.1,38.5L78.1,35.5L74.8,33.5L74.8,27.8L73.6,26.5L73.6,24L75.8,22.5L78.1,20.5L79.6,20.5L79.6,17.3L83.8,17.3L86.8,13.3L91.3,10.8L95.1,8.8L99.1,8.8L101.6,8.8L101.6,12L103.1,14.8L103.1,17.8L105.1,20.3L103.3,22L103.1,23.6L105.1,26L107.6,27L110.8,25L114.1,23.6L115.6,25.8L115.6,28L115.6,30.3L113.6,32.8L111.8,33.5L111.1,36.8L112.3,38.5L112.1,42.3L113.8,43.5L115.6,43.5L118.8,46.8L122.6,52L124.3,58.3L122.8,52.8L122.6,52L129.3,50L135.1,47.8L140.8,45.3L146.1,41.8L148.8,43.5L148.8,46L150.1,48L153.8,46.9L155.1,52L155.1,56.3L156.8,59.3L161.3,57L164.6,56L168.1,57L171.1,55L173.1,56.5L177.6,61.6L177.6,67.5L177.6,76L177.8,60.8L180.8,56.8L183.6,52L186.8,56.4L188.6,56.4L188.6,58.3L195.3,58.5L200.6,60.8L206.1,60.8L208.1,59L212.1,58.5L217.7,56.4L226.3,55.3L217.7,56L217.7,52L217.7,48.3L216.1,46.8L216.9,43.3L218.2,36L219.3,30.8L221.8,27L220.1,23.8L220.1,22L224.3,22L227.3,22L228.6,23.8L231.6,22L234.3,22L238.1,22L242.6,22L244.6,23.8L247.8,24.8L252.1,24L252.1,22L249.6,19.3L249.8,13.3L252.1,14.5L254.6,13.3L256.6,11.5L263.1,11.5L264.3,9L267.3,9L273.3,7.3L277.3,7.3L280.3,8.8L284.3,12.5L286.1,15L289.6,16.3L293.6,14.8L299.6,11.8L305.8,9L311.6,7.3L314.1,5L316.6,5M316.8,27L315.8,18.8L316.1,22.5L316.8,27M381.8,62.8L375.6,52.1L378.1,57L381.8,62.8M306.8,71.8L312.6,68.8L320.3,65.5L316.3,66.8L312.6,68.8L310.1,70L306.8,71.8M271.1,69.7L269.3,69.5L258.6,69L271.1,69.7M122.9,76.4L128.1,70.8L124.3,74.5L122.9,76.4M299.3,75.3L299.3,75.3L300.4,70.9L302.3,71.8L300.4,70.9L299.3,75.3L299.3,75.3M263.4,75.2L258.6,72L263.4,75.2M304.3,88.3L300.1,85.8L296.8,83L300.4,86L304.3,88.3M112.4,87.9L112.4,87.9L112.4,87.9L112.4,87.9M94.6,111.8L100.8,108.5L96.8,110.3L94.6,111.8M75.8,126.5L80.1,120L77.3,123.8L75.8,126.5M122.6,139.5L129.3,128.8L125.8,133.8L122.6,139.5M304.3,139.9L302.8,139.3L301.4,138.7L304.3,139.9M114.8,146L110.1,144.3L107.3,144.3L111,144.6L114.8,146L120.9,140.8L119.1,142.3L114.8,146M230.1,146.8L238.1,142L235.7,143.3L230.1,146.8M66.8,163L73.6,154.8L70.6,158L66.8,163M321.6,0L316.6,0L314.1,0L312.1,0L310.7,1.3L309,2.8L304.4,4.2L304.1,4.3L303.8,4.4L297.5,7.2L297.4,7.2L297.3,7.3L291.6,10.2L289.5,10.9L289.2,10.8L288.4,9.6L288.1,9.2L287.7,8.9L283.7,5.1L283.2,4.6L282.6,4.3L279.6,2.8L278.5,2.3L277.3,2.3L273.3,2.3L272.6,2.3L271.9,2.5L266.6,4L264.3,4L261.2,4L260,6.5L256.6,6.5L254.7,6.5L253.3,7.7L252.1,8.8L245.2,4.9L244.8,13L244.6,17.2L244.4,17L242.6,17L238.1,17L234.3,17L231.6,17L230.2,17L230,17.1L229.9,17L227.3,17L224.3,17L220.1,17L215.1,17L215.1,22L215.1,23.8L215.1,25L215.7,26.1L216,26.7L215.2,28L214.6,28.8L214.4,29.7L213.3,34.9L213.3,35L213.2,35.1L212,42.2L211.2,45.6L210.5,48.5L212.7,50.4L212.7,50.5L212.7,52L212.7,52.9L210.9,53.6L207.4,54L205.9,54.2L204.8,55.2L204.2,55.7L201.6,55.7L197.3,53.9L196.4,53.5L195.5,53.5L193.6,53.4L193.6,51.4L189.3,51.4L187.6,49L183,42.9L179.2,49.5L177,53.4L176.8,53.2L176.5,52.8L176.1,52.5L174.1,51L171.2,48.9L168.3,50.8L167.2,51.6L165.9,51.2L164.5,50.8L163.1,51.2L160.1,52.2L160.1,52L160.1,51.4L159.9,50.8L158.7,45.7L157.4,40.6L153.8,41.7L153.8,40.8L151.5,39.3L148.7,37.5L146,35.8L143.3,37.6L138.4,40.8L133.2,43.1L127.7,45.3L124.6,46.2L122.9,43.8L122.6,43.5L122.3,43.2L119.1,40L117.6,38.5L117.3,38.5L117.4,37L117,36.5L117.5,35.9L119.5,33.4L120.6,32L120.6,30.3L120.6,28L120.6,25.8L120.6,24.2L119.6,22.9L118.1,20.7L115.8,17.5L112.1,19L110.9,19.5L109,17.1L108.1,16L108.1,14.8L108.1,13.5L107.5,12.4L106.6,10.7L106.6,8.8L106.6,3.8L101.6,3.8L99.1,3.8L95.1,3.8L93.8,3.8L92.7,4.3L89,6.3L88.9,6.4L88.9,6.4L84.4,8.9L83.5,9.4L82.8,10.3L81.3,12.3L79.6,12.3L74.6,12.3L74.6,16.9L72.8,18.5L70.8,19.8L68.6,21.3L68.6,24L68.6,26.5L68.6,28.6L69.8,29.8L69.8,33.5L69.8,36.3L70.3,36.6L67.4,37.1L66.5,37.2L65.7,37.7L62,40L61.8,40.1L61.7,40.2L58.2,42.7L56.1,44.2L56.1,46.8L56.1,48.5L56.1,49.7L56.6,50.7L58.1,53.7L58.1,53.8L58.2,54L60.3,57.7L61.3,60L61.3,64L61.3,70.3L61.3,70.8L61.4,71.3L62.7,77.1L62.7,77.2L62.7,77.3L63.8,81.4L63.8,85.8L63.8,86.7L64.2,87.6L65.7,91.4L65.7,91.4L65.7,91.4L66.2,92.7L65.6,94.7L65.3,95.4L65.3,96.3L65.3,96.3L59.8,97.7L59.4,97.8L59,97.9L51.8,101.2L49.8,102L49.1,104L48,107.1L46.2,108.2L43.8,109.7L43.8,112.5L43.8,113.3L42.8,113.9L42.4,114.1L42.1,114.3L38.9,116.8L35.4,119.7L37.9,123.5L38.6,124.5L38.6,127.9L37.8,128.1L37.3,128.1L36.9,128.3L32.6,129.8L26.4,132L26.1,132.1L25.9,132.2L21.2,134.5L21,134.5L20.9,134.6L18.2,136.1L16.4,137.1L15.8,138.9L15.2,140.8L12.7,142.1L11.7,142.6L11,143.6L8.6,146.9L6.1,149.9L3.9,151.6L0,154.7L3.2,158.7L8.7,165.4L10.8,168.1L14.1,167L18.9,165.4L21.1,167.6L24.1,166.4L27.4,165.2L28.7,164.7L30.5,166.2L32.8,164.4L35.3,167.7L35.8,168.4L36.4,168.8L41.4,172.3L41.9,172.7L42.4,172.9L46.5,174.6L48.5,176.1L48.6,176.7L46.5,178.5L46.2,178.7L46,179L41.4,184.5L38.5,188L41.1,190.7L40.2,191.7L40.2,193.7L40.2,196L40.2,199.3L40.2,204.3L43.1,204.3L43.9,206.5L44.5,208.1L44.4,208.9L43.6,214.5L48.3,214.5L48.3,214.8L49.5,216.2L52.2,219.5L53.4,220.8L55.1,221.2L58.5,221.8L61.6,225.8L63.6,228.3L66.7,227.6L74.4,225.9L75.8,225.6L76.8,224.5L79.3,222L80.8,220.6L80.8,218.5L80.8,216.2L82.4,214.5L84,213.2L87.6,214.8L94.8,218.6L96.2,219.4L97.9,219.2L98.9,219.1L100.1,220.4L101.6,222L103.8,222L107.1,222L112.1,222L112.1,217L112.1,215.2L118.5,207.1L122,203.7L128.8,203.3L131.5,205.7L132.9,207L134.8,207L136.8,207L140,207L141.4,204.1L142.5,201.5L143.2,201.5L144.2,201.1L147.1,199.8L150.1,198.5L150.1,197.1L150.2,197.1L151.7,195.8L155.2,192.7L157.6,191L161.1,191L169.3,191L165.5,183.7L163.1,179.2L162.9,178.6L164.5,177.1L164.8,176.9L165,176.5L168.1,172.5L168.3,172.2L168.5,171.8L170,169.1L171.1,167L170.2,164.8L168.8,161.6L171,159.9L171.8,159.2L172.3,158.2L173.8,155.2L174.3,154.2L174.3,153L174.3,150L174.3,145.8L174.3,145.3L175.3,144.5L175.6,144.3L175.8,144L177.6,142.3L178.8,141.6L179.8,141.7L181.5,141.9L182.9,141L186.1,139L187.8,138.1L189.4,140.7L191,144.1L192.4,147L195.6,147L195.8,147L196.1,147.4L197.3,149.3L199.5,149.7L206.1,150.7L206.8,151.3L208.2,152.5L209.6,152.5L210.1,153.9L211.4,157.4L211.7,158.3L212.3,159L215.8,163L216.1,163.4L216.4,163.6L219.9,166.5L223,170.6L226,176.6L229.5,184.2L231.7,189.8L232.3,191.3L233.6,192.2L236.4,194L236.8,194.2L237.2,194.4L239.2,195.2L242.9,197.8L244.2,198.8L245.8,198.8L249.6,198.8L251.4,198.8L252.8,197.5L253.2,197.3L255.1,197.3L257.7,197.3L259.2,195L261.2,192L261.6,191.5L261.8,190.9L263.3,186.7L263.3,186.6L263.4,186.4L264.9,181.4L265.1,180.7L265.1,180L265.1,176.3L265.1,173.4L266,171.9L269.1,168.8L274.5,164.7L275.3,164.3L275.3,165L275.3,167.4L276.6,168.4L275.4,170.5L277.6,173.2L280.5,176.7L280.7,177L281.1,177.3L286.1,181.6L289.9,185.7L291.4,187.2L293.6,187.2L297.3,187.2L298.8,187.2L300.1,186.4L301.7,185.4L308.1,183.6L308.2,183.5L308.3,183.5L313.8,181.7L318.8,181.7L324.8,181.7L329.8,181.7L329.8,176.7L329.8,173.2L329.8,170.5L328.4,169.6L329.2,169.1L327,164.9L325.2,161.6L324.3,160L322.6,159.3L322.6,159.3L322.6,159L322.6,156.8L322.7,156.4L323.9,156.1L324.4,155.9L324.8,155.7L326.2,155L326.8,155L329.1,156.5L331.8,158.2L334.4,156.5L340.9,152.5L343.3,151L343.3,148.2L343.3,147.5L345,147.5L346.4,146.2L349.4,143.4L351.1,141.9L351.1,139.7L351.1,139.1L351.5,138.7L354.6,135.5L356.1,134.1L356.1,132L356.1,130.4L357.9,128.9L358.3,128.5L358.7,128L362.3,123.3L363.3,121.9L363.3,120.3L363.3,116.5L363.3,111.5L358.3,111.5L357.7,111.5L356.6,110.8L357.1,107.9L357.8,104.2L354.4,102.5L353.1,101.9L354.1,99.7L355.6,98L357.3,98L358.4,98L359.4,97.5L362.7,96L363.3,95.8L363.8,95.3L367,92.6L369.1,90.8L368.8,88.2L368.3,83.9L368.2,83.2L368.1,82.9L368.5,82.7L371.2,81L373.3,81L375.1,81L376.5,79.9L379.2,77.6L379.8,77.2L380.2,76.6L381.6,74.5L381.7,74.8L381.8,75.3L384.1,82.1L385.9,87.6L391.1,84.9L392.9,84L394.9,85L398.8,86.9L401.2,83.3L401.8,82.5L405.4,85.7L405,95.2L415.2,76.1L415.8,75L416.1,75L421.7,75L421.2,71L423.3,71L424.3,71L425.3,70.6L428.8,69.1L433.1,67.2L431.5,62.8L430.5,60L429.3,56.8L425.8,56.8L421.2,56.8L420.3,56.2L421.2,55.2L424.8,50.7L419.9,47.7L411.2,42.5L414.2,39.4L410.9,35.9L404.4,29.1L403.8,28.4L403.1,28L402.2,27.6L398.9,22.9L393.1,14.6L390.1,24.2L388.9,28L388.8,28L387.5,28L386.4,26.8L385.1,21.4L385.1,19.5L385.1,15.5L385.1,11.3L380.9,10.6L378.5,10.1L376.2,7.3L371.4,1.6L367.9,8.1L362.9,17.4L361.4,20.2L363.3,22.8L365,24.9L364.7,25.2L361.6,27.4L359.9,28.1L358.8,27.2L357.4,26L355.6,26L351.8,26L345.8,26L341,20.7L340.8,20.4L340.6,20.2L335.6,16L328,8.8L326.5,7.5L325.3,7.5L324.6,6.4L323,5.8L321.6,5.3L321.6,5.2L321.6,5L321.6,0").attr({ fill:'#FFF' , 'stroke':'#FFF' , 'stroke-width':'1' , 'fill-opacity':'1' , 'stroke-opacity':'1'}).setZoom(zoom);
	
	
};
