
var helpTexts = new Object();
helpTexts['1default'] = "Please provide your username and password to login.<br \/><br \/>The current stage of Q-Sensei Boost requires a <u>recent version<\/u> of Mozilla Firefox, Internet Explorer, Safari or Google Chrome with Adobe Flash and JavaScript enabled.";
helpTexts['1-0default'] = "Here you can manage all of your projects at a glance. To create a new project, click the &quot;+ Project&quot; button. You can then work on the project by clicking on its title. Your personal Q-Sensei search interface can be reached through the &quot;Search Interface&quot; link. The &quot;Edit&quot; and &quot;Delete&quot; links allow you to edit or completely delete a project.";
helpTexts['1-2default'] = "Describe your project. The Project Name will be displayed on your project&rsquo;s search interface.";
helpTexts['5-1-1default'] = "Edit your project. The Project Name will be displayed on your project&rsquo;s search interface.";
helpTexts['1-0-0default'] = "Please click the CHOOSE-Button to upload a file. Both CSV and XML files are allowed. The upload will start immediately. After the upload is complete, a configuration window appears, in which you can provide more information.";
helpTexts['1-0-0contenttype'] = "Please provide a content type. Use our intelligent input field to enter data easily. It completes your entry and suggests matching entries as you type.";
helpTexts['1-0-0contentprovider'] = "Source of Data, or Provider...";
helpTexts['1-0-0csvenc'] = "CSV enclosures define the structure of a CSV file. Data may look like this<br \/>\n<ol><li><em>&quot;Date&quot; , &quot;Price&quot; , &quot;VAT&quot;<\/em><\/li>\n<li><em>&#39;Date&#39; , &#39;Price&#39; , &#39;VAT&#39;<\/em><\/li>\n<li><em>Date, Price, VAT<\/em><\/li><\/ol>\nChoose the appropriate settings by clicking one of the buttons.";
helpTexts['1-0-0csvsep'] = "Choose which data field separators are used in your CSV file by clicking one of the options";
helpTexts['2-0-1default'] = "On the Data Settings page you can view and edit the data structure (content scheme) of your project.\nThe content types and fields of the content scheme are initially determined by the XML scheme that you selected while uploading a XML file or by the number and names of fields in your CSV data. There are two possible ways to view the data structure, the content type view (default) and the database view that are determined by your selection in the first column of the page.";
helpTexts['2-1-1default'] = "Add or edit a content type. Your can enter a specific label and predefine content sections.  Content sections are used to display related contents for a specific item. A content section is defined by a unique ID and a label (e.g. \"Download\" or \"View Original Source\").";
helpTexts['2-1-2default'] = "Add or edit a source. Sources are required to distinguish between different databases containing the same content type of data (e.g. multiple databases from different departments of your company which contain the same type of customer data). Only a label is required";
helpTexts['2-1-3default'] = "Add an existing source to the selected content type. Please note that only sources are shown in the selected field that are not already connected to the selected content type.";
helpTexts['2-1-4default'] = "Add an existing content type to the selected source. Please note that only content types are shown in the select field which are not already connected to the selected source.";
helpTexts['2-1-5default'] = "Add or edit a data field to a content type and provide common field settings valid for all possible sources of this content type.";
helpTexts['2-1-6default'] = "Add or edit a data field to the selected source of the selected content type and provide specific information for that source. Please note, the field will be added with default properties to the data field catalogue of the selected content type if it does not yet exist there.<br \/><br \/>\nCustom Field: Click yes if this field only exists in your Q-Sensei setting but NOT in the source file (e.g. for data preparation purposes). It will be omitted in the display of the original source of each item.<br \/><br \/>\nData Mapping: Choose the location of the data that shall be stored on this field.";
helpTexts['1-1-1xsd'] = "Specify an XSD-File. A XML Schema Definition may help us to translate your XML file structure with the given boundaries and therefor to generate a good Content-Schema.";
helpTexts['1-1-1limit'] = "Please specify the number of rows which shall be taken into account for the analysis procedure.<br \/><br \/>For heterogeneous database (many entries have structural differences) the result will be more accurat with a high amount of considerable entries, but it may take much more time.<br \/><br \/>For homogeneous database (allmost all entries have the same structure) a lower limit is recommended.<br \/><br \/>Please note: You can adjust the resulting Content-Schema in the next step according to your personal needs.";
helpTexts['1-1-1format'] = "If your XML file contains a certain format, do not hesitate to tell us! We provide a growing archive of known XML formats that help to generate a good content scheme for your database.";
helpTexts['1-1-1check'] = "We can analyze your XML-File and suggest a first Content-Schema. If you don&#39;t want to do that, please check the appropriate option";
helpTexts['2-1-7source'] = "Please enter one or more source fields by clicking \"+\" and selecting a data field from the drop down menu. Later, the first available data content is displayed, while the specified fields are prioritized descending from the top down.";
helpTexts['2-1-7prefix'] = "A prefix is set to the data in the output. This is very useful if you want to give authors or publishers a label like \"written by\" or \"published by\".";
helpTexts['2-1-7limit'] = "Here you can select how many characters or words in a field in the result list or details pages should be displayed. It is advisable to choose a higher character limit in detail pages and a smaller one in search result lists. The same setting you can also make for sidebars.";
helpTexts['3-0-1default'] = "On the Search Settings page, you can configure how your data can be searched through. It represents the index scheme that builds upon the data structure configured under Data Settings.<br \/>\nThe main view lists all index fields. Index fields represent pools of data that will actually be searched through by the search engine. They&rsquo;re usually predefined by the XML scheme you selected or by the structure of your CSV data.";
helpTexts['1-1-1default'] = "Please provide basic information so we can properly analyze the CSV-file.";
helpTexts['1-1-2default'] = "Please provide basic information so that we can properly analyze the XML file.";
helpTexts['1-0-0csvheaderrow'] = "Does the file contain a header row which specifies column titles?";
helpTexts['1-0-0csvesc'] = "Which character escapes special characters?";
helpTexts['3-1-1default'] = "Add or Edit an Indexfield.";
helpTexts['3-1-2default'] = "Here you can define what data should be searchable through the corresponding index field. <br \/>\nIt is useful to combine similar data fields from your content types under one index field so that they can be searched together. <br \/>\nFor example, books\/author and article\/author should be added to one index field so that there will be one kind on your search interface that searches through both content types (e.g. Author). The full text Index should contain most or all data fields from all of your content types as it is used by the normal search field.";
helpTexts['5-1-2default'] = "Sort<br \/>Select the index field that will be used to sort your search results. <br \/><br \/>Order<br \/>Order is directly related to Sort and simply defines the way your search results will be sorted.";
helpTexts['3-1-3sort'] = "Which index-field should be used for sorting.";
helpTexts['3-1-3order'] = "Should be sorted in ascending or descending?";
helpTexts['3-1-3partitions'] = "On how many partitions is the system running?";
helpTexts['3-1-3segments'] = "Please refer to the manual.";
helpTexts['6-0-1default'] = "Here you can see a list of all processes Q-Sensei Boost must perform to Q-Senseify your data.<br \/>\nTo run the Q-Senseification process, click the Run Engine button at the bottom of the page.<br \/>\nIf Q-Sensei Boost already functioned properly for this project in the past and no further changes were made, no process overview will be visible. <br \/>\nA link to your search interface will be shown instead.";
helpTexts['4-0-1default'] = "On the Plug-ins page, you can set up data preparation plug-ins for your project. <br \/>\nThe overview area of the plug-in page shows all information you need for your plug-ins. You can see the title of a plug-in and its configuration. Furthermore, you can configure each plug-in by clicking the appropriate link.";
helpTexts['5-0-1default'] = "Here you can make extensive visual and functional settings for your Search Interface. Set up the Search Interface as you see fit. Then choose a category and edit the options.";
helpTexts['4-1-1default'] = "You can easily add plug-ins to your project.<br \/>\nBrowse through our various plug-in categories and add one or more plug-ins at the same time by clicking the \"Add Plug-in\" link. <br \/>\nYou can add the same plug-in several times. To do so, use the Add Plug-in form as often as you need.";
helpTexts['5-1-3default'] = "In the Display Properties window, you can configure the way some crucial components of your items&#39; data will be displayed on detail pages, in search result lists and in recommendation boxes. You need to decide what data field can be considered to be a title, a date, an author, etc. Only the &quot;Title&quot; field is mandatory, all other fields are optional but provide the user with useful additional information. The maximum length of content for respective cases (see above) can be specified. Furthermore prefixes, e.g. &quot;written by&quot; can be set for authors. ";
helpTexts['startdefault'] = "Use the links at the top of the page to reach the following areas:<br \/><br \/>\n<strong>Start Engine<\/strong><br \/>\nEnter the Q-Sensei Boost Interface<br \/><br \/>\n<strong>Documentation<\/strong><br \/>\nFind guides and useful background information about the use and philosophy of the Q-Sensei Boost<br \/><br \/>\n<strong>Discussion<\/strong><br \/>\nMeet other users or developers to get help or share your thoughts about Q-Sensei Boost.";
helpTexts['2-1-6-1default'] = "Edit Data Field in Database-Content Type-Connection";
helpTexts['2-1-6-2default'] = "Edit Data Field in Databases";
helpTexts['2-1-5-1default'] = "Edit Data Field in Database-Content Type-Connection";
helpTexts['2-1-5-2default'] = "Edit Data Field in Database-Content Type-Connection";
helpTexts['5-1-4default'] = "Specify the headline of the recommendation box by entering a short text in \"label\" input field. The index you select from the drop down list defines which attribute of the selected item is the basis for the recommended items. It is possible to define several such sections, each with a different basis index.";
helpTexts['1-2-1default'] = "Please enter the URL of one or more RSS\/Atom feed(s). Be sure to use a separate line for each feed and set the interval at which the feeds should be updated.";

(function(jQuery) {

jQuery.fn.toggleHelp = function(options) 
{            
    jQuery.fn.toggleHelp.defaults = 
    {
        //
    };
	
    var opts = jQuery.extend({}, jQuery.fn.toggleHelp.defaults, options);
    var args = arguments;
		 
    return this.each(function() 
    {
        // Initialisation
        if(typeof jQuery.data(this,"toggleHelp") == "undefined")
        {
            var refObj = jQuery(this);			
			var helpID = jQuery(this).find('input.help_id').val();
			
			if(typeof(helpTexts[helpID]) != "undefined") {
				jQuery(refObj).mouseover( function() {
					jQuery('#help .default, #tb .help .default').hide();
					jQuery('#help .special, #tb .help .special').html(helpTexts[helpID]).show();
					
					
				}).mouseout(function() {
					jQuery('#help .special, #tb .help .special').html('').hide();
					jQuery('#help .default, #tb .help .default').show();				
				});
			}
			
			
			jQuery.data(this,"toggleHelp", true);
        }                    
    });
};
})(jQuery);
