// slide the latest homes
function slideHomes(dir){
	// work out the width and x
	var
		holder_width=parseInt($('latesthomes_imgs').getStyle('width').replace("px",""))
		container_width=parseInt($('latesthomes_c').getStyle('width').replace("px",""))
		scroll_x=parseInt(holder_width-container_width)
		holder_left=$('latesthomes_imgs').getStyle('left')
		holder_left_clean=container_width;
	if(holder_left){holder_left_clean=parseInt(holder_left.replace("px","").replace("-",""))+container_width}
	// what way do we scroll and by how far
	if(dir){var scroll_value=-container_width;scroll_value=scroll_value-4}else{var scroll_value=container_width;scroll_value=scroll_value+4}
	// disable back
	if(holder_left=='-420px' && !dir){
		$('latesthomes_hide_0').show();
		$('latesthomes_show_0').hide();
	}else{
		$('latesthomes_hide_0').hide();
		$('latesthomes_show_0').show();		
	}// disable fwd
	if(holder_left_clean>scroll_x && dir){
		$('latesthomes_hide_1').show();
		$('latesthomes_show_1').hide();
	}else{
		$('latesthomes_hide_1').hide();
		$('latesthomes_show_1').show();		
	}
	new Effect.Parallel([
		new Effect.Move('latesthomes_imgs', { sync: true, x: scroll_value, y: 0, mode: 'relative' })
	], { 
		duration: 0.8
	});
}