<!--
 window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var bPlatform = navigator.platform;
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 // Special case for explorer 4 on the Mac - it doesn't support Layers well at all!
 if (bPlatform == "MacPPC" && IE4 != "") {
 	IE4 = "";
 }
 var menuActive = 0;
 var menuOn = 0;
 var onLayer;
 var timeOn = null;
 var loaded = 0;
 var a0, a1, b0, b1, c0, c1, d0, d1;
 var LayerUsed = null; 

// MENU COLOR VARIABLE
var menuColor = "#4C4C70"

//PRECACHE IMAGES HERE
function LoadImgs(){
  if (document.images || IE4) {
  menu1 = new Image(); menu1.src="/images/nav/navBullet.gif";
  menu2 = new Image(); menu2.src="/images/nav/navBulletx.gif";
  a0 = new Image(); a0.src="/images/nav/nav1.gif"; a1 = new Image(); a1.src="/images/nav/nav1x.gif";
  b0 = new Image(); b0.src="/images/nav/nav2.gif"; b1 = new Image(); b1.src="/images/nav/nav2x.gif";
  c0 = new Image(); c0.src="/images/nav/nav3.gif"; c1 = new Image(); c1.src="/images/nav/nav3x.gif";
  d0 = new Image(); d0.src="/images/nav/nav4.gif"; d1 = new Image(); d1.src="/images/nav/nav4x.gif";
  loaded = 1;
  }
 }

// LAYER SWITCHING CODE
if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
  layerStyleRef="layer.";
  layerRef="document.layers";
  styleSwitch="";
  }else{
  layerStyleRef="layer.style.";
  layerRef="document.all";
  styleSwitch=".style";
 }
}
  
// SHOW MENU
function showLayer(layerName){
if (loaded == 1)
{
 if (NS4 || IE4) {
  if (timeOn != null) {
   clearTimeout(timeOn)
   hideLayer(onLayer)
  }
  if (NS4 || IE4) {
   eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
  }   
  onLayer = layerName
  LayerUsed = true;
  }
 }
}

//BUTTON ROLLOVER
function change(Name, No) {
 if (document.images && (loaded == 1)) {
   document[Name].src = eval(Name + No + ".src");
  }
  return true;
}

// HIDE MENU
function hideLayer(layerName){
 if (loaded == 1 && LayerUsed != null)
 {
  if (menuActive == 0) {
   if (NS4 || IE4) {
    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
   }
  }
 }
}

// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
 timeOn = setTimeout("btnOut()",1000)
}

// BUTTON MOUSE OUT
function btnOut(layerName) {
 if (loaded == 1 && menuActive == 0) {
  hideLayer(onLayer)
 }
}

// MENU MOUSE OVER  
function menuOver(itemName) {
if (loaded == 1)
{
 clearTimeout(timeOn)
 menuActive = 1
 if (NS4 || IE4) {
  if (NS4) {
    document[onLayer].document.images[itemName].src = menu2.src
  } else {
     document.all[itemName].src = menu2.src
   }
  }
 }
}

// MENU MOUSE OUT 
function menuOut(itemName) {
if (loaded == 1 && onLayer != "")
{
  menuActive = 0 
  if (NS4 || IE4) {
   if (NS4) {
    document[onLayer].document.images[itemName].src = menu1.src
   } else {
     document.all[itemName].src = menu1.src
   }
  }
  timeOn = setTimeout("hideLayer(onLayer)", 400)
 }
}

// Creates menu object
function menuLink(title, url, target) {
 this.title = title
 this.url = url
 this.target = target
}

// Builds menu TABLE
function menuMaker(menuArray) {
 n = ""
 j = eval(menuArray + ".length") - 1;
 topTable = "<div ID='" + eval(menuArray + ".id") + "'><TABLE  BORDER='0' CELLSPACING='0' CELLPADDING='0'><TR><TD ROWSPAN=99 BGCOLOR='333333'><IMG src='/images/clr.gif' WIDTH=1 HEIGHT=1 ALT=''></TD><TD COLSPAN=3 bgcolor='" + menuColor +"'><IMG src='/images/clr.gif' WIDTH=1 HEIGHT=2 ALT=''></TD><TD ROWSPAN=99 BGCOLOR='333333'><IMG src='/images/clr.gif' WIDTH=1 HEIGHT=1 ALT=''></TD></TR>"
 endrow = "</TD><TD BGCOLOR='" + menuColor +"'><IMG src='/images/clr.gif' WIDTH='5' HEIGHT='9' VSPACE='4' ALT=''></TD></TR><TR><TD COLSPAN='3' bgcolor='333333'><IMG src='/images/clr.gif' WIDTH=1 HEIGHT=1 ALT=''></TD></TR>"
 btmTable = "</TABLE></div>"
 
 n += topTable
 for( var i = 0; i <=j; i++) {
  bgnrow = "<TR><TD bgcolor='" + menuColor +"'><IMG src='/images/nav/navBullet.gif' WIDTH='11' HEIGHT='10' HSPACE='2' VSPACE='4' ALT='' BORDER='0' name='" + eval(menuArray + ".imgname") + i + "'></TD><TD bgcolor='" + menuColor +"'>";
  n += bgnrow + "<A ID='menuLink' HREF='" + eval(menuArray + "[" + i + "].url") + "' onMouseOver='menuOver(\"" + eval(menuArray + ".imgname") + i + "\")' onMouseOut='menuOut(\"" + eval(menuArray + ".imgname") + i + "\")' class='menus' TARGET='" + eval(menuArray + "[" + i + "].target") + "'>" + eval(menuArray + "[" + i + "].title") + "</a>" + endrow;
 }
 n += btmTable
 return n
}

//Menu Arrays
Array.prototype.id = "aMenu"
Array.prototype.imgname = "a"

aMenu = new Array(0)
aMenu.id = "aMenu"
aMenu.imgname = "a"
aMenu[0] = new menuLink("About Kingsley Squire International", "/index.shtml", "_top")

bMenu = new Array(2)
bMenu.id = "bMenu"
bMenu.imgname = "b"
bMenu[0] = new menuLink("Contact Us", "/contact_main.shtml", "_top")
bMenu[1] = new menuLink("Register Your Details", "/cgi-bin/page.cgi?page=register.shtml", "_top")

cMenu = new Array(4)
cMenu.id = "cMenu"
cMenu.imgname = "c"
cMenu[0] = new menuLink("Welcome", "/life.shtml", "_top")
cMenu[1] = new menuLink("What's different?", "/lifeb.shtml", "_top")
cMenu[2] = new menuLink("Is it for me?", "/lifec.shtml", "_top")
cMenu[3] = new menuLink("Making the move", "/lifed.shtml", "_top")

dMenu = new Array(3)
dMenu.id = "dMenu"
dMenu.imgname = "d"
dMenu[0] = new menuLink("KSI News", "/news.shtml", "_top")
dMenu[1] = new menuLink("The Daily Telegraph", "http://www.telegraph.co.uk", "NEW")
dMenu[2] = new menuLink("The Guardian", "http://www.guardian.co.uk", "NEW")

//-->