function slideSwitch_bal() {
	
	if ($("#slideshow_bal").hasClass("hover")){
		return;
	}
	
    var $active = $('#slideshow_bal DIV.active');

    if ( $active.length == 0 ) $active = $('#slideshow_bal DIV:last');

    // use this to pull the divs in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow_bal DIV:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 500, function() {
            $active.removeClass('active last-active');
        });
}


function slideSwitch_jobb() {
	
	if ($("#slideshow_jobb").hasClass("hover")){
		return;
	}
	
    var $active = $('#slideshow_jobb DIV.active');

    if ( $active.length == 0 ) $active = $('#slideshow_jobb DIV:last');

    // use this to pull the divs in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow_jobb DIV:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 500, function() {
            $active.removeClass('active last-active');
        });
}


$(document).ready(function() {
	
$("#slideshow_jobb").hover(
  function () {
    $("#slideshow_jobb").addClass("hover");
  },
  function () {
    $("#slideshow_jobb").removeClass("hover");
  }
);

$("#slideshow_bal").hover(
  function () {
    $("#slideshow_bal").addClass("hover");
  },
  function () {
    $("#slideshow_bal").removeClass("hover");
  }
);	
	setInterval( "slideSwitch_bal()", 3000 );
    setInterval( "slideSwitch_jobb()", 5000 );
});
