/* AUTHOR: INFO SERVICE */ /* CREATION DATE: 29/08/2005 */ function Show(page,wd,ht) { acces = open(page,"acces","resizable=0,toolbar=0,location=0,directories=0,menubar=0,status=0,scrollbars=0,copyhistory=0,width="+wd+",height="+ht+",top=150,left=200"); acces.focus(); } var launch; var i=0; var yini=0; var dif = 0; var defil=0; var nxf = { 'clock' : null, 'count' : 1 } var lxf = { 'clock' : null, 'count' : 1 } nxf.getRealPosition = function() { this.pos = (arguments[1] == 'x') ? arguments[0].offsetLeft : arguments[0].offsetTop; this.tmp = arguments[0].offsetParent; while(this.tmp != null) { this.pos += (arguments[1] == 'x') ? this.tmp.offsetLeft : this.tmp.offsetTop; this.tmp = this.tmp.offsetParent; } return this.pos; }; lxf.getRealPosition = function() { this.pos = (arguments[1] == 'x') ? arguments[0].offsetLeft : arguments[0].offsetTop; this.tmp = arguments[0].offsetParent; while(this.tmp != null) { this.pos += (arguments[1] == 'x') ? this.tmp.offsetLeft : this.tmp.offsetTop; this.tmp = this.tmp.offsetParent; } return this.pos; }; function initnews() { nxf.obj = document.getElementById("debut"); lxf.obj = document.getElementById("fin"); ie=document.all?1:0 n7=document.getElementById?1:0 document.getElementById("news").style.clip = "rect(0px 340px 126px 0px)"; document.getElementById("news").style.visibility="visible"; i=0; t=125; yini = (nxf.getRealPosition(nxf.obj, 'y')); yfin = (lxf.getRealPosition(lxf.obj, 'y')); dif = yfin-yini; if(n7 && !ie) {document.getElementById("news").style.top=yini-12+"px";} else {document.getElementById("news").style.top=yini-13+"px";} if(dif >126) { defil = 1; //launch=setTimeout('scrollnews(0)',2000); } } function scrollnews() { if (i < dif) {document.getElementById("news").style.visibility="visible";} document.getElementById("news").style.clip = "rect("+i+"px 340px "+t+"px 0px)"; var temp = parseInt(document.getElementById("news").style.top); temp-=1; temp+= "px"; document.getElementById("news").style.top = temp; i++; t++; if(i <= dif) { launch=setTimeout('scrollnews()',60); } else { var temp = parseInt(document.getElementById("news").style.top); temp+=i; temp+=128; temp+= "px"; document.getElementById("news").style.top = temp; i=-128; t= -3; scrollnews();} }