$(document).ready(function () {
    $('.slideshow-logo').cycle({
        fx: 'fade',
        speed: 'slow',
        timeout: 3000
    });
});


$(function () {
    $('#slideshow-slide').cycle({
        fx: 'scrollHorz',
        speed: '1500',
        timeout: 8000,
        pager: '#nav',
		pauseOnPagerHover: 1,
		slideResize: 1,
		pause: 1,
		allowPagerClickBubble: true,
        pagerAnchorBuilder: function (idx, slide) {
            // return selector string for existing anchor 
            return '#nav li:eq(' + idx + ') a';
        }
    });




});


    $('#slideshow-content img').click(function (){
      document.location.href = $('#slideshow-slide img').attr('rel');
    }).css('cursor', 'pointer');


$(function () {
    $('#slideshow-slide-jeannette').cycle({
        fx: 'scrollHorz',
        speed: 'slow',
        timeout: 0,
        pager: '#nav-jeannette',
        pagerAnchorBuilder: function (idx, slide) {
            // return selector string for existing anchor 
            return '#nav-jeannette li:eq(' + idx + ') a';
        }
    });
});



$(function () {

    $('a[href=#top]').click(function () {
        $('html, body').animate({
            scrollTop: 0
        }, 'slow');
        return false;
    });
});


$(function () {

    $('a[href=#contact]').click(function () {
        $('html, body').animate({
            scrollTop: 1000
        }, 'slow').delay(400);
        $('#email').addClass('.contact');
        return false;
    });
});


$(function () {
    $('.clearme').each(function () {
        var defaultVal = $(this).attr('value');
        $(this).focus(function () {
            if ($(this).val() == defaultVal) {
                $(this).removeClass('active').val('');
            }
        }).blur(function () {
            if ($(this).val() == '') {
                $(this).addClass('active').val(defaultVal);
            }
        });
    });
});

$(function () {
    $("#accordion").accordion();
});




$(function () {
$("#product-added").delay(1000).fadeOut("slow");
});



