<!--
// initialisations

var popup_buttons; // = new Array("../images/min.gif", "../../images/max.gif", "../../images/close.gif", "../../images/resize.gif");

//## MK
function openAcces(add){
  openWindowCenter(add+'acces2.htm','acces','460','460', 'toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');
  /*window.open (add+'acces2.htm', 'acces', 'height=460, width=460,);*/
}
//## ! MK
	
	
function write_menu(showrub, sublevel) {
  var level_path = "";
	for(i=0;i<sublevel;i++) {
		level_path += "../";
	}
  //## mk add
	popup_buttons = Array(""+level_path+"images/min.gif", ""+level_path+"images/max.gif", ""+level_path+"images/close.gif", ""+level_path+"images/resize.gif");
  //##!
	if (showrub.indexOf("|")>0) {
		var rub = showrub.split("|");
	}
	else {
		var rub = new Array();
		rub[0] = showrub;
	}
	if (rub[0]=="") {
		var all=true;
		var style = new Array("textmp","textmpbis","listp1","listp2","flechp");
	}
	else {
		var all=false;
		var style = new Array("textmn","textmnbis","liste1","liste2","fleche");
	}
	var menu_out = "";
	var menu_out = "";
//	menu_out = "<hr>::: MENU :::<hr>";
	
	menu_out += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	menu_out += "  <tr>";
	if (!all) {
		menu_out += "    <td width=\"15\"><img src=\""+level_path+"images/spacer.gif\" width=\"15\" height=\"1\"></td>";
	}
	menu_out += "    <td width=\"100%\" >";

	menu_out += "      <span class=\""+style[4]+"\">&gt;</span> <a href=\""+level_path+"index.htm\" class=\""+style[0]+"\">Accueil</a><br>";
	menu_out += "<br>";
	
	menu_out += "      <span class=\""+style[4]+"\">&gt;</span> <a href=\""+level_path+"actualites.htm\" class=\""+style[0]+"\">Actualit&eacute;s</a><br>";
	menu_out += "<br>";

	menu_out += "      <span class=\""+style[4]+"\">&gt;</span> <a href=\""+level_path+"aider/index.htm\" class=\""+style[0]+"\">Nous aider</a><br>";
	if (rub[0]=="1" || all) {
		menu_out += "       <ul class=\""+style[2]+"\">";
		menu_out += "         <li><a href=\""+level_path+"aider/don/index.htm\" class=\""+style[1]+"\">Faire un Don</a></li>";
		if (rub[1]=="1" || all) {
			menu_out += "         <ul class=\""+style[3]+"\">";
			menu_out += "           <li><a href=\""+level_path+"aider/don/chq-vir-banc.htm\" class=\""+style[1]+"\">Par ch&egrave;que ou virement bancaire</a></li>";
			
	  	menu_out += "         <li><a href=\""+level_path+"aider/fiscalite.htm\" class=\""+style[1]+"\">Fiscalit&eacute;</a></li>";

	
  //## MK mod suppression temporaire
  //		menu_out += "           <li><a href=\""+level_path+"aider/don/prel-auto.htm\" class=\""+style[1]+"\">Par pr&eacute;l&egrave;vement automatique</a></li>";
			menu_out += "         </ul>";
		}
	
		menu_out += "         <li><a href=\"http://www.boutique-cachan.com\" target=\"_blank\" class=\""+style[1]+"\">Acheter utile</a></li>";
    
		menu_out += "         <li><a href=\""+level_path+"aider/legsetdonation/index.htm\" class=\""+style[1]+"\">Legs et donations</a></li>";
		if (rub[1]=="2" || all) {
			menu_out += "         <ul class=\""+style[3]+"\">";
			menu_out += "           <li><a href=\""+level_path+"aider/legsetdonation/leg.htm\" class=\""+style[1]+"\">Consentir un legs</a></li>";
			menu_out += "           <li><a href=\""+level_path+"aider/legsetdonation/donation.htm\" class=\""+style[1]+"\">Faire une donation</a></li>";
			menu_out += "           <li><a href=\""+level_path+"aider/legsetdonation/assurance-vie.htm\" class=\""+style[1]+"\">Souscrire une assurance-vie</a></li>";		
			// deplacé dans "faire un don"  menu_out += "         <li><a href=\""+level_path+"aider/fiscalite.htm\" class=\""+style[1]+"\">Fiscalit&eacute;</a></li>";
			menu_out += "         </ul>";
		}
  	menu_out += "         <li><a href=\""+level_path+"aider/confidentialite.htm\" class=\""+style[1]+"\">Confidentialit&eacute;</a></li>";
		menu_out += "         <li><a href=\"#\" onclick=\"openDon();\" class=\""+style[1]+"\">Contact</a></li>";
		menu_out += "       </ul>";
	} else {
		menu_out += "<br>";
	}

	menu_out += "      <span class=\""+style[4]+"\">&gt;</span> <a href=\""+level_path+"engagement/index.htm\" class=\""+style[0]+"\">Notre Engagement</a><br>";
	if (rub[0]=="2" || all) {
		menu_out += "         <ul class=\""+style[2]+"\">";
		menu_out += "           <li><a href=\""+level_path+"engagement/projet.htm\" class=\""+style[1]+"\">Notre Projet</a></li>";
		menu_out += "           <li><a href=\""+level_path+"engagement/histoire1.htm\" class=\""+style[1]+"\">Notre Histoire</a></li>";
		menu_out += "         </ul>";
	} else {
		menu_out += "<br>";
	}

	menu_out += "      <span class=\""+style[4]+"\">&gt;</span> <a href=\""+level_path+"notre_mission/index.htm\" class=\""+style[0]+"\">Notre Mission p&eacute;dagogique</a><br>";
	if (rub[0]=="3" || all) {
		menu_out += "       <ul class=\""+style[2]+"\">";
		menu_out += "         <li><a href=\""+level_path+"notre_mission/cadre-de-vie.htm\" class=\""+style[1]+"\">Le cadre de vie</a></li>";
		menu_out += "         <li><a href=\""+level_path+"notre_mission/equipe-pedagogique.htm\" class=\""+style[1]+"\">L'&eacute;quipe p&eacute;dagogique </a></li>";

		menu_out += "         <li><a href=\""+level_path+"notre_mission/lycee/index.htm\" class=\""+style[1]+"\">Le lyc&eacute;e</a>";
		/*if (rub[1]=="5" || all) {
			menu_out += "						<br><span class=\""+style[1]+"\">Les dipl&ocirc;mes professionnels</span></a>";
		}*/
		
		if (rub[1]=="5" || all) {
			menu_out += "         <ul class=\""+style[3]+"\">";
			
			menu_out += "           <li><a href=\""+level_path+"notre_mission/lycee/cap-ouvelec.htm\" class=\""+style[1]+"\">CAP Pr&eacute;paration et r&eacute;alisation d'ouvrages &eacute;lectriques</a></li>";

		menu_out += "         <li class=\""+style[1]+"\"> BAC PRO 3 ans</li>";
		if (rub[1]=="5" || all) {
			menu_out += "         <ul class=\""+style[3]+"\">";
			menu_out += "           <li><a href=\""+level_path+"notre_mission/lycee/bacpro3-comm.htm\" class=\""+style[1]+"\">Commerce</a></li>";
			menu_out += "           <li><a href=\""+level_path+"notre_mission/lycee/bacpro3-eeec.htm\" class=\""+style[1]+"\">EEEC</a></li>";
		
			menu_out += "         </ul>";
		}

			menu_out += "           <li><a href=\""+level_path+"notre_mission/lycee/bep-css.htm\" class=\""+style[1]+"\">BEP Carri&egrave;res Sanitaires et Sociales</a></li>";
//			menu_out += "           <li><a href=\""+level_path+"notre_mission/lycee/bp-eec.htm\" class=\""+style[1]+"\">Bac Pro EEEC</a></li>";
			// menu_out += "           <li><a href=\""+level_path+"notre_mission/lycee/bac-sti.htm\" class=\""+style[1]+"\">Bac STI</a> </li>";
			menu_out += "         </ul>";
		}
		menu_out += "         <li><a href=\""+level_path+"notre_mission/apprentissage/index.htm\" class=\""+style[1]+"\">L’apprentissage</a>";
		if (rub[1]=="10" || all) {
			menu_out += "         <ul class=\""+style[3]+"\">";
	
			menu_out += "           <li><a href=\""+level_path+"notre_mission/apprentissage/bac-p-eeec.htm\" class=\""+style[1]+"\">Bac Pro EEEC</a></li>";
			//menu_out += "           <li><a href=\""+level_path+"notre_mission/inscription.htm\" class=\""+style[1]+"\">T&eacute;l&eacute;charger le dossier de demande d’inscription</a></li>";
			menu_out += "         </ul>";
		}
		menu_out += "         </li>";
		menu_out += "         <li><a href=\""+level_path+"notre_mission/inscription.htm\" class=\""+style[1]+"\">Inscription</a></li>";
		if (rub[1]=="6" || all) {
			menu_out += "         <ul class=\""+style[3]+"\">";
			menu_out += "           <li><a href=\""+level_path+"notre_mission/inscription1.htm\" class=\""+style[1]+"\">La demande d’admission</a></li>";
			menu_out += "           <li><a href=\""+level_path+"notre_mission/inscription2.htm\" class=\""+style[1]+"\">La d&eacute;cision</a></li>";
			//menu_out += "           <li><a href=\""+level_path+"notre_mission/inscription.htm\" class=\""+style[1]+"\">T&eacute;l&eacute;charger le dossier de demande d’inscription</a></li>";
			menu_out += "         </ul>";
		}	
		menu_out += "         <li><a href=\"#\" onclick=\"openMission();\" class=\""+style[1]+"\">Contact</a></li>";
		menu_out += "       </ul>";
	} else {
		menu_out += "<br>";
	}

	menu_out += "      <span class=\""+style[4]+"\">&gt;</span> <a href=\""+level_path+"espace_partenariat/index.htm\" class=\""+style[0]+"\">Espace Partenariat</a><br>";
	if (rub[0]=="4" || all) {
		menu_out += "       <ul class=\""+style[2]+"\">";
		menu_out += "         <li><a href=\""+level_path+"espace_partenariat/taxe-apprentissage/taxe-apprentissage.htm\" class=\""+style[1]+"\">Taxe d'apprentissage</a></li>";
		if (rub[1]=="1" || all) {
			menu_out += "         <ul class=\""+style[3]+"\">";
			
			menu_out += "           <li><a href=\""+level_path+"espace_partenariat/taxe-apprentissage/plan-investissement.htm\" class=\""+style[1]+"\">Notre plan d'investissement 2009</a></li>";
			menu_out += "         </ul>";
		}
		menu_out += "         <li><a href=\""+level_path+"espace_partenariat/partenariat/index.htm\" class=\""+style[1]+"\">Partenariat</a></li>";
		if (rub[1]=="2" || all) {
			menu_out += "         <ul class=\""+style[3]+"\">";
			menu_out += "           <li><a href=\""+level_path+"espace_partenariat/partenariat/comment.htm\" class=\""+style[1]+"\">Comment ?</a></li>";
			menu_out += "         </ul>";
		}
		menu_out += "         <li><a href=\""+level_path+"espace_partenariat/fiscalite.htm\" class=\""+style[1]+"\">Fiscalit&eacute;</a></li>";
		menu_out += "         <li><a href=\""+level_path+"espace_partenariat/comptes-dl.htm\" class=\""+style[1]+"\">Les comptes</a></li>";
		menu_out += "         <li><a href=\"#\" onclick=\"openPartenaire();\" class=\""+style[1]+"\">Contact</a></li>";
		menu_out += "       </ul>";
	} else {
		menu_out += "<br>";
	}

	menu_out += "      <span class=\""+style[4]+"\">&gt;</span> <a href=\""+level_path+"partenaires.htm\" class=\""+style[0]+"\">Partenaires</a><br>";
	if (rub[0]=="5" || all) {

	} else {
		menu_out += "<br>";
	}

	menu_out += "     <br>";
	menu_out += "    </td>";
	menu_out += "  </tr>";
	menu_out += "</table>";
	
	document.getElementById('menu_cell').innerHTML = menu_out;
}

function write_footer(sublevel) {
  var level_path = "";
	for(i=0;i<sublevel;i++) {
		level_path += "../";
	}
	var menu_out = "";
//## mk 
	menu_out += "<a href=\""+level_path+"aider/don/index.htm\" class=\"textend\">Faire un don</a>";
	menu_out += " | <a href=\""+level_path+"partenaires.htm\" class=\"textend\">Partenaires</a>";
	menu_out += " | <a href=\"#\" onclick=\"openContact();\" class=\"textend\">Contact</a>";
//	menu_out += "<a href=\""+level_path+"newsletter.htm\" class=\"textend\">Abonnement Newsletter</a>";
  menu_out += " | <a href=\"javascript:void(0);\" onclick=\"openAcces('"+level_path+"');\" class=\"textend\">Infos pratiques</a>";
	menu_out += " | <a href=\""+level_path+"infos-legales.htm\" class=\"textend\">Infos l&eacute;gales</a>";
	menu_out += " | <a href=\""+level_path+"plan_site.htm\" class=\"textend\">Plan du site</a>";
	document.getElementById('footer_cell').innerHTML = menu_out;
}

function CreateMenuDon(level) {

	var level_path="";
	for(i=0;i<level;i++) {
		level_path += "../";
	}
	var container = document.getElementById("divmenudon");
	container.innerHTML = '<a href="'+level_path+'aider/don/index.htm" onMouseOver="OpenMenuDon('+level+');"><img src="'+level_path+'images/bt_don.gif" name="bt_don" width="210" height="26" border="0" id="bt_don"></a><br>';
	container.innerHTML += '<div id="menudon" name="menudon" onMouseOver="OpenMenuDon('+level+');" onMouseOut="CloseMenuDon();" style="width:210px; height:21px; align:center;">';
	container.innerHTML += '</div>';
	var container2 = document.getElementById("menudon");
	container2.innerHTML = '<table width="193" border="0" align="center" cellpadding="0" cellspacing="0">';
	container2.innerHTML += '<tr>';
	container2.innerHTML += '<td><a href="'+level_path+'aider/don/chq-vir-banc.htm"><img src="'+level_path+'images/bt_don_bot02.gif" alt="Don par ch&egrave;que ou virement bancaire" width="193" height="14" border="0"></a></td>';
	container2.innerHTML += '</tr>';

 //## MK mod suppression temporaire
	//  container2.innerHTML += '<tr>';
  //	container2.innerHTML += '<td><a href="'+level_path+'aider/don/prel-auto.htm"><img src="'+level_path+'images/bt_don_bot03.gif" alt="Don par pr&eacute;l&egrave;vement automatique r&eacute;gulier" width="193" height="14" border="0"></a></td>';
  //	container2.innerHTML += '</tr>';
	container2.innerHTML += '</table>';
	var menuobj = document.getElementById("menudon");
	menuobj.style.visibility = "hidden";
	//alert("test="+document.getElementById("menudon").style.width);
}

function OpenMenuDon(level) {
	var level_path="";
	for(i=0;i<level;i++) {
		level_path += "../";
	}
	MM_swapImage('bt_don','',level_path+'images/bt_don_on.gif',1);
	var menuobj = document.getElementById("menudon");
	menuobj.style.backgroundImage = "url("+level_path+"images/bt_don_bot.gif)";
	menuobj.style.backgroundRepeat = "no-repeat";
	menuobj.style.visibility = "visible";
      
}

function CloseMenuDon() {
	MM_swapImgRestore();
	var menuobj = document.getElementById("menudon");
	menuobj.style.visibility = "hidden";

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openWindowCenter(theURL,winName,winWidth,winHeight,features) {
	if(screen.width) {
	  var winl = (screen.width-winWidth)/2;
	  var wint = (screen.height-winHeight)/2;
	}
	else {
	  winl = 0;wint =0;
	}
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + winHeight + ',';
	settings += 'width=' + winWidth + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(theURL,winName,settings);
	win.window.focus();
}

 
//fonction d'ouverture de popup DHTML
  
function openDon(){

//new popUp(X Position, Y Position, largeur, hauteur, "id_de_la_popup", "Texte du popup", "couleur arrière-plan popup", "couleur texte", "Font style", "titre", "couleur arrière-plan du titre", "couleur titre", "couleur bordure", "couleur barre de scroll", "couleur ombre", Montrer au chargement de la page ?, Possibilité de bouger la popup ?, Possibilité de la redimensionner ?, Suivant le navigateur le popup s'affiche en tant que fenetre normale ?, Popup apparait une seule fois par session ?);
//Configurer la fonction new popUp() suivant celle d'au-dessus
//Exemple:

var p_title = "Contact";
p_body = "<span class='textnoir'>Notre service Relation Donateurs se tient à votre disposition</span><br><br>";
p_body += "<span class='textog'>Pour toute question concernant les dons </span><br>"
p_body += "<span class='textgris'>R&eacute;gine Klein<br>" 
p_body += "T&eacute;l. : 01 45 46 70 87<br>" 
p_body += "E-mail : <a href='mailto:rklein@foyercachan.fr'>rklein@foyercachan.fr</a><br><br>"
p_body += "<span class='textog'>Pour toute question concernant les legs et donations</span><br>" 
//p_body +="Val&eacute;rie Tournemille<br>"
p_body += "T&eacute;l. : 01 45 46 70 01<br>"
p_body += "E-mail : <a href='mailto:ithomas@foyercachan.fr'>ithomas@foyercachan.fr</a><br></span>";

new popUp(200, 100, 400, 250, "box_rd", p_body, "white", "black", "bold 10pt verdana", p_title, "orange", "white", "#dddddd", "gray", "", true, true, true, true, false);

} 

function openInscription(){

//new popUp(X Position, Y Position, largeur, hauteur, "id_de_la_popup", "Texte du popup", "couleur arrière-plan popup", "couleur texte", "Font style", "titre", "couleur arrière-plan du titre", "couleur titre", "couleur bordure", "couleur barre de scroll", "couleur ombre", Montrer au chargement de la page ?, Possibilité de bouger la popup ?, Possibilité de la redimensionner ?, Suivant le navigateur le popup s'affiche en tant que fenetre normale ?, Popup apparait une seule fois par session ?);
//Configurer la fonction new popUp() suivant celle d'au-dessus
//Exemple:

var p_title = "Contact Inscription";
p_body = "<span class='textnoir'>Notre service Scolarité se tient à votre disposition </span><br><br>";
p_body += "<span class='textog'>Pour toute question concernant les inscriptions, les filières pédagogiques, les services proposés par le Foyer de Cachan </span><br>"
p_body += "<span class='textgris'>Ines Thomas<br>" 
p_body += "T&eacute;l. : 01 45 46 70 01<br>" 
p_body += "E-mail : <a href='mailto:ithomas@foyercachan.fr'>ithomas@foyercachan.fr</a><br><br>"

new popUp(200, 100, 400, 250, "box_ci", p_body, "white", "black", "bold 10pt verdana", p_title, "orange", "white", "#dddddd", "gray", "", true, true, true, true, false);

}

function openContact(){

var p_title = "Contacts";
p_body = "<div style='margin:10px'><span class='textog'>Le Service Relations Donateurs</span><br>";
p_body += "<span class='textgris'>R&eacute;gine Klein</span><br>";
p_body += "<span class='textgris'>Tél. : 01 45 46 70 87</span><br>";
p_body += "<span class='textgris'>E-mail :</span> <a href='mailto:rklein@foyercachan.fr'>rklein@foyercachan.fr</a><br><br>";
p_body += "<span class='textog'>Le Service Legs et Donations</span><br>";
 p_body += "<span class='textgris'>In&egrave;s Thomas</span><br>";
p_body += "<span class='textgris'>T&eacute;l. : 01 45 46 70 01</span><br>";
p_body += "<span class='textgris'>E-mail :</span> <a href='mailto:ithomas@foyercachan.fr'>ithomas@foyercachan.fr</a><br><br>";
p_body += "<span class='textog'>Le Service Relations Entreprises et Taxe d’apprentissage</span><br>";
p_body += "<span class='textgris'>R&eacute;gine Klein</span><br>";
p_body += "<span class='textgris'>T&eacute;l. : 01 45 46 70 87</span><br>";
p_body += "<span class='textgris'>E-mail :</span> <a href='mailto:rklein@foyercachan.fr'>rklein@foyercachan.fr</a><br><br>";
p_body += "<span class='textog'>Le Service Scolarité</span><br>";
p_body += "<span class='textgris'>In&egrave;s Thomas</span><br>";
p_body += "<span class='textgris'>T&eacute;l. : 01 45 46 70 01</span><br>";
p_body += "<span class='textgris'>E-mail :</span> <a href='mailto:ithomas@foyercachan.fr'>ithomas@foyercachan.fr</a><br><br>";
p_body += "<span class='textog'>Le Foyer de Cachan</span><br>";
p_body += "<span class='textgris'>36 avenue du Président Wilson</span><br>";
p_body += "<span class='textgris'>94234 Cachan Cedex</span><br>";
p_body += "<span class='textgris'>Tél. : 01 45 46 70 00</span><br>";
p_body += "<span class='textgris'>Fax : 01 45 46 70 04</span><br></div>";

new popUp(200, 100,400, 370, "box_oc", p_body, "white", "black", "bold 10pt verdana", p_title, "orange", "white", "#dddddd", "gray", "", true, true, true, true, false);
}

/******************* MK ********************************/

function openPartenaire(){

var p_title = "Contact Partenaires";

p_body = "<div style='margin:10px'><span class='textnoir'>Notre service Relations Entreprises et Taxe d’apprentissage se tient à votre disposition</span><br>";
p_body += "<span class='textgris'>R&eacute;gine Klein</span><br>";
p_body += "<span class='textgris'>T&eacute;l. : 01 45 46 70 87</span><br>";
p_body += "<span class='textgris'>E-mail :</span> <a href='mailto:rklein@foyercachan.fr'>rklein@foyercachan.fr</a><br><br>";

p_body += "<span class='textnoir'>Le Foyer de Cachan</span><br>";
p_body += "<span class='textgris'>Service Solidarité - Relations Entreprises et Taxe d’apprentissage</span><br>";
p_body += "<span class='textgris'>36 avenue du Président Wilson</span><br>";
p_body += "<span class='textgris'>94234 Cachan CEDEX</span><br></div>";
new popUp(200, 100,550, 250, "boxPart", p_body, "white", "black", "bold 10pt verdana", p_title, "orange", "white", "#dddddd", "gray", "", true, true, true, true, false);
}

function openMission(){

var p_title = "Contact Pédagogique";
p_body = "<div style='margin:10px'><span class='textog'>Pour toute question concernant les inscriptions, les filières pédagogiques, les services proposés par le Foyer de Cachan</span><br>";
p_body += "<span class='textgris'>In&egrave;s Thomas</span><br>";
p_body += "<span class='textgris'>T&eacute;l. : 01 45 46 70 01</span><br>";
p_body += "<span class='textgris'>E-mail :</span> <a href='mailto:ithomas@foyercachan.fr'>ithomas@foyercachan.fr</a><br></div>";

new popUp(200, 100,550, 250, "boxpedag", p_body, "white", "black", "bold 10pt verdana", p_title, "orange", "white", "#dddddd", "gray", "", true, true, true, true, false);
}

function openLeg(){
	
	var p_title = "Contacts Legs et Donations";
	
	p_body = "<span class='textog'>Pour toute question concernant le Service Legs et Donations</span><br>";
p_body += "<span class='textgris'>In&egrave;s Thomas</span><br>";
	p_body += "<span class='textgris'>T&eacute;l. : 01 45 46 70 01</span><br>";
	p_body += "<span class='textgris'>E-mail :</span> <a href='mailto:ithomas@foyercachan.fr'>ithomas@foyercachan.fr</a><br><br><br>";
	p_body += "<span class='textnoir'>Le Foyer de Cachan</span><br>";
	p_body += "<span class='textgris'>Service Solidarité - Relations Donateurs</span><br>";
	p_body += "<span class='textgris'>36 avenue du Président Wilson</span><br>";
	p_body += "<span class='textgris'>94234 Cachan CEDEX</span><br>";
	
	new popUp(200, 100,400, 230, "boxled", p_body, "white", "black", "bold 10pt verdana", p_title, "orange", "white", "#dddddd", "gray", "", true, true, true, true, false);
}

//****** FONCTIONS POPUP DHTML [DEBUT] *************

// UTILISATION :
// new popUp(X Position, Y Position, largeur, hauteur, "id_de_la_popup", "Texte du popup", "couleur arrière-plan popup", "couleur texte", "Font style", "titre", "couleur arrière-plan du titre", "couleur titre", "couleur bordure", "couleur barre de scroll", "couleur ombre", Montrer au chargement de la page ?, Possibilité de bouger la popup ?, Possibilité de la redimensionner ?, Suivant le navigateur le popup s'affiche en tant que fenetre normale ?, Popup apparait une seule fois par session ?);


// Popup Windows - V 3.1
// Author: Brian Gosselin w/ changes by Dynamicdrive.com
// Site URL: http://scriptasylum.com
// Script featured on Dynamic Drive (http://www.dynamicdrive.com)
// Added option to pop up ONCE per browser session by Dynamic Drive
//
// Browser compatibility:
// IE4+, NS4+, NS6+ (with limited functionality in pre 5.0 browsers)

var w3c=(document.getElementById)? true: false;
var ie5=(w3c && document.all)? true : false;
var ns6=(w3c && (navigator.appName=="Netscape"))? true: false;
currIDb=null; xoff=0; yoff=0;
currRS=null; rsxoff=0; rsyoff=0;
oldac=null; newac=null; zdx=1; mx=0; my=0;

var idlist=new Array();
idlist.btns=new Array();
if (typeof(popup_buttons)=="undefined"){
	var popup_buttons = new Array("images/min.gif", "images/max.gif", "images/close.gif", "images/resize.gif");
}
	idlist.btns[0]=new Image(); idlist.btns[0].src=popup_buttons[0];
	idlist.btns[1]=new Image(); idlist.btns[1].src=popup_buttons[1];
	idlist.btns[2]=new Image(); idlist.btns[2].src=popup_buttons[2];
	idlist.btns[3]=new Image(); idlist.btns[3].src=popup_buttons[3];

function hidebox(id){
  if(w3c){
    document.getElementById(id+'_b').style.display='none';
    document.getElementById(id+'_s').style.display='none';
  }
}

function showbox(id){
  if(w3c){
    var bx=document.getElementById(id+'_b').style;
    var sh=document.getElementById(id+'_s').style;
    bx.display='block';
    sh.display='block';
    sh.zIndex=++zdx;
    bx.zIndex=++zdx;
  }
}

function minimize(){
if(w3c){
this.IDS[0].style.height=(ie5)? '28px':'24px';
this.IDS[3].style.height='28px';
this.IDS[2].style.display='none';
this.IDS[4].style.display='none';
setTimeout('ns6bugfix()',100);
}}

function restore(){
if(w3c){
var h=this.IDS[10];
this.IDS[0].style.height=h+'px'; //box
this.IDS[3].style.height=(ie5)? h+'px':h+5+'px'; //shd
this.IDS[2].style.display='block';
this.IDS[4].style.display='block'; 
setTimeout('ns6bugfix()',100);
}}

function ns6bugfix(){
self.resizeBy(0,1);
self.resizeBy(0,-1);
}

function trackmouse(evt){
mx=(ie5)?event.clientX+document.body.scrollLeft:evt.pageX;
my=(ie5)?event.clientY+document.body.scrollTop:evt.pageY;
if(!ns6)movepopup();
if((currIDb!=null)||(currRS!=null))return false;
}

function movepopup(){
if((currIDb!=null)&&w3c){
var x=mx+xoff;
var y=my+yoff;
currIDb.style.left=x+'px';
currIDs.style.left=x+8+'px';
currIDb.style.top=y+'px';
currIDs.style.top=y+8+'px';
}
if((currRS!=null)&&w3c){
var rx=mx+rsxoff;
var ry=my+rsyoff;
var c=currRS;
c.style.left=Math.max(rx,((ie5)?88:92))+'px';
c.style.top=Math.max(ry,((ie5)?68:72))+'px';
c.IDS[0].style.width=Math.max(rx+((ie5)?12:8),100)+'px';
c.IDS[0].style.height=Math.max(ry+((ie5)?12:8),80)+'px';
c.IDS[1].style.width=Math.max(rx+((ie5)?4:3),((ns6)?95:92))+'px';
c.IDS[5].style.left=parseInt(c.IDS[1].style.width)-48+'px';
c.IDS[3].style.width=Math.max(rx+12,((ie5)?100:104))+'px';
c.IDS[3].style.height=Math.max(ry+((ie5)?12:13),((ie5)?80:86))+'px';
c.IDS[2].style.width=Math.max(rx-((ie5)?-5:5),((ie5)?92:87))+'px';
c.IDS[2].style.height=Math.max(ry-((ie5)?24:28),44)+'px';
c.IDS[10]=parseInt(c.IDS[0].style.height);
}}

function startRS(evt){
var ex=(ie5)?event.clientX+document.body.scrollLeft:evt.pageX;
var ey=(ie5)?event.clientY+document.body.scrollTop:evt.pageY;
rsxoff=parseInt(this.style.left)-ex;
rsyoff=parseInt(this.style.top)-ey;
currRS=this;
if(ns6)this.IDS[2].style.overflow='hidden';
return false;
}

function stopdrag(){
currIDb=null;
ns6bugfix();
}

function grab_id(evt){
var ex=(ie5)?event.clientX+document.body.scrollLeft:evt.pageX;
var ey=(ie5)?event.clientY+document.body.scrollTop:evt.pageY;
xoff=parseInt(this.IDS[0].style.left)-ex;
yoff=parseInt(this.IDS[0].style.top)-ey;
currIDb=this.IDS[0];
currIDs=this.IDS[3];
return false;
}

function subBox(x,y,w,h,bgc,id){
var v=document.createElement('div');
v.setAttribute('id',id); 
v.style.position='absolute';
v.style.left=x+'px';
v.style.top=y+'px';
v.style.width=w+'px';
v.style.height=h+'px';
v.style.backgroundColor=bgc;
v.style.visibility='visible';
v.style.padding='0px 0px 0px 0px';
return v;
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}


function popUp(x,y,w,h,cid,text,bgcolor,textcolor,fontstyleset,title,titlecolor,titletextcolor,bordercolor,scrollcolor,shadowcolor,showonstart,isdrag,isresize,oldOK,POPPERSESSION){
if(!document.getElementById(cid+'_b')){
  var proceedtopop=false
  if (POPPERSESSION){
  if (get_cookie(cid)==""){
  proceedtopop=true
  document.cookie=cid+"=yes"
  }
  }
  else
  proceedtopop=true
  
  if (proceedtopop){
  if(w3c){
  var tw, th;
  w=Math.max(w,100);
  h=Math.max(h,80);
  var rdiv=new subBox(w-((ie5)?12:8),h-((ie5)?12:8),7,7,'',cid+'_rs');
  if(isresize){
  rdiv.innerHTML='<img src="'+popup_buttons[3]+'" width="7" height="7">';
  rdiv.style.cursor='move';
  }
  tw=(ie5)?w:w+4;
  th=(ie5)?h:h+6;
  var shadow=new subBox(x+8,y+8,tw,th,shadowcolor,cid+'_s');
  if(ie5)shadow.style.filter="alpha(opacity=50)";
  else shadow.style.MozOpacity=.5;
  shadow.style.zIndex=++zdx;
  var tw,th;
  var outerdiv=new subBox(x,y,w,h,bordercolor,cid+'_b');
  outerdiv.style.borderStyle="outset";
  outerdiv.style.borderWidth="2px";
  outerdiv.style.borderColor=bordercolor;
  outerdiv.style.zIndex=++zdx;
  tw=(ie5)?w-8:w-5;
  th=(ie5)?h+4:h-4;
  var titlebar=new subBox(2,2,tw,20,titlecolor,cid+'_t');
  titlebar.style.overflow="hidden";
  titlebar.style.cursor="default";
  titlebar.innerHTML='<span style="position:absolute; left:3px; top:1px; font:bold 10pt sans-serif; color:'+titletextcolor+'; height:18px; overflow:hidden; clip-height:16px;">'+title+'</span><span id="'+cid+'_btt" style="position:absolute; width:48px; height:16px; left:'+(tw-48)+'px; top:2px;"><img src="'+popup_buttons[0]+'" width="16" height="16" id="'+cid+'_min"><img src="'+popup_buttons[1]+'" width="16" height="16"  id="'+cid+'_max"><img src="'+popup_buttons[2]+'" width="16" height="16" id="'+cid+'_cls"></span>';
  tw=(ie5)?w-7:w-13;
  th=(ie5)?h-36:h-36;
  var content=new subBox(2,24,tw,th,bgcolor,cid+'_c');
  content.style.borderColor=bordercolor;
  content.style.borderStyle="inset";
  content.style.borderWidth="2px";
  content.style.overflow="auto";
  content.style.padding="0px 2px 0px 4px";
  content.style.font=fontstyleset;
  content.style.color=textcolor;
  if(ie5)content.style.scrollbarBaseColor=scrollcolor;
  content.innerHTML=text;
  outerdiv.appendChild(titlebar);
  outerdiv.appendChild(content);
  outerdiv.appendChild(rdiv);
  document.body.appendChild(shadow);
  document.body.appendChild(outerdiv);
  if(!showonstart)hidebox(cid);
  var IDS=new Array();
  IDS[0]=document.getElementById(cid+'_b');
  IDS[1]=document.getElementById(cid+'_t');
  IDS[2]=document.getElementById(cid+'_c');
  IDS[3]=document.getElementById(cid+'_s');
  IDS[4]=document.getElementById(cid+'_rs');
  IDS[5]=document.getElementById(cid+'_btt');
  IDS[6]=document.getElementById(cid+'_min');
  IDS[7]=document.getElementById(cid+'_max');
  IDS[8]=document.getElementById(cid+'_cls');
  IDS[9]=cid;
  IDS[10]=h;
  this.IDb=IDS[0]; this.IDb.IDS=IDS;
  this.IDt=IDS[1]; this.IDt.IDS=IDS;
  this.IDc=IDS[2]; this.IDc.IDS=IDS;
  this.IDs=IDS[3]; this.IDs.IDS=IDS;
  this.IDrs=IDS[4]; this.IDrs.IDS=IDS;
  this.IDbtt=IDS[5]; this.IDbtt.IDS=IDS;
  this.IDmin=IDS[6]; this.IDmin.IDS=IDS;
  this.IDmax=IDS[7]; this.IDmax.IDS=IDS;
  this.IDcls=IDS[8]; this.IDcls.IDS=IDS;
  this.IDb.activecolor=titlecolor;
  this.IDb.inactivecolor=scrollcolor;
  if(oldac!=null)oldac.IDS[1].style.backgroundColor=oldac.inactivecolor;
  oldac=this.IDb;
  this.IDcls.onclick=new Function("hidebox('"+cid+"');");
  if(isresize){
  this.IDmin.onclick=minimize;
  this.IDmax.onclick=restore;
  this.IDrs.onmousedown=startRS;
  this.IDrs.onmouseup=new Function("currRS=null");
  }
  this.IDb.onmousedown=function(){
     if(oldac!=null){
     oldac.IDS[1].style.backgroundColor=oldac.inactivecolor;
     }
     if(ns6)this.IDS[2].style.overflow='auto';
     oldac=this;
     this.IDS[1].style.backgroundColor=this.activecolor;
     this.IDS[3].style.zIndex=++zdx;
     this.style.zIndex=++zdx;
     }
  if(isdrag){
  this.IDt.onmousedown=grab_id;
  this.IDt.onmouseup=stopdrag;
  }
  }else{
  if(oldOK){
  var ctr=new Date();
  ctr=ctr.getTime();
  
  var win=window.open("" , "abc"+ctr , "status=no,menubar=no,width="+w+",height="+h+",resizable=yes,scrollbars=yes");
  var t='<html><head><title>'+title+'</title></head><body bgcolor="'+bgcolor+'"><font style="font:'+fontstyleset+'; color:'+textcolor+'">'+text+'</font></body></html>';
  win.document.write(t);
  win.document.close();
  }}}
  }else{ // if(!document.getElementById(cid+'_b')){
     showbox(cid);
  }// ! de if(!document.getElementById(cid+'_b')){
}

if(ns6)setInterval('movepopup()',40);

if(w3c){
document.onmousemove=trackmouse;
document.onmouseup=new Function("currRS=null");
}


//****** FONCTIONS POPUP DHTML [FIN] *************


-->
