function slideSwitch(target) {
    var $active = $(target+' img.active');

    if ( $active.length == 0 ) $active = $(target+' img:last');

    var $next =  $active.next().length ? $active.next()
        : $(target+' img: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('#home_image1')", 5000 );
		setInterval( "slideSwitch('#home_image4')", 12000 );
		setInterval( "slideSwitch('#press_image1')", 7000 );
});





