ImagePicked = function( the_element, option_hash ){
	var link_to 	= option_hash.link_to;
	var img_location= option_hash.img_location;
	var thumb_picked= option_hash.picked;
	
	/*Remove all the classes from the thumbnail container*/
	for( i = 1; i < 5; i++ ){
		$( 'gui_thumbnails' ).removeClassName( 'thumb_0' + i + "_selected" );
	}
	/*Add a class to the thumbnail container to tell us which thumnail was picked*/
	$( 'gui_thumbnails' ).addClassName( thumb_picked );
	
	element_children = the_element.descendants( );
	element_children[ 0 ].src	= img_location;
}