﻿function getCycle() {
    $('#jPics').cycle({
        fx: 'fade',
        speed: 3000,  // speed of the transition (any valid fx speed value) 
        speedIn: 1500,  // speed of the "in" transition 
        speedOut: 1500  // speed of the "out" transition 
    });
}

function homeCycle() {
    $('#picsHome').cycle({
        fx: 'fade',
        speed: 3000,  // speed of the transition (any valid fx speed value) 
        speedIn: 1500,  // speed of the "in" transition 
        speedOut: 1500  // speed of the "out" transition 
    })
}

function load() {
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
}

function EndRequestHandler() {
    $('#jPics').cycle({
        fx: 'fade',
        speed: 8000,  // speed of the transition (any valid fx speed value) 
        speedIn: 2500,  // speed of the "in" transition 
        speedOut: 2500  // speed of the "out" transition 
    });
    // hide search tips
    $('#tips').hide();
    // show search tips
    $("#searchTips").click(
    function () {
        $('#tips').slideToggle("slow");
    });
}

$(document).ready(function () {

    getCycle();
    homeCycle();

});



