$(document).ready(function(){	
    $("#slider").sudoSlider({ 
    	auto: false,
        prevNext: false,
        updateBefore: true,
        insertAfter: false,
        customLink:'ol li',
        numericText: ['Brief Outline','Itinerary','Book Now!']
    });
});

$(document).ready(function() {

		// Fancybox

		$("a#gallery").fancybox({
			'titlePosition'	: 'over'
		});
		
		$("a[rel=test]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
	
		$("a[rel=ben-tee]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
		
		$("a[rel=ben-eigh-torridon]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
		
		$("a[rel=ben-nevis]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
		
		$("a[rel=climbing-wall]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
		
		$("a[rel=glen-affric]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
		
		$("a[rel=loch-quoich]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
		
		$("a[rel=multi-activity-adventures]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
		
		$("a[rel=walking]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#000',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<img src="http://www.greatglenadventures.com/images/logo-popup.png" class="fancybox-sml-right"/></span>';
			}
		});
	
});

$(document).ready(function(){
	$("#commentForm").validate();
});
		
$(function() {
	$("#datepicker").datepicker();
});

$(document).ready(function() {
	$('#list').accordion({ autoHeight: false })
});


$(function() {
	$.simpleWeather({
		//location: 'fort augustus, united kingdom',
		location: 'edinburgh, united kingdom',
		unit: 'c',
		success: function(weather) {
			//$("#weather").append('<h5>'+weather.city+', '+weather.region+' '+weather.country+'</h5>');
			//$("#weather").append('<p><strong>Today\'s High</strong>: '+weather.high+'&deg; '+weather.units.temp+' - <strong>Today\'s Low</strong>: '+weather.low+'&deg; '+weather.units.temp+'</p>');
			//$(".weather").append('<p>'+weather.temp+'&deg; '+weather.units.temp+'</p>');
			$(".weather").append('<img src="'+weather.thumbnail+'">');
			$(".weather").append('<p>'+weather.currently+' '+weather.temp+'&deg; '+weather.units.temp+'</p>');
			//$("#weather").append('<p><img src="'+weather.image+'"></p>');
		},
		error: function(error) {
			$(".weather").html('<p>'+error+'</p>');
		}
	});
});
