﻿$(document).ready(function () {

    $('#slide-show').nivoSlider({
        effect: 'random', //Specify sets like: 'fold,fade,sliceDown'
        slices: 10,
        animSpeed: 1000,
        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: false, //Stop animation while hovering
        manualAdvance: false, //Force manual transitions
        captionOpacity: 0, //Universal caption opacity
        beforeChange: function () { },
        afterChange: function () { },
        slideshowEnd: function () { } //Triggers after all slides have been shown


    });

    $(function () {
        $("#txtname").watermark({ defaultText: 'نام' });
        $("#txtsurname").watermark({ defaultText: 'نام خانوادگی' });
        $("#txtemail").watermark({ defaultText: 'پست الکترونیک' });
    })



    $("#header .header-icons").hover(function () {

        $(this).animate({ opacity: 1.0 }, { duration: 100 });
    }, function () {
        $(this).animate({ opacity: 0.7 }, { duration: 500 });
    })




    $(".ads-box").hover(function () {

        $(this).stop().animate({ "bottom": "10" }, { duration: 300 });
    }, function () {
        $(this).animate({ "bottom": "0" }, { duration: 500 });
    })



    $("#h-menu li a").hover(function () { $(this).next("img").stop(true, true).animate({ opacity: "show", bottom: "88" }, "fast"); }, function () { $(this).next("img").animate({ opacity: "hide", bottom: "70" }, "fast"); });

});
          
