
// script pour rediriger vers la page d'accueil quand on clique sur le logo
function RetourAccueil(param, p_url){
   if(!param.layerX){
      param=window.event;
      var x=param.offsetX-5;
      var y=param.offsetY-5;
   } else {
      var x=param.layerX-5;
      var y=param.layerY-5;
   }
   if ( x < 180 ){
      document.location=p_url;
   }
}

/*
 * Association Prévention Routière - Espace Education
 * Appel applications pédagogiques
 * Sylvain Duvanel
 * v2.2 - 08-04-2009
 * ajout senior
 */
function openModuleA(module) {
  var theURL = 'pages/education/labo/labo.htm' + '?module=' + module ;
  var winName = 'ModuloRoute';
  var features = 'menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no';
  window.open(theURL,winName,features);
}
function openModuleE(module) {
  var theURL = 'pages/education/cycle2/cycle2.htm' + '?module=' + module ;
  var winName = 'Cycle2';
  var features = 'menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no';
  window.open(theURL,winName,features);
}
function fOpenWindowAlca(v1) { 
  var theURL = 'pages/education/alca/alca.htm' + '?v1=' + v1 ;
  var winName = 'Alca';
  if (screen.availWidth < 801) {
	theURL = 'pages/education/alca/alca800.htm' + '?v1=' + v1 ;
  }
  var features = 'menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no';
  window.open(theURL,winName,features);
}
function fOpenWindowCyclo(v1) { 
  var theURL = 'pages/education/cyclo/cyclo.htm' + '?v1=' + v1 ;
  var winName = 'Cyclo';
  if (screen.availWidth < 801) {
	theURL = 'pages/education/cyclo/cyclo800.htm' + '?v1=' + v1 ;
  }
  var features = 'menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no';
  window.open(theURL,winName,features);
}
function fOpenWindowSenior(v1) { 
  var theURL = 'pages/education/senior/senior_web.htm' + '?v1=' + v1 ;
  var winName = 'ConduiteSenior';
  var features = 'menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no';
  window.open(theURL,winName,features);
}
/*
 * Appel applications pédagogiques
 * Fin
 */
 
function popUpWindow(URLStr, width, height, left, top) {
	popUpWin = window.open(URLStr, 'popUpWin', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width='+width+', height='+height+', left='+left+', top='+top+', screenX='+left+', screenY='+top+'');
}