switch back_window or close_window link in animal_details.rhtml, by parameter