/**
 * jtip_api_main.js - JavaScript overlib api functions for main site.
 * @author OSD :: Victor Leonard
 * @copyright 2005 - 2009 Victor Leonard
 */

function ShowTips(id, title) { 
	details = "<div style='font-size:10px;'>"; 
	details+= "Tips on completing questions are shown with this icon.<img align=\"top\" src=\"/images/info.gif\" border=\"0\" alt=\"Information\">"; 
	details+= "</div>"; 

	$('#' + id).mouseout(function(){$('#JT').remove()});
	JT_left(false);
	return JT_show(details, id, title);
}

function ShowTipsOTL(id, title) { 
	details = "<div style='font-size:10px;'>"; 
	details+= "If your Sub Area is not listed then select <b>Other Than Listed</b>.<br><br>";
	details+= "If your area is Dublin and Sub Area is not listed then select <b>Co. Dublin OTL</b> (Other Than Listed).";
	details+= "</div>"; 

	//JT_left(false);
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsLifeMortgageInfo(id, title, stage) { 
	details = "<div style='font-size:10px;'>"; 
	details+= "The level of cover you choose will reduce over the term of your policy – In the event of a claim, your mortgage ";
	details+= "will be paid off in full, as long as your mortgage repayments are up to date and your mortgage interest rate has ";
	details+= "not risen, on average, above 5%."; 
	details+= "</div>"; 

	JT_width(240);
	//JT_left(false);
	//JT_close(true);
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsLifeCoverDetails(id, title, stage) { 
	details = "<div style='font-size:10px;'>"; 
	details+= "<strong>Single Life Policy</strong><br>This is a life assurance policy that provides cover for one person. It ";
	details+= "pays out the benefit in the event of death or diagnosis of one of the listed serious illnesses.";
	if (stage == "mortgage-protection") { 
		details+= "<br><br><strong>Joint Life Policy</strong><br>This is a life assurance policy that covers two lives, such as you and ";
		details+= "your spouse, child or business partner. It pays out the benefit only once, if either you or your partner dies ";
		details+= "or is diagnosed with one of the listed serious illnesses while the policy is in force."; 
	}
	details+= ((stage == "life-serious") ? "<br><br><strong>Dual Life Policy</strong><br>This is a life assurance policy that provides cover for two people and continues in force for the second person after the first person claims. It would pay out a benefit on each life either on death or on diagnosis of one of the listed serious illnesses." : ""); 
	details+= "</div>"; 

	JT_width(240);
	//JT_left(false);
	//JT_close(true);
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsLifeAcceleratedStandalone(id, title) { 
	details = "<div style='font-size:10px;'>"; 
	details+= "<strong>Standalone Cover </strong><br>Means that serious illness cover is added to your life policy and that your benefit could be paid out on both being diagnosed with a serious illness and on death. Two payments could be made under this type of policy.<br><br>"; 
	details+= "<strong>Accelerated Cover </strong><br>Means that serious illness cover is added to your life policy and that a benefit would be paid out either if you are diagnosed with a serious illness or if you die; which ever happens first."; 
	details+= "</div>"; 

	JT_width(240);
	//JT_left(false);
	//JT_close(true);
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsLifeIndexation(id, title) { 
	details = "<div style='font-size:10px;'>"; 
	details+= "<strong>Indexation</strong><br>Indexation increases the benefit on your life assurance policy automatically every year to make allowances for inflation. Your premium also increases each year to pay for indexation."; 
	details+= "</div>"; 

	JT_width(180);
	//JT_left(false);
	//JT_close(true);
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsLifeNetCost(id, title) { 
	details = "<div style='font-size:10px;'>"; 
	details+= "<strong>* The First Years</strong> monthly premiums must be paid by you and you will ";
	details+= "receive a refund cheque of 75% of the first year's premiums immediately when you complete 13 months payments.<br><br>";
	details+= "*The monthly premium quotes will remain the same throughout the term of the policy.<br><br>";
	details+= "*The 25% portion of the refund will be split into segments limited to a maximum of &euro;50 per policy.<br><br>";
	details+= "For example, if a client takes out a policy at a premium of &euro;33 per month (that's a 1st year premium of &euro;396), ";
	details+= "they will receive a refund cheque for &euro;297 after 13 months, plus they will get a &euro;99 cheque rebate, in 13 months time ";
	details+= "(i.e. &euro;50 for the first policy, &euro;49 for the 2nd policy) off any NEW or RENEWAL of a car, van, home ";
	details+= "or health policy for the client or their immediate family.<br><br>";
	details+= "N.B. This refund offer specifically applies to execution only business, paid by direct debit and arranged through www.bestquote.ie"; 
	details+= "</div>"; 

	JT_width(340);
	//JT_left(false);
	//JT_close(true);
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsLifeMakePolicyConvertible(id, title) { 
	details = "<div style='font-size:10px;'>"; 
	details+= "This option allows you to extend your cover at any stage throughout the term of your plan without having to ";
	details+= "provide any new evidence of health.<br><br>If you wish to extend your life cover only, you can choose between a ";
	details+= "plan with a guaranteed payment and a plan where your payment may be reviewed.<br><br>If you wish to extend both ";
	details+= "your life cover and your serious illness cover, you must take out a plan where your payment is reviewed."; 
	details+= "</div>"; 

	JT_width(240);
	//JT_left(false);
	//JT_close(true);
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

