$(document).ready(function () {
    $('ul.sf-menu').superfish();
    $(".stripeMe tr:even").addClass("alt");


    $("a[rel=gallery]").fancybox({
        'transitionIn': 'none',
        'transitionOut': 'none',
		'titleShow': true,
		'titlePosition': 'outside',
		'overlayShow': true
    });

	$("a.video").fancybox({
        'transitionIn': 'none',
        'transitionOut': 'none',
		'titleShow': false,
		'titlePosition': 'outside',
		'overlayShow': true,
		'padding':0,
		'margin':0,
		'width'		: 567,
		'height'		: 333,
		'wmode'		: 'transparent',
		'allowfullscreen'	: 'true'
	});
});

$(function () {
    // Set starting slide to 1
    var startSlide = 1;
    // Get slide number if it exists
    if (window.location.hash) {
        startSlide = window.location.hash.replace('#', '');
    }
    // Initialize Slides
    $('#slides').slides({
        preload: false,
        preloadImage: '/css/images/loading.gif',
        generatePagination: true,
        play: 8000,
        pause: 5000,
        hoverPause: true,
        // Get the starting slide
        start: startSlide,
        animationComplete: function (current) {
            // Set the slide number as a hash
            window.location.hash = '#' + current;
        }
    });
});


		$(document).ready(function() {

			$.featureList(
				$("#tabs li a"),
				$("#output li"), {
					start_item	:	0
				}
			);

		});

