// JavaScript scripts//INDEX ://fonction qui permet de faire des rollsovers dans l'index :function rolloverout_btns_index(id_image,lien_image,id_image_2,lien_image_2){	document.getElementById(id_image).src="images/elements/btns_html_flash/"+lien_image;	document.getElementById(id_image_2).src="images/elements/btns_html_flash/"+lien_image_2;}function rolloverout_btns_index_espace_pro(id_image,lien_image){	document.getElementById(id_image).src="images/elements/"+lien_image;}//AIDE ://Pop-up pour la partie AIDE du site :var availWidth_utilisateur=screen.availWidth;//largeur disponible de l'écran de l'utilisateurvar availHeight_utilisateur=screen.availHeight;//hauteur disponible de l'écran de l'utilisateurvar largeur_popup_aide=450;var hauteur_popup_aide=availHeight_utilisateur;var position_horizontale_popup_aide=availWidth_utilisateur-largeur_popup_aide;var position_verticale_popup_aide=screen.availTop;//position la plus haute de l'écranpopup_aide=new Object;window.onunload=function(){	ferme_popup_aide();};//fonction qui affiche la popupfunction affiche_popup_aide(href_popup, titre_popup, lang, page_popup){	popup_aide=window.open(href_popup+"?lang="+lang+"&pag="+page_popup, "aide", config="scrollbars=yes, menubar=no, toolbar=no, resizable=no,location=no, directories=no, status=no, height=" + hauteur_popup_aide +",width=" + largeur_popup_aide +",top=" + position_verticale_popup_aide +",left=" + position_horizontale_popup_aide +",screenX=" + position_horizontale_popup_aide +",screenY=" + position_verticale_popup_aide);	popup_aide.focus();};//fonction qui permet de fermer automatiquement la popup :function ferme_popup_aide() {	popup_aide.close();};//TRANSFERT DE FICHIERS ://Cette fonction permet d'actualiser la page en changeant l'état des fichiers dans la partie transfert de fichiers : (etat 0 : pas vu, etat 1 : vu)function valide_etat_fichier(lang,id_fichier_ftp,nom_page){	window.location.href=nom_page+'?lang='+lang+'&id_fichier_ftp='+id_fichier_ftp;}//AUTRES ://fonction qui permet de fermer la popupfunction ferme_popup(){	window.close();}//fonction qui permet d'ouvrir une pop-up :function affiche_popup_goodies(page, largeur, hauteur, idg, lang, idvg) {	/*window.open(page+"?lang="+lang+"&idg="+idg+"&idvg="+idvg, '', "'"+"scrollbars=no,menubar=no,toolbar=no,resizable=no,location=no,directories=no,status=no,top=100,left=100,screenX=100,screenY=100,width=" + largeur + ",height=" + hauteur+"'");*/	var popup_goodie=window.open(page+"?lang="+lang+"&idg="+idg+"&idvg="+idvg, 'bonus', config='scrollbars=yes,menubar=no,toolbar=no,resizable=yes,location=no,directories=no,status=no,top=100,left=100,screenX=100,screenY=100');	popup_goodie.focus();}//fonction qui permet d'ouvrir une pop-up :function affiche_popup(nom_page){	window.open(nom_page,"",config="height=350, width=650, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no");}//fonction qui permet d'ouvrir une pop-up :function affiche_popup_ftp(nom_page,libelle_page){	window.open(nom_page, libelle_page, config='height=200, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');}//fonction qui permet d'ouvrir une pop-up :function ouvre_popup(nom_page, largeur, hauteur){	window.open(nom_page,"",config="height="+hauteur+", width="+largeur+", toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=no");}//fonction qui permet de faire des rollsovers dans la vitrine :function rollovers_menus_bas(id_image,lien_image,id_texte,class_texte){	document.getElementById(id_texte).setAttribute('class',class_texte);	document.getElementById(id_image).src=lien_image;}//fonction qui permet de faire des rollsovers dans la vitrine :function rollovers_equipe_zygmund(id_btn,lien_btn,id_photo,lien_photo,id_txt,etat){	document.getElementById(id_btn).src=lien_btn;	document.getElementById(id_photo).src=lien_photo;	document.getElementById(id_txt).style.visibility=etat;}//fonction qui permet de faire des rollsovers dans la vitrine :function rollovers_equipe_partenaires(id_btn,lien_btn,id_icone,lien_icone,id_txt,etat_txt,id_logo,etat_logo){	document.getElementById(id_btn).src=lien_btn;	document.getElementById(id_icone).src=lien_icone;	if(id_txt!=undefined && id_logo!=undefined){		document.getElementById(id_txt).style.display=etat_txt;		document.getElementById(id_logo).style.display=etat_logo;	}}//fonction qui permet de faire des rolloversfunction rollovers(id_image,lien_image){	document.getElementById(id_image).src=lien_image;}//les boutons de la partie déconnexionfunction actif_btns_deconnexion(id,lang){	if(id=='btn_1'){	document.getElementById(id).src="../../images/espace_pro/deconnexion/accueil1_btn_"+lang+".jpg";	}else if(id=='btn_2'){	document.getElementById(id).src="../../images/espace_pro/deconnexion/bibliotheque1_btn_"+lang+".jpg";	}else if(id=='btn_3'){	document.getElementById(id).src="../../images/espace_pro/deconnexion/ftp1_btn_"+lang+".jpg";	}}function normal_btns_deconnexion(id,lang){	if(id=='btn_1'){	document.getElementById(id).src="../../images/espace_pro/deconnexion/accueil0_btn_"+lang+".jpg";	}else if(id=='btn_2'){	document.getElementById(id).src="../../images/espace_pro/deconnexion/bibliotheque0_btn_"+lang+".jpg";	}if(id=='btn_3'){	document.getElementById(id).src="../../images/espace_pro/deconnexion/ftp0_btn_"+lang+".jpg";	}}//les boutons de la partie erreurfunction actif_btns_erreur(id,lang){	if(id=='btn_1'){	document.getElementById(id).src="../images/erreur/logo_ftp_actif.png";	}else if(id=='btn_2'){	document.getElementById(id).src="../images/erreur/logo_bibliotheque_actif_"+lang+".png";	}else if(id=='btn_3'){	document.getElementById(id).src="../images/erreur/logo_accueil_actif_"+lang+".png";	}}function normal_btns_erreur(id,lang){	if(id=='btn_1'){	document.getElementById(id).src="../images/erreur/logo_ftp_normal.png";	}else if(id=='btn_2'){	document.getElementById(id).src="../images/erreur/logo_bibliotheque_normal_"+lang+".png";	}if(id=='btn_3'){	document.getElementById(id).src="../images/erreur/logo_accueil_normal_"+lang+".png";	}}//script qui permet de recharger la page lorsqu'il y a 1 changement dans un combobox ("onChange")function change_combobox(actuelle,nepp,premier_element_page,nb_resultats,lang,nom_page,ida,actuelle_album,tpdf,zone_appel){	var actuelle_recup = actuelle;	var nepp_recup = nepp;	var premier_element_page_recup = premier_element_page;	var nb_resultats_recup = nb_resultats;	var lang_recup = lang;	var nom_page_recup = nom_page;	var ida_recup = ida;	var actuelle_album_recup = actuelle_album;	var tpdf_recup = tpdf;	var zone_appel_recup = zone_appel;	/*	alert("actuelle_recup : "+actuelle_recup);	alert("premier_element_page_recup : "+premier_element_page_recup);	alert("nb_resultats_recup : "+nb_resultats_recup);	alert("lang_recup : "+lang_recup);	alert("nom_page_recup : "+nom_page_recup);	alert("ida_recup : "+ida_recup);	alert("nepp_recup : "+nepp_recup);	alert("actuelle_album_recup : "+actuelle_album_recup);	alert("tpdf_recup : "+tpdf_recup);	alert("zone_appel_recup : "+zone_appel_recup);	*/	//alert("tpdf_recup : "+tpdf_recup);	if(zone_appel_recup==1){//appel depuis changement du nepp :		var nb_elements = document.form_nb_elts_par_page.choix_nb_par_page.value;//nb d'élements qui ont été sélectionnés		//on recharge la page avec les bonnes variables		window.location.href=nom_page_recup+'?actuelle=1&nepp='+nb_elements+'&lang='+lang_recup+'&ida='+ida_recup+'&tpdf='+tpdf_recup+'&actuelle_album='+actuelle_album_recup;	}else if(zone_appel_recup==2){//appel depuis changement du tpdf :		var tpdf = document.getElementById('selection_type_pdf').value;//type de pdf sélectionné à visualiser		//on recharge la page avec les bonnes variables		window.location.href=nom_page_recup+'?actuelle='+actuelle_recup+'&nepp='+nepp_recup+'&lang='+lang_recup+'&ida='+ida_recup+'&tpdf='+tpdf+'&actuelle_album='+actuelle_album_recup;	}else if(zone_appel_recup==3){//appel depuis changement d'album :		var ancre_album='&ancre=#album_actif';		var ida = document.getElementById('selection_album').value;//id de l'album affiché		//on recharge la page avec les bonnes variables		window.location.href=nom_page_recup+'?actuelle='+actuelle_recup+'&nepp='+nepp_recup+'&lang='+lang_recup+'&ida='+ida+'&tpdf='+tpdf_recup+'&actuelle_album='+actuelle_album_recup+ancre_album;	}}//permet d'afficher le bon album dans la partie gestion albumfunction affiche_album_gestion_album(nom_page,lang,nepp_recup){	var ida = document.getElementById('selection_album').value;//id de l'album affiché	window.location.href=nom_page+'?lang='+lang+'&ida='+ida+'&nepp='+nepp_recup;}//les boutons de la partie bibliotheque LOGO/IMAGE/PDFfunction actif_btns_biblio(id,lang){	if(id=='biblio_btn_1'){//logo	document.getElementById(id).src="../images/logo_btn_actif_pp.jpg";	}else if(id=='biblio_btn_2'){//image	document.getElementById(id).src="../images/images_btn_actif_pp_"+lang+".jpg";	}else if(id=='biblio_btn_3'){//pdf	document.getElementById(id).src="../images/pdf_btn_actif_pp.jpg";	}}function normal_btns_biblio(id,lang){	if(id=='biblio_btn_1'){	document.getElementById(id).src="../images/logo_btn_normal_pp.jpg";	}else if(id=='biblio_btn_2'){	document.getElementById(id).src="../images/images_btn_normal_pp_"+lang+".jpg";	}else if(id=='biblio_btn_3'){	document.getElementById(id).src="../images/pdf_btn_normal_pp.jpg";	}}//le bouton retour à la bibliotheque dans l'album et dans Profilfunction normal_btn_retourbiblio(id,lang){	if(id=='retourbiblio_album'){//dans l'album		document.getElementById(id).src="../images/album/lien_bibliotheque_normal_pp_"+lang+".jpg";	}else if(id=='retourbiblio_profil'){//dans la partie gestion profil		document.getElementById(id).src="../images/profil/lien_bibliotheque_normal_pp_"+lang+".jpg";	}}function actif_btn_retourbiblio(id,lang){	if(id=='retourbiblio_album'){//dans l'album		document.getElementById(id).src="../images/album/lien_bibliotheque_actif_pp_"+lang+".jpg";	}else if(id=='retourbiblio_profil'){//dans la partie gestion profil		document.getElementById(id).src="../images/profil/lien_bibliotheque_actif_pp_"+lang+".jpg";	}}//permet de faire des rolloversfunction affiche_logo(){	document.getElementById('logo_btn').src="../images/logo_btn_actif_pp.jpg";}function masque_logo(){	document.getElementById('logo_btn').src="../images/logo_btn_normal_pp.jpg";}function affiche_img(lang){	document.getElementById('img_btn').src="../images/images_btn_actif_pp_"+lang+".jpg";}function masque_img(lang){	document.getElementById('img_btn').src="../images/images_btn_normal_pp_"+lang+".jpg";}function affiche_pdf(){	document.getElementById('pdf_btn').src="../images/pdf_btn_actif_pp.jpg";}function masque_pdf(){	document.getElementById('pdf_btn').src="../images/pdf_btn_normal_pp.jpg";}//les boutons de la partie bibliotheque ALBUM :function actif_btns_album(id,lang){	if(id=='alb_btn_1'){	document.getElementById(id).src="../images/album/creation_al_btn_actif_pp_"+lang+".jpg";	}else if(id=='alb_btn_2'){	document.getElementById(id).src="../images/album/gestion_al_btn_actif_pp_"+lang+".jpg";	}else if(id=='alb_btn_3'){	document.getElementById(id).src="../images/album/mail_btn_actif_pp_"+lang+".jpg";	}}function normal_btns_album(id,lang){	if(id=='alb_btn_1'){	document.getElementById(id).src="../images/album/creation_al_btn_normal_pp_"+lang+".jpg";	}else if(id=='alb_btn_2'){	document.getElementById(id).src="../images/album/gestion_al_btn_normal_pp_"+lang+".jpg";	}else if(id=='alb_btn_3'){	document.getElementById(id).src="../images/album/mail_btn_normal_pp_"+lang+".jpg";	}}//le bouton album :function album_over(){	document.getElementById('album_btn').src="../images/album_elements/album_actif.png";}function album_out(){	document.getElementById('album_btn').src="../images/album_elements/album.png";}//les puces du menu du haut et basfunction puce_blanche(puce_num){	var puce_n="puce_"+puce_num;	document.getElementById(puce_n).src="../images/puces/puce_blanche.gif";}function puce_grise(puce_num){	var puce_n="puce_"+puce_num;	document.getElementById(puce_n).src="../images/puces/puce_grise.gif";}//partie vitrine ://les puces du menu du haut et basfunction puces_parties_actif(puce_num){	var puce_n="puce_partie_"+puce_num;	document.getElementById(puce_n).src="../images/puces/puces_parties/puce_"+puce_num+".gif";}function puces_parties_normal(puce_num){	var puce_n="puce_partie_"+puce_num;	document.getElementById(puce_n).src="../images/puces/puces_parties/puce_0.gif";}//les puces du menu de l'espace pro :function puce_actif_espace_pro(puce_num){	var puce_n="puce_espace_pro_"+puce_num;	document.getElementById(puce_n).src="../images/puces/puce_rouge.gif";}function puce_normal_espace_pro(puce_num){	var puce_n="puce_espace_pro_"+puce_num;	document.getElementById(puce_n).src="../images/puces/puce_grise.gif";}//*************************** A JETER SUPPRIMER !!!!!!!!!!!!!!!!!!! **********************************************************************************************//Les petites icones Album (pour ajouter ou enlever d'un album) :function affiche_icone_album(icon){	document.getElementById(icon).src="../images/album_elements/icone_album_actif.png";}function masque_icone_album(icon){	document.getElementById(icon).src="../images/album_elements/icone_album.png";}