$(document).ready(function() {
  var class_to_url = {
    'CoreAdditionTests' : 'http://api.three20.info/interface_core_addition_tests.html',
    'CoreGlobalTests' : 'http://api.three20.info/interface_core_global_tests.html',
    'GSEventFake' : 'http://api.three20.info/interface_g_s_event_fake.html',
    'NSArray' : 'http://api.three20.info/class_n_s_array.html',
    'NSData' : 'http://api.three20.info/class_n_s_data.html',
    'NSDate' : 'http://api.three20.info/class_n_s_date.html',
    'NSMutableArray' : 'http://api.three20.info/class_n_s_mutable_array.html',
    'NSMutableDictionary' : 'http://api.three20.info/class_n_s_mutable_dictionary.html',
    'NSObject' : 'http://api.three20.info/class_n_s_object.html',
    'NSString' : 'http://api.three20.info/class_n_s_string.html',
    'TTActionSheet' : 'http://api.three20.info/interface_t_t_action_sheet.html',
    'TTActionSheetController' : 'http://api.three20.info/interface_t_t_action_sheet_controller.html',
    'TTActionSheetControllerDelegate-p' : 'http://api.three20.info/protocol_t_t_action_sheet_controller_delegate-p.html',
    'TTActivityLabel' : 'http://api.three20.info/interface_t_t_activity_label.html',
    'TTAlertView' : 'http://api.three20.info/interface_t_t_alert_view.html',
    'TTAlertViewController' : 'http://api.three20.info/interface_t_t_alert_view_controller.html',
    'TTAlertViewControllerDelegate-p' : 'http://api.three20.info/protocol_t_t_alert_view_controller_delegate-p.html',
    'TTBevelBorderStyle' : 'http://api.three20.info/interface_t_t_bevel_border_style.html',
    'TTBlendStyle' : 'http://api.three20.info/interface_t_t_blend_style.html',
    'TTBoxStyle' : 'http://api.three20.info/interface_t_t_box_style.html',
    'TTButton' : 'http://api.three20.info/interface_t_t_button.html',
    'TTButtonBar' : 'http://api.three20.info/interface_t_t_button_bar.html',
    'TTButtonContent' : 'http://api.three20.info/interface_t_t_button_content.html',
    'TTContentStyle' : 'http://api.three20.info/interface_t_t_content_style.html',
    'TTDefaultStyleSheet' : 'http://api.three20.info/interface_t_t_default_style_sheet.html',
    'TTErrorView' : 'http://api.three20.info/interface_t_t_error_view.html',
    'TTFlowLayout' : 'http://api.three20.info/interface_t_t_flow_layout.html',
    'TTFourBorderStyle' : 'http://api.three20.info/interface_t_t_four_border_style.html',
    'TTGridLayout' : 'http://api.three20.info/interface_t_t_grid_layout.html',
    'TTHighlightBorderStyle' : 'http://api.three20.info/interface_t_t_highlight_border_style.html',
    'TTImageLayer' : 'http://api.three20.info/interface_t_t_image_layer.html',
    'TTImageStyle' : 'http://api.three20.info/interface_t_t_image_style.html',
    'TTImageView' : 'http://api.three20.info/interface_t_t_image_view.html',
    'TTImageViewDelegate-p' : 'http://api.three20.info/protocol_t_t_image_view_delegate-p.html',
    'TTInnerShadowStyle' : 'http://api.three20.info/interface_t_t_inner_shadow_style.html',
    'TTInsetStyle' : 'http://api.three20.info/interface_t_t_inset_style.html',
    'TTLabel' : 'http://api.three20.info/interface_t_t_label.html',
    'TTLauncherButton' : 'http://api.three20.info/interface_t_t_launcher_button.html',
    'TTLauncherItem' : 'http://api.three20.info/interface_t_t_launcher_item.html',
    'TTLauncherScrollView' : 'http://api.three20.info/interface_t_t_launcher_scroll_view.html',
    'TTLauncherView' : 'http://api.three20.info/interface_t_t_launcher_view.html',
    'TTLauncherViewDelegate-p' : 'http://api.three20.info/protocol_t_t_launcher_view_delegate-p.html',
    'TTLayout' : 'http://api.three20.info/interface_t_t_layout.html',
    'TTLinearGradientBorderStyle' : 'http://api.three20.info/interface_t_t_linear_gradient_border_style.html',
    'TTLinearGradientFillStyle' : 'http://api.three20.info/interface_t_t_linear_gradient_fill_style.html',
    'TTLink' : 'http://api.three20.info/interface_t_t_link.html',
    'TTListDataSource' : 'http://api.three20.info/interface_t_t_list_data_source.html',
    'TTMarkupStripper' : 'http://api.three20.info/interface_t_t_markup_stripper.html',
    'TTMaskStyle' : 'http://api.three20.info/interface_t_t_mask_style.html',
    'TTMessageController' : 'http://api.three20.info/interface_t_t_message_controller.html',
    'TTMessageControllerDelegate-p' : 'http://api.three20.info/protocol_t_t_message_controller_delegate-p.html',
    'TTMessageField' : 'http://api.three20.info/interface_t_t_message_field.html',
    'TTMessageRecipientField' : 'http://api.three20.info/interface_t_t_message_recipient_field.html',
    'TTMessageSubjectField' : 'http://api.three20.info/interface_t_t_message_subject_field.html',
    'TTMessageTextField' : 'http://api.three20.info/interface_t_t_message_text_field.html',
    'TTModel' : 'http://api.three20.info/interface_t_t_model.html',
    'TTModel-p' : 'http://api.three20.info/protocol_t_t_model-p.html',
    'TTModelDelegate-p' : 'http://api.three20.info/protocol_t_t_model_delegate-p.html',
    'TTModelViewController' : 'http://api.three20.info/interface_t_t_model_view_controller.html',
    'TTNavigator' : 'http://api.three20.info/interface_t_t_navigator.html',
    'TTNavigatorDelegate-p' : 'http://api.three20.info/protocol_t_t_navigator_delegate-p.html',
    'TTNavigatorWindow' : 'http://api.three20.info/interface_t_t_navigator_window.html',
    'TTPageControl' : 'http://api.three20.info/interface_t_t_page_control.html',
    'TTPartStyle' : 'http://api.three20.info/interface_t_t_part_style.html',
    'TTPhoto-p' : 'http://api.three20.info/protocol_t_t_photo-p.html',
    'TTPhotoSource-p' : 'http://api.three20.info/protocol_t_t_photo_source-p.html',
    'TTPhotoView' : 'http://api.three20.info/interface_t_t_photo_view.html',
    'TTPhotoViewController' : 'http://api.three20.info/interface_t_t_photo_view_controller.html',
    'TTPickerTextField' : 'http://api.three20.info/interface_t_t_picker_text_field.html',
    'TTPickerTextFieldDelegate-p' : 'http://api.three20.info/protocol_t_t_picker_text_field_delegate-p.html',
    'TTPickerViewCell' : 'http://api.three20.info/interface_t_t_picker_view_cell.html',
    'TTPopupView' : 'http://api.three20.info/interface_t_t_popup_view.html',
    'TTPopupViewController' : 'http://api.three20.info/interface_t_t_popup_view_controller.html',
    'TTPostController' : 'http://api.three20.info/interface_t_t_post_controller.html',
    'TTPostControllerDelegate-p' : 'http://api.three20.info/protocol_t_t_post_controller_delegate-p.html',
    'TTRectangleShape' : 'http://api.three20.info/interface_t_t_rectangle_shape.html',
    'TTRecursiveProgress' : 'http://api.three20.info/interface_t_t_recursive_progress.html',
    'TTRecursiveProgressDelegate-p' : 'http://api.three20.info/protocol_t_t_recursive_progress_delegate-p.html',
    'TTReflectiveFillStyle' : 'http://api.three20.info/interface_t_t_reflective_fill_style.html',
    'TTRequestLoader' : 'http://api.three20.info/interface_t_t_request_loader.html',
    'TTRoundedLeftArrowShape' : 'http://api.three20.info/interface_t_t_rounded_left_arrow_shape.html',
    'TTRoundedRectangleShape' : 'http://api.three20.info/interface_t_t_rounded_rectangle_shape.html',
    'TTRoundedRightArrowShape' : 'http://api.three20.info/interface_t_t_rounded_right_arrow_shape.html',
    'TTScrollView' : 'http://api.three20.info/interface_t_t_scroll_view.html',
    'TTScrollViewDataSource-p' : 'http://api.three20.info/protocol_t_t_scroll_view_data_source-p.html',
    'TTScrollViewDelegate-p' : 'http://api.three20.info/protocol_t_t_scroll_view_delegate-p.html',
    'TTSearchBar' : 'http://api.three20.info/interface_t_t_search_bar.html',
    'TTSearchDisplayController' : 'http://api.three20.info/interface_t_t_search_display_controller.html',
    'TTSearchlightLabel' : 'http://api.three20.info/interface_t_t_searchlight_label.html',
    'TTSearchTextField' : 'http://api.three20.info/interface_t_t_search_text_field.html',
    'TTSearchTextFieldDelegate-p' : 'http://api.three20.info/protocol_t_t_search_text_field_delegate-p.html',
    'TTSearchTextFieldInternal' : 'http://api.three20.info/interface_t_t_search_text_field_internal.html',
    'TTSectionedDataSource' : 'http://api.three20.info/interface_t_t_sectioned_data_source.html',
    'TTShadowStyle' : 'http://api.three20.info/interface_t_t_shadow_style.html',
    'TTShape' : 'http://api.three20.info/interface_t_t_shape.html',
    'TTShapeStyle' : 'http://api.three20.info/interface_t_t_shape_style.html',
    'TTSolidBorderStyle' : 'http://api.three20.info/interface_t_t_solid_border_style.html',
    'TTSolidFillStyle' : 'http://api.three20.info/interface_t_t_solid_fill_style.html',
    'TTSpeechBubbleShape' : 'http://api.three20.info/interface_t_t_speech_bubble_shape.html',
    'TTStyle' : 'http://api.three20.info/interface_t_t_style.html',
    'TTStyleContext' : 'http://api.three20.info/interface_t_t_style_context.html',
    'TTStyledBlock' : 'http://api.three20.info/interface_t_t_styled_block.html',
    'TTStyledBoldNode' : 'http://api.three20.info/interface_t_t_styled_bold_node.html',
    'TTStyledBoxFrame' : 'http://api.three20.info/interface_t_t_styled_box_frame.html',
    'TTStyledButtonNode' : 'http://api.three20.info/interface_t_t_styled_button_node.html',
    'TTStyleDelegate-p' : 'http://api.three20.info/protocol_t_t_style_delegate-p.html',
    'TTStyledElement' : 'http://api.three20.info/interface_t_t_styled_element.html',
    'TTStyledFrame' : 'http://api.three20.info/interface_t_t_styled_frame.html',
    'TTStyledImageFrame' : 'http://api.three20.info/interface_t_t_styled_image_frame.html',
    'TTStyledImageNode' : 'http://api.three20.info/interface_t_t_styled_image_node.html',
    'TTStyledInline' : 'http://api.three20.info/interface_t_t_styled_inline.html',
    'TTStyledInlineBlock' : 'http://api.three20.info/interface_t_t_styled_inline_block.html',
    'TTStyledInlineFrame' : 'http://api.three20.info/interface_t_t_styled_inline_frame.html',
    'TTStyledItalicNode' : 'http://api.three20.info/interface_t_t_styled_italic_node.html',
    'TTStyledLayout' : 'http://api.three20.info/interface_t_t_styled_layout.html',
    'TTStyledLineBreakNode' : 'http://api.three20.info/interface_t_t_styled_line_break_node.html',
    'TTStyledLinkNode' : 'http://api.three20.info/interface_t_t_styled_link_node.html',
    'TTStyledNode' : 'http://api.three20.info/interface_t_t_styled_node.html',
    'TTStyledText' : 'http://api.three20.info/interface_t_t_styled_text.html',
    'TTStyledTextDelegate-p' : 'http://api.three20.info/protocol_t_t_styled_text_delegate-p.html',
    'TTStyledTextFrame' : 'http://api.three20.info/interface_t_t_styled_text_frame.html',
    'TTStyledTextLabel' : 'http://api.three20.info/interface_t_t_styled_text_label.html',
    'TTStyledTextNode' : 'http://api.three20.info/interface_t_t_styled_text_node.html',
    'TTStyledTextParser' : 'http://api.three20.info/interface_t_t_styled_text_parser.html',
    'TTStyledTextTableCell' : 'http://api.three20.info/interface_t_t_styled_text_table_cell.html',
    'TTStyledTextTableItemCell' : 'http://api.three20.info/interface_t_t_styled_text_table_item_cell.html',
    'TTStyleSheet' : 'http://api.three20.info/interface_t_t_style_sheet.html',
    'TTTab' : 'http://api.three20.info/interface_t_t_tab.html',
    'TTTabBar' : 'http://api.three20.info/interface_t_t_tab_bar.html',
    'TTTabDelegate-p' : 'http://api.three20.info/protocol_t_t_tab_delegate-p.html',
    'TTTabGrid' : 'http://api.three20.info/interface_t_t_tab_grid.html',
    'TTTabItem' : 'http://api.three20.info/interface_t_t_tab_item.html',
    'TTTableActivityItem' : 'http://api.three20.info/interface_t_t_table_activity_item.html',
    'TTTableActivityItemCell' : 'http://api.three20.info/interface_t_t_table_activity_item_cell.html',
    'TTTableButton' : 'http://api.three20.info/interface_t_t_table_button.html',
    'TTTableCaptionItem' : 'http://api.three20.info/interface_t_t_table_caption_item.html',
    'TTTableCaptionItemCell' : 'http://api.three20.info/interface_t_t_table_caption_item_cell.html',
    'TTTableControlCell' : 'http://api.three20.info/interface_t_t_table_control_cell.html',
    'TTTableControlItem' : 'http://api.three20.info/interface_t_t_table_control_item.html',
    'TTTableFlushViewCell' : 'http://api.three20.info/interface_t_t_table_flush_view_cell.html',
    'TTTableGrayTextItem' : 'http://api.three20.info/interface_t_t_table_gray_text_item.html',
    'TTTableHeaderView' : 'http://api.three20.info/interface_t_t_table_header_view.html',
    'TTTableImageItem' : 'http://api.three20.info/interface_t_t_table_image_item.html',
    'TTTableImageItemCell' : 'http://api.three20.info/interface_t_t_table_image_item_cell.html',
    'TTTableItem' : 'http://api.three20.info/interface_t_t_table_item.html',
    'TTTableLink' : 'http://api.three20.info/interface_t_t_table_link.html',
    'TTTableLinkedItem' : 'http://api.three20.info/interface_t_t_table_linked_item.html',
    'TTTableLinkedItemCell' : 'http://api.three20.info/interface_t_t_table_linked_item_cell.html',
    'TTTableLongTextItem' : 'http://api.three20.info/interface_t_t_table_long_text_item.html',
    'TTTableMessageItem' : 'http://api.three20.info/interface_t_t_table_message_item.html',
    'TTTableMessageItemCell' : 'http://api.three20.info/interface_t_t_table_message_item_cell.html',
    'TTTableMoreButton' : 'http://api.three20.info/interface_t_t_table_more_button.html',
    'TTTableMoreButtonCell' : 'http://api.three20.info/interface_t_t_table_more_button_cell.html',
    'TTTableRightCaptionItem' : 'http://api.three20.info/interface_t_t_table_right_caption_item.html',
    'TTTableRightCaptionItemCell' : 'http://api.three20.info/interface_t_t_table_right_caption_item_cell.html',
    'TTTableRightImageItem' : 'http://api.three20.info/interface_t_t_table_right_image_item.html',
    'TTTableStyledTextItem' : 'http://api.three20.info/interface_t_t_table_styled_text_item.html',
    'TTTableSubtextItem' : 'http://api.three20.info/interface_t_t_table_subtext_item.html',
    'TTTableSubtextItemCell' : 'http://api.three20.info/interface_t_t_table_subtext_item_cell.html',
    'TTTableSubtitleItem' : 'http://api.three20.info/interface_t_t_table_subtitle_item.html',
    'TTTableSubtitleItemCell' : 'http://api.three20.info/interface_t_t_table_subtitle_item_cell.html',
    'TTTableSummaryItem' : 'http://api.three20.info/interface_t_t_table_summary_item.html',
    'TTTableTextItem' : 'http://api.three20.info/interface_t_t_table_text_item.html',
    'TTTableTextItemCell' : 'http://api.three20.info/interface_t_t_table_text_item_cell.html',
    'TTTableView' : 'http://api.three20.info/interface_t_t_table_view.html',
    'TTTableViewCell' : 'http://api.three20.info/interface_t_t_table_view_cell.html',
    'TTTableViewController' : 'http://api.three20.info/interface_t_t_table_view_controller.html',
    'TTTableViewDataSource' : 'http://api.three20.info/interface_t_t_table_view_data_source.html',
    'TTTableViewDataSource-p' : 'http://api.three20.info/protocol_t_t_table_view_data_source-p.html',
    'TTTableViewDelegate' : 'http://api.three20.info/interface_t_t_table_view_delegate.html',
    'TTTableViewDelegate-p' : 'http://api.three20.info/protocol_t_t_table_view_delegate-p.html',
    'TTTableViewGroupedVarHeightDelegate' : 'http://api.three20.info/interface_t_t_table_view_grouped_var_height_delegate.html',
    'TTTableViewInterstialDataSource' : 'http://api.three20.info/interface_t_t_table_view_interstial_data_source.html',
    'TTTableViewItem' : 'http://api.three20.info/interface_t_t_table_view_item.html',
    'TTTableViewPlainDelegate' : 'http://api.three20.info/interface_t_t_table_view_plain_delegate.html',
    'TTTableViewPlainVarHeightDelegate' : 'http://api.three20.info/interface_t_t_table_view_plain_var_height_delegate.html',
    'TTTableViewVarHeightDelegate' : 'http://api.three20.info/interface_t_t_table_view_var_height_delegate.html',
    'TTTabStrip' : 'http://api.three20.info/interface_t_t_tab_strip.html',
    'TTTextBarController' : 'http://api.three20.info/interface_t_t_text_bar_controller.html',
    'TTTextBarDelegate-p' : 'http://api.three20.info/protocol_t_t_text_bar_delegate-p.html',
    'TTTextEditor' : 'http://api.three20.info/interface_t_t_text_editor.html',
    'TTTextEditorDelegate-p' : 'http://api.three20.info/protocol_t_t_text_editor_delegate-p.html',
    'TTTextEditorInternal' : 'http://api.three20.info/interface_t_t_text_editor_internal.html',
    'TTTextStyle' : 'http://api.three20.info/interface_t_t_text_style.html',
    'TTTextView' : 'http://api.three20.info/interface_t_t_text_view.html',
    'TTThumbsDataSource' : 'http://api.three20.info/interface_t_t_thumbs_data_source.html',
    'TTThumbsTableViewCell' : 'http://api.three20.info/interface_t_t_thumbs_table_view_cell.html',
    'TTThumbsTableViewCellDelegate-p' : 'http://api.three20.info/protocol_t_t_thumbs_table_view_cell_delegate-p.html',
    'TTThumbsViewController' : 'http://api.three20.info/interface_t_t_thumbs_view_controller.html',
    'TTThumbsViewControllerDelegate-p' : 'http://api.three20.info/protocol_t_t_thumbs_view_controller_delegate-p.html',
    'TTThumbView' : 'http://api.three20.info/interface_t_t_thumb_view.html',
    'TTUnclippedView' : 'http://api.three20.info/interface_t_t_unclipped_view.html',
    'TTURLCache' : 'http://api.three20.info/interface_t_t_u_r_l_cache.html',
    'TTURLDataResponse' : 'http://api.three20.info/interface_t_t_u_r_l_data_response.html',
    'TTURLGeneratorPattern' : 'http://api.three20.info/interface_t_t_u_r_l_generator_pattern.html',
    'TTURLImageResponse' : 'http://api.three20.info/interface_t_t_u_r_l_image_response.html',
    'TTURLLiteral' : 'http://api.three20.info/interface_t_t_u_r_l_literal.html',
    'TTURLMap' : 'http://api.three20.info/interface_t_t_u_r_l_map.html',
    'TTURLNavigatorPattern' : 'http://api.three20.info/interface_t_t_u_r_l_navigator_pattern.html',
    'TTURLObject-p' : 'http://api.three20.info/protocol_t_t_u_r_l_object-p.html',
    'TTURLPattern' : 'http://api.three20.info/interface_t_t_u_r_l_pattern.html',
    'TTURLPatternText-p' : 'http://api.three20.info/protocol_t_t_u_r_l_pattern_text-p.html',
    'TTURLRequest' : 'http://api.three20.info/interface_t_t_u_r_l_request.html',
    'TTURLRequestDelegate-p' : 'http://api.three20.info/protocol_t_t_u_r_l_request_delegate-p.html',
    'TTURLRequestModel' : 'http://api.three20.info/interface_t_t_u_r_l_request_model.html',
    'TTURLRequestQueue' : 'http://api.three20.info/interface_t_t_u_r_l_request_queue.html',
    'TTURLResponse-p' : 'http://api.three20.info/protocol_t_t_u_r_l_response-p.html',
    'TTURLSelector' : 'http://api.three20.info/interface_t_t_u_r_l_selector.html',
    'TTURLWildcard' : 'http://api.three20.info/interface_t_t_u_r_l_wildcard.html',
    'TTUserInfo' : 'http://api.three20.info/interface_t_t_user_info.html',
    'TTView' : 'http://api.three20.info/interface_t_t_view.html',
    'TTViewController' : 'http://api.three20.info/interface_t_t_view_controller.html',
    'TTWebController' : 'http://api.three20.info/interface_t_t_web_controller.html',
    'TTWebControllerDelegate-p' : 'http://api.three20.info/protocol_t_t_web_controller_delegate-p.html',
    'TTYouTubeView' : 'http://api.three20.info/interface_t_t_you_tube_view.html',
    'UIAdditionTests' : 'http://api.three20.info/interface_u_i_addition_tests.html',
    'UIColor' : 'http://api.three20.info/class_u_i_color.html',
    'UIEvent' : 'http://api.three20.info/class_u_i_event.html',
    'UIEventFake' : 'http://api.three20.info/interface_u_i_event_fake.html',
    'UIFont' : 'http://api.three20.info/class_u_i_font.html',
    'UIGlobalTests' : 'http://api.three20.info/interface_u_i_global_tests.html',
    'UIImage' : 'http://api.three20.info/class_u_i_image.html',
    'UINavigationController' : 'http://api.three20.info/class_u_i_navigation_controller.html',
    'UITabBarController' : 'http://api.three20.info/class_u_i_tab_bar_controller.html',
    'UITableView' : 'http://api.three20.info/class_u_i_table_view.html',
    'UIToolbar' : 'http://api.three20.info/class_u_i_toolbar.html',
    'UITouch' : 'http://api.three20.info/class_u_i_touch.html',
    'UIView' : 'http://api.three20.info/class_u_i_view.html',
    'UIViewController' : 'http://api.three20.info/class_u_i_view_controller.html',
    'UIWebView' : 'http://api.three20.info/class_u_i_web_view.html',
    'UIWindow' : 'http://api.three20.info/class_u_i_window.html'
  };
  var class_names = [];
  for( var key in class_to_url ) {
    class_names.push(key);
  }
  $("#globallookup")
    .placeholder()
    .autocomplete(class_names, {
      autoFill: false,
      mustMatch: false,
      matchContains: true,
      width: '250px'
    })
    .result(function(event, data, formatted) {
      window.location = class_to_url[formatted];
    });
});
