// use the API from http://www.walterzorn.com/tooltip/tooltip_e.htm
var WjToolTipText = [];
WjToolTipText['iii'] = "Conversion Tracking can help our system to optimize your campaign by calculating converison rate. <br> Checkbox must be checked to enable this feature.";
WjToolTipText['admin_campaign_filter'] = "This field is Autocomplete enabled. <br> You can use comma (,) for multiple inputs";
WjToolTipText['admin_category_hide'] = "Selecting this option will make the Category invisible to all advertisers."

WjToolTipText['adv_approval_required'] = "A campaign in this state is pending approval from Webjuice or from you, the Advertiser.";
WjToolTipText['adv_active'] = "A campaign in this state is currently active and receiving traffic.";
WjToolTipText['adv_offline'] = "A campaign in this state is paused and not receiving any traffic.";
WjToolTipText['adv_rejected'] = "A campaign in this state has been rejected as a result of a violation of the Terms of Use";
WjToolTipText['adv_campaign'] = "This is the name you have given your campaign at the time of campaign creation.";
WjToolTipText['adv_category'] = "This is the vertical that the campaign belongs to.";
WjToolTipText['adv_bid'] = "This is the maximum amount you are willing to pay for each click on this campaign.";
WjToolTipText['adv_daily_budget'] = "This is the amount you aim to spend each day on a campaign.";
WjToolTipText['adv_overall_budget'] = "This is the total amount you aim to spend on a campaign over time.";
WjToolTipText['adv_daily_budget_remaining'] = "This is the amount you have left (Daily Budget - Amount Spent) for a campaign for the current day.";
WjToolTipText['adv_overall_budget_remaining'] = "This is the amount you have left for your campaign over time.";
WjToolTipText['adv_rank'] = "This is where your campaign stands in the bidding landscape.<br> The rank of your campaign is determined by the bid price and the quality of your campaign.";
WjToolTipText['adv_headline'] = "This is the title for your ad to be displayed when your ad is served.";
WjToolTipText['adv_destination_url'] = "This is the URL that may be displayed on your ad to identify your site to users.";
WjToolTipText['adv_click_url'] = "This is the URL the user will be redirected to when they click on your ad.";
WjToolTipText['adv_conversion_tracking_url'] = "This URL must be placed on the confirmation page of your page flow in order to track conversions and optimize pricing.";
WjToolTipText['adv_click_tracking_url'] = "This URL can be placed on the first page of your page flow to verify click count.";
WjToolTipText['aff_sub_category'] = "This is the specific domain within the category that is available to you. ";
WjToolTipText['aff_hist_cpc'] = "This is the cost-per-click that you averaged for this sub-category over the past 14 days.";
WjToolTipText['aff_est_cpc'] = "This is the estimated cost-per-click payable to you at this time.<br> This price is subject to change depending on traffic quality.";
WjToolTipText['aff_email_creative'] = "These are graphic creatives available for your convenience. <br>There are 2 mechanisms available for your convenience:<br> Static - The creative is predetermined and <br>Dynamic - The creatives are selected and cycled through by our Ad Servers.";
WjToolTipText['aff_token'] = "This is a unique token generated by our system that permits access to our Web Services.<br> These Web Services can be used to programmatically pull valuable information from our database.";
WjToolTipText['advertiser_category_filter'] = "Type the category name and select one or more categories from the list. If left blank, all categories will be displayed.";
WjToolTipText['advertiser_campaign_filter'] = "Type the campaign name for partial match.";


var WjToolTip = function(ele_id) {
	this.element_id = ele_id;
	this.init(ele_id);
}
WjToolTip.prototype = {
	init:function(ele_id){
		var o = document.getElementById(ele_id);
		//o.className='tip';
		YAHOO.util.Event.addListener(ele_id, "mouseover", this.show, this);
		if (o!=null)
			o.onmouseout = UnTip;
	},
	show:function(e, obj){
		Tip(WjToolTipText[obj.element_id], BORDERCOLOR, '#EDA83D', BGCOLOR, '#FEF5CC', FONTCOLOR, '#555555');
	}
}
