function slider() {
	
	$('#gallery .slide').css({left: 706,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: -706}, 1000)
	.animate({opacity: 0.0}, 0)
	.animate({left: 706})
	.removeAttr('id');
	
	
	next.css({opacity: 1.0})
	.animate({left: 0}, 1000)
	.attr('id', 'show');
	
}