﻿
$(document).ready(function() {

    $('#slider').nivoSlider({
        effect: 'random', //Specify sets like: 'fold,fade,sliceDown'
        slices: 15,
        animSpeed: 300,
        pauseTime: 5000,
        startSlide: 0, //Set starting Slide (0 index)
        directionNav: true, //Next & Prev
        directionNavHide: true, //Only show on hover
        controlNav: true, //1,2,3...
        controlNavThumbs: true, //Use thumbnails for Control Nav
        controlNavThumbsFromRel: true, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav: true, //Use left & right arrows
        pauseOnHover: true, //Stop animation while hovering
        manualAdvance: false, //Force manual transitions
        captionOpacity: 0.6, //Universal caption opacity
        beforeChange: function() { },
        afterChange: function() { },
        slideshowEnd: function() { } //Triggers after all slides have been shown
    });

    $(".tooltips").hover(
		 function() { $(this).contents("span:last-child").css({ display: "block" }); },
		 function() { $(this).contents("span:last-child").css({ display: "none" }); }
		        );

    $(".tooltips").mousemove(function(e) {
        var mousex = e.pageX + 10;
        var mousey = e.pageY - 200;
        $(this).contents("span:last-child").css({ top: mousey, left: mousex });
    });


    $().piroBox({
        my_speed: 400, //animation speed
        bg_alpha: 0.3, //background opacity
        slideShow: true, // true == slideshow on, false == slideshow off
        slideSpeed: 4, //slideshow duration in seconds(3 to 6 Recommended)
        close_all: '.piro_close,.piro_overlay'// add class .piro_overlay(with comma)if you want overlay click close piroBox

    });



});

$(window).load(function() {
    $('#orbitSlider').orbit({
        'bullets': true,
        'timer': true,
        'animation': 'horizontal-slide'
    });

});

