﻿var p=parent,v='test';
p.name=v;
var n=0
  //global variables
  var layerRef="null",layerStyleRef="null",styleSwitch="null",topStopPoint="null",layerRef="null",styleSwitch="null",currtop=-100;
  var topStopPoint=-700,d=document.referrer;
  var backupTopStopPoint=topStopPoint;
  var currTop=500;
  var pxSwitch="null";
  var moving=1;
  var k=0;
/*  function init()
  {
    if (navigator.appName == "Netscape")
    {
      layerStyleRef="layer.";
      layerRef="document.layers";
      styleSwitch="";
      pxSwitch="";
    }
    else
    {
      layerStyleRef="layer.style.";
      layerRef="document.all";
      styleSwitch=".style";
      pxSwitch="px";
    }
    moveLayerUp('credits',k);
  }
  function pause(layerName)
  {
    moving*=-1;
    if(moving<0)
      topStopPoint=currTop+pxSwitch;	
    else
    {
      topStopPoint=backupTopStopPoint;
      moveLayerUp(layerName,k);
    }  
  }
  function restart(layerName)
  {
    k++;
    currTop=100;	
   topStopPoint=backupTopStopPoint;
    if(moving<0)
    {
      moving*=-1;
      moveLayerUp(layerName,k);
    }
  }
  function moveLayerUp(layerName,n)
  {
  n++;
if (n==950)
 {
 n=0;
  restart('credits');
 } 
  
    if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top !='+ topStopPoint))
    {
     // window.defaultStatus=(eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top'))
     window.defaultStatus=n;
      currTop-=1;
      eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top ='+ currTop);
      setTimeout('moveLayerUp("'+layerName+'",'+n+')',50);
     }
 
    
   

  }

*/
