function Add_Event(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d?d:!1):a.attachEvent("on"+b,c)}function GetScrollPage(){var a,b;if(window.innerWidth)with(window)a=pageXOffset,b=pageYOffset;else{a=document.documentElement&&document.documentElement.clientWidth?document.documentElement:document.body;with(a)a=scrollLeft,b=scrollTop}return{top:b,left:a}}
function ObjGetPosition(a){var b=0,c=0;if(a=typeof a=="object"?a:document.getElementById(a))if(b=a.offsetLeft,c=a.offsetTop,a.offsetParent)for(;a=a.offsetParent;)a.offsetParent&&(b+=a.offsetLeft,c+=a.offsetTop);return{left:b,top:c}}var IdTimer_1,IdTimer_2,O_DivScroll,Rapport=0.05,Mini=2*Rapport;
function DIV_Scroll(a){var b=document.getElementById(a);if(this.Obj=b)b.style.position="absolute",a=ObjGetPosition(a),this.PosX=a.left,this.PosY=a.top,this.DebX=this.PosX,this.DebY=this.PosY,this.NewY=this.NewX=0,this.Move=DIV_Deplace}function DIV_Deplace(a,b){if(a!=null)this.PosX=a,this.Obj.style.left=parseInt(a)+"px";if(b!=null)this.PosY=b,this.Obj.style.top=parseInt(b)+"px"}
function DIV_Replace(a,b){var c=(a-O_DivScroll.PosX)*Rapport,d=(b-O_DivScroll.PosY)*Rapport;d<Mini&&d>-Mini&&c<Mini&&c>-Mini?(clearInterval(IdTimer_1),O_DivScroll.Move(a,b)):O_DivScroll.Move(O_DivScroll.PosX+c,O_DivScroll.PosY+d)}
function DIV_CheckScroll(){var a=GetScrollPage();O_DivScroll.NewX=a.left+O_DivScroll.DebX;O_DivScroll.NewY=a.top+O_DivScroll.DebY;if(O_DivScroll.PosY!=O_DivScroll.NewY||O_DivScroll.PosX!=O_DivScroll.NewX)clearInterval(IdTimer_1),IdTimer_1=setInterval("DIV_Replace("+O_DivScroll.NewX+","+O_DivScroll.NewY+")",10);return!0}function DIV_InitScroll(){O_DivScroll=new DIV_Scroll("DIV_MOVE");O_DivScroll.Obj&&(IdTimer_2=setInterval("DIV_CheckScroll()",100))}
function glisse(a,b){var c=document.getElementById(a),c=navigator.appName=="Microsoft Internet Explorer"?c.offsetWidth-30:c.offsetWidth;glisser(a,b>0?0:c,c,b)}function glisser(a,b,c,d){var e=document.getElementById(a);b+=d;if(b>0&&b<c)e.style.marginLeft=-b+"px",setTimeout('glisser("'+a+'",'+b+","+c+","+d+")",10)}Add_Event(window,"load",DIV_InitScroll);

