var popwindow 
var tisurl 
var tiswidth 
var tisheight 
var tistopposition 
var tisleftposition 
var pause=10 
var step=5 
var marginright 
var endposition 
var timer 

  

function openpopup(thisurl,thiswidth,thisheight,thistopposition) { 
       tisurl=thisurl 
       tiswidth=thiswidth 
       tisheight=thisheight 
       tistopposition=thistopposition 
       tisleftposition=-tiswidth 

       popwindow=window.open(tisurl, "newwindow", "toolbar=no,width="+tiswidth+",height="+tisheight+",top="+tistopposition+",left="+(tisleftposition)+""); 
       if (document.all) { 
              marginright=screen.width 
              endposition=marginright-thiswidth-10 
              movewindow() 
       } 
       if (document.layers) { 
           marginright=window.innerWidth-10 
              endposition=marginright-thiswidth 
              movewindow() 
       } 
} 


function movewindow() { 

       if (tisleftposition<=endposition) { 

              popwindow.moveTo(tisleftposition,tistopposition) 

              tisleftposition+=step 

              timer= setTimeout("movewindow()",pause) 

       } 

       else { 

              clearTimeout(timer) 

       } 

}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function intercetta() {
    for (var i=0; i<document.links.length; i++)
        if (document.links[i].className=="blank") {
            document.links[i].target="_blank";
        }

}
window.onload = intercetta;