/**
 * jtip_api_quote.js - JavaScript overlib api functions for quote site.
 * @author OSD :: Victor Leonard
 * @copyright 2005 - 2008 Victor Leonard
 */

function ShowTipsTypeOfCover(id, title) { 
	details = "<b>Comprehensive</b> - includes accidental damage,fire and theft cover for your vehicle.<br><br><b>Third party fire and theft</b> - covers your third party liability and fire and theft for your vehicle.<br><br><b>Third party only</b> - covers your third party liability."; 

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsOptionalAdditionalExcess(id, title) { 
	details = "<b>Optional Additional Excess</b> - is in addition to the standard policy excess, details of which are available in the policy summary.<br><br>By having an optional Additional Excess you will be able to reduce your premium, however the portion of a claim you pay yourself will increase should you incur a claim.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsNumDrivers(id, title) { 
	details = "<b>1.</b> If you are cohabiting with your partner and wish to add your partner to the policy - select '<b>Insured and 1 Additional Driver</b>'.<br><br><b>2.</b> <b>Young Females</b> - try adding one of your parents, it may or may not work out cheaper. Try the quote with and without your parent.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsNoClaimsBonus(id, title) { 
	details = "This is the number of years earned with a policy in your own name.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsCurrentInsurer(id, title) { 
	details = "If you are unsure - leave as defaulted.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsVehicleManuf(id, title) { 
	details = "After selecting the manufacturer, please wait until selected manufacturer models are loaded below.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsVehicleMileage(id, title) { 
	details = "Some Insurers offer discounts for mileage below 5,000 and 10,000.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsSecondVehicle(id, title) { 
	details = "Details are only required to provide a further possible discount.<br><br>The quote does not include cover on this second vehicle.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsOTL(id, title) { 
	details = "If your area is Dublin and Sub Area is not listed then select <b>Co. Dublin OTL</b> (Other Than Listed).";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsMaritalStatus(id, title) { 
	details = "If you are cohabiting with your partner and have selected yourself and one additional driver - select '<b>Common Law Spouse</b>'.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsAdditionalDriver(id, title) { 
	details = "If the additional driver you require on the policy is your partner that you reside with - select '<b>Common Law Spouse</b>'.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsVehicleRegDate(id, title) { 
	details = "If unsure of exact date, don't worry, it doesn't have to be exact.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsClassOfUse(id, title) { 
	details = "If unsure, leave as default.<br><br>";
	details+= "<b>SOCIAL DOMESTIC PLEASURE USE</b><br>&nbsp;&nbsp;- E.g. Housewife or someone commuting to work.<br><br>";
	details+= "<b>CLASS 1</b><br>Business use by the insured in connection with his own business.<br>&nbsp;&nbsp;- Excludes carriage of goods<br>&nbsp;&nbsp;- E.g. Training Day, using the car in connection with work (once off).<br><br>";
	details+= "<b>CLASS 2</b><br>Business use by driver.<br>&nbsp;&nbsp;- Includes carriage of own goods<br>&nbsp;&nbsp;- Goods themselves not covered<br>&nbsp;&nbsp;- E.g. Carpenter.<br><br>";
	details+= "<b>CLASS 3</b><br>Commercial Use.<br>&nbsp;&nbsp;- E.g. Sales Representative<br><br>";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsProtection(id, title) { 
	details = "Your quote was based on a step back no claims bonus.<br><br>If you require '<b>full no claims bonus protection</b>' select this.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsPolicyNumber(id, title) { 
	details = "If unsure, leave as default.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsLicenceNumber(id, title) { 
	details = "If not readily available, type in '1234'.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsDrivingQual(id, title) { 
	details = "If you are prepared to carry out a driving assessment and are aged between 17 and 30 with a provisional license or have a full licence for less than 5 years.<br><br><b>Provisional License Holders</b> - please select Hibernian Primary Assessment.<br><br><b>Full Licence Holders</b> - please select Hibernian Ignition Course pass.<br><br>On successful completion of the driving courses there may be further discounts available.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsObtainQual(id, title) { 
	details = "If you have yet to undergo the driving assessment - leave the date as defaulted.<br><br>This will show the price if you pass.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsReferQual(id, title) { 
	details = "If you have yet to undergo the driving assessment leave the reference number as defaulted.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowBrokerDetails(id, title, refcode, broker_name, broker_email, broker_telephone, broker_address) { 
	details = "<table border=0 align=center>";
	details+= "<tr><td class=tb10 valign=top width=80><b>Broker</td><td class=tb10>"+broker_name+"</td></tr>";
	if (broker_email != "") { 
		details+= "<tr><td class=tb10 valign=top><b>Email</td><td class=tb10><a href='mailto:"+broker_email+"?Subject=Bestquote%20Query%20Reference%20:%20"+refcode+"'>"+broker_email+"</a></td></tr>";
	}
	details+= "<tr><td class=tb10 valign=top><b>Telephone</td><td class=tb10>"+broker_telephone+"</td></tr>";
	details+= "<tr><td class=tb10 valign=top><b>Address</td><td class=tb10>"+broker_address+"</td></tr>";
	details+= "</table>";

	JT_width(280);
	JT_close(true);
	return JT_show(details, id, title);
}

function ShowTipsDrivingQualAdd(id, title) { 
	details = "If they are prepared to carry out a driving assessment and are aged between 17 and 30 with a provisional license or have a full licence for less than 5 years.<br><br><b>Provisional License Holders</b> - please select Hibernian Primary Assessment.<br><br><b>Full Licence Holders</b> - please select Hibernian Ignition Course pass.<br><br>On successful completion of the driving courses there may be further discounts available.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsObtainQualAdd(id, title) { 
	details = "If they have yet to undergo the driving assessment - leave the date as defaulted.<br><br>This will show the price if they pass.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsReferQualAdd(id, title) { 
	details = "If they have yet to undergo the driving assessment leave the reference number as defaulted.";

	$('#' + id).mouseout(function(){$('#JT').remove()});
	JT_width(235);
	return JT_show(details, id, title);
}

function ShowTipsVoluntaryExcess(id, title) { 
	details = "Other web sites may prompt you to take a &euro; 500 excess, by selecting a higher excess of &euro; 500 will mean a reduction in your premium.";
	
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsNeighbourhoodWatch(id, title) { 
	details = "A discount may apply if you are a in a neighbourhood watch area.";
	
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsSecurityLocks(id, title) { 
	details = "If downstairs windows/doors have security locks, a discount may apply.";
	
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsSmokeDetectors(id, title) { 
	details = "<b>Smoke Detectors</b> - having smoke dectors will reduce your premium.";
	
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsBurglarAlarm(id, title) { 
	details = "<b>Burglar Alarm</b> - having smoke dectors will reduce your premium.";
	
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}
function ShowTipsBuildingsSumInsured(id, title) { 
	details = "<b>Note</b> - The Building Sum Insured does not actually represent the current market value of your house.<br><br>";
	details+= "It represents the reinstatement value and is calculated by working out the total cost of rebuilding your property including construction costs, architects fees, surveyors fees, site clearance fees and any other associated building costs.<br><br>";
	details+= "If you are unsure of how to calculate the rebuilding cost, it is advisable to contact a Chartered Surveyor who will be qualified to advise you in this area.<br><br>";
	details+= "In addition please <a href=\"http://www.bestquote.ie/home-rebuild-calculator.php\" target=\"_new\">click here</a> for Bestquote.ie rebuilding costs calculator.";
	
	//$('#' + id).mouseout(function(){$('#JT').remove()});
	JT_width(280);
	JT_close(true);
	return JT_show(details, id, title);
}

function ShowTipsSpecifiedItems(id, title) { 
	details = "<b>Specified Items</b> - the items here are items which will be covered for all risks cover, which includes damage or loss of that item whilst away from the home e.g golf clubs stolen in the car or a stone falling out of a ring.";
	
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

function ShowTipsUnspecifiedItems(id, title) { 
	details = "<b>Unspecified Items</b> - for All risks cover e.g Jewellery or sports equipment without listing items. Max value of &euro 1,000 per item.";
	
	$('#' + id).mouseout(function(){$('#JT').remove()});
	return JT_show(details, id, title);
}

