
<!--\n
var isCSS, isW3C, isIE4, isNN4, actScrollPos, divTextObj, divBackgroundHeight, divTextHeight, flgDivTextStop, speed, slides, bkgDivId, frtDivId;

function staticTicker()
{
  checkBWR();
}


function dynamicTicker(val1,val2,val3,val4)
{
  speed = val1;
  slides = val2;
  bkgDivId = val3
  frtDivId = val4;
  
  checkBWR();
  
  scrollDivText();
}

function checkBWR() 
{
  if (document.images) 
  {
    isCSS = (document.body && document.body.style) ? true : false;
    isW3C = (isCSS && document.getElementById) ? true : false;
    isIE4 = (isCSS && document.all) ? true : false;
    isNN4 = (document.layers) ? true : false;
  }
  
  flgDivTextStop = 0;
  divBackgroundObj = getRawObject(bkgDivId);
  divTextObj = getRawObject(frtDivId);
  show(divTextObj);
  divBackgroundHeight = getObjectHeight( divBackgroundObj);
  divTextHeight = getObjectHeight( divTextObj);
  actScrollPos = divBackgroundHeight;
}

function scrollDivText()
{
  prevActScrollPos = actScrollPos;
  if( slides > 1)
  {
    actScrollPos <= -(divTextHeight - divTextHeight/slides) ? actScrollPos = divBackgroundHeight - divTextHeight/slides : actScrollPos = actScrollPos - divTextHeight/slides;
  }
  else
  {
    actScrollPos <= -(divTextHeight) ? actScrollPos = divBackgroundHeight : actScrollPos--;
  }
  actScrollPos = (flgDivTextStop == 1) ? prevActScrollPos : actScrollPos;
  shiftTo( divTextObj, 0, actScrollPos );
  setTimeout( "scrollDivText()",speed);
}

function stopScroll()
{
  flgDivTextStop = 1;
}

function startScroll()
{
	flgDivTextStop = 0;
}

function seekLayer(doc, name) 
{
  var theObj;
  for (var i = 0; i < doc.layers.length; i++) 
  {
    if (doc.layers[i].name == name) 
    {
      theObj = doc.layers[i];
      break;
    }
    if (doc.layers[i].document.layers.length > 0) 
    {
      theObj = seekLayer(document.layers[i].document, name);
    }
  }
  return theObj;
}

function getRawObject(obj) 
{
  var theObj;
  if (typeof obj == "string") 
  {
    if (isW3C) 
    {
      theObj = document.getElementById(obj);
    } 
    else if (isIE4) 
    {
      theObj = document.all(obj);
    } 
    else if (isNN4) 
    {
      theObj = seekLayer(document, obj);
    }
  } 
  else 
  {
    theObj = obj;
  }
  return theObj;
}

function getObject(obj) 
{
  var theObj = getRawObject(obj);
  if (theObj && isCSS) 
  {
    theObj = theObj.style;
  }
  return theObj;
}

function shiftTo(obj, x, y) 
{
  var theObj = getObject(obj);
  if (theObj) 
  {
    if (isCSS) 
    {
      var units = (typeof theObj.left == "string") ? "px" : 0 
      theObj.left = x + units;
      theObj.top = y + units;
    } 
    else if (isNN4) 
    {
      theObj.moveTo(x,y)
    }
  }
}


function show(obj) 
{
  var theObj = getObject(obj);
  if (theObj) 
  {
    theObj.visibility = "visible";
  }
}

function getObjectHeight(obj)  
{
  var elem = getRawObject(obj);
  var result = 0;


  if (elem.offsetHeight) 
  {
    result = elem.offsetHeight;
  } 
  else if (elem.clip && elem.clip.height) 
  {
    result = elem.clip.height;
  } 
  else if (elem.style && elem.style.pixelHeight) 
  {
    result = elem.style.pixelHeight;
  }
  return parseInt(result);
}

//-->