

var rootdir="http://midi-pyrenees.sante.gouv.fr/";

//var rootdir="file:///C|/dev2/";
//var rootdir="file:///K|/Gauthier/dev2/";
//var rootdir="";

//if (window.location.pathname.indexOf("http://")>-1){

//rootdir="http://midipy.sante.gouv.fr/";}

//else {rootdir="file:///K|/Gauthier/dev2/";}



/************************* gestion des contacts email *******************/

var mail=new Array();  var path=window.location.pathname; 

mail[0]="ddass09"; mail[1]="mailto:dd09-direction@sante.gouv.fr";

mail[2]="ddass12"; mail[3]="mailto:dd12-secr-direction@sante.gouv.fr";

mail[4]="ddass31"; mail[5]="mailto:dd31-secr-dir@sante.gouv.fr";

mail[6]="ddass32"; mail[7]="mailto:dd32-secr-direction@sante.gouv.fr";

mail[8]="ddass46";  mail[9]="mailto:dd46-direction@sante.gouv.fr";

mail[10]="ddass65"; mail[11]="mailto:dd65-secr-direction@sante.gouv.fr";

mail[12]="ddass81"; mail[13]="mailto:dd81-secr-direction@sante.gouv.fr";

mail[14]="ddass82"; mail[15]="mailto:dd82-secr-direction@sante.gouv.fr";



var email =""; var plan="ddass73";

for (j=0;j<mail.length;j++) {

	if (path.indexOf(mail[j])>-1) {

	email = mail[j+1];

	//plan = mail[j];

	break;

	}

	else email = "mailto:dr31-internet@sante.gouv.fr";

	plan = "ddass73";

}

/************************* fin des contacts email *******************/





/****************************************************************

ecrire l'image du menu superieur, les zones cliquables puis l'ancre "top"

*****************************************************************/

document.write('<img src="' + rootdir + '/nav/img/bd_sup.gif" width="734" heigth="64" border="0" usemap="#Map">');

document.write('<map name="Map">');

document.write('<area shape="rect" coords="0,42,52,62" href="' + rootdir + 'ix.htm" target="_top">');

document.write('<area shape="rect" coords="53,44,104,64" href="' + rootdir + 'contact.htm" target="centre">');

document.write('<area shape="rect" coords="105,44,179,64" href="' + rootdir + plan + '/plansite.htm" target="centre">');

document.write('<area shape="rect" coords="179,44,250,64" href="' + rootdir + 'cherche/trouve.htm" target="centre">');

//document.write('<area shape="rect" coords="429,44,250,64" href="' + rootdir + 'urgences.htm" target="centre">');

document.write('<area shape="rect" coords="9,6,60,21" href="http://www.emploi-solidarite.gouv.fr" alt="Minist&egrave;re des affaires sociales, du travail et de la solidarit&eacute;" title="Minist&egrave;re des affaires sociales, du travail et de la solidarit&eacute;" target="_blank">');

document.write('<area shape="rect" coords="9,23,58,38" href="http://www.sante.gouv.fr" alt="Minist&egrave;re de la sant&eacute;, de la famille et des personnes handicap&eacute;es" title="Minist&egrave;re de la sant&eacute;, de la famille et des personnes handicap&eacute;es" target="_blank">');

document.write('</map>');



document.write('<a name="top"></a><br><br><br>');



/****************************************************************

ecrire le calque et le logo du theme

*****************************************************************/

if(!bw.ns4){

if (window.location.pathname.indexOf("santehom")>-1){

document.write('<div id="#logo"><img src="' + rootdir + '/nav/img/logosantehom.gif"></div>' );

parent.frames['gauche'].document.all.fond.style.background='url(img/fcgSante.jpg)';

parent.frames['droite'].document.all.fond.style.background='url(img/fcdSante.jpg)';

}

else if (window.location.pathname.indexOf("cohesoc")>-1){

document.write('<div id="#logo"><img src="' + rootdir + '/nav/img/logocohesoc.gif"></div>' );

parent.frames['gauche'].document.all.fond.style.background='url(img/fcgCohes.jpg)';

parent.frames['droite'].document.all.fond.style.background='url(img/fcdCohes.jpg)';

}

else if (window.location.pathname.indexOf("protsoc")>-1){

document.write('<div id="#logo"><img src="' + rootdir + '/nav/img/logoprotsoc.gif"></div>' );

parent.frames['gauche'].document.all.fond.style.background='url(img/fcgProts.jpg)';

parent.frames['droite'].document.all.fond.style.background='url(img/fcdProts.jpg)';

}

else if (window.location.pathname.indexOf("metiers")>-1){

document.write('<div id="#logo"><img src="' + rootdir + '/nav/img/logometiers.gif"></div>' );

parent.frames['gauche'].document.all.fond.style.background='url(img/fcgMetie.jpg)';

parent.frames['droite'].document.all.fond.style.background='url(img/fcdMetie.jpg)';

}

else if (window.location.pathname.indexOf("infos")>-1){

document.write('<div id="#logo"><img src="' + rootdir + '/nav/img/logoinfos.gif"></div>' );

parent.frames['gauche'].document.all.fond.style.background='url(img/fcgInfos.jpg)';

parent.frames['droite'].document.all.fond.style.background='url(img/fcdInfos.jpg)';

}

else if (window.location.pathname.indexOf("ddass")>-1){

parent.frames['gauche'].document.all.fond.style.background='url(img/fcgGris.jpg)';

parent.frames['droite'].document.all.fond.style.background='url(img/fcdGris.jpg)';

}

}





