var num_photo=0;
var num ;
var matos = new Array();

matos[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[2] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[4] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[6] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[11] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[12] = new Array(1,1,0,0,0,0,2,3,4,1,1,2,5,2,0,0,0,0,0,0,0,0);
matos[13] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[15] = new Array(1,0,0,1,1,0,1,2,7,1,1,1,3,1,0,0,0,0,0,0,0,0,0);
matos[17] = new Array(1,1,0,0,0,0,1,1,3,1,2,1,3,1,0,0,0,0,0,0,0,0,0);
matos[19] = new Array(1,1,0,1,1,0,3,5,8,3,0,2,4,3,0,0,0,0,0,0,10,2);
matos[23] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[24] = new Array(1,2,1,1,6,1,3,4,10,1,1,1,2,3,20,0,0,0,0,0,0,0);
matos[25] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[27] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[28] = new Array(1,1,1,1,3,5,0,0,20,2,2,2,4,1,40,6,1,6,4,1,0,0,0);
matos[32] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[33] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[35] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
matos[36] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);


function eff_ville() {
document.getElementById("ville").style.visibility = 'hidden';
}

function aff_ville(num_ville) {


document.getElementById("ville").style.visibility = 'hidden';
X = assoc[num_ville][1];
Y = assoc[num_ville][2];
document.getElementById("ville").style.left = X +"px";
document.getElementById("ville").style.top = Y +"px";
if ( num_ville!=0 ) {document.getElementById("ville").innerHTML ='<img src="departement/ville_lien'+ num_ville + '.gif"/>';}
document.getElementById("ville").style.visibility = 'visible'; 

}

function aff_assoc(num_ville) {
ville_num = assoc[num_ville][3];
nb_photo=assoc[ville_num][22] ;

if (ville_num>2)  {aff1 ="de ";} else {aff1="d'";};
document.getElementById("titre_rt").innerHTML ='Moyen logistique '+ aff1 + assoc[ville_num][0];



if (nb_photo !=0 ) {
	racine = "/" + assoc[ville_num][4] + "/moyen_rt";
aff= '<table height="110" border="1" cellspacing="0" cellpadding="0"><tr>';
aff= aff + '<td width="142"><div align="center"><a href="#" onClick="agrand_photo(1,1,ville_num);" ><img src="' + racine + '/image/photo_001.jpg" border="0" title="Cliquez sur limage pour agrandissemnt"></a></div></td>';
if (nb_photo >1 ) {aff= aff + '<td width="142"><div align="center"><a href="#" onClick="agrand_photo(1,2,ville_num);" ><img src="' + racine  + '/image/photo_002.jpg" border="0" title="Cliquez sur limage pour agrandissemnt"></a></div></td>';};
if (nb_photo >2 ) {aff= aff + '<td width="142"><div align="center"><a href="#" onClick="agrand_photo(1,3,ville_num);" ><img src="' + racine + '/image/photo_003.jpg" border="0" title="Cliquez sur limage pour agrandissemnt"></a></div></td>';};
aff= aff + '</tr> </table>';

if (nb_photo >3 ) {aff= aff + '<table  height="110" border="1" align="center" cellpadding="0" cellspacing="0"><tr>';
aff= aff + '<td width="142"><div align="center"><a href="#" onClick="agrand_photo(1,4,ville_num);" ><img src="' + racine + '/image/photo_004.jpg" border="0" title="Cliquez sur limage pour agrandissemnt"></a></div></td>';
if (nb_photo >4 ) {aff= aff + '<td width="142"><div align="center"><a href="#" onClick="agrand_photo(1,5,ville_num);" ><img src="' + racine + '/image/photo_005.jpg" border="0" title="Cliquez sur limage pour agrandissemnt"></a></div></td>';};
if (nb_photo >5 ) {aff= aff + '<td width="142"><div align="center"><a href="#" onClick="agrand_photo(1,6,ville_num);" ><img src="' + racine + '/image/photo_006.jpg" border="0" title="Cliquez sur limage pour agrandissemnt"></a></div></td>';};
aff= aff + '</tr></table>'; };
        } else { aff = '<div align="center"><img src="photo/galerie/vps.gif"> </div>'};

aff= aff + '<br>';

if (matos[ville_num][0] !=0) {
aff= aff + '<table width="324" border="1" cellpadding="2" cellspacing="0" class="Style15">';
if (matos[ville_num][1] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][1] + '</td><td width="276">Véhicule de Premiers Secours à Personnes</td></tr>';};
if (matos[ville_num][2] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][2] + '</td><td width="276">Véhicule logisitique</td></tr>';};
if (matos[ville_num][3] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][3] + '</td><td width="276">Véhicule léger</td></tr>';};
if (matos[ville_num][4] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][4] + '</td><td width="276">Tente</td></tr>';};
if (matos[ville_num][5] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][5] + '</td><td width="276">Groupe electrogène</td></tr>';};
if (matos[ville_num][6] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][6] + '</td><td width="276">Défibrillateur Automatique Externe</td></tr>';};
if (matos[ville_num][7] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][7] + '</td><td width="276">Aspirateur de muscosité</td></tr>';};
if (matos[ville_num][8] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][8] + '</td><td width="276">Brancard</td></tr>';};
if (matos[ville_num][9] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][9] + '</td><td width="276"><a href="documentation/lot_a.pdf" target="_blank"  >Lot A (voir description)</a></td></tr>';};
if (matos[ville_num][10] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][10] + '</td><td width="276"><a href="documentation/lot_b.pdf" target="_blank"  >Lot B (voir description)</a></td></tr>';};
if (matos[ville_num][11] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][11] + '</td><td width="276"><a href="documentation/lot_c.pdf" target="_blank"  >Lot C (voir description)</a></td></tr>';};
if (matos[ville_num][20] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][20] + '</td><td width="276">Snogg</td></tr>';};
if (matos[ville_num][21] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][21] + '</td><td width="276">Porte Snogg</td></tr>';};
if (matos[ville_num][12] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][12] + '</td><td width="276">Moyen radio portatif</td></tr>';};
if (matos[ville_num][13] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][13] + '</td><td width="276">Moyen radio fixe</td></tr>';};
if (matos[ville_num][14] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][14] + '</td><td width="276">Couverture</td></tr>';};
if (matos[ville_num][15] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][15] + '</td><td width="276">Eclairage Fluo</td></tr>';};
if (matos[ville_num][16] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][16] + '</td><td width="276">Barque</td></tr>';};
if (matos[ville_num][17] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][17] + '</td><td width="276">Pompe immergée</td></tr>';};
if (matos[ville_num][18] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][18] + '</td><td width="276">Nettoyeur haute pression</td></tr>';};
if (matos[ville_num][19] !=0) {aff= aff + '<tr><td width="36" >'+matos[ville_num][19] + '</td><td width="276">Aspirateur à eau</td></tr>';};

aff= aff + '</table><br>'
} else { aff =  aff +'<p>La Représentation Territoriale ' + aff1 +assoc[ville_num][0] + '</br> n\'a pas fourni aucune information</p>'};
              
			
document.getElementById("coord_rt").innerHTML =aff;
}


function affhds() {


aff ='<img src="departement/hds_transparent.gif" width="329" height="512" border="0" usemap="#Map">';
aff= aff +'<map name="Map">';
aff= aff +'<area shape="poly" coords="194,450,205,437,210,440,218,433,220,425,252,417,262,420,247,454,245,461,262,471,253,480,255,484,254,489,258,491,260,498,253,498,249,507,238,507,233,501,231,488,203,500,198,482,208,471" href=# onMouseOver="aff_ville(1);" onMouseOut ="eff_ville(1);" onClick="aff_assoc(1);">';
aff= aff +'<area shape="poly" coords="210,99,224,104,230,112,248,102,252,96,279,93,284,91,294,79,288,76,252,88,248,77,240,69,235,44,221,44,221,58,231,71,217,90,210,93" href=# onMouseOver="aff_ville(2);" onMouseOut ="eff_ville(2);" onClick="aff_assoc(2);">';
//aff= aff +'<area shape="poly" coords="225,360,238,382,249,383,260,375,272,343,251,329,240,352,225,349,220,359" href=# onMouseOver="aff_ville(3);" onMouseOut ="eff_ville(3);" onClick="aff_assoc(3);">';
aff= aff +'<area shape="poly" coords="200,108,209,99,209,93,216,89,222,82,229,71,218,58,209,60,205,75,201,71,194,86" href=# onMouseOver="aff_ville(4);" onMouseOut ="eff_ville(4);" onClick="aff_assoc(4);">';
aff= aff +'<area shape="poly" coords="148,291,164,290,191,264,185,264,185,259,178,259,177,242,161,238,157,229,137,220,141,235,135,249,139,266,141,282" href=# onMouseOver="aff_ville(5);" onMouseOut ="eff_ville(5);" onClick="aff_assoc(5);">';
aff= aff +'<area shape="poly" coords="263,420,279,390,262,376,250,385,245,401,257,405,253,414" href=# onMouseOver="aff_ville(6);" onMouseOut ="eff_ville(6);" onClick="aff_assoc(6);">';
//aff= aff +'<area shape="poly" coords="201,389,209,393,201,398,204,405,212,405,211,415,219,425,218,431,209,439,205,437,194,449,187,449,185,440,180,437,174,439,134,427,125,409,131,404,125,402,133,390,139,390,140,399,157,400,157,403,188,404" href=# onMouseOver="aff_ville(7);" onMouseOut ="eff_ville(7);" onClick="aff_assoc(7);">';
//aff= aff +'<area shape="poly" coords="201,348,196,338,204,325,217,324,226,329,231,323,242,321,250,329,239,350,224,349,214,364,211,361,193,361,198,356,197,351" href=# onMouseOver="aff_ville(8);" onMouseOut ="eff_ville(8);" onClick="aff_assoc(8);">';
//aff= aff +'<area shape="poly" coords="62,345,67,338,63,336,63,325,52,316,52,308,57,308,90,294,93,299,87,306,99,318,97,334,89,344" href=# onMouseOver="aff_ville(9);" onMouseOut ="eff_ville(9);" onClick="aff_assoc(9);">';
aff= aff +'<area shape="poly" coords="125,401,132,389,139,389,139,394,150,393,151,384,191,362,198,355,196,351,199,348,196,340,203,326,191,315,182,315,179,305,169,305,169,318,145,350,146,377,128,379,120,387,119,399" href=# onMouseOver="aff_ville(10);" onMouseOut ="eff_ville(10);" onClick="aff_assoc(10);">';
aff= aff +'<area shape="poly" coords="234,112,245,108,252,97,277,93,285,107,285,125,271,126,258,134" href=# onMouseOver="aff_ville(11);" onMouseOut ="eff_ville(11);" onClick="aff_assoc(11);">';
aff= aff +'<area shape="poly" coords="194,89,200,71,204,75,207,62,219,58,220,43,200,32,188,35,183,32,141,65,146,75,146,78,149,87,147,91,156,101,169,96,179,88" href=# onMouseOver="aff_ville(12);" onMouseOut ="eff_ville(12);" onClick="aff_assoc(12);">';
aff= aff +'<area shape="poly" coords="173,105,182,112,196,104,200,109,212,100,229,112,213,117,181,152,165,139,166,132,154,133,153,130,156,126,156,120,154,114" href=# onMouseOver="aff_ville(13);" onMouseOut ="eff_ville(13);" onClick="aff_assoc(13);">';
//aff= aff +'<area shape="poly" coords="208,393,239,384,224,360,220,360,235,365,211,360,195,361,194,382" href=# onMouseOver="aff_ville(14);" onMouseOut ="eff_ville(14);" onClick="aff_assoc(14);">';
aff= aff +'<area shape="poly" coords="52,247,51,240,68,235,85,219,88,213,95,213,106,225,90,232,93,240,94,247" href=# onMouseOver="aff_ville(15);" onMouseOut ="eff_ville(15);" onClick="aff_assoc(15);">';
aff= aff +'<area shape="poly" coords="156,102,166,108,172,106,181,111,197,102,194,89,175,91" href=# onMouseOver="aff_ville(16);" onMouseOut ="eff_ville(16);" onClick="aff_assoc(16);">';
aff= aff +'<area shape="poly" coords="221,43,232,43,241,69,249,77,252,87,287,75,295,79,302,73,286,59,292,48,285,35,280,35,280,12,246,4,207,11,183,31,187,35,200,31" href=# onMouseOver="aff_ville(17);" onMouseOut ="eff_ville(17);" onClick="aff_assoc(17);">';
aff= aff +'<area shape="poly" coords="168,305,178,305,183,315,190,315,191,311,210,301,210,292,214,284,214,274,203,281,196,281,194,273,199,270,199,263,191,264,170,287,163,290,149,291,148,295" href=# onMouseOver="aff_ville(18);" onMouseOut ="eff_ville(18);" onClick="aff_assoc(18);">';
aff= aff +'<area shape="poly" coords="214,120,230,153,258,135,233,113" href=# onMouseOver="aff_ville(19);" onMouseOut ="eff_ville(19);" onClick="aff_assoc(19);">';
aff= aff +'<area shape="poly" coords="193,316,206,324,218,325,226,329,232,322,243,322,246,311,257,298,241,291,239,300,232,299,225,307,194,312" href=# onMouseOver="aff_ville(20);" onMouseOut ="eff_ville(20);" onClick="aff_assoc(20);">';
//aff= aff +'<area shape="poly" coords="80,255,75,254,75,260,63,268,67,270,57,277,57,286,39,287,35,289,28,289,18,296,16,285,33,249,75,249" href=# onMouseOver="aff_ville(21);" onMouseOut ="eff_ville(21);" onClick="aff_assoc(21);">';
//aff= aff +'<area shape="poly" coords="93,339,98,334,99,319,127,313,122,302,136,290,167,306,167,318,145,350,146,377,128,379,118,375,99,380,95,374,105,358" href=# onMouseOver="aff_ville(22);" onMouseOut ="eff_ville(22);" onClick="aff_assoc(22);">';
aff= aff +'<area shape="poly" coords="244,322,246,312,258,299,290,316,278,329,274,342" href=# onMouseOver="aff_ville(23);" onMouseOut ="eff_ville(23);" onClick="aff_assoc(23);">';
aff= aff +'<area shape="poly" coords="114,169,152,132,152,128,156,126,152,113,163,109,153,100,146,89,149,87,145,79,145,74,140,65,112,92,99,97,99,100,73,109,61,119" href=# onMouseOver="aff_ville(24);" onMouseOut ="eff_ville(24);" onClick="aff_assoc(24);">';
aff= aff +'<area shape="poly" coords="212,121,230,154,223,172,192,164,182,179,164,171" href=# onMouseOver="aff_ville(25);" onMouseOut ="eff_ville(25);" onClick="aff_assoc(25);">';
//aff= aff +'<area shape="poly" coords="140,399,158,399,158,401,189,403,200,388,193,383,193,362,154,385,151,393,142,394" href=# onMouseOver="aff_ville(26);" onMouseOut ="eff_ville(26);" onClick="aff_assoc(26);">';
aff= aff +'<area shape="poly" coords="151,182,155,173,151,168,155,162,149,162,138,147,151,136,165,134,165,139,180,153,162,171,161,178" href=# onMouseOver="aff_ville(27);" onMouseOut ="eff_ville(27);" onClick="aff_assoc(27);">';
aff= aff +'<area shape="poly" coords="57,227,63,221,72,222,76,217,85,218,87,213,96,212,105,206,97,196,106,188,113,190,119,180,111,170,61,120,45,147,39,153,27,177,37,177,29,189,35,191,20,206,33,228" href=# onMouseOver="aff_ville(28);" onMouseOut ="eff_ville(28);" onClick="aff_assoc(28);">';
//aff= aff +'<area shape="poly" coords="67,268,80,270,94,270,99,268,113,278,130,276,131,264,137,264,134,250,140,238,135,218,139,210,124,207,122,200,111,208,106,205,97,214,106,225,92,231,95,245,80,247,80,256,75,257,76,261" href=# onMouseOver="aff_ville(29);" onMouseOut ="eff_ville(29);" onClick="aff_assoc(29);">';
//aff= aff +'<area shape="poly" coords="220,424,213,414,235,407,205,405,202,399,208,391,239,385,248,385,246,400,256,409,254,414" href=# onMouseOver="aff_ville(30);" onMouseOut ="eff_ville(30);" onClick="aff_assoc(30);">';
//aff= aff +'<area shape="poly" coords="56,308,90,293,94,299,88,304,101,318,127,313,120,299,136,288,146,292,142,283,138,266,133,263,131,278,111,277,97,268,92,270,95,275,95,281,89,285,80,286,67,294,61,296" href=# onMouseOver="aff_ville(31);" onMouseOut ="eff_ville(31);" onClick="aff_assoc(31);">';
aff= aff +'<area shape="poly" coords="139,210,123,206,122,201,112,207,98,196,107,188,114,190,119,181,111,168,138,147,147,162,154,164,150,169,154,173"href=# onMouseOver="aff_ville(32);" onMouseOut ="eff_ville(32);" onClick="aff_assoc(32);">';
aff= aff +'<area shape="poly" coords="194,312,227,306,231,298,239,298,241,289,235,274,235,283,211,291,210,300" href=# onMouseOver="aff_ville(33);" onMouseOut ="eff_ville(33);" onClick="aff_assoc(33);">';
//aff= aff +'<area shape="poly" coords="32,248,51,247,51,242,67,234,84,218,74,218,72,223,64,221,57,227,24,228,15,241,16,289" href=# onMouseOver="aff_ville(34);" onMouseOut ="eff_ville(34);" onClick="aff_assoc(34);">';
aff= aff +'<area shape="poly" coords="59,296,51,305,47,307,44,310,32,309,19,297,27,290,36,290,39,286,56,285,57,278,66,270,77,271,87,271,91,271,94,274,94,280,88,284,77,286" href=# onMouseOver="aff_ville(35);" onMouseOut ="eff_ville(35);" onClick="aff_assoc(35);">';
aff= aff +'<area shape="poly" coords="286,59,292,46,286,34,281,34,280,12,309,20,315,34,315,56,303,72" href=# onMouseOver="aff_ville(36);" onMouseOut ="eff_ville(36);" onClick="aff_assoc(36);">'
 aff= aff +'</map>';


document.getElementById("hds").innerHTML =aff;

}


