$(document).ready(function () {
    $.supersized({
        slide_interval: 5000,
        transition: 1,
        transition_speed: 1000,
        keyboard_nav: 0,
        random: 1,
        thumbnail_navigation: 0,
        thumb_links: 0,
        vertical_center: 1,
        horizontal_center: 0,
        min_height: 768,
        min_width: 1366,
        pause_hover: 0,
        slide_links: false,
        slides: [
						{ image: '/Images/bg1.jpg' },
						{ image: '/Images/bg2.jpg' },
						{ image: '/Images/bg3.jpg' },
						{ image: '/Images/bg4.jpg' },
						{ image: '/Images/bg5.jpg' }
				]
    });

    // create custom animation algorithm for jQuery called "bouncy"
//    $.easing.bouncy = function (x, t, b, c, d) {
//        var s = 1.70158;
//        if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
//        return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
//    }

    // create custom tooltip effect for jQuery Tooltip
//    $.tools.tooltip.addEffect("bouncy",

    // opening animation
//	    function (done) {
//	        this.getTip().fadeIn().animate({ left: '+=15' }, 500, 'bouncy', done).show();
//	    },

    // closing animation
//	    function (done) {
//	        this.getTip().animate({ left: '-=15' }, 500, 'bouncy', function () {
//	            $(this).fadeOut();
//	            $(this).hide();
//	            done.call();
//	        });
//	    }
//    );

    $("#sidebar div a").tooltip({ position: "center right", opacity: 0.7, effect: 'fade' });

    $("a[rel^='prettyphoto']").prettyPhoto({
        theme: 'dark_square',
        showTitle: false,
        animationSpeed: 'fast',
        overlay_gallery: false
    });
});
