<!--
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);

imgcnt=imgarr.length/3;

scale		= -scale; //reverse

function alignit() {
  if (isNS5) {
    ecscroll=document.getElementById("ecscroll");
    cover=document.getElementById("cover");
    base=document.getElementById("base");
    ecscroll.style.top=0;
    ecscroll.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;
    ecscroll.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.ecscroll.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.ecscroll.style.zIndex=3;
  }
}

function jumpup() {
	if (scale < 0)
		scale = -scale;
	jumpnow(scale);
}

function jumpdown() {
	if (scale > 0)
		scale = -scale;
	jumpnow(scale);
}

function scrollit() {
	jumpnow(scale);
}

function is_http_link(str)	{
	var reg = /^http:///;
	return reg.test(str);
}

function printscrollbase() {
  var tar_str = "";
  var tar_url = "";

  if (isNS) {
    doc=document.cover.document;


    for (var i=0;i<imgcnt;i++)  {
		if (is_http_link(imgarr[i*3+1]))
			tar_str = " target=_blank";
		else
			tar_str = "";

      if (imgarr[i*3+1] != "#" && imgarr[i*3+1] != "")
	    doc.ecscroll.document.write('<a href="'+imgarr[i*3+1]+'"'+tar_str+'><img src="'+imgarr[i*3]+'" width='+imgw+' height='+imgh+' alt="'+imgarr[i*3+2]+'" border=0 onMouseOver="clearTimeout(bigtimer);" onMouseOut="bigtimer=setTimeout(\'scrollit()\',scrollint);"></a><br>');
      else
        doc.ecscroll.document.write('<img src="'+imgarr[i*3]+'" width='+imgw+' height='+imgh+' border=0 alt="'+imgarr[i*3+2]+'" onMouseOver="clearTimeout(bigtimer);" onMouseOut="bigtimer=setTimeout(\'scrollit()\',scrollint);"><br>');
    }
    if (imgarr[1] != "#" && imgarr[1] != "")
      doc.ecscroll.document.write('<a href="'+imgarr[1]+'"'+tar_str+'><img src="'+imgarr[0]+'" width='+imgw+' height='+imgh+' alt="'+imgarr[2]+'" border=0 onMouseOver="clearTimeout(bigtimer);" onMouseOut="bigtimer=setTimeout(\'scrollit()\',scrollint);"></a><br>');
    else
      doc.ecscroll.document.write('<img src="'+imgarr[0]+'" width='+imgw+' height='+imgh+' alt="'+imgarr[2]+'" border=0 onMouseOver="clearTimeout(bigtimer);" onMouseOut="bigtimer=setTimeout(\'scrollit()\',scrollint);"><br>');
  }
  else if (isIE) {
    doc=document.all;
    doc.ecscroll.document.write('<nobr>');
    for (var i=0;i<imgcnt;i++)  {
	  if (is_http_link(imgarr[i*3+1]))
		tar_str = " target=_blank";
	  else
		tar_str = "";
	  if (typeof nomenubar != 'undefined' &&  nomenubar == 1)
	  	tar_str = "";


      if (imgarr[i*3+1] != "#" && imgarr[i*3+1] != "")	{
  	    if (typeof nomenubar != 'undefined' &&  nomenubar == 1)
	  	  tar_url = "javascript: MM_openBrWindow('"+imgarr[i*3+1]+"','pop_feature','width=788,height=500,scrollbars=yes,resizable=yes');";
	  	else
	  	  tar_url = imgarr[i*3+1];
        doc.ecscroll.document.write('<a href="'+tar_url+'"'+tar_str+'><img src="'+imgarr[i*3]+'" width='+imgw+' height='+imgh+' alt="'+imgarr[i*3+2]+'" border=0 onMouseOver="clearTimeout(bigtimer);" onMouseOut="bigtimer=setTimeout(\'scrollit()\',scrollint);"></a><br>');
      }
      else
        doc.ecscroll.document.write('<img src="'+imgarr[i*3]+'" width='+imgw+' height='+imgh+' border=0 alt="'+imgarr[i*3+2]+'" onMouseOver="clearTimeout(bigtimer);" onMouseOut="bigtimer=setTimeout(\'scrollit()\',scrollint);"><br>');
    }
    if (imgarr[1] != "#" && imgarr[1] != "")	{
      if (typeof nomenubar != 'undefined' &&  nomenubar == 1)
	    tar_url = "javascript: MM_openBrWindow('"+imgarr[1]+"','pop_feature','width=780,height=600,scrollbars=yes,resizable=yes');";
	  else
	    tar_url = imgarr[1];
      doc.ecscroll.document.write('<a href="'+tar_url+'"'+tar_str+'><img src="'+imgarr[0]+'" width='+imgw+' height='+imgh+' alt="'+imgarr[2]+'" border=0 onMouseOver="clearTimeout(bigtimer);" onMouseOut="bigtimer=setTimeout(\'scrollit()\',scrollint);"></a><br>');
    }
    else
      doc.ecscroll.document.write('<img src="'+imgarr[0]+'" width='+imgw+' height='+imgh+' alt="'+imgarr[2]+'" border=0 onMouseOver="clearTimeout(bigtimer);" onMouseOut="bigtimer=setTimeout(\'scrollit()\',scrollint);"><br>');
    doc.ecscroll.document.write('</nobr>');
  }
}

function printscrollbaseNS5() {
  ecscroll=document.getElementById("ecscroll");
  for (var i=0;i<imgcnt;i++) {
  	if (imgarr[i*3+1] != "#" && imgarr[i*3+1] != "")  {
      ela = document.createElement("A");
      ela.setAttribute("href",imgarr[i*3+1]);
      ela.setAttribute("target","_blank");
    }
    elimg = document.createElement("IMG");
    elimg.setAttribute("src",imgarr[i*3]);
    elimg.setAttribute("width",imgw);
    elimg.setAttribute("height",imgh);
    elimg.setAttribute("alt",imgarr[i*3+2]);
    elimg.setAttribute("border",0);
    elimg.setAttribute("onMouseOver", 'clearTimeout(bigtimer);');
    elimg.setAttribute("onMouseOut", 'bigtimer=setTimeout(\'scrollit()\',scrollint);');
    elbr = document.createElement("BR");
  	if (imgarr[i*3+1] != "#" && imgarr[i*3+1] != "")  {
      ela.appendChild(elimg);
      ecscroll.appendChild(ela);
      ecscroll.appendChild(elbr);
    }  else  {
      ecscroll.appendChild(elimg);
      ecscroll.appendChild(elbr);
    }
  }
  if (imgarr[1] != "#" && imgarr[1] != "")  {
    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("alt",imgarr[2]);
  elimg.setAttribute("border",0);
  elimg.setAttribute("onMouseOver", 'clearTimeout(bigtimer);');
  elimg.setAttribute("onMouseOut", 'bigtimer=setTimeout(\'scrollit()\',scrollint);');
  if (imgarr[1] != "#" && imgarr[1] != "")  {
    ela.appendChild(elimg);
    ecscroll.appendChild(ela);
  }  else  {
  	ecscroll.appendChild(elimg);
  }
}

function ecmoveby(dx) {
  if (isNS5) {
    ecscroll=document.getElementById("ecscroll");
    if (parseInt(ecscroll.style.top)+dx<-imgcnt*imgh)
      ecscroll.style.top=parseInt(ecscroll.style.top)+dx+imgcnt*imgh;
    else if (parseInt(ecscroll.style.top)+dx>0)
      ecscroll.style.top=parseInt(ecscroll.style.top)+dx-imgcnt*imgh;
    else
      ecscroll.style.top=parseInt(ecscroll.style.top)+dx;
  }
  else if (isNS) {
    if (doc.ecscroll.top+dx<-imgcnt*imgh)
      doc.ecscroll.top+=dx+imgcnt*imgh;
    else if (doc.ecscroll.top+dx>0)
      doc.ecscroll.top+=dx-imgcnt*imgh;
    else
      doc.ecscroll.top+=dx;
  }
  else if (isIE) {
    if (doc.ecscroll.style.pixelTop+dx<-imgcnt*imgh)
      doc.ecscroll.style.pixelTop+=dx+imgcnt*imgh;
    else if (doc.ecscroll.style.pixelTop+dx>0)
      doc.ecscroll.style.pixelTop+=dx-imgcnt*imgh;
    else
      doc.ecscroll.style.pixelTop+=dx;
  }
}

function ecjump(dx) {
  ecmoveby(dx);
  if ((nowup && dx>0) || (!nowup && dx<0)) {
    clearTimeout(ectimer);
    nowup=!nowup;
  }
  if (isNS5)
    doctop=parseInt(document.getElementById("ecscroll").style.top);
  else if (isNS)
    doctop=doc.ecscroll.top;
  else if (isIE)
    doctop=doc.ecscroll.style.pixelTop;
  var pos=(-doctop)%imgh;

  if ((pos!=0) && (dx!=0))
    ectimer=setTimeout("ecjump("+dx+")",speed);
}

function jumpnow(dx) {
  clearTimeout(bigtimer);
  ectimer	= setTimeout("ecjump("+dx+")",speed);
  bigtimer	= setTimeout('scrollit()',scrollint);
}
// -->
