/*********** func_tx_declinks_keypress-events **********************/
		function tx_declinks_checkKeyPressed(evt){
			evt = (evt) ? evt : (window.event ? event : null);
			if (evt) {
				var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode :((evt.which) ? evt.which : 0));
				if (charCode == 13) return true;
			}
			
			return false;
		}

/*********** func_defaultJS **********************/
	var browserName = navigator.appName;
	var browserVer = parseInt(navigator.appVersion);
	var version = "";
	var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
	if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
	// Blurring links:
	function blurLink(theObject)    {       //
		if (msie4)      {theObject.blur();}
	}

/*********** func_JSImgCode **********************/
if (version == "n3") {img15_0_n=new Image(); img15_0_n.src = "typo3temp/menu/ACCUEIL_picto_accueil_9a7aabbcf7.gif"; 
img15_0_h=new Image(); img15_0_h.src = "typo3temp/menu/ACCUEIL_picto_accueil_89f4bcb3c7.gif"; 
img360_0_n=new Image(); img360_0_n.src = "typo3temp/menu/Actualites_9806d4324a.gif"; 
img360_0_h=new Image(); img360_0_h.src = "typo3temp/menu/Actualites_b42cbe90fa.gif"; 
img183_0_n=new Image(); img183_0_n.src = "typo3temp/menu/Encemoment_d6413b6136.gif"; 
img183_0_h=new Image(); img183_0_h.src = "typo3temp/menu/Encemoment_762ae12fb0.gif"; 
img505_1_n=new Image(); img505_1_n.src = "typo3temp/menu/Quizdefete_af2b8444c7.gif"; 
img505_1_h=new Image(); img505_1_h.src = "typo3temp/menu/Quizdefete_d2778368a6.gif"; 
img361_1_n=new Image(); img361_1_n.src = "typo3temp/menu/CarnetdeSaveurs_b17a6daab8.gif"; 
img361_1_h=new Image(); img361_1_h.src = "typo3temp/menu/CarnetdeSaveurs_747bdd3809.gif"; 
img352_0_n=new Image(); img352_0_n.src = "typo3temp/menu/Quest-cequecest_3ac1196698.gif"; 
img352_0_h=new Image(); img352_0_h.src = "typo3temp/menu/Quest-cequecest_263089c8cf.gif"; 
img353_1_n=new Image(); img353_1_n.src = "typo3temp/menu/Lesduos2009_20d9075cf3.gif"; 
img353_1_h=new Image(); img353_1_h.src = "typo3temp/menu/Lesduos2009_622572fcd5.gif"; 
img45_2_n=new Image(); img45_2_n.src = "typo3temp/menu/Lesduos2008_5fdd829021.gif"; 
img45_2_h=new Image(); img45_2_h.src = "typo3temp/menu/Lesduos2008_30a82c7021.gif"; 
img362_2_n=new Image(); img362_2_n.src = "typo3temp/menu/Lagamme_aca0e29646.gif"; 
img362_2_h=new Image(); img362_2_h.src = "typo3temp/menu/Lagamme_ccc48b69ad.gif"; 
img46_0_n=new Image(); img46_0_n.src = "typo3temp/menu/Lesproduits_4e6c148f83.gif"; 
img46_0_h=new Image(); img46_0_h.src = "typo3temp/menu/Lesproduits_cde0d2258a.gif"; 
img363_3_n=new Image(); img363_3_n.src = "typo3temp/menu/Lesrecettesetastuces_fcc4fe3d55.gif"; 
img363_3_h=new Image(); img363_3_h.src = "typo3temp/menu/Lesrecettesetastuces_2a36b06329.gif"; 
img47_0_n=new Image(); img47_0_n.src = "typo3temp/menu/Lesrecettes_c8c53a85c1.gif"; 
img47_0_h=new Image(); img47_0_h.src = "typo3temp/menu/Lesrecettes_04b9cb8466.gif"; 
img48_1_n=new Image(); img48_1_n.src = "typo3temp/menu/Lesastuces_3e4f808120.gif"; 
img48_1_h=new Image(); img48_1_h.src = "typo3temp/menu/Lesastuces_188b1298ea.gif"; 
img364_4_n=new Image(); img364_4_n.src = "typo3temp/menu/HerbesEpicesdeAaZ_00bfa8d26e.gif"; 
img364_4_h=new Image(); img364_4_h.src = "typo3temp/menu/HerbesEpicesdeAaZ_d54682d72b.gif"; 
img49_0_n=new Image(); img49_0_n.src = "typo3temp/menu/Touteslesherbesetepices_01d1a1022a.gif"; 
img49_0_h=new Image(); img49_0_h.src = "typo3temp/menu/Touteslesherbesetepices_60a2618441.gif"; 
img365_1_n=new Image(); img365_1_n.src = "typo3temp/menu/Lesastucesfraicheur_7e37103eb3.gif"; 
img365_1_h=new Image(); img365_1_h.src = "typo3temp/menu/Lesastucesfraicheur_56286a3b69.gif"; 
img378_2_n=new Image(); img378_2_n.src = "typo3temp/menu/Lechasseurdepices_a0be976ff7.gif"; 
img378_2_h=new Image(); img378_2_h.src = "typo3temp/menu/Lechasseurdepices_60616bb9db.gif"; 
img356_5_n=new Image(); img356_5_n.src = "typo3temp/menu/ToutsurDucros_136fde6a03.gif"; 
img356_5_h=new Image(); img356_5_h.src = "typo3temp/menu/ToutsurDucros_3d23b001e3.gif"; 
img51_0_n=new Image(); img51_0_n.src = "typo3temp/menu/AproposdeDucros_a2cd0cff3a.gif"; 
img51_0_h=new Image(); img51_0_h.src = "typo3temp/menu/AproposdeDucros_f2280d59c0.gif"; 
img119_1_n=new Image(); img119_1_n.src = "typo3temp/menu/ServiceConsommateurs_e33f7eea45.gif"; 
img119_1_h=new Image(); img119_1_h.src = "typo3temp/menu/ServiceConsommateurs_bc764d407e.gif"; 
img50_2_n=new Image(); img50_2_n.src = "typo3temp/menu/Ducrosdanslesmedias_d655fec11f.gif"; 
img50_2_h=new Image(); img50_2_h.src = "typo3temp/menu/Ducrosdanslesmedias_10b07a6554.gif"; 
img196_3_n=new Image(); img196_3_n.src = "typo3temp/menu/LaBoutiqueDucros_f980015fd5.gif"; 
img196_3_h=new Image(); img196_3_h.src = "typo3temp/menu/LaBoutiqueDucros_953e1363c6.gif"; 
img355_6_n=new Image(); img355_6_n.src = "typo3temp/menu/VotreDucros_542d92ea48.gif"; 
img355_6_h=new Image(); img355_6_h.src = "typo3temp/menu/VotreDucros_542d92ea48.gif"; 
img52_0_n=new Image(); img52_0_n.src = "typo3temp/menu/MonEspaceepice_ac64a4aceb.gif"; 
img52_0_h=new Image(); img52_0_h.src = "typo3temp/menu/MonEspaceepice_f576eb6c64.gif"; 
img358_1_n=new Image(); img358_1_n.src = "typo3temp/menu/Afficheurderecettes_f05f358f9b.gif"; 
img358_1_h=new Image(); img358_1_h.src = "typo3temp/menu/Afficheurderecettes_760271da4b.gif"; 
img380_2_n=new Image(); img380_2_n.src = "typo3temp/menu/Bonsdereduction_52476d6e47.gif"; 
img380_2_h=new Image(); img380_2_h.src = "typo3temp/menu/Bonsdereduction_b6e2a8a187.gif"; 
img357_3_n=new Image(); img357_3_n.src = "typo3temp/menu/Forums_7fe1a0a11e.gif"; 
img357_3_h=new Image(); img357_3_h.src = "typo3temp/menu/Forums_6c1ab28d98.gif"; 
img77_0_n=new Image(); img77_0_n.src = "typo3temp/menu/ENVOIAUNAMI_86c8d89c29.gif"; 
img77_0_h=new Image(); img77_0_h.src = "typo3temp/menu/ENVOIAUNAMI_13e5a98a64.gif"; 
img105_1_n=new Image(); img105_1_n.src = "typo3temp/menu/PRESSE_f325b18282.gif"; 
img105_1_h=new Image(); img105_1_h.src = "typo3temp/menu/PRESSE_136c5ced89.gif"; 
img94_2_n=new Image(); img94_2_n.src = "typo3temp/menu/NEWSLETTER_e0f5b8c053.gif"; 
img94_2_h=new Image(); img94_2_h.src = "typo3temp/menu/NEWSLETTER_83c9281731.gif"; 
img235_3_n=new Image(); img235_3_n.src = "typo3temp/menu/CONTACT_a769806e9e.gif"; 
img235_3_h=new Image(); img235_3_h.src = "typo3temp/menu/CONTACT_7e38699a72.gif"; 
img79_4_n=new Image(); img79_4_n.src = "typo3temp/menu/MENTIONSLEGALES_5a7f970312.gif"; 
img79_4_h=new Image(); img79_4_h.src = "typo3temp/menu/MENTIONSLEGALES_cc73b1cb55.gif"; 
img80_5_n=new Image(); img80_5_n.src = "typo3temp/menu/MENTIONSSANITAIRES_f44bafa0ab.gif"; 
img80_5_h=new Image(); img80_5_h.src = "typo3temp/menu/MENTIONSSANITAIRES_4577fd69a2.gif"; 
img81_6_n=new Image(); img81_6_n.src = "typo3temp/menu/PLANDUSITE_f13ee7d0b9.gif"; 
img81_6_h=new Image(); img81_6_h.src = "typo3temp/menu/PLANDUSITE_2a92c58e09.gif"; 
img82_7_n=new Image(); img82_7_n.src = "typo3temp/menu/CREDITS_c01a370ece.gif"; 
img82_7_h=new Image(); img82_7_h.src = "typo3temp/menu/CREDITS_152032299f.gif";}

/*********** func_mouseOver **********************/
		// JS function for mouse-over
	function over(name,imgObj)	{	//
		if (version == "n3" && document[name]) {document[name].src = eval(name+"_h.src");}
		else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_h.src");}
		else if (imgObj)	{imgObj.src = eval(name+"_h.src");}
	}
		// JS function for mouse-out
	function out(name,imgObj)	{	//
		if (version == "n3" && document[name]) {document[name].src = eval(name+"_n.src");}
		else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_n.src");}
		else if (imgObj)	{imgObj.src = eval(name+"_n.src");}
	}



jQuery(document).ready(function () {
/*********** tx_ducrosinscription_anniv **********************/
if(typeof $.parseJSON != "undefined") {
				var gest_anniv = new tx_ducrosinscription_anniv();
				gest_anniv.fieldId = "tx_decadvforms_pi1-form232-anniv";
				gest_anniv.minlines = 6;
				gest_anniv.daysopts = '<option value=""></option><option value="01" >01</option><option value="02" >02</option><option value="03" >03</option><option value="04" >04</option><option value="05" >05</option><option value="06" >06</option><option value="07" >07</option><option value="08" >08</option><option value="09" >09</option><option value="10" >10</option><option value="11" >11</option><option value="12" >12</option><option value="13" >13</option><option value="14" >14</option><option value="15" >15</option><option value="16" >16</option><option value="17" >17</option><option value="18" >18</option><option value="19" >19</option><option value="20" >20</option><option value="21" >21</option><option value="22" >22</option><option value="23" >23</option><option value="24" >24</option><option value="25" >25</option><option value="26" >26</option><option value="27" >27</option><option value="28" >28</option><option value="29" >29</option><option value="30" >30</option><option value="31" >31</option>';
				gest_anniv.monthsopts = '<option value=""></option><option value="01" >01</option><option value="02" >02</option><option value="03" >03</option><option value="04" >04</option><option value="05" >05</option><option value="06" >06</option><option value="07" >07</option><option value="08" >08</option><option value="09" >09</option><option value="10" >10</option><option value="11" >11</option><option value="12" >12</option>';
				gest_anniv.yearsopts = '<option value=""></option><option value="1900" >1900</option><option value="1901" >1901</option><option value="1902" >1902</option><option value="1903" >1903</option><option value="1904" >1904</option><option value="1905" >1905</option><option value="1906" >1906</option><option value="1907" >1907</option><option value="1908" >1908</option><option value="1909" >1909</option><option value="1910" >1910</option><option value="1911" >1911</option><option value="1912" >1912</option><option value="1913" >1913</option><option value="1914" >1914</option><option value="1915" >1915</option><option value="1916" >1916</option><option value="1917" >1917</option><option value="1918" >1918</option><option value="1919" >1919</option><option value="1920" >1920</option><option value="1921" >1921</option><option value="1922" >1922</option><option value="1923" >1923</option><option value="1924" >1924</option><option value="1925" >1925</option><option value="1926" >1926</option><option value="1927" >1927</option><option value="1928" >1928</option><option value="1929" >1929</option><option value="1930" >1930</option><option value="1931" >1931</option><option value="1932" >1932</option><option value="1933" >1933</option><option value="1934" >1934</option><option value="1935" >1935</option><option value="1936" >1936</option><option value="1937" >1937</option><option value="1938" >1938</option><option value="1939" >1939</option><option value="1940" >1940</option><option value="1941" >1941</option><option value="1942" >1942</option><option value="1943" >1943</option><option value="1944" >1944</option><option value="1945" >1945</option><option value="1946" >1946</option><option value="1947" >1947</option><option value="1948" >1948</option><option value="1949" >1949</option><option value="1950" >1950</option><option value="1951" >1951</option><option value="1952" >1952</option><option value="1953" >1953</option><option value="1954" >1954</option><option value="1955" >1955</option><option value="1956" >1956</option><option value="1957" >1957</option><option value="1958" >1958</option><option value="1959" >1959</option><option value="1960" >1960</option><option value="1961" >1961</option><option value="1962" >1962</option><option value="1963" >1963</option><option value="1964" >1964</option><option value="1965" >1965</option><option value="1966" >1966</option><option value="1967" >1967</option><option value="1968" >1968</option><option value="1969" >1969</option><option value="1970" >1970</option><option value="1971" >1971</option><option value="1972" >1972</option><option value="1973" >1973</option><option value="1974" >1974</option><option value="1975" >1975</option><option value="1976" >1976</option><option value="1977" >1977</option><option value="1978" >1978</option><option value="1979" >1979</option><option value="1980" >1980</option><option value="1981" >1981</option><option value="1982" >1982</option><option value="1983" >1983</option><option value="1984" >1984</option><option value="1985" >1985</option><option value="1986" >1986</option><option value="1987" >1987</option><option value="1988" >1988</option><option value="1989" >1989</option><option value="1990" >1990</option><option value="1991" >1991</option><option value="1992" >1992</option><option value="1993" >1993</option><option value="1994" >1994</option><option value="1995" >1995</option><option value="1996" >1996</option><option value="1997" >1997</option><option value="1998" >1998</option><option value="1999" >1999</option><option value="2000" >2000</option><option value="2001" >2001</option><option value="2002" >2002</option><option value="2003" >2003</option><option value="2004" >2004</option><option value="2005" >2005</option><option value="2006" >2006</option><option value="2007" >2007</option><option value="2008" >2008</option><option value="2009" >2009</option><option value="2010" >2010</option>';
				gest_anniv.button = '<img src="fileadmin/templates/images/corporate/bout_ajouter_anniv.gif" width="145" height="15" alt="Ajoutez un anniversaire" title="Ajoutez un anniversaire" />';
				gest_anniv.tbody = $("#lignesanniv");
				gest_anniv.tfoot = $("#footanniv");

				gest_anniv.init();
			}

/*********** content-script-231 **********************/
//suppression de l'info contextuelle pour la confirmation du pass
$(".dec-advforms-password:last").next(".tx-ducrosinscription-info:first").remove();

//mise en forme des newsletters
$(".dec-advforms-form .num3 .dec-advforms-group-checkbox label").not(":last").css("color", "#FF2A7C").each(function(){
  var txt = $(this).text();
  $(this).text("");
  $(this).append("<strong>" + txt.substr(0, txt.indexOf(".")+1) + "</strong>" + txt.substr(txt.indexOf(".")+1));
});

//on cache le  champ plus de 5 personnes
$("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyerplus").parent().hide();
      
$("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyerplus").parent().prev(".dec-advforms-field").eq(0).find(":input").click(function(){
  if($(this).get(0) == $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyerplus").parent().prev(".dec-advforms-field").eq(0).find(".dec-advforms-group-radio:last :input").get(0)) {
    $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyerplus").parent().show();
  } else $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyerplus").parent().hide();
});

//le premiere anniversaire est celui du membre
var annivMembre = $("#tx_decadvforms_pi1-form232-first_name").val() == $(".tx-ducrosinscription-anniv-pnom:first").val();
$("#tx_decadvforms_pi1-form232-first_name").blur(function(){
  if(annivMembre) {
    $(".tx-ducrosinscription-anniv-pnom:first").val($(this).val());
  }
});

//agrandissement du label pour l'anniversaire
 var $curr = $("#tx_decadvforms_pi1-form232-anniv");
$curr = $curr.prev();
$curr.css("width", "600px");

var $curr = $("#tx_decadvforms_pi1-form232-module_sys_dmail_category-1-yes");
$curr.before("<br/>");

var $curr = $("#tx_decadvforms_pi1-form232-module_sys_dmail_category-2-yes");
$curr.before("<br/>");

var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_age-1");
$curr.before("<br/>");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_age-2");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_age-3");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_age-4");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_age-5");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_age-6");
$curr.before("<br/>");
$curr.css("margin-left","165px");

var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_vouscuisinez-1");
$curr.before("<br/>");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_vouscuisinez-2");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_vouscuisinez-3");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_vouscuisinez-4");
$curr.before("<br/>");
$curr.css("margin-left","165px");

var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyer-1");
$curr.before("<br/>");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyer-2");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyer-3");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyer-4");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyer-5");
$curr.before("<br/>");
$curr.css("margin-left","165px");
var $curr = $("#tx_decadvforms_pi1-form232-tx_ducrosinscription_foyer-6");
$curr.before("<br/>");
$curr.css("margin-left","165px");

/*********** tx_decstdcontent_hideFileTypeDescrByDefault **********************/
//this file is inserted in global js file via lib.stdcontent_headerData.51
jQuery(".dsc-file-type-description").hide();
jQuery(".dsc-file-type-description-header").after('<p class="dsc-file-type-description-header"><a href="#" class="dsc-file-type-description-header-link">' + jQuery(".dsc-file-type-description-header").text() + "</a></p>").remove();
jQuery(".dsc-file-type-description-header-link").click(function(){ jQuery(this).parents(".dsc-uploads-file").find(".dsc-file-type-description").toggle(); return false;});


});