// (C) 2004 - 2009 Serge Lamarche
// http://sergewebservice.ca/
// All codes copyrights Serge Lamarche, any reproduction and 
// use strictly forbidden without written consent.
// Tous les codes droits d'auteurs Serge Lamarche, toute reproduction et 
// utilisation est strictement interdite sans autorisation écrite.
// Contact: info@sergewebservice.ca, sergewebservice@yahoo.ca or/ou sergelamarche@gmail.com 
// ...for help with your website. Reliable, inexpensive website service. Thanks.
// ...pour de l'aide avec votre site. Service internet abordable et professionnel. Merci. 


function lasaison() { //if (false) return; 
var datecourante = new Array(); var maintenant = new Date(); 
datecourante[0]=Number(maintenant.getDay()); datecourante[1]=Number(maintenant.getDate()); 
datecourante[2]=Number(maintenant.getMonth()); datecourante[3]=Number(maintenant.getYear()); 
if (isNaN(datecourante[0])||isNaN(datecourante[1])||isNaN(datecourante[2])||isNaN(datecourante[3])) return; 
if (datecourante[2]<3||datecourante[2]>10) return "hiver"; 
if (datecourante[2]<5&&datecourante[2]>2) return "printemps"; 
if (datecourante[2]<9&&datecourante[2]>4) return "ete"; 
if (datecourante[2]<11&&datecourante[2]>8) return "automne"; }; 

if (document.getElementById) { souhts= new Array(); var saison = lasaison(); 
if (saison=="hiver") { souhts[0]="Nappée d'un manteau blanchâtre, la région est assoupie et reprends des forces... et skie!$."; 
souhts[2]="Under this white coat, the region is asleep and regain forces... and ski!.&"; }; 
if (saison=="printemps") { souhts[0]="Le retour à la vie, le retour du soleil, le réveil des ours, le début de la saison de vol.$."; 
souhts[2]="The return of life, the return of sunlight, the waking up of bears, the beginning of flying season.&"; }; 
if (saison=="ete") { souhts[0]="Les activités extérieures abondent. La vie abonde et se dépêche. Le soleil nourrit tout.$."; 
souhts[2]="Outdoor activities abounds. Life abounds, and rushes. The sun nourishes everything.&"; }; 
if (saison=="automne") { souhts[0]="Au revoir soleil, au revoir oiseaux migrateurs. Bonjour froid, on se prepare au ski.$."; 
souhts[2]="Goodbye sun, goodbye migratory birds. Hello frozen water, let's prepare to ski.&"; }; 
; }

totape=tofondu2=totapecoul=totapecoul0=tovole=false; 
function effet1() { if (!document.getElementById||!document.createElement||!document.createTextNode||!document.appendChild) return; 
if (-1 == document.title.search(/Portique/)) return; 
var nav=fureteur(); var OS=systOp(); 
if (nav=="konqueror"||nav=="opera"||OS=="macintosh") return; //ok avec opera 9+
wishes=document.getElementById("souhaits"); 
var span1 = document.createElement("span"); var span2 = document.createElement("span"); 
var texte1=document.createTextNode(" "); var texte2=document.createTextNode(" "); 
span1.appendChild(texte1); span2.appendChild(texte2); 
k=n=o=0; //essayer avec fondus ici;
if (!wishes.childNodes[n].appendData) return; 
wishes.replaceChild(span1,wishes.childNodes[0]); 
wishes.replaceChild(span2,wishes.childNodes[2]); 
divgotype=document.getElementById("divvatape"); 
divgotype.style.position="absolute"; divgotype.style.width="100%"; 
divgotype.style.height="350px"; divgotype.style.zIndex="3"; 
if (document.attachEvent) { divgotype.attachEvent("onmouseover",vaTape); } 
else if (document.addEventListener) {divgotype.addEventListener("mouseover",vaTape,true); }; }

function vaTape() {
tapeto=window.setTimeout("tape()",500); totape=true; //fondu1(); 
//fondu2to=window.setTimeout("fondu2()",100); tofondu2=true; 
if (document.detachEvent) { divgotype.detachEvent("onmouseover",vaTape); } 
else if (document.removeEventListener) {divgotype.removeEventListener("mouseover",vaTape,true); }; 
document.getElementsByTagName("body").item(0).removeChild(divgotype); }

fond1=fond2=vaimga=0;
function tape() { var lettre=souhts[n].charAt(o); o++;
if (lettre=="$") { if (fond2<1) tapecouleur(n,0); n=n+2; o=0; tape(); return;} ;
if (lettre=="&"||souhts[n].length==o) { 
if (fond2<1) tapecouleur(n,0); totape=false; fondu1(); return; };
wishes.childNodes[n].childNodes[0].appendData(lettre); tapeto=setTimeout("tape()",150); } 

function tapecouleur(numtext,k) { var saison = lasaison(); var couleurs; 
if (saison=="hiver") { couleurs = "rgb("+(3*k)+","+(6*k)+","+(10*k)+")"; }
if (saison=="printemps") { couleurs = "rgb("+(3*k)+","+(10*k)+","+(6*k)+")"; }
if (saison=="ete") { couleurs = "rgb("+(4*k)+","+(11*k)+","+(6*k)+")"; }
if (saison=="automne") { couleurs = "rgb("+(13*k)+","+(8*k)+","+(3*k)+")"; }
wishes.childNodes[numtext].style.color = couleurs; 
k++; if (k>20) { totapecoul=false; return; }; tapecoulto=setTimeout("tapecouleur("+numtext+","+k+")",50); totapecoul=true; }; // couleurs d'automne: (9*k)+","+(10*k)+","+(3*k) couleurs d'hiver: (3*k)+","+(6*k)+","+(10*k)  
function tapecouleur0(numtext,k) { var saison = lasaison(); var couleurs; 
if (saison=="hiver") { couleurs = "rgb("+(3*k)+","+(6*k)+","+(10*k)+")"; }
if (saison=="printemps") { couleurs = "rgb("+(3*k)+","+(10*k)+","+(6*k)+")"; }
if (saison=="ete") { couleurs = "rgb("+(4*k)+","+(11*k)+","+(6*k)+")"; }
if (saison=="automne") { couleurs = "rgb("+(13*k)+","+(8*k)+","+(3*k)+")"; }
wishes.childNodes[numtext].style.color = couleurs; 
k--; if (k<5) { totapecoul0=false; return; }; tapecoulto0=setTimeout("tapecouleur0("+numtext+","+k+")",50); totapecoul0=true; }


function fondu1() { if (!document.styleSheets||!document.getElementById) return; 
// if (-1 != navigator.appVersion.search(/MSIE 5.0; Macintosh/)) return; 
chgcss = document.styleSheets[0]; 
limagea = document.getElementById("imagea"); 
limagea.style.visibility="visible"; 
limagea.style.zIndex="1"; limagea.style.display="block";  

var lessouhaits = document.getElementById("souhaits"); //lessouhaits.style.zIndex="3"; 
var postxt=-110; if (!document.all) postxt+=2; // -110 et +=2 pour deux lignes de texte chacuns. ***
lessouhaits.style.marginTop=postxt+"px"; //position du texte tapé. ********************

fondu2to=window.setTimeout("fondu2()",100); tofondu2=true; // fondu2(); ***********
if (document.getElementById("stop")) return; //!document.innerHTML||
textfr="<a class='portique' href='javascript:fondu2();'>Fondu-enchaîné</a> entre images ci-dessous.<br>&nbsp;"; 
texten="<a class='portique' href='javascript:fondu2();'>Fade</a> between images below.<br>&nbsp;"; 
ppfin=document.getElementById("pfin"); ppend=document.getElementById("pend"); 
ppfin.setAttribute("id","stop"); ppfin.innerHTML=''; ppend.innerHTML=''; 
ppfin.innerHTML=textfr; ppend.innerHTML=texten; //la cache pub doit être descendue si elle est en bas:
if (bgblanc) document.getElementById("divcp").style.marginTop="50px"; }

function fondu2() { tofondu2=false; 
if (typeof(opimga)=="undefined") opimga=0; 
if (vaimga>0) opimga -= 5; else { opimga += 5; limagea.style.visibility="visible"; }
if (limagea.style.filter) limagea.style.filter="alpha(opacity="+opimga+")" ; 
if (chgcss.insertRule) { chgcss.insertRule('img.cartedesaison { -moz-opacity: '+(opimga/100)+'; }',chgcss.cssRules.length); } 
if (vaimga<1) { if (opimga>99) { vaimga=1; fondu3(); return; }; }
else if (opimga<1) { limagea.style.visibility="hidden"; vaimga=0; fondu3(); return; }; 
tofondu2=true; setTimeout("fondu2()",100); }

function fondu3() { 
if (fond1<1) { fond1=1; if (fond2>0) { tapecouleur(0,5); tapecouleur(2,5); }; } 
else { fond1=0; fond2=1; tapecouleur0(0,20); tapecouleur0(2,20); }; }

function biscuitpub() { if (!document.cookie||!document.getElementById) return; else 
{var pubnon = document.cookie.search(/paspub=vrai/); if (pubnon!=-1) pasdepub();} }

if (-1 != document.title.search(/Portique/)) { javascriptanimeT=new Array(); 
JSanimT0=new Image(); JSanimT0.src="../AnimT/Note01.gif"; 
JSanimT1=new Image(); JSanimT1.src="../Animations/attends-b.gif"; 
zerosT="000"; iiT=0; iiiT=0; bloqueT=1; }; 
function prechargeT(seql) { chgcadT=seql-6; if (iiiT>0) return; 
if (iiT==0) {document.images['imageT'].src=JSanimT1.src; }; 
if (iiT>seql) {if (!javascriptanimeT[seql].complete||!javascriptanimeT[chgcadT].complete)  {window.setTimeout("prechargeT("+seql+")",2000); return;}; 
iiT=1; bloqueT=0; document.images['imageT'].src=javascriptanimeT[0].src; filmT(seql,1000); return}; 
javascriptanimeT[iiT]=new Image(); if (iiT==10) {zerosT="00"}; if (iiT==100) {zerosT="0"}; 
javascriptanimeT[iiT].src='../AnimT/Terre'+zerosT+iiT+'.gif'; iiT++; prechargeT(seql);}
function filmT(seqlT,cadence) { if (iiT!=1) return; if (bloqueT>0) return; 
if (document.images['imageT'].src==JSanimT1.src) return; 
window.setTimeout("filmTs("+seqlT+","+cadence+")",cadence); bloqueT++; }
function filmTs(seqlT,cadence) { if (iiiT==chgcadT) {cadence=1200}; 
if (iiiT>seqlT) {iiiT=1; bloqueT=0; return}; 
document.images['imageT'].src=javascriptanimeT[iiiT].src; iiiT++; 
window.setTimeout("filmTs("+seqlT+","+cadence+")",cadence); }

// (C) 2004 - 2009 Serge Lamarche
// http://sergewebservice.ca/
// All codes copyrights Serge Lamarche, any reproduction and 
// use strictly forbidden without written consent.
// Tous les codes droits d'auteurs Serge Lamarche, toute reproduction et 
// utilisation est strictement interdite sans autorisation écrite.
// Contact: info@sergewebservice.ca, sergewebservice@yahoo.ca or/ou sergelamarche@gmail.com 
// ...for help with your website. Reliable, inexpensive website service. Thanks.
// ...pour de l'aide avec votre site. Service internet abordable et professionnel. Merci. 

if (-1 != document.URL.search(/animation-atmo/)) { javascriptanime3=new Array(); zeros3="00"; ii3=0; iii3=0; bloque3=0; preload3=false; niv3=new Array(); niv3[0]=0; 
for (var i=1;i<11;i++) { niv3[i]=false; }; adresse=""; 
if (-1 != document.URL.search(/geocities/)) adresse="http://www.angelfire.com/falcon/serge_la/"}; 
function precharge3(seql) { chgcad3=seql-5; 
if (preload3) { alert(" The video is loaded already! \n\n Le vidéo est déjà chargé! "); return;}; 
if (ii3==0) { document.images['imagej01'].src="Animations/attends-b.gif"; } 
niveau3(seql, ii3); 
if (ii3>seql) { if (!javascriptanime3[seql].complete||!javascriptanime3[chgcad3].complete)  {window.setTimeout("precharge3("+seql+")",2000); return;}; 
ii3=1; document.images['imagej01'].src=javascriptanime3[0].src; preload3=true; document.forms.chargement.niveau.value=100; return}; 
javascriptanime3[ii3]=new Image(); if (ii3==10) {zeros3="0"}; if (ii3==100) {zeros3=""}; 
javascriptanime3[ii3].src=adresse+'Animations/photo'+zeros3+ii3+'.jpg'; ii3++; 
//if ((ii3>10)&&(ii3<chgcad3)) ii3=ii3+2; //photos sont à angelfire ***
window.setTimeout("precharge3("+seql+")",5); }
function film03(seql3,cadence) { if (!preload3) { alert(" Please, load the video first! \n\n SVP, téléchargez d'abord le vidéo! "); return;}; 
if (ii3!=1) return; if (bloque3>0) return; 
if (document.images['imagej01'].src=="Animations/attends-b.gif") return; 
if (document.getElementById) document.getElementById("niveau2").style.display = "none"; 
window.setTimeout("film03s("+seql3+","+cadence+")",cadence); bloque3++; }
function film03s(seql3,cadence) { if (iii3==chgcad3) {cadence=800}; 
if (iii3>seql3) {iii3=1; bloque3=0; return}; 
document.images['imagej01'].src=javascriptanime3[iii3].src; iii3++; 
//if ((iii3>10)&&(iii3<chgcad3)) iii3=iii3+2; 
window.setTimeout("film03s("+seql3+","+cadence+")",cadence); }

function niveau3(seqlength, ii3val) { var x=Math.floor(seqlength/10);
for (var i=1;i<11;i++) { var x2=(x*i); 
if ((ii3val>x2)&&!niv3[i]) { if (javascriptanime3[x2].complete) {
document.forms.chargement.niveau.value = niv3[0] += 10; niv3[i]=true; 
if (document.getElementById) { document.getElementById("niveau2").style.width = 3.2*niv3[0]+"px"; 
document.getElementById("niveau1").style.display = "none"; }; 
 }; }; }; }


if (-1 != document.title.search(/Portique/)) { javascriptanime4=new Array(); zeros4="00"; ii4=0; iii4=0; bloque4=0; }; 
function precharge4(seql) { chgcad4=seql-1; 
if (ii4>seql) {if (!javascriptanime4[seql].complete||!javascriptanime4[chgcad4].complete)  {window.setTimeout("precharge4("+seql+")",2000); return;}; ii4=0; return}; 
javascriptanime4[ii4]=document.createElement("img"); if (ii4==10) {zeros4="0"}; if (ii4==100) {zeros4=""}; 
javascriptanime4[ii4].src='images-gen/GPseqcoliade2-'+zeros4+ii4+'.jpg'; ii4++; precharge4(seql);}
function film04(seql4,cadence) { if (ii4!=0) return; if (bloque4>0) return; 
window.setTimeout("film04s("+seql4+","+cadence+")",cadence); bloque4++; }
function film04s(seql4,cadence) { if (iii4==chgcad4) {cadence=400}; 
if (iii4>seql4) {iii4=0; bloque4=0; return}; 
var divIC=document.getElementById("infocoliade"); 
if (-1 != navigator.appName.search(/Konqueror/)) var imgIC=divIC.firstChild; else 
var imgIC=divIC.childNodes[0]; divIC.replaceChild(javascriptanime4[iii4],imgIC); iii4++; 
window.setTimeout("film04s("+seql4+","+cadence+")",cadence); }


if (-1 != document.URL.search(/videos/)) { chrg=new Array(); nodbload=10; zerosvol="00"; iivol=0; iiivol=0; bloquevol=0; abc="abc"; sequ=new Array(); nivol=new Array(); nomvol=new Array(); legvol=new Array(); 
for (var i=0;i<11;i++) { chrg[i]=false; sequ[i]=new Array(); }; 
nomvol=['GP11juil03CMacro-', 'GP19juil03CMacro-', 'SP23oct05SLdec-', 'slvideo19mai2006-', 'sl16dec2005patin-', 'sl27dec2005sentier-', 'sl31dec2005sentier-', '', '', '', '', '']; // <- ne pas mettre l'année complète!
legvol[0]=["Chris spins the glider.<br>Chris fait d'abord tournoyer l'aile.", "Notice the full backward loop.<br>Notez la boucle complète vers l'arrière.", "Fly back forward.<br>Revole vers l'avant.", "A controlled spiral brings to the landing.<br>Une spirale contrôlée amène au sol.", ""]; 
legvol[1]=["Chris land again with a controlled spiral.<br>Chris atterrit encore avec une spirale contrôlée.", ""]; 
legvol[2]=["Position on the south launch.<br>Place au décollage sol sud.", "Easy in this weak moderate wind. Two paces.<br>Facile dans ce vent modéré faible. Deux pas.", "Wind and thermals insufficient to maintain.<br>Vent et thermiques insuffisants pour se maintenir.", ""]; 
//legvol[3]=["View of the lower launch on 11 dec.<br>Vue du décollage du bas au 11 déc.", "Nice layer of smaintenant.<br>Belle couche de neige.", "No wind, no sun.<br>Sans vent ni soleil.", ""]; 
legvol[3]=["Smooth flight above the 3-5km cliffs.<br>Vol calme, au-dessus des falaises 3-5km.", "At launch height.<br>A hauteur du décollage.", "A little circle in buoyant air.<br>Un petit cercle dans l'air ascendant.", ""]; 
legvol[4]=["Skating as...<br>Patiner comme...", "...field trip.<br>...sortie.", "Field trip for the class.<br>Sortie de classe.", ""]; 
legvol[5]=["Weather not great.<br>Temps pas super.", "It's above 0&deg;C.<br>C'est au dessus de 0&deg;C.", "Can't skate.<br>Peut plus patiner.", "Kicking Horse canyon.<br>Le canyon de la Kicking Horse.", ""]; 
legvol[6]=["This trail is squeezed along the rail track parallel to 5th avenue.<br>Ce sentier est tout contre le chemin de fer parallèle à la 5ème avenue.", "Clear cut for new residential houses.<br>Coupe pour de nouvelles maison résidentielles.", "It connects to the Kicking Horse river trail.<br>Cela rejoint le sentier de la rivière Kicking Horse.", "This is on the Kicking Horse river trail.<br>Nous voilà sur le sentier de la rivière Kicking Horse.", ""]; }
function chargevol(animNo, seqlvol) { if (bloquevol>0) return; 
if ((nodbload!=10)&&(nodbload!=animNo)) return; 
if (chrg[animNo]) { alert(" This video is loaded already! \n\n Ce vidéo est déjà chargé! "); return; }; 
if (iivol==0) { document.images['imagevol01'].src="Animations/attends-b.gif"; window.scrollTo(0,200); 
chgleg("Loading... Télécharge..."); nivol[0]=0; for (var i=1;i<11;i++) { nivol[i]=false; }; 
if (document.getElementById) { leniveau=document.getElementById("niveau"); leniveau.style.background = "#66dd66"; leniveau.style.height = "15px"; 
leniveau.style.width = "0"; leniveau.style.display = "block"; }; }; 
niveauvol(seqlvol, iivol, animNo); 
if (iivol>seqlvol||sequ[animNo][seqlvol]) { var testpt=seqlvol-8; if (!sequ[animNo][seqlvol].complete||!sequ[animNo][testpt].complete)  { window.setTimeout("chargevol("+animNo+", "+seqlvol+")",2000); return;}; 
zerosvol="00"; iivol=0; chrg[animNo]=true; nodbload=10; chgleg("Ready! Prêt! <br>Press on ''Commence'' of the chosen video. <br>Appuyez sur ''Commence'' du vidéo choisi. "); 
document.images['imagevol01'].src=sequ[animNo][0].src; return; }; nodbload=animNo; 
sequ[animNo][iivol]=new Image(); if (iivol==10) {zerosvol="0"}; if (iivol==100) {zerosvol=""}; 
sequ[animNo][iivol].src='Animation-vol'+animNo+'/'+nomvol[animNo]+zerosvol+iivol+'.jpg'; iivol++; 
window.setTimeout("chargevol("+animNo+", "+seqlvol+")",5); }
function filmvol(animNo,seqlvol,cadence) { if ((iivol!=0)||(bloquevol>0)) return; 
if (document.images['imagevol01'].src=="Animations/attends-b.gif") return; 
if (!chrg[animNo]) { alert(" Please, first load this video! \n\n Téléchargez d'abord ce vidéo! "); return;}; 
if (document.getElementById) leniveau.style.display = "none"; window.scrollTo(0,200); 
chgcadvol=seqlvol-(animNo==0?5:(animNo==1?9:(animNo==2?6:(animNo==3?0:0)))); legNo=0; chgleg(legvol[animNo][legNo]); //change la cadence ici -----<
window.setTimeout("filmvols("+animNo+","+seqlvol+","+cadence+")",cadence); bloquevol++; }
function filmvols(animNo,seqlvol,cadence) { if (iiivol==chgcadvol) {cadence=1000}; 
if (iiivol>seqlvol) {iiivol=0; bloquevol=0; return}; //change les légendes ici bas --------<
if ((animNo==0)&&((iiivol==20)||(iiivol==60)||(iiivol==160))) { legNo++; chgleg(legvol[animNo][legNo]); }
if ((animNo==2)&&((iiivol==5)||(iiivol==18))) { legNo++; chgleg(legvol[animNo][legNo]); }
//if ((animNo==3)&&((iiivol==10)||(iiivol==19))) { legNo++; chgleg(legvol[animNo][legNo]); }
if ((animNo==3)&&((iiivol==3)||(iiivol==8))) { legNo++; chgleg(legvol[animNo][legNo]); }
if ((animNo==4)&&((iiivol==30)||(iiivol==60))) { legNo++; chgleg(legvol[animNo][legNo]); }
if ((animNo==5)&&((iiivol==30)||(iiivol==60)||(iiivol==100))) { legNo++; chgleg(legvol[animNo][legNo]); }
if ((animNo==6)&&((iiivol==50)||(iiivol==110)||(iiivol==120))) { legNo++; chgleg(legvol[animNo][legNo]); }
document.images['imagevol01'].src=sequ[animNo][iiivol].src; iiivol++; 
window.setTimeout("filmvols("+animNo+","+seqlvol+","+cadence+")",cadence); }

function niveauvol(seqlength, iivolval, animNoVal) { var x=Math.floor(seqlength/10);
for (var i=1;i<11;i++) { var x2=(x*i); 
if ((iivolval>x2)&&!nivol[i]) { 
if (sequ[animNoVal][x2].complete) { nivol[0] += 10; nivol[i]=true; 
if (document.forms.cadre.note) document.forms.cadre.note.value += "0000"; 
if (document.getElementById) { leniveau.style.width = 3.2*nivol[0]+"px"; }; }; }; }; }

// (C) 2004 - 2009 Serge Lamarche
// http://sergewebservice.ca/
// All codes copyrights Serge Lamarche, any reproduction and 
// use strictly forbidden without written consent.
// Tous les codes droits d'auteurs Serge Lamarche, toute reproduction et 
// utilisation est strictement interdite sans autorisation écrite.
// Contact: info@sergewebservice.ca, sergewebservice@yahoo.ca or/ou sergelamarche@gmail.com 
// ...for help with your website. Reliable, inexpensive website service. Thanks.
// ...pour de l'aide avec votre site. Service internet abordable et professionnel. Merci. 

function cache(langue) { if (!document.styleSheets||!document.getElementById) return; 
if (typeof(ens)=="undefined") return; var chg = document.styleSheets[0]; 
var btnhide=document.getElementById("btn-coll0-"+langue); if (tovole) repars(); 
if (-1!=btnhide.src.search(/coll0/)) { 
if (chg.insertRule) { 
chg.insertRule('th.'+langue+'>p, td.'+langue+'>p { display: none; }',chg.cssRules.length); } 
if (chg.addRule) { chg.addRule('th.'+langue+' p', 'display: none;'); 
chg.addRule('td.'+langue+' p', 'display: none;'); };
btnhide.src=ens["coll1-"][1].src; opaj=opaj*0.85; return; }; 
if (-1!=btnhide.src.search(/coll1/)) { 
if (chg.insertRule) { 
chg.insertRule('th.'+langue+'>p, td.'+langue+'>p {display: block; }',chg.cssRules.length); } 
if (chg.addRule) { chg.addRule('th.'+langue+' p', 'display: block;'); 
chg.addRule('td.'+langue+' p', 'display: block;'); };
btnhide.src=ens["coll0-"][1].src; opaj=opaj/0.85; }; }


if (document.createElement&&(-1 != document.title.search(/Portique/))) { 
var infotexte=new Array(); var infotext=new Array(); 
var liensinfopapion=new Array(); var liensinfobfly=new Array(); 
imginfocoliade=new Array(); txtinfocoliade=new Array(); txtinfocolidne=new Array(); 
var srcimages=["images-gen/sept0316coliade-sepose2.jpg", "images-gen/GPseqcoliade2-000.jpg", "images-gen/GPsept0331coliade-butine.jpg", "images-gen/GPsept0328coliade-pairenvol.jpg", "images-gen/sept0315coliade-virevole2.jpg", "images-gen/bfly-nymphalisantiopa_7mai2005_0249-51.jpg", "images-gen/bfly-nymphalisantiopa_7mai2005_0252.jpg", "images-gen/bfly-vanessacardui_3juillet2005_0371.jpg"]
var icoliade=0; var icoliademax=srcimages.length; 
var texteIC=["Cliché en mouvement d'un coliade planant doucement vers la fleur nourricière.","Un coliade mâle s'envole brièvement pour butiner la seconde fleur. Images floues car le papillon est plus rapide que l'obturateur de la caméra.","Gros plan d'un autre coliade butinant la fleur. Ils ont le corps duveteux et d'un jaune un peu moins pâle que leurs ailes.","Ces deux-là se sont rencontrés au sol sur le sentier gravelé et se sont envolés en cinq secondes. Rapide accouplement! Photo composite, ils ne volaient pas si près l'un de l'autre. Ils étaient à une envergure d'aile, environ 4 cm.","Un couple s'est formé, virevolte rapidement vers le haut, puis se sépare et retourne butiner. Les femelles qui ont récemment accouplées refusent les avances des mâles. Si un mâle insiste, la femelle vole verticalement jusqu'à ce que le mâle abandonne.", "La femelle morio (Nymphalis antiopa) ne peut pas manquer le mâle qui se place bien en vue dans une aire dégagée. Les couples virevoltent vers le haut comme le coliade.", "Un morio se nourrit de sève. Ce papillon est parmi les plus répandus, trouvé aussi en Europe, en Asie et au nord de l'Amérique du sud.", "Le Vanessa cardui ou ''Belle dame'', le plus répandu des papillons diurnes, envahit le Canada lors des migrations massives. Il survit rarement l'hiver. La population annuelle réside au Mexique. Comme le spécimen du cliché, il se place aussi bien en vue et va jusqu'à défier les humains."]; 
var hrefliens=["","","","","","","http://www.cbif.gc.ca/spp_pages/butterflies/species/MourningCloak_f.php", "http://www.cbif.gc.ca/spp_pages/butterflies/species/PaintedLady_f.php"]; 
var texteliens=["","","","","","","Biodiversité: Informations sur le morio.","Biodiversité: Informations sur la belle dame"]; 
nbvignettes = (typeof(texteIC.length)!=typeof(abcde)) ? texteIC.length : "?"; 
var textIC=["Snapshot on the move of a colidne gently soaring toward a nourishing flower. Photo: © S. Lamarche. ----- Vignette 1 of/de "+nbvignettes+" -----","A male colidne takes flight briefly to gather nectar from a second flower. Photos are blurred because the butterfly is faster than the shutter of the camera. Photos: © G. Pezderic.","Close-up of another colidne, proboscis in the flower cup. They have a furry body of a slightly less pale yellow than their wings. Photo: © G. Pezderic.","These two just met on the gravel path and flew away in five seconds. Quick mating! Composite photo, they were not flying so close to each other. They were at one wing-span, about 4 cm. Photo: © G. Pezderic.","A couple formed rapidly, twirl around and up, then separates to return feed on flowers. Females that recently mated refuses the males advance. If the male insist the female flies vertically until the male gives up. Photo: © S. Lamarche.", "Females mourning cloak (Nymphalis antiopa) can't miss the male advertising in an open space. Couples twirl upward like the colidne. Photo: © S. Lamarche.", "A mourning cloak feed on sap. This butterfly is among the most widespread, found also in Europe, Asia, northern South America. Photo: © S. Lamarche.", "Vanessa cardui or ''Painted Lady'', the most widespread diurnal butterfly, invade Canada during massive migrations. It rarely survive winter. The annual population reside in Mexico. Like the snapped specimen, it also place itself well in sight and goes as far as challenging humans. Photo: © S. Lamarche."]; 
var hreflinks=["","","","","","","http://www.cbif.gc.ca/spp_pages/butterflies/species/MourningCloak_e.php", "http://www.cbif.gc.ca/spp_pages/butterflies/species/PaintedLady_e.php"]; 
var textlinks=["","","","","","","Biodiversity: Informations about mourning cloak.","Biodiversity: Informations about painted lady."]; 
precharge4(4); 
for (var icol=0; icol<icoliademax; icol++) { imginfocoliade[icol] = document.createElement("img"); txtinfocoliade[icol] = document.createElement("p"); txtinfocolidne[icol] = document.createElement("p"); 
//img2infocoliade.setAttribute("width","495px"); img2infocoliade.setAttribute("height","300px"); 
imginfocoliade[icol].src = srcimages[icol]; 
infotexte[icol] = document.createTextNode(texteIC[icol]); 
infotext[icol] = document.createTextNode(textIC[icol]);  
txtinfocoliade[icol].appendChild(infotexte[icol]); 
txtinfocolidne[icol].appendChild(infotext[icol]); 
if (textlinks[icol]!="") { 
liensinfopapion[icol] = document.createElement("a"); liensinfobfly[icol] = document.createElement("a"); 
liensinfopapion[icol].appendChild(document.createTextNode(texteliens[icol])); 
liensinfobfly[icol].appendChild(document.createTextNode(textlinks[icol])); 
liensinfopapion[icol].setAttribute("href",hrefliens[icol]); 
liensinfopapion[icol].setAttribute("class","portique"); 
liensinfopapion[icol].setAttribute("style","text-decoration: none;"); 
liensinfobfly[icol].setAttribute("href",hreflinks[icol]); 
liensinfobfly[icol].setAttribute("class","portique"); 
liensinfobfly[icol].setAttribute("style","text-decoration: none;"); 
txtinfocoliade[icol].appendChild(document.createElement("br")); 
txtinfocolidne[icol].appendChild(document.createElement("br")); 
txtinfocoliade[icol].appendChild(liensinfopapion[icol]); 
txtinfocolidne[icol].appendChild(liensinfobfly[icol]); }; }; } 

function infocoliade() { if (!document.styleSheets) return; 
if (!document.getElementById("infocoliade")) return; 
var divIC=document.getElementById("infocoliade"); 
var imgIC=divIC.childNodes[0]; 
var txtICfr=divIC.childNodes[1]; var txtICen=divIC.childNodes[2]; 
var chg = document.styleSheets[0]; 
var btnhide1=document.getElementById("btn-infocoliade"); 
var btnhide2=document.getElementById("btn-infocolidne"); 
if (-1!=btnhide1.src.search(/coliade0/)) { //alpha=0; objID="infocoliade"; alphaobj(1); 
divIC.style.visibility="hidden"; //enlever pour l'effet alpha ****************
//if (chg.insertRule) {chg.insertRule('span#infocoliade {visibility: hidden; }',chg.cssRules.length); } 
//if (chg.addRule) { chg.addRule('span#infocoliade', 'visibility: hidden;'); };
btnhide1.src=btnhide2.src=ens["infocoliade1-"][1].src; return; } 
if (-1!=btnhide1.src.search(/coliade1/)) { if (icoliade==2) iii4=10; else iii4=0; 
var img0infocoliade = imginfocoliade[icoliade]; 
var txt0infocoliade = txtinfocoliade[icoliade]; 
var txt0infocolidne = txtinfocolidne[icoliade]; 
divIC.replaceChild(img0infocoliade,imgIC);
divIC.replaceChild(txt0infocoliade,txtICfr); divIC.replaceChild(txt0infocolidne,txtICen); 
if (icoliade==0) { //alpha=0; objID="infocoliade"; alphaobj(0); 
divIC.style.visibility="visible"; }
if (icoliade==1) film04(4,400); 
//if (chg.insertRule) {chg.insertRule('span#infocoliade {visibility: visible;}',chg.cssRules.length); } 
//if (chg.addRule) { chg.addRule('span#infocoliade', 'visibility: visible;'); }; 
icoliade++; if (icoliade<icoliademax) return; icoliade=0; btnhide1.src=btnhide2.src=ens["infocoliade0-"][1].src; }; } 

function alphaobj(alphainit) { 
if (!alpha) { alpha=alphainit+ ((alphainit==0) ? varalpha=0.02 : varalpha=-0.02); }
alpha+=varalpha; var argmt=100*alpha; var objAlpha=document.getElementById(objID); 
if ((alpha>1)||(alpha<0)) { if (alpha<0) objAlpha.style.visibility="hidden"; return; }
objAlpha.style.filter="alpha(opacity="+argmt+")"; 
//var chg = document.styleSheets[0]; if (chg.insertRule) {chg.insertRule('#infocoliade {-moz-opacity:'+5*alpha+';}',chg.cssRules.length); }; //trop dur pour gecko
window.setTimeout("alphaobj("+alphainit+")",300); }

/* imgBGend=false; "+sens+","+ident+"
if (document.createElement&&(-1 != document.title.search(/Portique/))) { //**********
imgBGend=new Array(); 
for (iend=0; iend<4; iend++) {imgBGend[iend]=document.createElement("img"); 
imgBGend[iend].src="images-gen/BG-nov03KHmt7b-"+iend+".jpg"; }; }
function animBG(bgi) { if (!document.createElement||!imgBGend) return; 
divend=document.getElementById("end"); 
divend.replaceChild(imgBGend[bgi],divend.childNodes[0]);
bgi++;  if(bgi==4) bgi=0; animBGint=window.setTimeout("animBG("+bgi+")",1000); }
  */

if (document.createElement&&(-1 != document.title.search(/Portique/))) { 
avv=1000; avh=p1=p2=p3=p4=q = 0; avdir=4; repos=batcorr=0; opaj=1; 
if (-1 != navigator.userAgent.search(/Opera/)) opaj=0.7; } 
function initpap() { if (!document.getElementById) return; papimg=new Array(); 
//document.write(document.URL.search(/serge_lamarche/));
if (-1 == document.title.search(/Portique/)) return;
zindx=[4,4,3,2]; 
coliadead=new Array(); coliadeag=new Array(); coliadec=new Array(); coliadeo=new Array(); 
for (i4=0; i4<4; i4++) { coliadead[i4]= new Image(); coliadeag[i4]= new Image(); coliadec[i4]=new Image(); coliadeo[i4]=new Image(); 
loadcoliade(i4); 
papimg[i4]=document.createElement("img"); 
papimg[i4].style.position="absolute"; //papimg[i4].setProperty("z-index", zindx[i4]); 
papimg[i4].style.zIndex=zindx[i4]; 
papimg[i4].setAttribute("alt",""); }; }

function loadcoliade(nbi4) { 
coliadead[nbi4].src="images-gen/Coliade-aile-d-"+nbi4+".gif"; 
coliadeag[nbi4].src="images-gen/Coliade-aile-g-"+nbi4+".gif"; 
coliadec[nbi4].src="images-gen/Coliade-corps-"+nbi4+".gif"; 
coliadeo[nbi4].src="images-gen/Coliade-ombre-"+nbi4+".gif"; 
if (nbi4==3) window.setTimeout("initpapsuite()",2000); }

function initpapsuite() { if (document.createElement.appendChild) return; 
for (i5=0; i5<4; i5++) { 
if (!coliadeo[i5].complete|| !coliadec[i5].complete|| !coliadeag[i5].complete|| !coliadead[i5].complete) { window.setTimeout("initpapsuite()",2000); return; }; }
var corps=document.getElementsByTagName("body").item(0); 
for (j5=0; j5<4; j5++) { corps.appendChild(papimg[j5]); }; 
if (papimg[0].attachEvent) { 
if (-1 != navigator.appVersion.search(/MSIE 5.0; Macintosh/)) return; // IE5 sur mac***
if (-1 != navigator.appName.search(/Konqueror/)) return;              // Bug sur konqueror***
papimg[0].attachEvent("onmouseover",repars); papimg[1].attachEvent("onmouseover",repars); } 
else if (papimg[0].addEventListener) { papimg[0].addEventListener("mouseover",repars,true); papimg[1].addEventListener("mouseover",repars,true); }
volepapillon=window.setInterval("pvole()",120); tovole=true;  }

function papillon(nom) { if (q==0) papvole=new Array(); 
papvole[q]=document.getElementById(nom);
q++; nom="pap"+q; if (q>3) {papenvol=window.setInterval("pvole()",120); return}; 
papillon(nom);}

//<img src="Coliade-aile-d.gif" style="width: 65px; height: 100px;">
//<img src="Coliade-aile-g.gif" style="width: 65px; height: 100px;">
//<img src="Coliade-corps.gif" style="width: 35px; height: 75px;">
//<img src="Coliade-ombre.gif" style="width: 155px; height: 125px;">

function pvole() { freq=0.5; p2++; if ((repos==0)&&(p4>-5)) p4--; 
if (repos>0) { freq=0.25; if (p3>3) freq=0.125; if (p3>13) freq=0.0625; if (p4<5) p4++; 
if (p3>21) freq=0.03125; p3++; if (p3>400) {repos=0; p3=p2=0; freq=0.5; };   }
if (p2>93) repos=1; (freq>0.4) ? batcorr=0.3 : batcorr=0 ; 
batmt=55*Math.abs(Math.sin(freq*Math.PI*p2)); 
if (p4<3) { p1++; 
mvthoriz=70+opaj*230*Math.sin(p1/42); 
mvtvertic=opaj*1000*Math.cos(p1/40)-1300*opaj; 
avv-=mvtvertic; avh-=mvthoriz; 
NS=Math.abs(avv); EO=Math.abs(avh); 
(NS>EO) ? ((avv>0) ? dirctn=0 : dirctn=2 ) : ((avh>0) ? dirctn=3 : dirctn=1 ); 
avh=mvthoriz; avv=mvtvertic; }; 
if (avdir!=dirctn) { 
papimg[0].setAttribute("src",coliadead[dirctn].src); papimg[0].setAttribute("class","aile"); 
papimg[1].setAttribute("src",coliadeag[dirctn].src); papimg[1].setAttribute("class","aile"); 
papimg[2].setAttribute("src",coliadec[dirctn].src); 
papimg[3].setAttribute("src",coliadeo[dirctn].src); }; avdir=dirctn; 
if (dirctn==0||dirctn==2) { 
papimg[0+dirctn/2].style.marginLeft=(316+mvthoriz)+"px"; 
papimg[0+dirctn/2].style.marginTop=mvtvertic+"px";
papimg[0+dirctn/2].style.width=(10+batmt)+"px"; 
papimg[0].style.height="100px"; 

papimg[1-dirctn/2].style.marginLeft=(304+mvthoriz-batmt)+"px"; 
papimg[1-dirctn/2].style.marginTop=mvtvertic+"px";
papimg[1-dirctn/2].style.width=(10+batmt)+"px"; 
papimg[1].style.height="100px"; 

papimg[2].style.marginLeft=(297+mvthoriz)+"px"; 
papimg[2].style.marginTop=(15-2*dirctn+mvtvertic)+"px"; 
papimg[2].style.width="35px"; papimg[2].style.height="75px"; 

papimg[3].style.marginLeft=(335-5*p4+mvthoriz-(0.9-batcorr)*batmt)+"px"; 
papimg[3].style.marginTop=(30-5*p4+mvtvertic+batcorr*batmt)+"px";
papimg[3].style.width=(31+1.8*batmt)+"px"; papimg[3].style.height="100px";  } 
if (dirctn==1||dirctn==3) { 
papimg[0+(dirctn-1)/2].style.marginLeft=(266+mvthoriz)+"px"; 
papimg[0+(dirctn-1)/2].style.marginTop=(50+mvtvertic)+"px";
papimg[0+(dirctn-1)/2].style.height=(10+batmt)+"px"; papimg[0].style.width="100px"; 

papimg[1-(dirctn-1)/2].style.marginLeft=(266+mvthoriz)+"px"; 
papimg[1-(dirctn-1)/2].style.marginTop=(37+mvtvertic-batmt)+"px";
papimg[1-(dirctn-1)/2].style.height=(10+batmt)+"px"; papimg[1].style.width="100px"; 

papimg[2].style.marginLeft=(274+2*dirctn+mvthoriz)+"px"; 
papimg[2].style.marginTop=(31+mvtvertic)+"px"; 
papimg[2].style.height="35px"; papimg[2].style.width="75px"; 

papimg[3].style.marginLeft=(310-5*p4+mvthoriz+batcorr*batmt)+"px"; 
papimg[3].style.marginTop=(65-5*p4+mvtvertic-(0.9-batcorr)*batmt)+"px";
papimg[3].style.height=(31+1.8*batmt)+"px"; papimg[3].style.width="100px";  } 
;  }

function repars() { repos=0; p3=p2=0; freq=0.5; }
function niltout() { if (tovole) { window.clearInterval(volepapillon); tovole=false; 
var corps=document.getElementsByTagName("body").item(0); 
for (i=0; i<4; i++) { if (corps.removeChild) corps.removeChild(papimg[i]); }; }
if (totape) { window.clearTimeout(tapeto); totape=false; }
if (tofondu2) { window.clearTimeout(fondu2to); tofondu2=false; }
if (totapecoul) { window.clearTimeout(tapecoulto); totapecoul=false; }; 
if (totapecoul0) { window.clearTimeout(tapecoulto0); totapecoul0=false; }; }
 
// (C) 2004 - 2009 Serge Lamarche
// http://sergewebservice.ca/
// All codes copyrights Serge Lamarche, any reproduction and 
// use strictly forbidden without written consent.
// Tous les codes droits d'auteurs Serge Lamarche, toute reproduction et 
// utilisation est strictement interdite sans autorisation écrite.
// Contact: info@sergewebservice.ca, sergewebservice@yahoo.ca or/ou sergelamarche@gmail.com 
// ...for help with your website. Reliable, inexpensive website service. Thanks.
// ...pour de l'aide avec votre site. Service internet abordable et professionnel. Merci. 
