// JScript File

var total = 0;
var current = 0;

$(document).ready(function(){
    
    total = $('#images .Image').length;

    if(total < 2)  return;
    
    $('#images .Image').css('opacity', 0);
    $('#images .Image:first').css('opacity', 1);
  
    setInterval(slide, 3000);
    
    
    
});

function slide()
{
    $('#images .Image').eq(current).animate({opacity:0}, 700, function(){
    
            current++;
            if(current == total) 
            {
                current = 0;
            }
            
            $('#images .Image').eq(current).animate({opacity:1}, 700);
            
    });
}
