var msg=new Array()
msg[0]="<p align='center'><strong><font face='Arial Narrow' size='2'>Conferences &<br>Links</font></strong></p>";
msg[0]=msg[0]+"<p align='center'><a href='http://www.emwater-conference.org' target='_blank'><img src='links/EMWater.jpg' alt='EMWater Conference' border='0'></a></p>";
msg[0]=msg[0]+"<p align='center'><a href='http://www.medaqua.org/links/ICEEP.htm' target='_blank'><img src='links/ICEEP.jpg' alt='ICEEP' border='0'></a></p>";
msg[0]=msg[0]+"<p align='center'><a href='http://cleantech.jrc.es' target='_blank'><img src='links/cleantech.jpg' alt='Cleantech' border='0'></a></p>";
speed=1   
var divwidth=130
var divheight=600

var divincbt=4                 
var divinctb=-1
var divincrl=10
var divinclr=-10
var divpause=20000       
var divtop=" 5 "               
var divleft=" 760 "               
var divcolor="FF89C8"      
var divname1="scroll222"  
var divname2="scroll223" 
var whichscroll=" 1 "
var divinc
var stopposa
var stopposb
var scrollmsga
var scrollmsgb 
var thediva
var thedivb
var posa
var posb
var i=msg.length
var firsttime="y"
var divprop
var whichdiv=divname1
if(whichscroll==" 1 ")
  {
   stopposa=0
   stopposb=divheight*-1
   divprop="top"
   divinc=divincbt
  }
if(whichscroll==" 2 ")
  {
   stopposa=0
   stopposb=divheight
   divprop="top"
   divinc=divinctb
  }
if(whichscroll==" 3 ")
  {
   stopposa=0
   stopposb=divwidth*-1
   divprop="left"
   divinc=divincrl
  }
if(whichscroll==" 4 ")
  {
   stopposa=1
   stopposb=divwidth+2
   divprop="left"
   divinc=divinclr
  }

function Scrollboxa(obja)
     {
         savobja=obja
         posa=posa-divinc
         if(((whichscroll==" 1 " || whichscroll==" 3 ")&&(posa<=stopposa))||
           ((whichscroll==" 2 " || whichscroll==" 4 ")&&(posa>=stopposa)))
           {
            clearTimeout(scrollmsga)
            setTimeout("scrollit()",divpause)
           } 
         else
             {
              if(document.getElementById) // IE5 and NS6
                {
                 eval("elma.style."+divprop+"=posa")
                 elma.style.visibility="visible"
                }
              if(document.layers)    // NS4+
                {
                 eval("obja."+divprop+"=posa")
                 document.main.visibility="show"
                }
              scrollmsga=setTimeout("Scrollboxa(savobja)",speed)
             }
     }
function Scrollboxb(objb)
     {
         savobjb=objb
         posb=posb-divinc
         if(((whichscroll==" 1 " || whichscroll==" 3 ")&&(posb<=stopposb))||
            ((whichscroll==" 2 " || whichscroll==" 4 ")&&(posb>=stopposb)))
           {
            clearTimeout(scrollmsgb)
           }
         else
              {
               if(document.getElementById) // IE5 and NS6
                 {
                  eval("elmb.style."+divprop+"=posb")
                 }
               if(document.layers)  // NS4+
                 {
                  eval("objb."+divprop+"=posb")
                  objb.visibility="show"
                 }
               scrollmsgb=setTimeout("Scrollboxb(savobjb)",speed)
              }
     }
function scrollit()
   {
    i++
    if(i>=msg.length)
      {i=0}
    posa=stopposb*-1
    posb=0
    if(firsttime=="y")
      {
       firsttime= "n"
       if(document.getElementById)      // IE5 and NS6
         {
          elma=document.getElementById(divname1)
          elma.innerHTML=msg[i]
         }
      if(document.layers)   // NS4+
        {
         thediva=eval("document.main.document."+divname1)
         thediva.document.write(msg[i])
         thediva.document.close()
        }
       Scrollboxa(thediva)
      }
    else
      {
       if(whichdiv==divname1)
         {
          if(document.getElementById)  // IE5 and NS6
            {
             elmb=document.getElementById(divname1)
             elma=document.getElementById(divname2)
             elma.innerHTML=msg[i]
            }
          if(document.layers)  //  NS4+
            {
             thedivb=eval("document.main.document."+divname1)
             thediva=eval("document.main.document."+divname2)  
             thediva.document.write(msg[i])
             thediva.document.close()
            }
          Scrollboxb(thedivb)
          whichdiv=divname2
          Scrollboxa(thediva)
         }
       else
         {
          if(document.getElementById)   // IE5 and NS6
            {
             elmb=document.getElementById(divname2)
             elma=document.getElementById(divname1)
             elma.innerHTML=msg[i]
             }
          if(document.layers)  // NS4+
            {
             thedivb=eval("document.main.document."+divname2)
             thediva=eval("document.main.document."+divname1)
             thediva.document.write(msg[i])
             thediva.document.close()
             }
          Scrollboxb(thedivb)
          whichdiv=divname1
          Scrollboxa(thediva)
         }
      }
  }

if(document.getElementById)  // IE5 and NS6
  {
   document.write('<DIV STYLE="position:relative;top:'+divtop+';left:'+divleft+';width:'+divwidth+';height:'+divheight+';visibility:visible; background-color:'+'divcolor'+'; overflow:hidden;clip:rect(0,'+divwidth+','+divheight+',0)" z-index:10>')
   document.write('<DIV STYLE="position:relative;top:0;left:0;width:'+divwidth+';height:'+divheight+'" z-index:10>')
   document.write('<DIV ID='+divname1+' STYLE="position:absolute;top:0;left:0;width:'+divwidth+';height:'+divheight+'" z-index:10></DIV>')
   document.write('<DIV ID='+divname2+' STYLE="position:absolute;top:0;left:0;width:'+divwidth+';height:'+divheight+';visibility:hidden" z-index:10></DIV>')
   document.write('</DIV></DIV>')
  }
if(document.layers)  // NS4+
  {
   document.write('<ILAYER ID="main" TOP='+divtop+' LEFT='+divleft+' WIDTH='+divwidth+' HEIGHT='+divheight+' BACKGROUND='+divcolor+' VISIBILITY=hide>')
   document.write('<LAYER ID='+divname1+' LEFT=0 TOP=0 WIDTH='+divwidth+'></LAYER>')
   document.write('<LAYER ID='+divname2+' LEFT=0 TOP='+divheight+' WIDTH='+divwidth+'>')
   document.write('</LAYER></ILAYER>')
  }
