function MM_findObj(n, d) { //v4.01
  var p,i,x;
  if (!d) d=document;
  if ((p=n.indexOf("?"))>0&&parent.frames.length) {
     d=parent.frames[n.substring(p+1)].document;
     n=n.substring(0,p);
  }
  if (!(x=d[n])&&d.all) x=d.all[n];
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for (i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if (!x && d.getElementById) x=d.getElementById(n);
  return x;
}

function P7_VScroller(el,dr,ty,oy,spd) { //v1.5 by PVII    element,direction,toplimit,bottomlimit,speed
 var g,gg,fr,sp,pa='',slw=true,m=false,h,ly;
 ty=parseInt(ty);
 if ((g=MM_findObj(el))!=null) {
    gg= (document.layers) ? g:g.style;
 }else{
    return;
 }
 if (dr=="Stop") {
    if (g.toMove) {
       clearTimeout(g.p7Magic);
    }
    g.toMove=false;
 }
 if ((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& !window.opera) {
    pa="px";
 }
 if (navigator.userAgent.indexOf("NT")>-1 || navigator.userAgent.indexOf("Windows 2000")>-1) {
    slw=false;
 }
 if (spd=="Slow") {
    sp=(slw)?2:1;
    fr=(slw)?40:30;
 } else if(spd=="Medium") {
    sp=(slw)?4:1;
    fr=(slw)?40:10;
 } else {
    sp=(slw)?8:4;
    fr=(slw)?40:10;
 }
 if (spd=="Warp") { 
    sp=5000;
 }
 var yy=parseInt(gg.top);
 if (isNaN(yy)) {
    if (g.currentStyle) {
       yy=parseInt(g.currentStyle.top);
    } else if (document.defaultView){
       yy=parseInt(document.defaultView.getComputedStyle(g,"").getPropertyValue("top"));
    } else { 
       yy=0;
    }
 }
 if (document.all || document.getElementById) { 
    h=parseInt(g.offsetHeight);
    if (!h){
       h=parseInt(g.style.pixelHeight);
    }
 } else if (document.layers) {
    h=parseInt(g.clip.height);
 }
 ly=ty+parseInt(oy)-h;
 if (dr=="Down") {
    if (yy>ly) {
       m=true;
       yy-=sp;
       if (yy<ly) {
          yy=ly;
       }
     }
 }
 if (dr=="Up") {
     if (yy<ty) {
        m=true;
        yy+=sp;
        if (yy>ty) {
           yy=ty;
        }
     }
 }
 if (dr=="Reset") {
     gg.top=ty+pa;
     if (g.toMove) {
        clearTimeout(g.p7Magic);
     }
     g.toMove=false;
 }
 if (m) {
    gg.top=yy+pa;
    if (g.toMove) {
       clearTimeout(g.p7Magic);
    }
    g.toMove=true;
    eval("g.p7Magic=setTimeout(\"P7_VScroller('"+el+"','"+dr+"',"+ty+","+oy+",'"+spd+"')\","+fr+")");
 } else {
    g.toMove=false;
 }
}