$(document).ready(function(){
    $('#slideshow, #slideshow2').cycle({
        delay:  2000,
        speed:  500
    });

    $('#DateIn').DatePicker({
        format:'d/m/Y',
        date: $('#DateIn').val(),
        current: $('#DateIn').val(),
        starts: 1,
        position: 'r',
        onBeforeShow: function(){
            $('#DateIn').DatePickerSetDate($('#DateIn').val(), true);
        },
        onChange: function(formated, dates){
            $('#DateIn').val(formated);
            $('#DateIn').DatePickerHide();
        }
    });
    $('table tr').mouseover(function(){
        $(this).addClass('tr-over');
    });
    $('table tr').mouseout(function(){
        $(this).removeClass('tr-over');
    })
    $('table tr:even').addClass('tr-odd');
});
