﻿$(document).ready(function () {
	
	/*
	// Standard Fade - Homepage Testimonials
    $('.home_testimonials_slideshow').cycle({
        fx: 'fade',
        speed: 1500,
        timeout: 8000,
        random: true
    });
	*/
	
	
    // Cycle Fade without Opacity Issues
    $('.home_header_slideshow').cycle({
        timeout: 10000,
        fx: 'custom',
        after: function (curr, next, opts) {
            $(curr).css('zIndex', opts.slideCount + (opts.rev ? 1 : 0));
            $(next).css('zIndex', opts.slideCount + (opts.rev ? 0 : 1));
        },
        cssBefore: { opacity: 1, display: 'block' },
        animOut: { opacity: 0 },
        animIn: { opacity: 1 }
    });
	
	/*
	// Newsletter Sign Up Input Style Swap / Text Erase
	$(function() {
            $('.newsletter_input').each(function() {
                var text = $(this).val();

                $(this).focus(function() {
                    if ($(this).val() == text) {
                        $(this).addClass("newsletter_input_active").val("");
                    }
                });

                $(this).blur(function() {
                    if ($(this).val() == "") {
                        $(this).removeClass("newsletter_input_active").val(text);
                    }
                });
            });
        });
	*/
	
	

 });
