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

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

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

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

	if ($.browser.msie && $.browser.version < 9) {
		$active
			.hide()
			.removeClass('active last-active');
		$next
			.show()
			.addClass('active');
	}else{
	    $next.css({opacity: 0.0})
	        .addClass('active')
	        .animate({opacity: 1.0}, 1200, function() {
	            $active.removeClass('active last-active');
	        });
	}
}

function slideSwitch2() {
    var $active = $('#slideshow2 IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow2 IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow2 IMG:first');

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

	if ($.browser.msie && $.browser.version < 9) {
		$active
			.hide()
			.removeClass('active last-active');
		$next
			.show()
			.addClass('active');
	}else{
	    $next.css({opacity: 0.0})
	        .addClass('active')
	        .animate({opacity: 1.0}, 1200, function() {
	            $active.removeClass('active last-active');
	        });
	}
}

/**
 *
 * @access public
 * @return void
 **/
$(function() {
    setInterval("slideSwitch()", 10000 );
});

function startSlide2(){
	setInterval( "slideSwitch2()", 10000 );
}

setTimeout("startSlide2()",2000);
