var img_loaded = 0;
var imgs = Array();
var img = null;
var act_img = 0;

function slideshow()
{
	/*
	$.get(path + 'data/photos.xml', function(xml){
		var length = $('img',xml).length;		
		$('img',xml).each(function(){
			img = new Image();
			$(img).bind('load',function(){
				img_loaded++;
				if(img_loaded == length)
				{
					$('#slideshow').attr('class','loaded');
					show();
				}
			});
			$(img).attr('src',$(this).text());	
			imgs.push($(this).text());
			$('#slideshow').append('<img src=' + $(this).text() + ' width="265" height="190" class="hidden">');
		})	
	});
	*/
}

function show()
{
	if(act_img != img_loaded-1) act_img++;
	else act_img = 0;
	$('#slideshow img').hide();
	$('#slideshow img').eq(act_img).fadeIn(700);	
	setTimeout(function(){			
		show();		
	},10000)	
}