var preloadedImage = new Image();
preloadedImage.src = "/images/blueBlock.gif";
function hilight(id) { // mouse over
document.getElementById('image' + id).src = "images/blueBlock.gif";
document.getElementById('cell' + id + '1').style.backgroundColor = "#EEEEEE";
document.getElementById('cell' + id + '2').style.backgroundColor = "#EEEEEE";
document.getElementById('cell' + id + '3').style.backgroundColor = "#EEEEEE";
document.getElementById('cell' + id + '4').style.backgroundColor = "#EEEEEE";
if ( document.getElementById('subTable' + id) ) { // there is a sub-table
document.getElementById('cellSubTable' + id + '1').style.backgroundColor = "#EEEEEE";
document.getElementById('cellSubTable' + id + '2').style.backgroundColor = "#EEEEEE";
document.getElementById('cellSubTable' + id + '3').style.backgroundColor = "#EEEEEE";
document.getElementById('cellSubTable' + id + '4').style.backgroundColor = "#EEEEEE";
}
document.getElementById('heading' + id).style.color        = "#6699CC";
document.getElementById('heading' + id).style.borderBottom = "1px solid #6699CC";
document.getElementById('textTip' + id).style.visibility = "visible";
}
function unhilight(id) { // mouse out
document.getElementById('image' + id).src = "images/il" + id + "b.gif";
document.getElementById('cell' + id + '1').style.backgroundColor = "#FFFFFF";
document.getElementById('cell' + id + '2').style.backgroundColor = "#FFFFFF";
document.getElementById('cell' + id + '3').style.backgroundColor = "#FFFFFF";
document.getElementById('cell' + id + '4').style.backgroundColor = "#FFFFFF";
if ( document.getElementById('subTable' + id) ) { // there is a sub-table
document.getElementById('cellSubTable' + id + '1').style.backgroundColor = "#FFFFFF";
document.getElementById('cellSubTable' + id + '2').style.backgroundColor = "#FFFFFF";
document.getElementById('cellSubTable' + id + '3').style.backgroundColor = "#FFFFFF";
document.getElementById('cellSubTable' + id + '4').style.backgroundColor = "#FFFFFF";
}
document.getElementById('heading' + id).style.color        = "#CC9900";
document.getElementById('heading' + id).style.borderBottom = "1px solid #CC9900";
document.getElementById('textTip' + id).style.visibility = "hidden";
}
function go(id) {
var website = new Array(4);
website[4] = 'http://www.offshore-fox.com/offshore-corporations/';
website[1] = 'http://www.offshore-fox.com/financial-privacy/';
website[2] = 'http://www.offshore-fox.com/swiss-banking/';
website[3] = 'http://www.offshore-fox.com/second-passports/';
window.location = website[id];
}
function initQuickStartTool() {
// <body onload="initQuickStartTool()" ...>
//
// Because we always want the instruction "Select other quick-start page.."
// to show up, even when the user clicks the Back/Forward button.
// This is for Internet Explorer; Netscape doesn't "remember" the <select>
// box state when going Back/Forward (so this code is not necessary);
// Opera doesn't run <body onload="initQuickStartTool()" ...> when
// clicking Back/Forward (so it can't be fixed).
document.getElementById("qsInstruction").selected= true; // "Select other quick-start page.."
changeBg(); // and init the background
}
function changeBg() { // on quick-start pages, under the <select> box
// <select onchange="changeBg()" ...>
if( document.getElementById("qsInstruction").selected) { // "Select other quick-start page.."
document.getElementById("qsTD").style.background= 'url(/images/qsBg.gif)';
document.getElementById("qsTD").style.backgroundRepeat= 'no-repeat';
}
else {
document.getElementById("qsTD").style.background= 'none';
}
}
function clearInputField( field) {
if (field.value=='(your email here)') { field.value=''; }
}
function ati()  { // ati = About This Index
alert("Disclaimer \n\n" +
"This index has been computer-generated with minimal human intervention. \n" +
"As such, this index may or may not provide a complete and/or accurate \n" +
"representation of the underlying article. ");
}
function beta()  {
alert("The format/content of this section may change in the future, \n" +
"in line with user preferences as we establish them by analysing \n" +
"traffic and feedback. ");
}
