<!-- By Dylan Wagstaff, http://www.alohatechsupport.net -->
function theRotator() {
	//Set the opacity of all images to 0
	$('div#rotator ul li').css({opacity: 0.0});
	
	//Get the first image and display it (gets set to full opacity)
	$('div#rotator ul li:first').css({opacity: 1.0});
		
	//Call the rotator function to run the slideshow, 6000 = change to next image after 6 seconds
	setInterval('rotate()',4000);
	
}

function rotate() {	
	//Get the first image
	var current = ($('div#rotator ul li.show')?  $('div#rotator ul li.show') : $('div#rotator ul li:first'));

	//Get next image, when it reaches the end, rotate it back to the first image
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator ul li:first') :current.next()) : $('div#rotator ul li:first'));	
	
	//Set the fade in effect for the next image, the show class has higher z-index
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);

	//Hide the current image
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
	
}


<!-- ADDoN Shadows and Thumbs by Christian Pothmann, http://www.liquidvision.net -->
function theRotator2() {
	if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
		$('div#rotator2 ul li').css({opacity: 0.0});
		$('div#rotator2 ul li').hide();
		$('div#rotator2').show();
	}
	else {
		$('div#rotator2 ul li').css({opacity: 0.0});
		$('div#rotator2').show();
	}
	
	var current = ($('div#rotator2 ul li.show')?  $('div#rotator2 ul li.show') : $('div#rotator2 ul li:first'));
	if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
		current.css({opacity: 1.0});
		current.show();
	}
	else {
		current.css({opacity: 1.0});
	}
	
	var w = current.width(); $('div#rotator2').css('width', w+'px');
	
	rotate2_start();
}

function rotate2() {	
	var current = ($('div#rotator2 ul li.show')?  $('div#rotator2 ul li.show') : $('div#rotator2 ul li:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator2 ul li:first') :current.next()) : $('div#rotator2 ul li:first'));	
	
	var w = next.width(); $('div#rotator2').animate({width:w+'px'}, 500);

	if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
		next.css({opacity: 0.0});
		next.show();
		next.addClass('show')
		.animate({opacity: 1.0}, 1000);
	}
	else {
		next.css({opacity: 0.0})
		.addClass('show')
		.animate({opacity: 1.0}, 1000);
	}
	
/*next.css('z-index', 100);
$("#imgZoom2").css('z-index', 1000);
$("#rotator2").css('z-index', 1050);
$("#bla").css('z-index', 1100);*/

	if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
		current.animate({opacity: 0.0}, 1000)
		.removeClass('show').hide();
	}
	else {
		current.animate({opacity: 0.0}, 1000)
		.removeClass('show');
	}
}

function rotate2_zoom(id) {
	if(window.myTimer) clearInterval(window.myTimer);

	var current = ($('div#rotator2 ul li.show')?  $('div#rotator2 ul li.show') : $('div#rotator2 ul li:first'));
	var next = $('div#rotator2 ul li#zoom_'+id);
	if(current.attr('id') == next.attr('id')) return true;
	
	var w = next.width(); $('div#rotator2').animate({width:w+'px'}, 200);

	if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
		next.css({opacity: 0.0})
		.addClass('show')
		.animate({opacity: 1.0}, 500).show();
	}
	else {
		next.css({opacity: 0.0})
		.addClass('show')
		.animate({opacity: 1.0}, 500);
	}

	if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
		current.animate({opacity: 0.0}, 500)
		.removeClass('show').hide();	
	}
	else {
		current.animate({opacity: 0.0}, 500)
		.removeClass('show');
	}
}

function rotate2_start() {
	if(window.myTimer) clearInterval(window.myTimer);
	window.myTimer = setInterval('rotate2()',3000);
}

function rotate2_stop() {
	if(window.myTimer) clearInterval(window.myTimer);
}

