<!-- fonctions.js -->var zoomfactor=0.15var pause_toiles = 0;var zoom_toiles = 0;var Pix_toiles = new Array()var howMany_toiles = Pix_toiles.length;var timeDelay_toiles= 20;// delai en secondetimeDelay_toiles*= 1000;// conversion en msvar PicCurrentNum_toiles= 0;var PicCurrent_toiles = new Image();var PicCurrent_legende = new Image(406,36);//var Pic_Empty = new Image(5,5);//Pic_Empty.src = "images/gif/empty.gif";//var loading = "images/gif/loading.gif";//var Pic_Loading = new Image(157,18);//Pic_Loading.src = loading;//var ombre = "images/gif/ombre.gif";//var AmilThumb = "fr/gal/assets/amil_home.gif";var Slide_Folder="images/slide2/";var Gal_Folder="fr/gal/";var FullSize_Folder="images/zoom/";var Legende_Folder="images/legendes/";var Gal_Ext=".htm";var Slide_Ext=".jpg";var FullSize_Ext=".jpg";var Legende_Ext=".gif";function InitPix(slide_list) {Pix_toiles = new Array("tziganes","dechirure","plume","grand_bleu","itapoa","para_yemanja","la_soeur_de_gaia","stanilas","meduse","vague","l_eclair_bleu","boite_a_bijoux","reve","apres_la_pluie","les_13_caravelles","azuleijo","chadri","entre_deux_mers","atlantide","le_cerisier","praia","ondina","aurore_suisse","crepuscule_suisse","l_escrime","rupestre","frise","frise_2","calcite","la_danseuse","valenca","cascade","papier_mache","corida","tempete","corail","estampe","luz_do_luar","solidao","bleu_shushi","guinguette","chutes","itapoa_cap","bleu_koci","chadris_2","le_pont","coeur_bleu","no_babado","lilas","orixas","rabia","nativite","gaia","ipiuna","panache","volcano","soie","reflets","automne","marbre","vallee","pleine_lune","pleine_lune2","aparicido","empreinte","defile","le_cirque","trois_tetes","andarai","caravan","volcan_2","africa","aube","rouleau_01","rouleau_02","abstrait");howMany_toiles = Pix_toiles.length;//choix alŽatoire de l'image de dŽpartPicCurrentNum_toiles = Math.round((howMany_toiles - 1) * Math.random());document["slide_toiles"].src = Slide_Folder + Pix_toiles[PicCurrentNum_toiles] + Slide_Ext;document["slide_legende"].src = Legende_Folder + Pix_toiles[PicCurrentNum_toiles] + Legende_Ext;//slideshow_toiles();} //InitPixfunction movepic(img_name,img_src) {document[img_name].src=img_src;}function startPix() {InitPix();//intervalles d'affichagesetInterval("slideshow_toiles(1)", timeDelay_toiles);}function slideshow_toiles(Num) {PicCurrentNum_toiles+=Num;if (PicCurrentNum_toiles >= howMany_toiles) {PicCurrentNum_toiles = 0; }else if (PicCurrentNum_toiles < 0) {PicCurrentNum_toiles = howMany_toiles - 1;}//Choix alŽatoire//PicCurrentNum_toiles = Math.round((howMany_toiles - 1) * Math.random()) ;//+ 1;//PicCurrent_toiles.src = Slide_Folder + Pix_toiles[PicCurrentNum_toiles] + Slide_Ext;//document["slide_toiles"].src = Pic_Empty.src;//document["slide_legende"].src = Pic_Empty.src;document["slide_toiles"].src = Slide_Folder + Pix_toiles[PicCurrentNum_toiles] + Slide_Ext;document["slide_legende"].src = Legende_Folder + Pix_toiles[PicCurrentNum_toiles] + Legende_Ext;}function Slide_Loupe(){ var vURL=Gal_Folder + eval(PicCurrentNum_toiles+1) +  Gal_Ext;FenetreImage = OpenWindow(vURL);}function zoomhelper(){if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefixwhatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix}}function zoom(originalW, originalH, what, state){if (!document.all&&!document.getElementById)returnwhatcache=eval("document.images."+what)prefix=(state=="in")? 1 : -1if (whatcache.style.width==""||state=="restore"){whatcache.style.width=originalWwhatcache.style.height=originalHif (state=="restore")return}else{zoomhelper()}}function Close_Loupe(){ 	FenetreImage.close();	zoom_toiles=0;}function OpenWindow(page){var width = 800;var height = 600;var options = "menubar=no,scrollbars=no,statusbar=no"var top=(screen.height-height)/2;var left=(screen.width-width)/2;FenetreImage = window.open(page,"","top="+top+",left="+left+",width="+width+",height="+height+","+options);return FenetreImage;}function FullWindow(URL){var myWidth = screen.width;var myHeight = screen.height;var width = screen.width;var height = screen.height;var leftpos = width / 2 - myWidth / 2;var toppos = height / 2 - myHeight / 2; if (URL=='') {FenetreImage=window.open("","","scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=" + myWidth +",height=" + myHeight + ",left=" + leftpos + ",top=" + toppos );}else{FenetreImage=window.open(URL,"","scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=" + myWidth +",height=" + myHeight + ",left=" + leftpos + ",top=" + toppos );}return FenetreImage;}function valid(form) {	if (form.Nom.value=="")	{		alert("Veuillez indiquer votre nom, SVP !");		form.Nom.focus() ;		return false;	}	else if (form.Email.value.indexOf('@',0)==-1 || form.Email.value.indexOf('.',0)==-1)	{		alert("Veuillez indiquer une adresse de messagerie valide, SVP !") ;		form.Email.focus() ;		return false	}}
