<!--
isver= parseInt(navigator.appVersion);
isNS= ((navigator.appName=="Netscape")&&(isver>=4))
isNS4= (isNS && isver==4);
isNS404= (isNS && (navigator.appVersion.indexOf('4.04')!=-1));
isNS5= (isNS && isver==5);
isIE= ((navigator.appName=="Microsoft Internet Explorer")&&(isver>=4))
isIE4= (navigator.appVersion.indexOf('MSIE 4')!=-1);
isIEmac= (navigator.appVersion.indexOf('Mac')!=-1);
isIE5= (navigator.appVersion.indexOf('MSIE 5')!=-1);
isIE= (isIE&&!isIEmac);

scale=1;
scrollint=8000;
imgh=50;
imgw=200;
speed=80;
nowup = 0;

document.preloadArr = new Array();
function popWin(url){
	window.open(url, "popWin", "toolbar=no,scrollbars=no,status=no,width=400,height=150,resizable=yes")
}

function preload(filename)
{
  if (document.images)
  {
    if (document.preloadArr==null) document.preloadArr = new Array();
    var i = document.preloadArr.length;
    document.preloadArr[i] = new Image;
    document.preloadArr[i].src = filename;
  }
}
function changeimg(imgname, filename)
{
  if (document.images)
  {
    if (!isNS5 && isNS && ((imgname=='ctrlup') || (imgname=='ctrldown')))
      document.cover.document.images[imgname].src=filename;
    else
      document.images[imgname].src=filename;
  }
}
function preloadfiles(up, down)
{
  preload(up);
  preload(down);
  alignit();
}

function alignit()
{
  if (isNS5)
  {
    cuscroll=document.getElementById("cuscroll");
    cover=document.getElementById("cover");
    base=document.getElementById("base");
    cuscroll.style.top=0;
    cuscroll.style.left=0;
    cover.style.top=base.offsetTop+document.body.offsetTop;
    cover.style.left=base.offsetLeft+document.body.offsetLeft;
    cover.style.visibility="visible";
    cover.style.zIndex=2;
    cuscroll.style.zIndex=3;
  }                                                             
  else if (isNS)
  {
    document.cover.pageX=document.base.pageX;
    document.cover.pageY=document.base.pageY;
    document.cover.visibility="show";
    document.cover.zIndex=2;
    document.cover.document.cuscroll.zIndex=3;
  }
  else if (isIE){
    document.all.cover.style.pixelTop=document.all.base.offsetTop;
    document.all.cover.style.pixelLeft=document.all.base.offsetLeft;
    if (isIE4)
      document.all.cover.style.clip='rect(0 220 60 0)';
    document.all.cover.style.visibility="visible";
    document.all.cover.style.zIndex=2;
    document.all.cuscroll.style.zIndex=3;
  }
}

function jumpup()
{
	if (isNS || isIE) 
		jumpnow(-scale);
}

function jumpdown()
{
	if (isNS || isIE) 
		jumpnow(scale);
}

function scrollit()
{
	jumpup();
}



function printscrollbaseNS5()
{
  if (isNS5)
  {
    cuscroll=document.getElementById("cuscroll");
    for (var i=0;i<imgcnt;i++)
    {
      ela = document.createElement("A");
      ela.setAttribute("href",imgarr[i*2+1]);
      ela.setAttribute("target","_blank");
      elimg = document.createElement("IMG");
      elimg.setAttribute("src",imgarr[i*2]);
      elimg.setAttribute("width",imgw);
      elimg.setAttribute("height",imgh);
      elimg.setAttribute("border",0);
      elbr = document.createElement("BR");
      ela.appendChild(elimg);
      cuscroll.appendChild(ela);
      cuscroll.appendChild(elbr);
    }
    ela = document.createElement("A");
    ela.setAttribute("href",imgarr[1]);
    ela.setAttribute("target","_blank");
    elimg = document.createElement("IMG");
    elimg.setAttribute("src",imgarr[0]);
    elimg.setAttribute("width",imgw);
    elimg.setAttribute("height",imgh);
    elimg.setAttribute("border",0);
    ela.appendChild(elimg);
    cuscroll.appendChild(ela);
  }
}

function printscrollbase()
{
  if (isNS5)
  {
  }
  else if (isNS)
  {
 
    doc=document.cover.document;
    for (var i=0;i<imgcnt;i++)
      doc.cuscroll.document.write('<a href="'+imgarr[i*2+1]+'" target=_blank><img src="'+imgarr[i*2]+'" width='+imgw+' height='+imgh+' border=0><br></a>');
    doc.cuscroll.document.write('<a href="'+imgarr[1]+'" target=_blank><img src="'+imgarr[0]+'" width='+imgw+' height='+imgh+' border=0><br></a>');
  }
  else if (isIE)
  {
    doc=document.all;
    if (isIE4)
    {
 
      for (var i=0;i<imgarr.length/2;i++)
        doc.cuscroll.document.write('<a href="'+imgarr[i*2+1]+'" target=_blank><img src="'+imgarr[i*2]+'" width='+imgw+' height='+imgh+' border=0><br></a>');
      doc.cuscroll.document.write('<a href="'+imgarr[1]+'" target=_blank><img src="'+imgarr[0]+'" width='+imgw+' height='+imgh+' border=0><br></a>');
    }
    else
    {
      for (var i=0;i<imgarr.length/2;i++)
        doc.cuscroll.innerHTML+='<a href="'+imgarr[i*2+1]+'" target=_blank><img src="'+imgarr[i*2]+'" width='+imgw+' height='+imgh+' border=0><br></a>';
      doc.cuscroll.innerHTML+='<a href="'+imgarr[1]+'" target=_blank><img src="'+imgarr[0]+'" width='+imgw+' height='+imgh+' border=0><br></a>';
    }
  }
}

function cumoveby(dy)
{
  if (isNS5)
  {
    cuscroll=document.getElementById("cuscroll");
    if (parseInt(cuscroll.style.top)+dy<-imgcnt*imgh)
      cuscroll.style.top=parseInt(cuscroll.style.top)+dy+imgcnt*imgh;
    else if (parseInt(cuscroll.style.top)+dy>0)
      cuscroll.style.top=parseInt(cuscroll.style.top)+dy-imgcnt*imgh;
    else
      cuscroll.style.top=parseInt(cuscroll.style.top)+dy;
  }
  else if (isNS)
  {
    if (doc.cuscroll.top+dy<-imgcnt*imgh)
      doc.cuscroll.top+=dy+imgcnt*imgh;
    else if (doc.cuscroll.top+dy>0)
      doc.cuscroll.top+=dy-imgcnt*imgh;
    else
      doc.cuscroll.top+=dy;
  }
  else if (isIE)
  {
    if (doc.cuscroll.style.pixelTop+dy<-imgcnt*imgh)
    {
      doc.cuscroll.style.pixelTop+=dy+imgcnt*imgh;
    } 
    else if (doc.cuscroll.style.pixelTop+dy>0)
    {
      doc.cuscroll.style.pixelTop+=dy-imgcnt*imgh;
    }  
    else
    {
      doc.cuscroll.style.pixelTop+=dy;
    }  
  }
}

function cujump(dy)
{
  cumoveby(dy);
  if ((nowup && dy>0)||(!nowup && dy<0))
  {
    clearTimeout(cutimer);
    nowup=!nowup;
  }
  if (isNS5)
    doctop=parseInt(document.getElementById("cuscroll").style.top);
  else if (isNS)
    doctop=doc.cuscroll.top;
  else if (isIE)
    doctop=doc.cuscroll.style.pixelTop;
  var pos=(-doctop)%imgh;
  if ((pos!=0) && (dy!=0))
    cutimer=setTimeout("cujump("+dy+")",speed);
}

function SetPosition()
{
  if (isNS5)
  {
    cuscroll=document.getElementById("cuscroll");
    cover=document.getElementById("cover");
    base=document.getElementById("base");
  //  cuscroll.style.top=0;
  //  cuscroll.style.left=0;
    cover.style.top=base.offsetTop+document.body.offsetTop;
    cover.style.left=base.offsetLeft+document.body.offsetLeft;
  }                                                             
  else if (isNS)
  {
    document.cover.pageX=document.base.pageX;
    document.cover.pageY=document.base.pageY;
  }
  else if (isIE){
    document.all.cover.style.pixelTop=document.all.base.offsetTop;
    document.all.cover.style.pixelLeft=document.all.base.offsetLeft;
    if (isIE4)
      document.all.cover.style.clip='rect(0 200 55 0)';
  }
}

function jumpnow(dy)
{
  clearTimeout(bigtimer);
  cutimer=setTimeout("cujump("+dy+")",speed);
  bigtimer=setTimeout('scrollit()',scrollint);
}

// -->
