var boxo=100;
var boxo2=0;
ival=0;
b1i=-1
b2i=1
blowhere=0
topimage=1;

var see=1
var t=0;
var fin=0;
incr=-1;
var tmm=15
var q=0;
var i;
first=0;
 z1=2;
 z2=1;


function fade()
 { 
    
  
   boxo=boxo+b1i
    boxo2=boxo2+b2i
   
   ff1=boxo/100;
   ie1="alpha(opacity="+boxo+")"
   
    ff2=boxo2/100;
   ie2="alpha(opacity="+boxo2+")"
  
       
   
   document.getElementById("slideshow1").style.opacity=ff1;
    document.getElementById("slideshow2").style.opacity=ff2;
   
    document.getElementById("slideshow1").style.filter=ie1;      
    document.getElementById("slideshow2").style.filter=ie2;
    
    
    ival++
    

    if(ival < 101 )
      {t=setTimeout("fade();", 15)
       
       tmm=15}
    else
{
    clearTimeout(t);
        b1i=b1i*-1;
        b2i=b2i*-1;
        z1=z1+b1i;
        z2=z2+b2i;
       ival=0;
       
   
         } 
     
   
}
  
 
function newimage()
{ 
  t=setTimeout("fade();",30);

  
     
   if(topimage > lim)
    {topimage=1
     blowhere=1}
  
   
   if(boxo < 1)
    {
     
     theimage=imgarr[topimage][0]+"<p style='font-weight: bold;text-align: center;'>"+imgarr[topimage][1]+"</p><p>"+imgarr[topimage][2]+"</p>";
     
     document.getElementById('slideshow1').innerHTML=theimage;
     
    }
   else
    {
     theimage=imgarr[topimage][0]+"<p style='font-weight: bold;text-align: center;'>"+imgarr[topimage][1]+"</p><p>"+imgarr[topimage][2]+"</p>"; 
     
     document.getElementById('slideshow2').innerHTML=theimage;
     
     
    
    }
    
   
    topimage++;   
    
      



} 
    
  



   
   


function newimage2()
{  newimage();
  
   first=1;
   document.getElementById("slideshow2").style.filter="alpha(opacity=0)";
   document.getElementById("slideshow2").style.visibility="visible";
   
   q=setInterval("newimage();",6000);
 

   
   }
   
   
  
