var directorReportHelp = "<div id='popup-help'><h3>Director Report</h3>" +
		"<ul><li>All relevant details for the individual such as date of birth and address</li>" +
		"<li>All directorships with registration number, date of appointment and company status</li>" +
		"</ul></div>";

var profileReportHelp = "<div id='popup-help'><h3>Profile Report</h3>" +
		"<ul><li>Easy to use Risk Score with Score Key</li>" +
		"<li>Recommended Credit Limit</li>" +
		"<li>Risk Analysis Summary</li>" + 
		"<li><a href='/help/creditreports/credit-report-types-options-profile.html'>more about the Profile Report click here</a></li>" +
		"</ul></div>";
var fullReportHelp = "<div id='popup-help'><h3>Full Report</h3>" +
		"<ul><li>Everything in the profile report +</li>" +
		"<li>Breakdown of the company accounts including turnover and profit figures (if provided)</li>" +
		"<li>Historical credit score information</li>" +
		"<li>County court judgement summary</li>" +
		"<li>Comprehensive data from up to five years accounts</li>" +
		"<li>Issued capital</li>" +
		"<li>Full director details</li>" +
		"<li>Details of Directors other interests</li>" +
		"<li>Shareholder details</li>" +
		"<li>Shareholder structure</li>" +
		"<li>Gazette information</li>" +
		"<li>Industry comparison by SIC code</li>" +
		"<li>Key ratios such as gearing and liquidity</li>" +
		"<li><a href='/help/creditreports/credit-report-types-options-full.html'>more about the Full Report click here</a></li>" +
		"</ul></div>";

var myReportsHelp = "<div id='popup-help'><h3>Icon actions</h3>" +
	"<table cellspacing='5' cellpadding='3'><tbody><colgroup><col width='21' /><col /></colgroup>" +
	"<tr><td class='cell center'><img src='images/downloadon.gif' alt='Download as PDF' width='16' height='16' border='0' /></td>" +
	"<td class='cell'>Download as PDF</td></tr>" +
	
	"<tr><td class='cell center'><img src='images/viewon.gif' alt='View in Browser' width='16' height='16' border='0' /></td>" +
	"<td class='cell'>View in Browser</td></tr>" +

	"<tr><td class='cell center'><img src='images/printon.gif' alt='Print' width='16' height='16' border='0' /></td>" +
	"<td class='cell'>Print</td></tr>" +

	"<tr><td class='cell center'><img src='images/emailon.gif' alt='Share by email' width='16' height='16' border='0' /></td>" +
	"<td class='cell'>Share by email</td></tr></table></div>";

var penDriveHelp = "<div id='popup-help'><h3>Pen drive information</h3>" +
	"<p>High Speed USB 2.0 Pen Drive makes transferring files between PCs, notebooks and MACs quick and easy. The USB drive is simple to use, portable and will work with any computer with a USB socket, compatible with Microsoft Windows 98SE, ME, 2000, and XP / Apple Mac 8.6+, 9.0+ and OS X. Perfect for moving any files between school, office and home.</p>" +
	"<h4>Features</h4>" +
	"<ul>" +
  "<li>Compact design to reach confined USB slots</li>" +
  "<li>Complete with metal key ring</li>" +
  "<li>Cool metallic design</li>" +
  "</ul>" +
	"<h4>Technical Specifications</h4>" +
	"<ul>" +
  "<li>USB 1.1 and USB 2.0 compatible</li>" +
  "<li>Size: 70 X 9 X 18mm</li>" +
  "<li>Weight: 13g</li>" +
  "</ul>";
	
var pdfHelp = "<div id='popup-help'><h3>Adobe PDF Format</h3>" +
	"<p>Company Documents are in Adobe PDF format. Most computers have the Adobe Acrobat Reader preinstalled.</p>" + 
	"<p>If you don't have a PDF reader installed please follow the link provided to download a free copy.</p>";

var monitoringHelp = "<div id='popup-help'><h3>UK Data Free Company Monitoring</h3>" +
	"<p>This service is totally free and alerts you when there are changes to the company's credit status, or when new documents are filed with Companies House</p></div>";

function initPopups(){
	initPopup("director-report-help", directorReportHelp, -60);
	initPopup("profile-report-help", profileReportHelp, -60);
	initPopup("full-report-help", fullReportHelp, -100);
	initPopup("my-reports-help", myReportsHelp, -100);
	initPopup("my-reports-share-help", myReportsHelp, -100);
	initPopup("pen-drive-help", penDriveHelp, -100);
	initPopup("pdf-help", pdfHelp, -100);
	initPopup("monitoring-help", monitoringHelp, -60);
}

function initPopup(id, help, offset){
	var el = document.getElementById(id);
	if (el != null){
		el.onmouseover = function(){return overlib(help,  STICKY, MOUSEOFF, OFFSETY, offset);};
		el.onmouseout  = nd;
	}
}

addOnloadEvent(initPopups);
