// Title: Millthorpe Motel - javascript
// Author: Kalon Edser, http://www.kalonedser.com/
// Updated: 2 March 2010

jQuery(document).ready(function() {

	$('#wrapper').ifixpng();
	
	$('#home #slides').cycle({ 
		speed: 2500,
		timeout: 4500,
		pause: 1
	 });
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				opacity: 0.80, /* Value between 0 and 1 */
				showTitle: false, /* true/false */
				allowresize: true, /* true/false */
				default_width: 500,
				default_height: 344,
				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
				hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
				wmode: 'opaque', /* Set the flash wmode attribute */
				autoplay: true, /* Automatically start videos: True/False */
				modal: false /* If set to true, only the close button will close the window */
			});
			
	$("#arrival, #departure").datepicker({ dateFormat: 'dd/mm/yy' });

	$('A[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });

});