//PRELOADER
(function ($) {
    var cache = [];
    // Arguments are image paths relative to the current page.
    $.preLoadImages = function () {
        var args_len = arguments.length;
        for (var i = args_len; i--;) {
            var cacheImage = document.createElement('img');
            cacheImage.src = arguments[i];
            cache.push(cacheImage);
        }
    }
})(jQuery)


//DATEPICKER
$(function () {

    $('#checkInFullDate').datepicker({
        showOn: "both",
        firstDay: 1,
        changeFirstDay: false,
        minDate: 08 / 16 / 2010
    });
});


$(function () {

    $("#checkOutFullDate").datepicker({
        minDate: '+1m',
        beforeShow: function () {
            //get date startDate is set to
            var startDate = $("#checkInFullDate").datepicker('getDate');
            //if a date was selected else do nothing
            if (startDate != null) {
                startDate.setDate(startDate.getDate() + 1);
                $(this).datepicker('option', 'minDate', startDate);
            }

        }
    });

});


// DOCUMENT.READY
$(document).ready(function () {

    //IMAGE ROLLVERS
    $("img.rollMe, input.rollMe").hover(

    function () {
        this.src = this.src.replace("_a", "_o");
    }, function () {
        this.src = this.src.replace("_o", "_a");
    });

});


// threesco: ABQIAAAAHwAF5mwdTdZBe-qEV48hwxSEYVJ3VlAHBls_nwztdDRhxW7FuRQffir7LZ3azxodAebRYHbrNyox-g
// localhost: ABQIAAAAHwAF5mwdTdZBe-qEV48hwxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSgBWrezu1JQmGhrf_FF2C0aVn3Sg
// staytimessuare: ABQIAAAAHwAF5mwdTdZBe-qEV48hwxSNN3i8rpZFZ-accCBNlMgTPkBPNxQtebkxjuDXwiGn-u5rKRCY2ptPoA
