//Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
iens6=document.all||document.getElementById
n4=document.layers
//specify speed of scroll (greater=faster)
var speed=12;
document.write('<br><br>')
if (iens6){
document.write('<div id="container" style="position:relative;width:95%;height:280;border:1px solid black;overflow:hidden;">')
document.write('<div id="content" style="position:absolute;width:100%;left:0;top:0">')
}
document.write('<ilayer name="nscontainer" width=150 height=200 clip="0,0,175,160">')
document.write('<layer name="nscontent" width=150 height=200 visibility=hidden>')
document.write('<P CLASS="texb8" ALIGN="left"><B><font color="#6b6c5a">Quelques règles</font></B><BR>- Renseignez vous sur le parcours: sa difficulté, les barrages en amont, les échappatoires')
document.write('<BR>- Prévenez un proche de votre destination<BR>- Partez à 3 minimum<BR>- Sondez toujours les vasques avant de sauter ou toboganter<BR>- Téléphonez à Météo France au 08 92 68 02 07<br><br>')
document.write('<FONT COLOR="#6b6c5a"><B><U>Matériel individuel</U></B></FONT><BR>')
document.write('- Combinaison néoprène<BR>- Chaussures adaptées<BR>- Baudrier<BR>- Sac à dos autovideur<BR>')
document.write('- Longe double<BR>- Descendeur<BR>- Casque<BR>- Couteau inox<BR>- Sifflet<BR>- Gourde<BR>- Barres energétiques<BR><BR>')
document.write('<FONT COLOR="#6b6c5a"><B><U>Matériel collectif</U></B></FONT><BR>')
document.write('- Corde de longueur double à celle de la plus grande cascade<BR>- Corde de secours<BR>- Matériel de remontée sur corde<BR>')
document.write('- Bidon(s) étanche(s)<BR><BR><FONT COLOR="#6b6c5a"><B><U>Contenu du bidon étanche</U></B></FONT><BR>')
document.write('- Pharmacie<BR>- Couverture de survie<BR>- Lampe frontale<BR>- Topo du canyon<BR>- Carte détaillée<BR>- Masque de plongée<BR>- Descendeur de rechange<BR>- Briquet<br><br><br></p>')
document.write('</layer></ilayer>')

if (iens6){
document.write('</div></div>')
document.write('<table width="100%" CELLPADDING="2" CELLSPACING="0">')
document.write('<tr><td align="center"><A HREF="javascript:void(0)" ONMOUSEOVER="moveup();" ONMOUSEOUT="clearTimeout(moveupvar)"><img src="images/btn_topor.png" width="12" height="12" border="0"></a>')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="javascript:void(0)" ONMOUSEOVER="movedown();" ONMOUSEOUT="clearTimeout(movedownvar)"><img src="images/btn_endor.png" width="12" height="12" border="0"></a></td>')
document.write('</tr></table>')
}


//Fonctions pour le deroulement texte dans la fenetre
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (n4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}

function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+200))
crossobj.style.top=parseInt(crossobj.style.top)-speed
else if (n4&&crossobj.top>=(contentheight*(-1)+200))
crossobj.top-=speed

movedownvar=setTimeout("movedown()",100)
}

function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed
else if (n4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",100)

}

function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (n4)
document.nscontainer.document.nscontent.visibility="show"
}

function InfoCarte(numcart,carte,site){
document.write('<table width="95%"><tr><TD WIDTH=100%  align="center" ><span class="tex0g10">Carte IGN</span><br>');
document.write('<font size="-1"><strong>'+numcart+'</strong></font></td></tr></table><br><br>');
document.write('<DIV STYLE="background: url(canyon/cartep.gif) center; background-repeat: no-repeat"><IMG SRC="canyon/'+carte+'.gif" BORDER="0" WIDTH="61" HEIGHT="100" ALT="localisation : '+site+'"></div>')
}