﻿//$(document).ready(function() {
function pageLoad() {
        /*$("div#controller").jFlow({ slides: "#slides", width: "960px", height: "460px" }); */
    $(".divMainNews").jCarouselLite({ vertical: true, hoverPause: true, visible: 1, auto: 2000, speed: 1000 });

    /*$('#ctl00_ContentPlaceHolder1_AddViewComment1_pBody').slideToggle('fast');*/
    $('#ctl00_ContentPlaceHolder1_AddViewComment1_pHeader').click(function() {
        $('#ctl00_ContentPlaceHolder1_AddViewComment1_pBody').slideToggle('slow');
    });

    /* This is basic - uses default settings */
    $("a#single_image").fancybox();

    /* Using custom settings */
    $("a#inline").fancybox({
        'hideOnContentClick': true
    });

    /* ّFancy Box Declaration for Group*/
    $("a[rel=group]").fancybox({
        'overlayShow': false,
        'zoomOpacity': false,
        'padding': 5,
        'zoomSpeedIn': 600,
        'zoomSpeedOut': 500,
        'easingIn': 'easeOutBack',
        'easingOut': 'easeInBack'
    });

    $('div.accordionButton').click(function() {
        $('div.accordionContent').slideUp('normal');
        $(this).next().slideDown('normal');
    });
    $("div.accordionContent").hide();


    $('#slider').nivoSlider({
        effect: 'fade', //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.8, //Universal caption opacity
        beforeChange: function() { },
        afterChange: function() { },
        slideshowEnd: function() { } //Triggers after all slides have been shown
    });
    
//});
}


 


