function slider() {
	
	$('#gallery .slide').css({left: 346,opacity: 0.0});
	$('#gallery .slide:first').css({left: 0,opacity: 1.0});
	setInterval('theslides()',6000);
	
}

function theslides() {
	
	var current = ($('#gallery .slide#show')?  $('#gallery .slide#show') : $('#gallery .slide:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('clear')) ? $('#gallery .slide:first') : current.next()) : $('#gallery .slide:first'));	

	current.animate({left: -346}, 1000)
	.animate({opacity: 0.0}, 0)
	.animate({left: 346})
	.removeAttr('id');
	
	
	next.css({opacity: 1.0})
	.animate({left: 0}, 1000)
	.attr('id', 'show');
	
}

function uploadProgress() {
	document.getElementById('loading-info').style.display='block';
}
function resetForm() {
	if(document.getElementById('loading-info').style.display=='block')
	{
		//alert("activated 1");
		window.location.reload();
	}
}
