<!--
//var imgsrv = "../tsviewer2/";
var imgsrv = "http://static.tsviewer.com/";


function tourItem(current, next) {
	
	
	var imgsrc = imgsrv + "images/tour/20091218_tour_image_"+next+".jpg";
	
	jQuery('<img />').attr('src', imgsrc) // creates a image DOM element and sets src attribute, thus preloading the image
		.load(function(){ // load event, callback function, it continues the code execution when it has completed loading
			jQuery("#tourimage").fadeOut(500, function(){ // fadeOut and callback function with attribute src change after fadeout has completed
				jQuery("#tourimage").attr( { src: imgsrc} );
			});
			jQuery("#tourimage").fadeIn(500);
		});


	jQuery("#tour" + current).slideUp(500);
	jQuery("#tour" + next).slideDown(500);


}


//-->