sandra0 = new Image();
sandra0.src = "images/slider/sl01.jpg";
 
sandra1 = new Image();
sandra1.src = "images/slider/sl02.jpg";

sandra2 = new Image();
sandra2.src = "images/slider/sl03.jpg";

var i_strngth=(document.getElementById)?0:1;
var i_image=0
 
var imageurl = new Array()
imageurl[0] = sandra0.src
imageurl[1] = sandra1.src
imageurl[2] = sandra2.src

 
function showimage() {        
    if(document.all) {
        if (i_strngth <=110) {
            testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
            i_strngth=i_strngth+10
            var timer=setTimeout("showimage()",100)
        }    
        else {
            clearTimeout(timer)
            var timer=setTimeout("hideimage()",5000)
        }
    }    
    if (document.getElementById&&!document.all)
    {
    
         if (i_strngth <1) {
            //alert(i_strngth)
            testimage.innerHTML="<img style='opacity:"+i_strngth+"' src="+imageurl[i_image]+" border=0>";
            i_strngth=i_strngth+0.1
            var timer=setTimeout("showimage()",100)
        }    
        else {
        
            clearTimeout(timer)
            var timer=setTimeout("hideimage()",5000)
        }
    }
    
    if(document.layers) {
            clearTimeout(timer)
            document.testimage.document.write("<img src="+imageurl[i_image]+" border=0>")
            document.close()
            i_image++
            if (i_image >= imageurl.length) {i_image=0}    
            var timer=setTimeout("showimage()",2000)
                
    }
           
}
 
 
function hideimage() {        
    if (document.all&&i_strngth >=-10) {
        testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
        i_strngth=i_strngth-10
        var timer=setTimeout("hideimage()",110)
    }
        else if(document.getElementById&&!document.all&&i_strngth>0.1)
        {
                      
      testimage.innerHTML="<img style='opacity:"+i_strngth+"' src="+imageurl[i_image]+" border=0>";
        i_strngth=i_strngth-0.1;
        var timer=setTimeout("hideimage()",110)
        }    
    else {
    
        clearTimeout(timer)
        i_image++
        if (i_image >= imageurl.length) {i_image=0}
        i_strngth=(document.getElementById)?0:1;
        if (document.getElementById&&!document.all)
        showimage();
        else
        var timer=setTimeout("showimage()",500)    
        
    }
}
