$(document).ready(function(){

	Cufon.replace('.cu', { color:'#666',fontSize:'12',  hover: { color: '#000', textShadow: 'none'}});
	Cufon.replace('h1', { fontSize:'22', color: '#4e4654', textShadow: 'none', hover: { strong: true, color: '#8B9C84',}});
	Cufon.replace('.pro-font', { fontSize:'18', color: '#4e4654', textShadow: 'none'});
	Cufon.replace('h2', { fontSize:'18', color: '#4e4654', textShadow: 'none',});
	Cufon.replace('.testimonial', { fontSize:'18', color: '#4e4654', textShadow: 'none'});
	Cufon.replace('.ph', { fontSize:'22', color: '#aaa', textShadow: 'none'});

});

function slideSwitch() {
    var $active = $('#slideshow DIV.active');

    if ( $active.length == 0 ) $active = $('#slideshow DIV:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow DIV:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 4000 );
});

