function changeClass(a){for(var b=document.getElementById("fej_tabMenu").getElementsByTagName("a"),c=0;c<b.length;c++)b[c].className=b[c].id==a?"current":"inactive"}
function dispContent(a){if(document.getElementById(a))document.getElementById(a).style.display="block"}
function hideContent(a){if(document.getElementById(a))document.getElementById(a).style.display="none"}var active_id="";function Load(){var a=document.getElementById("_hdf_SubmitArticle_ControlPrefix").value+"fej_yourArticle_chooseOpt";document.getElementById(a).onchange=Change}function Change(a){changeDivVisibility(a)}
function changeDivVisibility(a){if(active_id!=""){var b=document.getElementById(active_id);b.style.display="none"}else if(active_id==""){b=document.getElementById("fej_formVotreArticle");b.className="fej_contentForm hidden"}b=document.getElementById(a);b.style.display="block";active_id=a}
function showContributionPopin(a,b,c){setModalForShow("pnl_fej_submit_article_modale")}
function getUserInfos(a,b){$("#htmlGenericModaleContent").html('<p class="fej_auCentre"><img src="/fejimages/fonds/wait.gif"></p>');$("#htmlGenericModaleContent").load("/auteurs/Pages/UsersInfos.aspx?authorId="+a+"&renderType="+b);$("#htmlGenericModaleTitle").text(b);setModalForShow("pnl_fej_author_modale")}function getId(a){return a=document.getElementById(a)}function eltHasClass(a,b){if(!a.className)return false;return(new RegExp("\\b"+b+"\\b")).test(a.className)}
function rmClass(a,b){a.className=a.className.replace(new RegExp("\\s*\\b"+b+"\\b"),"")}function forceClass(a,b){if(!eltHasClass(a,b))a.className=b}function goNext(){var a="fej_nref_slideshow",b=document.getElementById(a);b=b.getElementsByTagName("li");b=b.length;b=185;var c=3;if(getId(a).style.marginLeft){xPos=parseInt(getId(a).style.marginLeft);xPos-=b;getId(a).style.marginLeft=xPos+"px"}else getId(a).style.marginLeft="-"+b+"px";checkBt()}
function goPrev(){var a=185,b="fej_nref_slideshow";if(parseInt(getId(b).style.marginLeft)!=0&&getId(b).style.marginLeft!="")if(getId(b).style.marginLeft){xPos=parseInt(getId(b).style.marginLeft);xPos+=a;getId(b).style.marginLeft=xPos+"px"}else getId(b).style.marginLeft=a+"px";checkBt()}
function checkBt(){var a="fej_nref_slideshow",b=document.getElementById(a);b=b.getElementsByTagName("li");b=b.length;var c=185,d=3;if(getId(a).style.marginLeft=="")getId(a).style.marginLeft="0px";parseInt(getId(a).style.marginLeft)<=-(c*b-d*c)?forceClass(getId("fej_nref_next"),"fej_nref_hidden"):rmClass(getId("fej_nref_next"),"fej_nref_hidden");parseInt(getId(a).style.marginLeft)==0||getId(a).style.marginLeft==""?forceClass(getId("fej_nref_prev"),"fej_nref_hidden"):rmClass(getId("fej_nref_prev"),
"fej_nref_hidden")}
function ExecuteActionSource(a){if(a!=""){var b=a.indexOf("_");if(b>0&&a.substr(0,b)=="NextSubject"){a=a.substr(b,4);a.length==4?showContributionPopin(a.substr(1,1),"fej_formVotreArticle",a.substr(3,1)):showContributionPopin(0,"fej_formVotreArticle",0)}else if(a=="PrenezLaParole")showContributionPopin(0,"fej_formVotreArticle",0);else if(a=="ProchainForum")setModalForShow("pnl_fej_submit_article_modale");else a=="NextBirthdayIdeas"&&showContributionPopin(0,"fej_formClubAnniversaire",1)}}
function setModalForShow(a){document.location.href="#toppage";hideIE6ElementToHide();document.getElementById("fej_couverture").style.display="block";document.getElementById(a).style.display="block"}function setModalForShowWithEmail(a,b){document.location.href="#toppage";hideIE6ElementToHide();document.getElementById("fej_couverture").style.display="block";document.getElementById(a).style.display="block";a=document.getElementById("hfEmailClientID").value;document.getElementById(a).value=b}
function setModalForShowWithEmailToTbx(a,b){document.location.href="#toppage";hideIE6ElementToHide();document.getElementById("fej_couverture").style.display="block";document.getElementById(a).style.display="block";a=document.getElementById("tbxEmailClientID").value;document.getElementById(a).value=b;a=document.getElementById("tbxEmailInscriptionClientID").value;document.getElementById(a).value=b}
function setModalForHide(a){hideSelects("visible");document.getElementById("fej_couverture").style.display="none";document.getElementById(a).style.display="none"}function setModalForNew(a,b){hideIE6ElementToHide();document.getElementById(a).style.display="none";document.getElementById(b).style.display="block"}
function setModalForShowWithContent(a,b){hideIE6ElementToHide();document.getElementById("htmlGenericModaleContent").innerHTML=document.getElementById(b).value;document.getElementById("fej_couverture").style.display="block";document.getElementById(a).style.display="block"}
function setModalForShowWithContentAndTitle(a,b,c){hideIE6ElementToHide();var d=document.getElementById("htmlGenericModaleContent");d.innerHTML=document.getElementById(b).value;document.getElementById("fej_couverture").style.display="block";document.getElementById(a).style.display="block";a=document.getElementById("lblGenericModaleType");a.innerHTML=c}
function showConfirmation(a){document.location.href="#toppage";hideIE6ElementToHide();document.getElementById("htmlPopInMessageContent").innerHTML=a;document.getElementById("fej_couverture").style.display="block";document.getElementById("pnl_fej_PopInMessage_modale").style.display="block";a=document.getElementById("hfActionSource").value;document.getElementById(a).value=""}
function showConfirmationActionSource(a,b){document.location.href="#toppage";hideIE6ElementToHide();document.getElementById("htmlPopInMessageContent").innerHTML=a;document.getElementById("fej_couverture").style.display="block";document.getElementById("pnl_fej_PopInMessage_modale").style.display="block";a=document.getElementById("hfActionSource").value;document.getElementById(a).value=b}
function showConfirmationWithPageRefreshOnClose(a){document.location.href="#toppage";hideIE6ElementToHide();document.getElementById("htmlPopInMessageWithRefreshContent").innerHTML=a;document.getElementById("fej_couverture").style.display="block";document.getElementById("pnl_fej_PopInMessageWithRefresh_modale").style.display="block"}
function showConfirmationWithPageRedirectOnClose(a,b){document.location.href="#toppage";hideIE6ElementToHide();document.getElementById("htmlPopInMessageWithRefreshContent").innerHTML=a;document.getElementById("fej_couverture").style.display="block";document.getElementById("pnl_fej_PopInMessageWithRefresh_modale").style.display="block";a=document.getElementById("hfUrlClientID").value;document.getElementById(a).value=b}
function hideSelects(a){if(a!="visible")a="hidden";if(navigator.appName.indexOf("MSIE"))for(var b=0;b<document.forms.length;b++)for(var c=0;c<document.forms[b].length;c++)if(document.forms[b].elements[c].options)document.forms[b].elements[c].style.visibility=a}var TabElementToHide=new Array(0);function hideIE6ElementToHide(){if(navigator.appName.indexOf("MSIE"))for(i=0;i<TabElementToHide.length;i++)document.getElementById(TabElementToHide[i]).style.visibility="hidden"}
function AddIE6Element(a){navigator.appName.indexOf("MSIE")&&TabElementToHide.push(a)}function montre(a){if(document.getElementById)document.getElementById(a).style.display="block";else if(document.all)document.all[a].style.display="block";else if(document.layers)document.layers[a].display="block"}
function cache(a){if(document.getElementById)document.getElementById(a).style.display="none";else if(document.all)document.all[a].style.display="none";else if(document.layers)document.layers[a].display="none"};