<!--
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=5;
scrollint=3000;

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()
{
  alignit();
  //window.onresize=reloadit;
}

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 200 60 0)';
    document.all.cover.style.visibility="visible";
    document.all.cover.style.zIndex=2;
    document.all.cuscroll.style.zIndex=3;
  }
}

function jumpup()
{
// alignit();
if (isNS || isIE) jumpnow(-scale);}
function jumpdown()
{
// alignit();
if (isNS || isIE) jumpnow(scale);}
function scrollit()
{jumpdown();}

// imgcnt=2;
imgcnt=imgarr.length/2;
imgh=60;
imgw=200;
speed=30;
nowup = 0;

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]);
      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]);
    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=200 height=60 border=0><br></a>';
      doc.cuscroll.innerHTML+='<a href="'+imgarr[1]+'" target="_blank"><img src="'+imgarr[0]+'" width=200 height=60 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 jumpnow(dy)
{
  clearTimeout(bigtimer);
  cutimer=setTimeout("cujump("+dy+")",speed);
  bigtimer=setTimeout('scrollit()',scrollint);
}

function reloadit()
{
  if (isNS && !isNS404)
    window.location.reload();
  else if (isIE)
    alignit();
}

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 flvS3(v1){//v1.2
var v2=MM_findObj(v1);if (!v2){this.x=this.y=this.h=this.w=0;return;}var v3,v4,v5,v6,v7=(document.layers)?v2:v2.style;v3=isNaN(parseInt(v7.left))?v2.offsetLeft:parseInt(v7.left);v4=isNaN(parseInt(v7.top))?v4=v2.offsetTop:parseInt(v7.top);if (v2.offsetHeight){v5=v2.offsetHeight;v6=v2.offsetWidth;}else if (document.layers){v5=v7.clip.height;v6=v7.clip.width;}else {v5=v6=0;}this.x=parseInt(v3);this.y=parseInt(v4);this.h=parseInt(v5);this.w=parseInt(v6);}

function flvS8(v1,v2,v3){//v1.0
var v4=(document.layers)?v1:v1.style;var v5=flvS5();eval("v4.left='"+v2+v5+"'");eval("v4.top='"+v3+v5+"'");}

function flvS5(){//v1.0
var v1=((parseInt(navigator.appVersion)>4||navigator.userAgent.indexOf("MSIE")>-1)&&(!window.opera))?"px":"";return v1;}

function flvXAS1(){
var v1=arguments,v2=v1.length,v3='AutoScrollContainer',v4='AutoScrollContent';var v5=MM_findObj(v3),v6=MM_findObj(v4);if (!v5){return;}if (v5.XAS1!=null){clearTimeout(v5.XAS1);}var v7=(v2>0)?parseInt(v1[0]):1;if (v7){var v8=(v2>1)?parseInt(v1[1]):1,v9=(v2>2)?parseInt(v1[2]):50,v10=(v2>3)?parseInt(v1[3]):1;var v11=new flvS3(v3),v12=new flvS3(v4);var v13=v12.x,v14=v12.y,v15=0,v16=0;if (v10==1){var v17=-1*v12.h;v15=v12.x;if (v14>=v17){v16=v12.y-v8;}else {v16=v11.h;}}else {var v18=-1*v12.w;v16=v12.y;if (v13>=v18){v15=v12.x-v8;}else {v15=v11.w;}}flvS8(v6,v15,v16);v5.XAS1=setTimeout("flvXAS1("+v7+","+v8+","+v9+","+v10+")",v9);}}

function startload(){
  flvXAS1(1,1,50,1);preloadfiles();bigtimer=setTimeout('scrollit()',scrollint);
}
//-->