$(document).ready(function(){
 $("input").each(function(){if($(this).hasClass("auto") && ($(this).attr("value")=="" || $(this).attr("value")==$(this).parent().children("label").html()  )){$(this).attr("value",$(this).parent().children("label").html());$(this).focus(function(){if($(this).attr('value')==$(this).parent().children("label").html()){$(this).attr('value','')};}); $(this).blur(function(){if($(this).attr('value')==''){$(this).attr('value',$(this).parent().children("label").html())};});};});
 $("#searchbox").each(function(){$(this).submit(function(){$(this).children("p").children("input.auto").each(function(){if($(this).attr('value')==$(this).parent().children("label").html() || $(this).attr('value')==''){$(this).attr('value','')} ;;});});});
 
 //$('#mainContent p').each(function(){$(this).addClass('t11');});
 //$('#mainContent ul li').each(function(){$(this).addClass('t11');});
 $('div.rounded').each(function(){$(this).wrap('<div></div>');$(this).parent().prepend('<div class="zone_hd"></div><div class="zone_hg"></div>').append('<div class="zone_bd"></div><div class="zone_bg"></div>').addClass('zone_jq');});
 $('img.legende').each(function(){$(this).wrap('<div class="legende"></div>');$(this).parent().append('<p>' +  $(this).attr('alt') +'</p>');});
 $("a[href^='#go_']").each(function(i){$(this).click(function(){$.scrollTo($(this).attr('href'),500);return false;});});
 
 
  //$('h1').sifr({path: '/',color:'#FFF'});
 

 $('.nosmap').each(function(){$(this).html($(this).html().replace('.','@marceau-group.com'));});
 $('a.nosmap').each(function(){$(this).attr('href','mailto:'+$(this).html());});
 
 $('a.blank').each(function(){$(this).attr('target','_blank');}); 
 

 
if($("#headerBottomLeft").css("display") == "none")
 {
 }
else
 {
 $('div.clic').each(function(){$(this).click(function(){ $(location).attr('href',$(this).children('h4').children('a').attr('href'));}).hover(function(){$(this).addClass('clicover')},function(){$(this).removeClass('clicover')})}); 
 $('#ACForget').click(function(){$('#WebLoginLayer0').css('display','none');$('#WebLoginLayer2').css('display','block');$('#ACReminder').attr('value',1);return false;});
 $('#ACCancel').click(function(){$('#ACReminder').attr('value',0);$('#WebLoginLayer2').css('display','none');$('#WebLoginLayer0').css('display','block');return false;});
 $('#chkbox').click(function(){if($('#ACRemember').attr('value')==1){$('#ACRemember').attr('value',0);}else{$('#ACRemember').attr('value',1);};});
 $('#wlUserName').keypress(function(){return webLoginEnter(document.loginfrm.password);});
 $('#wlPassword').keypress(function(){return webLoginEnter(document.loginfrm.cmdweblogin);});
 $('a#popanimation').click(function(){$.fancybox({'href':'http://ww2.rien.biz/assets/flash/animation.swf','titlePosition':'over', 'autoScale':true,'transitionIn':'none','transitionOut':'none'});});
 $('a.popbox').fancybox({'width':730,'height':490,'titleShow':false, 'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});
 $('a#pageback').click(function(){history.go(-2);});
 $('#animlogiciels').flash({src: '/assets/flash/abelium-collectivites-logiciels.swf',width: 657,height: 620, bgcolor:'#F7F7F7'});
 $("a.sitebox").fancybox({'width':'85%','height':'85%', 'titlePosition':'over', 'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});
 $('ol.actus').each(function() {var $children = $(this).children('li');var totalChildren = ($(this).attr('id').replace('ol','') *1)  ;var start = 0;$children.each(function() {$(this).val(totalChildren - start);start++;});});
 fancyAC={'transitionIn':'none', 'transitionOut':'none', 'titlePosition':'over', 'type':'image','changeFade':0, 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {return '<span id="fancybox-title-over">[ ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ] ' + title + '</span>';}};
 $("a[rel=lightbox]").addClass('legende').fancybox(fancyAC);

 $("a[rel=cogito-en-images]").click(function() {$.fancybox([
{'href':'/assets/images/enimages/cogito-web-automatisation-passage.png','title':'COGITO, web automatisation passage'},
{'href':'/assets/images/enimages/cogito-web-fiche-derogation.png','title':'COGITO, web fiche derogation'},
{'href':'/assets/images/enimages/cogito-web-liste-ecoles.png','title':'COGITO, web liste ecoles'},
{'href':'/assets/images/enimages/cogito-web-liste-enseignants.png','title':'COGITO, web liste enseignants'},
{'href':'/assets/images/enimages/gogito-web-fiche-inscription.png','title':'GOGITO, web fiche inscription'},
{'href':'/assets/images/enimages/cogito-rapport-attestation-inscription.png','title':'COGITO, rapport attestation inscription'},
{'href':'/assets/images/enimages/cogito-rapport-decompte-inscrits.png','title':'COGITO, rapport decompte inscrits'},
{'href':'/assets/images/enimages/cogito-rapport-liste-ecoles.png','title':'COGITO, rapport liste ecoles'},
{'href':'/assets/images/enimages/cogito-rapport-liste-eleves.png','title':'COGITO, rapport liste eleves'},
{'href':'/assets/images/enimages/cogito-rapport-statistiques.png','title':'COGITO, rapport statistiques'}
 ], fancyAC);});

 $("a[rel=diabolo-en-images]").click(function() {$.fancybox([
{'href':'/assets/images/enimages/diabolo-web-fiche-inscription.png','title':'DIABOLO, web fiche inscription'},
{'href':'/assets/images/enimages/diabolo-web-fiche-groupe.png','title':'DIABOLO, web fiche groupe'},
{'href':'/assets/images/enimages/diabolo-web-planning-bus.png','title':'DIABOLO, web planning bus'},
{'href':'/assets/images/enimages/diabolo-web-planning-hebdomadaire.png','title':'DIABOLO, web planning hebdomadaire'},
{'href':'/assets/images/enimages/diabolo-web-planning-quotidien.png','title':'DIABOLO, web planning quotidien'},
{'href':'/assets/images/enimages/diabolo-rapport-activite-caf.png','title':'DIABOLO, rapport activite caf'},
{'href':'/assets/images/enimages/diabolo-rapport-decompte-presences-par-rubrique.png','title':'DIABOLO, rapport decompte presences par rubrique'},
{'href':'/assets/images/enimages/diabolo-rapport-planning-hebdomadaire-par-rubriques.png','title':'DIABOLO, rapport planning hebdomadaire par rubriques'},
{'href':'/assets/images/enimages/diabolo-rapport-planning-hebdomadaire.png','title':'DIABOLO, rapport planning hebdomadaire'},
{'href':'/assets/images/enimages/diabolo-rapport-planning-quotidien-periscolaire.png','title':'DIABOLO, rapport planning quotidien periscolaire'}
 ], fancyAC);});

 $("a[rel=domino-en-images]").click(function() {$.fancybox([
{'href':'/assets/images/enimages/domino-web-agrement-assistante-maternelle.png','title':'DOMINO, web agrement assistante maternelle'},
{'href':'/assets/images/enimages/domino-web-dossier-medical.png','title':'DOMINO, web dossier medical'},
{'href':'/assets/images/enimages/domino-web-fiche-employee.png','title':'DOMINO, web fiche employee'},
{'href':'/assets/images/enimages/domino-web-fiche-enfant.png','title':'DOMINO, web fiche enfant'},
{'href':'/assets/images/enimages/domino-web-fiche-famille.png','title':'DOMINO, web fiche famille'},
{'href':'/assets/images/enimages/domino-web-liste-assistante-maternelle.png','title':'DOMINO, web liste assistante maternelle'},
{'href':'/assets/images/enimages/domino-web-planning-personnel.png','title':'DOMINO, web planning personnel'},
{'href':'/assets/images/enimages/domino-rapport-statistique-repartition-des-enfants-par-tranche-age.png','title':'DOMINO, rapport statistique repartition des enfants par tranche age'},
{'href':'/assets/images/enimages/domino-rapport-statistiques-regime.png','title':'DOMINO, rapport statistiques regime'},
{'href':'/assets/images/enimages/domino-rapport-statistiques-villes.png','title':'DOMINO, rapport statistiques villes'},
{'href':'/assets/images/enimages/domino-rapport-statistiques-repartition-des-familles-et-des-enfants-par-zone.png','title':'DOMINO, rapport statistiques repartition des familles et des enfants par zone'},
{'href':'/assets/images/enimages/domino-rapport-statistiques-repartition-des-familles-par-csp.png','title':'DOMINO, rapport statistiques repartition des familles par csp'},
{'href':'/assets/images/enimages/domino-rapport-statistiques-repartition-des-familles-par-situation-familiale.png','title':'DOMINO, rapport statistiques repartition des familles par situation familiale'},
{'href':'/assets/images/enimages/domino-rapport-statistiques-repartition-des-familles-par-tranche-de-revenus.png','title':'DOMINO, rapport statistiques repartition des familles par tranche de revenus'}
], fancyAC);});

 $("a[rel=jeudemo-en-images]").click(function() {$.fancybox([
{'href':'/assets/images/enimages/jeudemo-classique-fiche-abonnement.png','title':'JEUDEMO, classique fiche abonnement'},
{'href':'/assets/images/enimages/jeudemo-classique-fiche-adherent.png','title':'JEUDEMO, classique fiche adherent'},
{'href':'/assets/images/enimages/jeudemo-classique-fiche-famille.png','title':'JEUDEMO, classique fiche famille'},
{'href':'/assets/images/enimages/jeudemo-classique-fiche-reservation.png','title':'JEUDEMO, classique fiche reservation'},
{'href':'/assets/images/enimages/jeudemo-classique-fiche-pret.png','title':'JEUDEMO, classique fiche pret'},
{'href':'/assets/images/enimages/jeudemo-classique-liste-livre.png','title':'JEUDEMO, classique liste livre'},
{'href':'/assets/images/enimages/jeudemo-rapport-fiche-abonnement.png','title':'JEUDEMO, rapport fiche abonnement'},
{'href':'/assets/images/enimages/jeudemo-rapport-liste-livre.png','title':'JEUDEMO, rapport liste livre'},
{'href':'/assets/images/enimages/jeudemo-rapport-liste-abonnement.png','title':'JEUDEMO, rapport liste abonnement'},
{'href':'/assets/images/enimages/jeudemo-rapport-liste-album.png','title':'JEUDEMO, rapport liste album'},
{'href':'/assets/images/enimages/jeudemo-rapport-liste-film.png','title':'JEUDEMO, rapport liste film'},
{'href':'/assets/images/enimages/jeudemo-rapport-liste-jouet.png','title':'JEUDEMO, rapport liste jouet'},
{'href':'/assets/images/enimages/jeudemo-rapport-liste-logiciel.png','title':'JEUDEMO, rapport liste logiciel'},
{'href':'/assets/images/enimages/jeudemo-rapport-liste-periodique.png','title':'JEUDEMO, rapport liste periodique'}
 ], fancyAC);});

 $("a[rel=mentalo-en-images]").click(function() {$.fancybox([
{'href':'/assets/images/enimages/mentalo-web-planning.png','title':'MENTALO, web planning'},
{'href':'/assets/images/enimages/mentalo-web-prise-en-charge.png','title':'MENTALO, web prise en charge'},
{'href':'/assets/images/enimages/mentalo-web-recherche-disponibilite.png','title':'MENTALO, web recherche disponibilite'},
{'href':'/assets/images/enimages/mentalo-web-resultat-disponibilite.png','title':'MENTALO, web resultat disponibilite'},
{'href':'/assets/images/enimages/mentalo-web-fiche-assmat.png','title':'MENTALO, web fiche assmat'},
{'href':'/assets/images/enimages/mentalo-web-fiche-enfant-famille.png','title':'MENTALO, web fiche enfant famille'},
 {'href':'/assets/images/enimages/mentalo-raport-disponibilite-assmat.png','title':'MENTALO, raport disponibilite assmat'},
{'href':'/assets/images/enimages/mentalo-rapport-liste-assmat-par-ville.png','title':'MENTALO, rapport liste assmat par ville'},
{'href':'/assets/images/enimages/mentalo-rapport-statistique-evaluation-ram.png','title':'MENTALO, rapport statistique evaluation ram'},
{'href':'/assets/images/enimages/mentalo-rapport-statistique-evaluation-ram2.png','title':'MENTALO, rapport statistique evaluation ram2'},
{'href':'/assets/images/enimages/mentalo-rapport-statistique-evaluation-ram3.png','title':'MENTALO, rapport statistique evaluation ram3'},
{'href':'/assets/images/enimages/mentalo-rapport-statistique-evaluation-ram4.png','title':'MENTALO, rapport statistique evaluation ram4'},
{'href':'/assets/images/enimages/mentalo-rapport-statistique-evaluation-ram5.png','title':'MENTALO, rapport statistique evaluation ram5'}
 ], fancyAC);});

 $("a[rel=mikado-en-images]").click(function() {$.fancybox([
{'href':'/assets/images/enimages/mikado-web-apercu-places-libres.png','title':'MIKADO, web apercu places libres'},
{'href':'/assets/images/enimages/mikado-web-liste-groupes.png','title':'MIKADO, web liste groupes'},
{'href':'/assets/images/enimages/mikado-web-planning-hebdomadaire-personnel.png','title':'MIKADO, web planning hebdomadaire personnel'},
{'href':'/assets/images/enimages/mikado-web-planning-hebdomadaire.png','title':'MIKADO, web planning hebdomadaire'},
{'href':'/assets/images/enimages/mikado-web-planning-quotidien.png','title':'MIKADO, web planning quotidien'},
{'href':'/assets/images/enimages/mikado-web-fiche-inscription.png','title':'MIKADO, web fiche inscription'},
{'href':'/assets/images/enimages/mikado-rapport-activite.png','title':'MIKADO, rapport activite'},
{'href':'/assets/images/enimages/mikado-rapport-contrat-accueil.png','title':'MIKADO, rapport contrat accueil'},
{'href':'/assets/images/enimages/mikado-rapport-graphe-evolution-des-places.png','title':'MIKADO, rapport graphe evolution des places'},
{'href':'/assets/images/enimages/mikado-rapport-graphe-comparaison-taux-occupation.png','title':'MIKADO, rapport graphe comparaison taux occupation'},
{'href':'/assets/images/enimages/mikado-rapport-mensuel-de-frequentation.png','title':'MIKADO, rapport mensuel de frequentation'}
 ], fancyAC);});

 $("a[rel=oligo-en-images]").click(function() {$.fancybox([
{'href':'/assets/images/enimages/oligo-web-planning-hebdomadaire.png','title':'OLIGO, web planning hebdomadaire'},
{'href':'/assets/images/enimages/oligo-web-planning-mensuel.png','title':'OLIGO, web planning mensuel'},
{'href':'/assets/images/enimages/oligo-web-planning-quotidien.png','title':'OLIGO, web planning quotidien'},
{'href':'/assets/images/enimages/oligo-webfiche-inscription-web.png','title':'OLIGO, webfiche inscription web'},
{'href':'/assets/images/enimages/oligo-rapport-planning-hebdo-2-semaines.png','title':'OLIGO, rapport planning hebdo 2 semaines'},
{'href':'/assets/images/enimages/oligo-webfiche-groupe.png','title':'OLIGO, webfiche groupe'},
{'href':'/assets/images/enimages/oligo-rapport-attestation-presence.png','title':'OLIGO, rapport attestation presence'},
{'href':'/assets/images/enimages/oligo-rapport-planning-hebdo.png','title':'OLIGO, rapport planning hebdo'},
{'href':'/assets/images/enimages/oligo-rapport-recapitulatif-frequentation-annuel.png','title':'OLIGO, rapport recapitulatif frequentation annuel'},
{'href':'/assets/images/enimages/oligo-rapport-recapitulatif-frequentation.png','title':'OLIGO, rapport recapitulatif frequentation'}
 ], fancyAC);});

 $("a[rel=familles-en-images]").click(function() {$.fancybox([
{'href':'/assets/images/enimages/portail-familles-web-accueil-login.png','title':'PORTAIL, familles web accueil login'},
{'href':'/assets/images/enimages/portail-familles-web-creation-compte-famille.png','title':'PORTAIL, familles web creation compte famille'},
{'href':'/assets/images/enimages/portail-familles-web-page-paiement-en-ligne.png','title':'PORTAIL, familles web page paiement en ligne'},
{'href':'/assets/images/enimages/portail-familles-web-portail-fiche-enfant.png','title':'PORTAIL, familles web portail fiche enfant'},
{'href':'/assets/images/enimages/portail-familles-web-portail-messagerie.png','title':'PORTAIL, familles web portail messagerie'},
{'href':'/assets/images/enimages/portail-familles-web-portail-reservations-petite-enfance.png','title':'PORTAIL, familles web portail reservations petite enfance'}
 ], fancyAC);});


}





});

function daolno(iii) {if(iii==11){var COOKIE_NAME = 'AXcookie';if($.cookie(COOKIE_NAME) != 1000) {$.cookie(COOKIE_NAME, ($.cookie(COOKIE_NAME)*1)+1, { expires: 0 });$("a#popanimation").trigger("click");}}}

