var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
  http = new XMLHttpRequest();
} 

function thickco() {

  mail=encodeURIComponent(document.forms['thickco'].elements['thickmail'].value);
  mdp=encodeURIComponent(document.forms['thickco'].elements['thickmdp'].value);

  http.open("GET", "mods/mod_connexion/ajax/co.php?mail="+mail+"&mdp="+mdp, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      document.getElementById('TB_ajaxContent').innerHTML = http.responseText;
    }
  }
  http.send(null);
}

function thickins() {

 ok = true;

 if('function' == typeof(CF_submit_alert))
 {
	 if(!CF_submit_alert())
	 {
		 ok = false;
	 }
 }
 
 if(ok)
 {

  mail=encodeURIComponent(document.forms['thickins'].elements['thickmail'].value);
  pseu=encodeURIComponent(document.forms['thickins'].elements['thickpseu'].value);
  mdp=encodeURIComponent(document.forms['thickins'].elements['thickmdp'].value);
  civ=encodeURIComponent(document.forms['thickins'].elements['thickciv'].value);
  nom=encodeURIComponent(document.forms['thickins'].elements['thicknom'].value);
  pre=encodeURIComponent(document.forms['thickins'].elements['thickpre'].value);
  nai=encodeURIComponent(document.forms['thickins'].elements['thicknai'].value);
  pro=encodeURIComponent(document.forms['thickins'].elements['thickpro'].value);
  ad1=encodeURIComponent(document.forms['thickins'].elements['thickad1'].value);
  ad2=encodeURIComponent(document.forms['thickins'].elements['thickad2'].value);
  cp=encodeURIComponent(document.forms['thickins'].elements['thickcp'].value);
  vil=encodeURIComponent(document.forms['thickins'].elements['thickvil'].value);
  pay=encodeURIComponent(document.forms['thickins'].elements['thickpay'].value);

  if(document.forms['thickins'].elements['thicknewsletter'].checked)
   news=1;
  else
   news=0;
															  
  
  http.open("GET", "mods/mod_connexion/ajax/ins.php?mail="+mail+"&pseu="+pseu+"&mdp="+mdp+"&civ="+civ+"&nom="+nom+"&pre="+pre+"&nai="+nai+"&pro="+pro+"&ad1="+ad1+"&ad2="+ad2+"&cp="+cp+"&vil="+vil+"&pay="+pay+"&news="+news, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      document.getElementById('TB_ajaxContent').innerHTML = http.responseText;
	  if('function' == typeof(CF_offers))
	  {
	  	CF_offers();
	  }
    }
  }
  http.send(null);
  
 }
}

function oublimdp(formulaire) {

  mail=encodeURIComponent(document.forms[formulaire].elements['thickmailhidden'].value);

  http.open("GET", "mods/mod_connexion/ajax/oublimdp.php?mail="+mail, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      window.alert(unescape('Un mail vous a été envoyé sur votre adresse '+mail+'.'));
    }
  }
  http.send(null);
}

redirect='';

function redico(){

  if($('#thickco').attr('rel')=='connected')
  {
	 if($('#agregateur_co').attr('class')=='stay')
	 {
	   redirect = "document.location.href='miroir.php'";
	 }
	 else if($('#illufb').attr('class')=='illufb')
	 {
	   redirect = "document.location.href='miroir.php'";
	 }
	 else if($('#pavc').attr('class')=='pavc')
	 {
	   redirect = "document.location.href='a-vos-casseroles/participer'";
	 }
	 else
	 {
	   redirect = "document.location.href='mesrecettes'";
	 }
  }
  else if($('#thickins').attr('rel')=='inscrit')
  {
	  redirect = "document.location.href='miroir.php'";
  }
 
 if(!redirect)
 {
 	setTimeout("redico()",2000);
 }
 else
 {
	setTimeout(redirect,2000);
 }

}

document.onload=redico();/*
 * Thickbox 3 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
/*
var tb_pathToImage = "mods/mod_connexion/img/loadingAnimation.gif";

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(b).3z(9(){1I(\'a.1c, 3c.1c, 3i.1c\');1o=1P 1O();1o.J=3e});9 1I(2w){$(2w).l(9(){6 t=M.N||M.1F||L;6 a=M.m||M.2o;6 g=M.2l||V;1m(t,a,g);M.3j();B V})}9 1m(D,d,15){3A{3(24 b.q.F.1S==="25"){$("q","18").o({v:"2e%",p:"2e%"});$("18").o("2f","3d");3(b.2g("1G")===L){$("q").n("<U 5=\'1G\'></U><4 5=\'s\'></4><4 5=\'8\'></4>");$("#s").l(C)}}c{3(b.2g("s")===L){$("q").n("<4 5=\'s\'></4><4 5=\'8\'></4>");$("#s").l(C)}}3(2G()){$("#s").2I("2P")}c{$("#s").2I("2U")}3(D===L){D=""}$("q").n("<4 5=\'H\'><2E J=\'"+1o.J+"\' /></4>");$(\'#H\').31();6 1i;3(d.K("?")!==-1){1i=d.32(0,d.K("?"))}c{1i=d}6 1z=/\\.2u$|\\.2t$|\\.2q$|\\.2p$|\\.1R$/;6 S=1i.1M().2h(1z);3(S==\'.2u\'||S==\'.2t\'||S==\'.2q\'||S==\'.2p\'||S==\'.1R\'){1Q="";1n="";11="";1p="";1q="";T="";1r="";1s=V;3(15){z=$("a[@2l="+15+"]").3k();26(r=0;((r<z.1b)&&(T===""));r++){6 3m=z[r].m.1M().2h(1z);3(!(z[r].m==d)){3(1s){1p=z[r].N;1q=z[r].m;T="<1d 5=\'23\'>&1f;&1f;<a m=\'#\'>3n &3o;</a></1d>"}c{1Q=z[r].N;1n=z[r].m;11="<1d 5=\'21\'>&1f;&1f;<a m=\'#\'>&3p; 3q</a></1d>"}}c{1s=1h;1r="1O "+(r+1)+" 3r "+(z.1b)}}}X=1P 1O();X.1j=9(){X.1j=L;6 1K=1U();6 x=1K[0]-2i;6 y=1K[1]-2i;6 f=X.p;6 j=X.v;3(f>x){j=j*(x/f);f=x;3(j>y){f=f*(y/j);j=y}}c 3(j>y){f=f*(y/j);j=y;3(f>x){j=j*(x/f);f=x}}16=f+30;1k=j+3B;$("#8").n("<a m=\'\' 5=\'1T\' N=\'1H\'><2E 5=\'3v\' J=\'"+d+"\' p=\'"+f+"\' v=\'"+j+"\' 2o=\'"+D+"\'/></a>"+"<4 5=\'3u\'>"+D+"<4 5=\'3t\'>"+1r+11+T+"</4></4><4 5=\'3s\'><a m=\'#\' 5=\'W\' N=\'1H\'>1E</a> 1D 1C 1B</4>");$("#W").l(C);3(!(11==="")){9 13(){3($(b).I("l",13)){$(b).I("l",13)}$("#8").u();$("q").n("<4 5=\'8\'></4>");1m(1Q,1n,15);B V}$("#21").l(13)}3(!(T==="")){9 1u(){$("#8").u();$("q").n("<4 5=\'8\'></4>");1m(1p,1q,15);B V}$("#23").l(1u)}b.19=9(e){3(e==L){G=2b.2c}c{G=e.2d}3(G==27){C()}c 3(G==3h){3(!(T=="")){b.19="";1u()}}c 3(G==2L){3(!(11=="")){b.19="";13()}}};Z();$("#H").u();$("#1T").l(C);$("#8").o({R:"Q"})};X.J=d}c{6 2j=d.2k(/^[^\\?]+\\??/,\'\');6 E=2m(2j);16=(E[\'p\']*1)+30||3b;1k=(E[\'v\']*1)+37||36;P=16-30;O=1k-35;3(d.K(\'2s\')!=-1){1A=d.1y(\'34\');$("#Y").u();3(E[\'1w\']!="1h"){$("#8").n("<4 5=\'2y\'><4 5=\'1t\'>"+D+"</4><4 5=\'2z\'><a m=\'#\' 5=\'W\' N=\'1H\'>1E</a> 1D 1C 1B</4></4><U 2A=\'0\' 2B=\'0\' J=\'"+1A[0]+"\' 5=\'Y\' 1F=\'Y"+1g.2D(1g.1N()*2F)+"\' 1j=\'1L()\' F=\'p:"+(P+29)+"k;v:"+(O+17)+"k;\' > </U>")}c{$("#s").I();$("#8").n("<U 2A=\'0\' 2B=\'0\' J=\'"+1A[0]+"\' 5=\'Y\' 1F=\'Y"+1g.2D(1g.1N()*2F)+"\' 1j=\'1L()\' F=\'p:"+(P+29)+"k;v:"+(O+17)+"k;\'> </U>")}}c{3($("#8").o("R")!="Q"){3(E[\'1w\']!="1h"){$("#8").n("<4 5=\'2y\'><4 5=\'1t\'>"+D+"</4><4 5=\'2z\'><a m=\'#\' 5=\'W\'>1E</a> 1D 1C 1B</4></4><4 5=\'A\' F=\'p:"+P+"k;v:"+O+"k\'></4>")}c{$("#s").I();$("#8").n("<4 5=\'A\' 2O=\'2N\' F=\'p:"+P+"k;v:"+O+"k;\'></4>")}}c{$("#A")[0].F.p=P+"k";$("#A")[0].F.v=O+"k";$("#A")[0].2M=0;$("#1t").18(D)}}$("#W").l(C);3(d.K(\'3f\')!=-1){$("#A").n($(\'#\'+E[\'2K\']).2J());$("#8").2H(9(){$(\'#\'+E[\'2K\']).n($("#A").2J())});Z();$("#H").u();$("#8").o({R:"Q"})}c 3(d.K(\'2s\')!=-1){Z();3($.1v.2Q){$("#H").u();$("#8").o({R:"Q"})}}c{$("#A").2R(d+="&1N="+(1P 2S().2T()),9(){Z();$("#H").u();1I("#A a.1c");$("#8").o({R:"Q"})})}}3(!E[\'1w\']){b.2C=9(e){3(e==L){G=2b.2c}c{G=e.2d}3(G==27){C()}}}}2V(e){}}9 1L(){$("#H").u();$("#8").o({R:"Q"})}9 C(){$("#2W").I("l");$("#W").I("l");$("#8").2X("2Y",9(){$(\'#8,#s,#1G\').2Z("2H").I().u()});$("#H").u();3(24 b.q.F.1S=="25"){$("q","18").o({v:"2x",p:"2x"});$("18").o("2f","")}b.19="";b.2C="";b.2v.m=b.2v;B V}9 Z(){$("#8").o({33:\'-\'+2r((16/2),10)+\'k\',p:16+\'k\'});3(!(2n.1v.38&&2n.1v.39<7)){$("#8").o({3a:\'-\'+2r((1k/2),10)+\'k\'})}}9 2m(1x){6 1e={};3(!1x){B 1e}6 1J=1x.1y(/[;&]/);26(6 i=0;i<1J.1b;i++){6 14=1J[i].1y(\'=\');3(!14||14.1b!=2){3g}6 2a=28(14[0]);6 1l=28(14[1]);1l=1l.2k(/\\+/g,\' \');1e[2a]=1l}B 1e}9 1U(){6 12=b.3l;6 w=22.20||1Z.20||(12&&12.1Y)||b.q.1Y;6 h=22.1X||1Z.1X||(12&&12.1W)||b.q.1W;1V=[w,h];B 1V}9 2G(){6 1a=3w.1a.1M();3(1a.K(\'3x\')!=-1&&1a.K(\'3y\')!=-1){B 1h}}',62,224,'|||if|div|id|var||TB_window|function||document|else|url||imageWidth||||imageHeight|px|click|href|append|css|width|body|TB_Counter|TB_overlay||remove|height||||TB_TempArray|TB_ajaxContent|return|tb_remove|caption|params|style|keycode|TB_load|unbind|src|indexOf|null|this|title|ajaxContentH|ajaxContentW|block|display|urlType|TB_NextHTML|iframe|false|TB_closeWindowButton|imgPreloader|TB_iframeContent|tb_position||TB_PrevHTML|de|goPrev|KeyVal|imageGroup|TB_WIDTH||html|onkeydown|userAgent|length|thickbox|span|Params|nbsp|Math|true|baseURL|onload|TB_HEIGHT|val|tb_show|TB_PrevURL|imgLoader|TB_NextCaption|TB_NextURL|TB_imageCount|TB_FoundURL|TB_ajaxWindowTitle|goNext|browser|modal|query|split|urlString|urlNoQuery|Key|Esc|or|close|name|TB_HideSelect|Close|tb_init|Pairs|pagesize|tb_showIframe|toLowerCase|random|Image|new|TB_PrevCaption|bmp|maxHeight|TB_ImageOff|tb_getPageSize|arrayPageSize|clientHeight|innerHeight|clientWidth|self|innerWidth|TB_prev|window|TB_next|typeof|undefined|for||unescape||key|event|keyCode|which|100|overflow|getElementById|match|150|queryString|replace|rel|tb_parseQuery|jQuery|alt|gif|png|parseInt|TB_iframe|jpeg|jpg|location|domChunk|auto|TB_title|TB_closeAjaxWindow|frameborder|hspace|onkeyup|round|img|1000|tb_detectMacXFF|unload|addClass|children|inlineId|188|scrollTop|TB_modal|class|TB_overlayMacFFBGHack|safari|load|Date|getTime|TB_overlayBG|catch|TB_imageOff|fadeOut|fast|trigger||show|substr|marginLeft|TB_|45|440|40|msie|version|marginTop|630|area|hidden|tb_pathToImage|TB_inline|continue|190|input|blur|get|documentElement|urlTypeTemp|Next|gt|lt|Prev|of|TB_closeWindow|TB_secondLine|TB_caption|TB_Image|navigator|mac|firefox|ready|try|60'.split('|'),0,{}))
*/
/*
 * Thickbox 3 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/

var tb_pathToImage = "images/loadingAnimation.gif";

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]);f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,211,'|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|innerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox'.split('|'),0,{}))function coterecettes(idfond){

 decalage=204;
 document.getElementById('ode_coterecettes').getElementsByClassName('divmods')[0].style.backgroundPosition='right -'+decalage*(idfond-1)+'px';

}decalage=0;
nbre_vignettes=25;
var t_dr;

function decale_dr()
{

 decalage=decalage+sens;
 if(decalage>0)
  decalage=0;
 else if(decalage<-((215+1)*nbre_vignettes-1-656))
  decalage=-((215+1)*nbre_vignettes-1-656);
 document.getElementById("cadre2_dernieres").style.left=decalage+'px';
 t_dr=setTimeout("decale_dr()",15);

}

function start_defile_dr(direction)
{

 if(direction=="g")
  sens=3;
 else
  sens=-3;
 decale_dr();

}

function stop_defile_dr()
{

 clearTimeout(t_dr);

}

function der_height(){

 for(i=1; i<nbre_vignettes+1; i++)
 {
  a = document.getElementById("der_ajo_a_"+i);
  span = document.getElementById("der_ajo_span_"+i);
  span_height = span.scrollHeight;
  a.style.height=span_height+"px";
  a.style.padding=227-span_height+"px 0 0 0";
 }

}/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();function rechch_focus(id){

 if(document.getElementById(id).value=='Une recette, un ingrédient...')
  document.getElementById(id).value='';

}

function rechch_blur(id){

 if(document.getElementById(id).value=='')
  document.getElementById(id).value='Une recette, un ingrédient...';

}function sous_cat(id){

 document.getElementById('liste_cat').style.display='none';
 document.getElementById('liste_prod').style.display='none';
 document.getElementById('liste_the').style.display='none';

 document.getElementById('liste_'+id).style.display='block';

 document.getElementById('cat').className="";
 document.getElementById('prod').className="";
 document.getElementById('the').className="";

 document.getElementById(id).className="select";

}function sous_cat(id){

 document.getElementById('liste_cat').style.display='none';
 document.getElementById('liste_prod').style.display='none';
 document.getElementById('liste_the').style.display='none';

 document.getElementById('liste_'+id).style.display='block';

 document.getElementById('cat').className="";
 document.getElementById('prod').className="";
 document.getElementById('the').className="";

 document.getElementById(id).className="select";

}

function nl_focus(id){

 if(document.getElementById(id).value=='Votre adresse email')
  document.getElementById(id).value='';

}

function nl_blur(id){

 if(document.getElementById(id).value=='')
  document.getElementById(id).value='Votre adresse email';

}sas_tmstp=Math.round(Math.random()*10000000000);
sas_masterflag=1;
 
function SmartAdServer(sas_pageid,sas_formatid,sas_target){
 
 if(sas_masterflag==1)
 {
   
   sas_masterflag=0;
   sas_master='M';         

 } else
 
   sas_master='S';
 
 document.write('<scr'+'ipt src="http://network.aufeminin.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/' + sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?"></scr'+'ipt>');
 
}$(document).ready(function() {

	$('.target_blank').click(function(){
		
		window.open($(this).attr('href'));
		return false;
		
	});

});
