function horairesBehaviour(){var a=arguments.length==1&&typeof arguments[0]=="object"?arguments[0]:{};a.tableId=typeof a.remotePage=="undefined"?"tHoraires":a.tableId;a.remotePage=typeof a.remotePage=="undefined"?"./gen_include/horaires_fiche.php":a.remotePage;if(jQuery("#"+a.tableId).length==0){return}jQuery("#"+a.tableId+" .details").each(function(){jQuery(this).click(function(b){b.preventDefault();requestHoraires(this)})})}function requestHoraires(b){var e=arguments.length==1&&typeof arguments[0]=="object"?arguments[0]:{};e.remotePage=typeof e.remotePage=="undefined"?"./gen_include/horaires_fiche.php":e.remotePage;var d=moviLib.getLanguageFromUrl();if(!b.previousSibling||b.previousSibling.nodeName!="DIV"){var a=b.href.split("?");var c="lang="+d+"&"+a[1];var f=jQuery('<div class="gares show"></div>');f.insertBefore(jQuery(b));jQuery.ajax({type:"post",url:e.remotePage,data:c,dataType:"html",success:function(g){jQuery(b).html(locales[d]["hor_hidedetails"]);f.html(g)},timeout:0});jQuery(b).html(locales[d]["hor_loading"])}else{if(jQuery(b).prev().hasClass("show")){jQuery(b).html(locales[d]["hor_seedetails"]);jQuery(b).prev().removeClass("show")}else{jQuery(b).html(locales[d]["hor_hidedetails"]);jQuery(b).prev().addClass("show")}}}function checkboxHoraire(){if(jQuery("#form_hor").length==0){return}if(jQuery("#dateExacte").length==0){return}jQuery("p.horaire :text").each(function(){jQuery(this).focus(function(){jQuery("#dateExacte").get(0).checked=true})})}jQuery(function(){checkboxHoraire()});jQuery(function(){horairesBehaviour()});