var JQ = jQuery.noConflict(true);
JQ(document).ready(function(){
	
	
    var myOptions = {
        noImages: 3,
        path: "images/home/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_home').easySlides(myOptions);
var myOptions = {
        noImages: 3,
        path: "images/resort_villas/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_resort').easySlides(myOptions);

 var myOptions = {
        noImages: 3,
        path: "images/resort_villas/beach/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_beach').easySlides(myOptions);
    
    
    var myOptions = {
        noImages: 3,
        path: "images/resort_villas/ocean/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_ocean').easySlides(myOptions);
    
     var myOptions = {
        noImages: 3,
        path: "images/resort_villas/garden/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_garden').easySlides(myOptions);
    
	
	     var myOptions = {
        noImages: 3,
        path: "images/resort_villas/rates/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_rates').easySlides(myOptions);
    
	
	 var myOptions = {
        noImages: 3,
        path: "images/resort_villas/justForTwo/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_justForTwo').easySlides(myOptions);
	
     var myOptions = {
        noImages: 4,
        path: "images/luxury_villas/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_luxury').easySlides(myOptions);
    
    
     var myOptions = {
        noImages: 3,
        path: "images/about/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_about').easySlides(myOptions);
    
    
    var myOptions = {
        noImages: 3,
        path: "images/activities/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_activities').easySlides(myOptions);
    
    
    var myOptions = {
        noImages: 3,
        path: "images/contact/",
        /* captions: {                 
            1:'<b>Safety First!</b> <div style="font-size:14px;margin-top:5px;">Captains start your engines!</div>',
            2:'<b>2011 Leverick Bay Poker Run!</b> <div style="font-size:14px;margin-top:5px;">First stop, Scrub Island!</div>',
        },
       links: { 
            1:"http://www.jquery.com",
            2:"http://www.jquery.com",
            3:"http://www.jquery.com",
            4:"http://www.jquery.com"
        },*/
        timerInterval: 4000,
	randomise: true
    };

    // Woo! We have example number 2!
    JQ('#container_contact').easySlides(myOptions);
	
	
	// JQuery UI	
	JQ( "#datepicker" ).datepicker( { dateFormat: 'M dd, yy' } );
	JQ( "#txtarrivaldate" ).datepicker( { 
		dateFormat: 'M dd, yy',
		minDate: '0',
		onSelect: function(selectedDate){ 
			var instance = JQ(this).data("datepicker");
			var date = JQ.datepicker.parseDate(instance.settings.dateFormat || JQ.datepicker._defaults.dateFormat, selectedDate, instance.settings);
			JQ("#txtdeparturedate").datepicker("option", "minDate", date); // Restrict the min date for the check out date
		}
	} );
	JQ( "#txtdeparturedate" ).datepicker( { 
		dateFormat: 'M dd, yy',
		minDate: '+1d',
		onSelect: function(selectedDate){ 
			var instance = JQ(this).data("datepicker");
			var date = JQ.datepicker.parseDate(instance.settings.dateFormat || JQ.datepicker._defaults.dateFormat, selectedDate, instance.settings);
			JQ("#txtarrivaldate").datepicker("option", "maxDate", date); // Restrict the min date for the check out date
		}
	} );
		
})

