/**
Help file
**/

function Help() {
    this.init = function(page) {
        var help_items = new Array();

        switch (page) {
            case "profile":
                help_items.push({ id: "#whitelabel_settings", text: "Before you can create logins for your clients, you need to purchase a bundle of user accounts. Once you've purchased accounts, you will be able to create new user logins.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });
                help_items.push({ id: "#team_settings", text: "Create and manage logins for members of your team.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });
                help_items.push({ id: "#whitelabel_available_features", text: "Select the features that are available to this user.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });

                help_items.push({ id: "#whitelabel_available_services", text: "Select the services that can be added by this user in Add/Edit Services.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });

                help_items.push({ id: ".workflow_help", text: "Select the user that needs to approve content made by this user before it can be published. If set, an email will be sent to this user to request approval before any content can be distributed.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });
                help_items.push({ id: ".account_details_help", text: "<b>Managed by: </b><br/>Specify if this user should be created as a sub-user of another user. Any sub-users can be accessed and managed by its parent user. <br/><b>User Type</b>:<br/><i>Team Members</i> can collaborate on tasks and view each others posts. <br/><i>Clients</i> cannot see or access other users and their posts are kept private.<br/><i>Administrators</i> can create, edit and manage all users.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });
                help_items.push({ id: ".contact_info_help", text: "Fill in the contact information for this user. ", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });
                help_items.push({ id: ".login_info_help", text: "Enter a username and password. This can be changed by the user when they first sign into their account.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });
                help_items.push({ id: ".contact_info_help_edit", text: "Fill in the contact details for this user. Username and email can be updated by switching to this user and going into \"My Profile\". ", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });
               

                help_items.push({ id: "#switch_user", text: "As a team administrator, you can switch to any of your users and access their Sendible account.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "topLeft" });
                help_items.push({ id: "#add_clients_number_of_clients", text: "Select the number of user logins you will need to add.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#add_clients_account_type", text: "Select the account type to allocate to this bundle of clients.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#edit_user_dialog #whitelabel_is_admin", text: "By making a user an administrator, they have the ability to create new users and manage your existing user accounts.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#new_user_dialog #whitelabel_is_admin", text: "By making a user an administrator, they have the ability to create new users and manage your existing user accounts.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#btnSave", text: "Save profile. ", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                break;
            case "pricing":
                help_items.push({ id: ".pricing_send_limit", text: "<b>What's the sending limit?</b><br/>This is the total number of emails and/or social media posts that can be sent per month.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_socialnetworks", text: "<b>What counts as a social network?</b><br/>This is any social network account or blog that can be posted to and/or tracked. For example, Twitter, Wordpress, LinkedIn, Facebook etc.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_contacts", text: "<b>What's a contact?</b><br/>A contact can be any individual that can be imported into Sendible. This is the size of your mailing list and can include Email, Facebook, LinkedIn and Mobile contacts.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_groups", text: "<b>What's a group?</b><br/>A group is a bunch of contacts or social media profiles that can receive posts/messages. Groups can contain email addresses (aka a mailing list), mobile numbers (for SMS) and/or multiple social media accounts.  ", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_keywords", text: "<b>What's a keyword?</b><br/>A keyword is any term/brand/competitor that can be tracked by Sendible. Sendible will search the entire social web for mentions of terms you provide. ", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_team", text: "<b>What's a user?</b><br/>Users can be people in your company or your clients. Your users can log in to Sendible and manage things themselves or you can manage things on behalf of your clients. ", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_email", text: "<b>What is email marketing?</b><br/>Use Sendible to create and track email marketing campaigns. Create newsletter templates, manage subscribers and use our widget to grow your mailing list from your website.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_reporting", text: "<b>What reporting is provided?</b><br/>Sendible analyzes and tracks your social media profiles and proves the effectiveness of every piece of content that you distribute.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });

                help_items.push({ id: ".pricing_email", text: "<b>What is email marketing?</b><br/>Use Sendible to create and track email marketing campaigns. Create newsletter templates, manage subscribers and use our widget to grow your mailing list from your website.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_reporting", text: "<b>What reporting is provided?</b><br/>Sendible analyzes and tracks your social media profiles and proves the effectiveness of every piece of content that you distribute.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });

                help_items.push({ id: ".pricing_serivices", text: "A service is any social network account, such as Facebook, Twitter, LinkedIn, or blog that can be posted to and tracked.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
               
                help_items.push({ id: ".plans_services", text: "A service is any social network account, such as Facebook, Twitter, LinkedIn, or blog that can be posted to and tracked. ", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_scheduling", text: "Schedule messages to be sent at a future date or to repeat on a daily, weekly or monthly schedule schedule.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_automation", text: "Automation features include: RSS Auto Poster, Twitter Welcome Messages, Twitter Auto Follower and Autoresponders.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_monitoring", text: "Monitor what's being said about your brand, competitors and industry terms on blogs, news, social networks and in comments. Sendible's sentiment analysis highlights which mentions you should respond to.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_reports", text: "Export any of Sendible's powerful reporting data to Excel and create your own custom reports.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_groups", text: "A group is a collection of social media accounts which makes it easy to publish to multiple social networks, blogs or contacts at once. Groups can also be shared with team members so that they can publish to your services without you needing to disclose your password for each of your accounts.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_workflow", text: "Manage your workflow and assign tasks to team members or clients. Configure Sendible to have certain users approve content before it gets published.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_brandedposts", text: "Replace \"via Sendible\" on posts to Facebook and Twitter. Depending on the plan, there is an optional monthly fee associated with this.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_whitelabel", text: "Completely rebrand Sendible, make it your own and resell to your clients. Maintain your brand identity without sacrificing any of the functionality that Sendible offers.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_mobile", text: "Download our iPhone and Android apps. Post or schedule content to all of your social media accounts, blogs and mailing lists from the palm of your hand. Access your reports and analytics on the go.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_users", text: "Create logins for team members and/or clients. Collaborate on content, assign tasks, manage approval workflows and permissions. ", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
                help_items.push({ id: ".plans_additionalusers", text: "There is a cost per additional user/team member or client that you wish to manage.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "middleTop" });
              
                break;
            case "pricing_wl":
                help_items.push({ id: ".pricing_send_limit", text: "<b>What's the sending limit?</b><br/>This is the total number of emails and/or social media posts that can be sent per month.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_socialnetworks", text: "<b>What counts as a social network?</b><br/>This is any social network account or blog that can be posted to and/or tracked. For example, Twitter, Wordpress, LinkedIn, Facebook etc.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_contacts", text: "<b>What's a contact?</b><br/>A contact can be any individual that can be imported into our platform. This is the size of your mailing list and can include Email, Facebook, LinkedIn and Mobile contacts.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_groups", text: "<b>What's a group?</b><br/>A group is a bunch of contacts or social media profiles that can receive posts/messages. Groups can contain email addresses (aka a mailing list), mobile numbers (for SMS) and/or multiple social media accounts.  ", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_keywords", text: "<b>What's a keyword?</b><br/>A keyword is any term/brand/competitor that can be tracked. Our platform will search the entire social web for mentions of terms you provide. ", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_team", text: "<b>What's a user?</b><br/>Users can be people in your company or your clients. Your users can log in to our platform and manage things themselves or you can manage things on behalf of your clients. ", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_email", text: "<b>What is email marketing?</b><br/>Use our platform to create and track email marketing campaigns. Create newsletter templates, manage subscribers and use our widget to grow your mailing list from your website.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                help_items.push({ id: ".pricing_reporting", text: "<b>What reporting is provided?</b><br/>Our platform analyzes and tracks your social media profiles and proves the effectiveness of every piece of content that you distribute.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "middleRight" });
                break;
            case "messagebox":
                help_items.push({ id: "#tab_compose", text: "Compose messages and social media posts. ", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_inbox", text: "Read and reply to comments, tweets and sms texts.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_mentions", text: "Read and respond to what's being said about your brand online.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_feeds", text: "Share and discover relevant content from your RSS feeds.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_pending", text: "Manage your scheduled message queue.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_sent", text: "View and forward your previously sent messages.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_draft", text: "Manage messages that you've drafted.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                //help_items.push({id: "#tab_processing", text:"View messages currently being sent.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle"});
                help_items.push({ id: "#tab_bounced", text: "View and resend any failed messages.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_calendar", text: "Manage and schedule messages using the calendar.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_addressbook", text: "Find contacts in your address book.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_tasks", text: "Assign, manage and respond to tasks from your team.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });

                help_items.push({ id: "#tab_stream", text: "Read and reply to messages from your live social streams such as Twitter and FriendFeed.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                help_items.push({ id: "#tab_search", text: "Find content to share from various sources such as Google News, Blogs and Twitter.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });

                help_items.push({ id: ".twitter_reply", text: "Reply", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: ".twitter_retweet", text: "Retweet", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: ".twitter_dm", text: "Direct Message", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: ".twitter_profile", text: "View Profile", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });

                help_items.push({ id: ".post_likes", text: "Like", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: ".post_comments", text: "Comment", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: ".post_reply", text: "Share", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: ".post_reload", text: "Refresh", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: ".post_profile", text: "View Profile", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: ".dialog_note_help", text: "Submit for approval and attach a note for " + jQuery("#btnSubmitForApproval").attr("to") + ".", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "bottomMiddle" });
              
                help_items.push({ id: "#tab_reviews", text: "Track reviews about your business from sites like Yelp, CitySearch and TripAdvisor.", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });


                help_items.push({ id: "#bookmarklet", text: "Use our bookmarklet to easily share pages you discover from within your browser.", show: "mouseover", hide: "mouseout", arrowPos: "bottomLeft", tipPos: "topRight" });


                help_items.push({ id: "#keep-selection", text: "Check this box so that your service selection is remembered between posts.", show: "mouseover", hide: "mouseout", arrowPos: "bottomRight", tipPos: "leftTop" });


                help_items.push({ id: "#input_url", text: "Enter a url that you'd like to insert or shorten. <br/>(Remember to include http://)", show: "focus", hide: "blur", arrowPos: "topLeft", tipPos: "bottomLeft" });

                help_items.push({ id: "#url_attach", text: "Attach a link to this post with image preview.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#url_shrink", text: "Shrink the URL for tracking.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#url_insert", text: "Insert the URL into the post.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#url_shrinkinsert", text: "Shrink and insert the URL into the post.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#url_loadimages", text: "Attach images to this post from the destination URL.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });


                help_items.push({ id: "#input_subject", text: "Enter a title or subject for this post or message. ", show: "focus", hide: "blur", arrowPos: "topLeft", tipPos: "bottomLeft" });
                help_items.push({ id: "#tags", text: "Enter one or more tags or categories for this post. Separate multiple tags with commas. ", show: "focus", hide: "blur", arrowPos: "topLeft", tipPos: "bottomLeft" });
                help_items.push({ id: "#simpleSchedule", text: "Select when you would like this message to be sent. ", show: "mouseover", hide: "mouseout", arrowPos: "leftMiddle", tipPos: "rightMiddle" });
                //help_items.push({id: "#social", text:"Select one or more services from the list below. ", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle"});
                //help_items.push({id: "#contacts_to", text:"Start typing the names of contacts from your address book here. You can also enter email addresses and mobile numbers. Separate multiple contacts with commas.", show: "focus", hide: "blur"});

                help_items.push({ id: "#btnSubject", text: "Add a subject or title. ", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });
                help_items.push({ id: "#btnToggleEditor", text: "Enable/disable the rich text editor. ", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });

                help_items.push({ id: "#lnk_url", text: "Shorten and insert a tracked bit.ly link or generate link previews from a given URL.", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });
                help_items.push({ id: "#lnk_pastfiles", text: "Browse for files and pictures that you've sent before and reuse them.", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });
                help_items.push({ id: "#lnk_files", text: "Upload one or more images and attach them to your message.", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });
                help_items.push({ id: "#lnk_tags", text: "Add tags/categories to your posts. Especially useful for blog posts.", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });
                help_items.push({ id: "#lnk_templates", text: "Insert an email newsletter template. ", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });
                help_items.push({ id: "#lnk_placeholders", text: "Insert merge tags that will be replaced with actual values at the time of sending.", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });
                help_items.push({ id: "#lnk_ecards", text: "Attach an electronic greeting card or flash file to your post.", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });
                help_items.push({ id: "#lnk_schedule", text: "Schedule this message to be sent in the future or on a recurring basis.", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });

                help_items.push({ id: "#lnk_counter", text: "This is purely a guide for those social networks with a restricted character count (e.g. Twitter). This can be ignored for other message types. ", show: "mouseover", hide: "mouseout", arrowPos: "bottomMiddle", tipPos: "topMiddle" });

                help_items.push({ id: "#input_message_parent", text: "Enter the body of your post. Note: Rich text will be automatically stripped out when posting to some social networks. ", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });


                help_items.push({ id: "#btnSave", text: "Send this message now or if it's been scheduled, at the time you specified. ", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#btnSaveDraft", text: "Save this message as a draft. You'll be able to edit and send at a later stage.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#btnSaveTemplate", text: "Save this message as a template for later reuse. You'll be able to reload it by accessing to from the templates button.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#btnSubmitForApproval", text: "Submit this message to " + jQuery("#btnSubmitForApproval").attr("to") + " for approval.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#btnApprove", text: "Approve this message. You'll be able to attach a note before submitting. ", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                help_items.push({ id: "#btnReject", text: "Reject this message. You'll be able to attach a note before submitting. .", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });

                help_items.push({ id: "#btnDiscard", text: "Discard any changes you've made.", show: "mouseover", hide: "mouseout", arrowPos: "topMiddle", tipPos: "bottomMiddle" });
                break;
        }

        for (var i = 0; i < help_items.length; i++) {

            var arrowPos = "bottomLeft";
            var tipPos = "topRight";
            if (help_items[i].arrowPos != null) {
                arrowPos = help_items[i].arrowPos;
            }
            if (help_items[i].tipPos != null) {
                tipPos = help_items[i].tipPos;
            }

            jQuery(help_items[i].id).attr("title", "");
            jQuery(help_items[i].id).qtip({
                content: help_items[i].text,
                show:
				   {
				       when: { event: help_items[i].show },
				       solo: true
				   },
                hide: help_items[i].hide,
                style: {
                    name: 'cream',
                    tip: arrowPos // Inherit from preset style
                },

                position: {
                    corner: {
                        target: tipPos,
                        tooltip: arrowPos
                    }
                }
            });
        }
    }
	
	this.showHelp = function(targetId, tip) 
	{
		jQuery(targetId).qtip({
			   content: tip,
			   show: 
				   { 
				   when: {event: "mouseover"}, 
				   solo: true 
				   },
			   hide: "mouseout",
			   style: { 
				 name: 'cream',
				 tip:  "bottomMiddle" // Inherit from preset style
				},
			
			   position: {
				  corner: {
					 target: "topMiddle",
					 tooltip: "bottomMiddle"
				  }
			   }
			});
	}
}









