// JavaScript Document
var sRepeat=null;
function doScrollerIE(dir, src, amount)
{	
  if (amount==null) {
    amount=10;
  }
  
  //http://www.presencenet.net/
  if (dir=="up") {
  document.getElementById(src).scrollTop-=amount;
  }	
  else {
    document.getElementById(src).scrollTop+=amount;
  }	
  
  if (sRepeat==null) {
    sRepeat = setInterval("doScrollerIE('" + dir + "','" + src + "'," + amount + ")",100);
  }
  return false
}
  
window.document.onmouseout = new Function("clearInterval(sRepeat);sRepeat=null");
window.document.ondragstart = new Function("return false");

function toggle( targetId ) {
  {
    target = document.all( targetId );
    if (target.style.display == "none") {
      target.style.display = "";
    } 
    else {
      target.style.display = "none";
    }
  }
}


/*
onMouseOver="return doScrollerIE('up','s1',10)" onMouseOut="clearInterval(sRepeat)"

<div id=s1 class=sc1 style="width: 130; height: 100; overflow: hidden;"> 
</div>
onMouseOver="return doScrollerIE('down','s1',10)" onMouseOut="clearInterval(sRepeat)"
*/





   
    //specifie la vitesse de defilement (+ c'est grand, + ca va vite)
    var speed=5;
   
   var crossobj=document.getElementById("content");
   var contentheight=crossobj.offsetHeight;
  
   function movedown(){
   if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
   crossobj.style.top=parseInt(crossobj.style.top)-speed
   else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
   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 (ns4&&crossobj.top<=0)
   crossobj.top+=speed
   moveupvar=setTimeout("moveup()",100)
   }
  
   function getcontent_height(){
   if (iens6)
   contentheight=crossobj.offsetHeight
   else if (ns4)
   document.nscontainer.document.nscontent.visibility="show"
   }
   window.onload=getcontent_height