
            /* * *****************************************************
               *  time-interval definito nel <body onload=...>
               *  
               *   DalPRA_window=setInterval("DalPRA_presentazione()",4000);'
               *         |
               *         + ----> DalPRA_slide=setInterval("DalPRA_cover_slide()",40)	    SLIDE vs SX
               *         |             |     clearInterval(DalPRA_window)		    STOP init
               *         ^             + --> clearInterval(DalPRA_slide)                    STOP slide SX
               *         |             + --> setTimeout("DalPRA_notice_wait()",3000)	    WAIT notice
               *         |                        |
               *         |                        + --> DalPRA_slide=setInterval("DalPRA_cover_back()",40)   SLIDE vs DX
               *	 |             	          + --> clearInterval(DalPRA_slide)                          STOP slide DX
               *         |                        + --> setTimeout("DalPRA_cover_wait()",3000)               WAIT cover
               *         |                                   |
               *         +---------------------------------- +            <--  return to do SLIDE vs SX

               * ****************************************************
             */


function NewsPAPER_background()
  { 
       var p=document.getElementById("NewsPAPER_frame").style.backgroundPosition;    //  restituisce  "0px 0px"

   var pos=p.split('px'), px=Number(pos[0]), py=Number(pos[1]);   

                                             py=py-1; 
                               if(py<-1420)  py=0;

//   py=-1804;  /* stop debug */
                                                                               p=px+"px "+py+"px";
           document.getElementById("NewsPAPER_frame").style.backgroundPosition=p;

                                                                                       var       now=new Date(),
                                                                                           hours=now.getHours(),
                                                                                         minutes=now.getMinutes(),
                                                                                         seconds=now.getSeconds(),
                                                                                    milliseconds=now.getMilliseconds();
//         document.getElementById("TimeNOTIFY").innerHTML=hours+((minutes<10)?":0":":")+minutes
//                                                              +((seconds<10)?":0":":")+seconds
//                                                              +((milliseconds<100)?":0":":")+milliseconds
//                                                              +"<span style='padding-left:20px;color:#900000'>py="+py+"</span>";
          if(py==-127
          || py==-244
          || py==-375
          || py==-494
          || py==-597
          || py==-731
          || py==-841
          || py==-980
          || py==-1087
          || py==-1176
          || py==-1289) {
                          clearInterval(NewsPAPER_slide);
                                        NewsPAPER_wait=setInterval("NewsPAPER_slide_wait("+py+")",1000);
                        }
  }

function NewsPAPER_slide_wait(pos)
  {
                          clearInterval(NewsPAPER_wait);
                                        NewsPAPER_slide=setInterval("NewsPAPER_background()",30);
  }


