/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 1999-12-28 Dari Yerushalmi, Enslow Kable
// Changes on lines 60-78 to remove sliding func. from external js and place directly in homepage to help netscape bug
// Change to nav elements in careers area and news area and community area
// linking to home page of logo in several different areas and for both resolutions
// 2000-01-06 Andrew Smith
// Added Vanity URLs for Left-hand columns
// 2000-01-11 
// Corrected Vanity URLs
// 2000-1-18 Dari Yerushalmi, Andy Smith
// Changed links in careers (your career home), business directory (bd home) and markets (equities home)
// 2000-1-25 Dari Yerushalmi
// Changed personal office welcome text, changed alt tags for view nav and personal office
////////////////////////////////////////////////////////////////////////////////////////////////////////////

//Deal with different browser DOM
//ns4 = true;
//ns4 = (document.layers)? true:false;
ns4 = navigator.appName
if(ns4 == "Netscape") { ns4=true; } else { ns4=false; };

var layerRef = (ns4) ? "document" : "document.all";
var styleRef = (ns4) ? "" : ".style";

//sets up a bunch of initial values for the navbars
var startPath = -310
var startPathTwo = -160
var endPath = 0
var slide = 0
var yourVisible = 0
var personalVisible = 0
var hideform3 = false;
window.ourDom = document.domain; // Used in lt_col.html getSiteNav
function showHideyournav() {
   if(yourVisible == 0) {
     document.images.yournavarrow.src = 'http://globalelements.ft.com/global/images/global_hdr/arrow_lt.gif';
     eval(layerRef + '.yournav' + styleRef + ".visibility='visible'");
     eval(layerRef + '.editLayer' + styleRef + ".visibility='visible'");
     yourVisible = 1;
     eval(layerRef + '.formContainer1' + styleRef + ".visibility='hidden'");
     if(hideform3 == true) { eval(layerRef + '.formContainer3' + styleRef + ".visibility='hidden';"); }
   }
   else
   {
    eval(layerRef + '.yournav' + styleRef + ".visibility='hidden'");
    eval(layerRef + '.editLayer' + styleRef + ".visibility='hidden'");
    document.images.yournavarrow.src = 'http://globalelements.ft.com/global/images/global_hdr/arrow_rt.gif';
    yourVisible = 0;
     eval(layerRef + '.formContainer1' + styleRef + ".visibility='visible'");
     if(hideform3 == true) { eval(layerRef + '.formContainer3' + styleRef + ".visibility='visible';"); }
   }
}

function showHidepersonalnav() {
   if(personalVisible == 0) {
     document.images.toolarrow.src = 'http://globalelements.ft.com/global/images/global_hdr/arrow_rt.gif';
     personalVisible = 1;
     eval(layerRef + '.formContainer2' + styleRef + ".visibility='hidden'");
     eval(layerRef + '.personalnav' + styleRef + ".visibility='visible'");

   }
   else
   {
    document.images.toolarrow.src = 'http://globalelements.ft.com/global/images/global_hdr/arrow_lt.gif';
    personalVisible = 0;
    eval(layerRef + '.formContainer2'+ styleRef + ".visibility='visible'");
    eval(layerRef + '.personalnav' + styleRef + ".visibility='hidden'");
   }
}
// Used to avoid ad call caching
function getTransId( ){
    var cDate = new Date();
    var uSec = cDate.getTime();
   
    return("&transId=" + uSec);
}

//Sync Values in this func with lt_col.html
function getSiteNav(){
    if( document.domain.lastIndexOf("sports.com") > -1 ){
        return("&nav=11spor");
    }
    if( document.domain.lastIndexOf("icbinc.com") > -1 ){
        return("&nav=11anrp");
    }
    switch( document.domain.toLowerCase() ){
        case "www.infospace.com": return("&nav=11info"); break;
        case "ft.digitalcity.com": return("&nav=11digi"); break;
        case "ft.icollector.com": return("&nav=11icol"); break;
        case "forums.wellengaged.com": return("&nav=11well"); break;
        case "www.ft.monster.com": return("&nav=11mons"); break;
	case "209.212.79.15": return("&nav=11zaga"); break;
        case "www.ipo.com": return("&nav=11ipoc"); break;
        default:
        return("");
    }
}
var transId = getTransId(); // Use a single value for all ad calls
var siteNav = getSiteNav(); // Non ft.com domain code
//Different strokes for different  folks (Header 640 vs 800+ resolution)
function writeheader()
{if (screen.width <800)  {
if (window.wfDocWrite != null) wfDocWrite('<form id="globalSearch" method="GET" action="http://search.ft.com/search/multi/index.jsp">');
if (window.wfDocWrite != null) wfDocWrite('<input type="hidden" name="do" value="basic"/>');
if (window.wfDocWrite != null) wfDocWrite('<table cellpadding="0" cellspacing="0" border="0" width="778">');
if (ns4 == true) {
if (window.wfDocWrite != null) wfDocWrite('<tr valign="top" bgcolor="#ffcc99"><td width="150" nowrap background="http://globalelements.ft.com/global/images/global_hdr/logo_bg.gif" bgcolor="#ffcc99"><a href="http://www.ft.com"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="150" height="62" border="0"></a></td><td bgcolor="#660000" colspan=2 width="100%"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="1" height="1" hspace="0" align="left"><A href= "http://ads.ft.com/click.ng/site=ftcom&pos=ban');
if (window.wfDocWrite != null) wfDocWrite(siteNav);
if (window.wfDocWrite != null) wfDocWrite(transId);
if (window.wfDocWrite != null) wfDocWrite('" target="_top"><img src="http://ads.ft.com/image.ng/site=ftcom&pos=ban');
if (window.wfDocWrite != null) wfDocWrite(siteNav);
if (window.wfDocWrite != null) wfDocWrite(transId);
if (window.wfDocWrite != null) wfDocWrite('" width="468" height="60" border="0"></A></td></tr>'); 

} else {
if (window.wfDocWrite != null) wfDocWrite('<tr valign="top"><td width="150" nowrap background="http://globalelements.ft.com/global/images/global_hdr/logo_bg.gif" bgcolor="#ffcc99"><a href="http://www.ft.com"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="150" height="62" border="0"></a></td><td bgcolor="#660000" colspan=2 width="100%"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="1" height="1" hspace="0" align="left"><NOLAYER><iframe src="http://ads.ft.com/html.ng/params.richmedia=yes&site=ftcom&pos=ban');
if (window.wfDocWrite != null) wfDocWrite(siteNav);
if (window.wfDocWrite != null) wfDocWrite(transId);
if (window.wfDocWrite != null) wfDocWrite('" target="_top" width="468" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" bordercolor="#000000"></iframe></NOLAYER></td></tr>'); 
}
if (window.wfDocWrite != null) wfDocWrite('<tr valign="top"><td width="150" bgcolor="#ffcc99"><a href="http://www.ft.com"><img src="http://globalelements.ft.com/global/images/global_hdr/logo.gif" width="150" height="47" alt="FT.com" border="0"></a></td>');
if (window.wfDocWrite != null) wfDocWrite('<td background="http://globalelements.ft.com/global/images/global_hdr/fading_rt.jpg" bgcolor="#ffcc99"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="466" height="1" border="0"></td>');
var curLoc = document.location.href;
curLoc = curLoc.toString();
if (curLoc.indexOf("c=Collection&cid=ZZZLLCHPD0C")==-1) {
if (window.wfDocWrite != null) wfDocWrite('<td nowrap bgcolor="#ffcc99"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="1" height="3" border="0"><br>');
if (window.wfDocWrite != null) wfDocWrite('<font class="hdrBrown"><input type="text" size="11" maxlength="40" name="query">');
if (window.wfDocWrite != null) wfDocWrite('<img src="http://globalelements.ft.com/global/images/global/clear.gif" width="3" height="1" border="0"><input type="image" src="http://globalelements.ft.com/global/images/global_hdr/search.gif" name="Search" value="submit" alt="Search" border="0" vspace="0" hspace="0" align="absmiddle">&nbsp;&nbsp;&nbsp;</nobr><br><font class="hdrBrown">Browse our</font> <a href="http://search.ft.com/directory/topLevelNavigation.htm"><font class="hdrBrown"><u><b>Business Directory</b></u></font></a>&nbsp;</font></td></tr>');
} else {
  if (window.wfDocWrite != null) wfDocWrite('<td bgcolor="#ffcc99"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="1" height="1" border="0"></td></tr>');
}
if (window.wfDocWrite != null) wfDocWrite('<tr valign="top"><td colspan="2"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="6" height="1" border="0"><a href="#" onClick="showHideyournav(); return false;"><img src="http://globalelements.ft.com/global/images/global_hdr/navigation.gif" width="114" height="17" alt="View Navigation" border="0"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="3" height="1" border="0"><img src="http://globalelements.ft.com/global/images/global_hdr/arrow_rt.gif" width="25" height="17" alt="View Navigation" border="0" name="yournavarrow"></a></td>');
if (window.wfDocWrite != null) wfDocWrite('<td align="left"><a href="#"  onClick="showHidepersonalnav(); return false;"><img src="http://globalelements.ft.com/global/images/global_hdr/toolbar.gif" width="128" height="17" alt="Personal Office" border="0"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="3" height="1" border="0"><img src="http://globalelements.ft.com/global/images/global_hdr/arrow_lt.gif" width="25" height="17" alt="Personal Office" border="0" name="toolarrow"></a></td></tr>');
if (window.wfDocWrite != null) wfDocWrite('</table>');
if (window.wfDocWrite != null) wfDocWrite('</form>'); }

// This is for all other resolutions
else {
if (window.wfDocWrite != null) wfDocWrite('<form id="globalSearch" method="GET" action="http://search.ft.com/search/multi/index.jsp">');
if (window.wfDocWrite != null) wfDocWrite('<input type="hidden" name="do" value="basic"/>');
if (window.wfDocWrite != null) wfDocWrite('<table cellpadding=0 cellspacing=0 border=0 width=778>');
if (window.wfDocWrite != null) wfDocWrite('<tr valign="top"><td width="158" bgcolor="#660000" nowrap><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="158" height="1" border="0"></td>');
if (window.wfDocWrite != null) wfDocWrite('<td width="150" nowrap background="http://globalelements.ft.com/global/images/global_hdr/logo_bg.gif" bgcolor="#ffcc99"><a href="http://www.ft.com"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="150" height="62" border="0"></a></td>');
if (ns4 == true) {
if (window.wfDocWrite != null) wfDocWrite('<td width="470" bgcolor="#660000" align="center" nowrap colspan="2"><a href= "http://ads.ft.com/click.ng/site=ftcom&pos=ban');
if (window.wfDocWrite != null) wfDocWrite(siteNav);
if (window.wfDocWrite != null) wfDocWrite(transId);
if (window.wfDocWrite != null) wfDocWrite('" target="_top"><img src="http://ads.ft.com/image.ng/site=ftcom&pos=ban');
if (window.wfDocWrite != null) wfDocWrite(siteNav);
if (window.wfDocWrite != null) wfDocWrite(transId);
if (window.wfDocWrite != null) wfDocWrite('" width="468" height="60" border="0"></a></td></tr>');
} else {
if (window.wfDocWrite != null) wfDocWrite('<td width="470" bgcolor="#660000" align="center" nowrap colspan="2"><NOLAYER><iframe src="http://ads.ft.com/html.ng/params.richmedia=yes&site=ftcom&pos=ban');
if (window.wfDocWrite != null) wfDocWrite(siteNav);
if (window.wfDocWrite != null) wfDocWrite(transId);
if (window.wfDocWrite != null) wfDocWrite('" target="_top" width="468" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" bordercolor="#000000"></iframe></NOLAYER></td></tr>'); 
}
if (window.wfDocWrite != null) wfDocWrite('<tr valign="top"><td nowrap background="http://globalelements.ft.com/global/images/global_hdr/fading_lt.gif" bgcolor="#ffcc99" width="158"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="158" height="1" border="0"></td>');
if (window.wfDocWrite != null) wfDocWrite('<td nowrap bgcolor="#ffcc99"><a href="http://www.ft.com"><img src="http://globalelements.ft.com/global/images/global_hdr/logo.gif" width="150" height="47" alt="FT.com" border="0"></a></td>');
if (window.wfDocWrite != null) wfDocWrite('<td nowrap bgcolor="#ffcc99" width="308" background="http://globalelements.ft.com/global/images/global_hdr/fading_rt.jpg"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="308" height="10" border="0"></td>');
var curLoc = document.location.href;
curLoc = curLoc.toString();
if (curLoc.indexOf("c=Collection&cid=ZZZLLCHPD0C")==-1) {
if (window.wfDocWrite != null) wfDocWrite('<td nowrap align="center" bgcolor="#ffcc99" width="162"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="1" height="4" border="0">');
if (window.wfDocWrite != null) wfDocWrite('<nobr><font class="hdrBrown"><input type="text" size="11" maxlength="40" name="query"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="3" height="1" border="0"><input type="image" src="http://globalelements.ft.com/global/images/global_hdr/search.gif" name="Search" value="submit" alt="Search" border="0"  align="absmiddle">&nbsp;&nbsp;&nbsp;</nobr><br><nobr><font class="hdrBrown"face="arial, helvetica" color="#ffcc99" size="1">Browse our</font> <a href="http://search.ft.com/directory/topLevelNavigation.htm"><font class="hdrBrown" face="arial, helvetica" color="#ffcc99" size="1"><u><b>Business Directory</b></u></font></a></nobr></font></td></tr>');
} else {
  if (window.wfDocWrite != null) wfDocWrite('<td bgcolor="#ffcc99" width="162" nowrap><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="1" height="1" border="0"></td></tr>');
}
if (window.wfDocWrite != null) wfDocWrite('<tr valign="top"><td nowrap width="158"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="6" height="1" border="0"><a href="#" onClick="showHideyournav(); return false;"><img src="http://globalelements.ft.com/global/images/global_hdr/navigation.gif" width="114" height="17" alt="View Navigation" border="0"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="3" height="1" border="0"><img src="http://globalelements.ft.com/global/images/global_hdr/arrow_rt.gif" width="25" height="17" alt="View Navigation" border="0" name="yournavarrow"></a></td>');
if (window.wfDocWrite != null) wfDocWrite('<td nowrap background="http://globalelements.ft.com/global/images/global_hdr/logo_bg.gif" bgcolor="#ffcc99"><a href="http://www.ft.com"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="150" height="17" alt="" border="0"></a></td>');
if (window.wfDocWrite != null) wfDocWrite('<td nowrap width="308"></td><td nowrap align="right"><a href="#" onClick="showHidepersonalnav(); return false;"><img src="http://globalelements.ft.com/global/images/global_hdr/toolbar.gif" width="128" height="17" alt="Personal Office" border="0"><img src="http://globalelements.ft.com/global/images/global/clear.gif" width="3" height="1" border="0"><img src="http://globalelements.ft.com/global/images/global_hdr/arrow_lt.gif" width="25" height="17" alt="Personal Office" border="0" name="toolarrow"></a></td></tr>');
if (window.wfDocWrite != null) wfDocWrite('</table>');
if (window.wfDocWrite != null) wfDocWrite('</form>');
}
}

// expanding nav scripts

var myBrowser;
if(ns4 == true){myBrowser = "NN";}
else if(ns4 == false){myBrowser = "IE";}

function objurl(eurl, etarget, etext){
  this.eurl = eurl;
  this.etarget = etarget;
  this.etext = etext;
  return this;
}

function objsubj(eurl){
  this.eurls = new Array();
  this.eurls[0] = eurl;
  this.addurl = addurl;
  return this;
}

function addurl(eurl){
  this.eurls[this.eurls.length] = eurl;
}

function objnav(title,id,objsubj,opennot){
    this.title=title;
  this.id=id;
  this.opennot=opennot;
  this.subjs = new Array();
  this.subjs[0] = objsubj;
  this.addsubj = addsubj;
}

function addsubj(objsubj){
  this.subjs[this.subjs.length] = objsubj;
}

function writeTable(navobj)
{
if (!navobj) { return; } //Exit if menu object does not yet exist
var curtable = '<font class=titlegrey>'+navobj.title+'</font>';
curtable += '<table border=0 cellspacing=0 cellpadding=1 width=150>';
for (var i=0; i<navobj.subjs.length; ++i)
  {curtable += '<tr valign=top><td width=10>';
if (navobj.subjs[i].eurls.length==1)
       curtable += '<a href="'+navobj.subjs[i].eurls[0].eurl+'" target="'+navobj.subjs[i].eurls[0].etarget+'" class=topchoice><img src="http://globalelements.ft.com/global/images/global_hdr/up.gif" border=0></a></td><td width=140><a  href="'+navobj.subjs[i].eurls[0].eurl+'" target="'+navobj.subjs[i].eurls[0].etarget+'" class=topchoice>';

else  if (navobj.opennot==i) curtable += '<a href="javascript:tagostuff('+navobj.id+','+i+',false)"><img src="http://globalelements.ft.com/global/images/global_hdr/down.gif" border=0></a></td><td width=140><a  href="javascript:tagostuff('+navobj.id+','+i+',false)" class=topchoice>';
       else curtable += '<a href="javascript:tagostuff('+navobj.id+','+i+',true)"><img src="http://globalelements.ft.com/global/images/global_hdr/up.gif" border=0></a></td><td width=140><a  href="javascript:tagostuff('+navobj.id+','+i+',true)" class=topchoice>';

   curtable += navobj.subjs[i].eurls[0].etext+'</a></td></tr>';
   if (navobj.opennot==i) {
   for (var j=1; j<navobj.subjs[i].eurls.length; ++j)
     {curtable += '<tr valign=top><td></td>';
      curtable += '<td width=140><a href="'+navobj.subjs[i].eurls[j].eurl+'" target="'+navobj.subjs[i].eurls[j].etarget+'" class=choice>'+navobj.subjs[i].eurls[j].etext+'</a></td></tr>';}
      curtable += '<tr><td colspan=2><img src="http://globalelements.ft.com/global/images/global/clear.gif" height=2></td></tr>';}
   }
curtable += '</table>';
if (myBrowser == "NN"){
document.layers["editLayer"].document.open();
document.layers["editLayer"].document.write(curtable);
document.layers["editLayer"].document.close();
}else if(myBrowser == "IE"){
document.all["editLayer"].innerHTML = curtable;}}


function tagostuff(navobj,subjnum, onoff)
{if (onoff) navobj.opennot=subjnum;
  else navobj.opennot=-1;
 writeTable(navobj);}

var newnav;
var marketnav;
var archivenav;

function buildnav()
{var newurl;
 var newobj;
 newurl= new objurl('#','_top','Industries');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://news.ft.com/news/industries/aerospace','_top','Aerospace');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/industries/autos','_top','Autos');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/industries/chemicals','_top','Chemicals');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/industries/consumerindustries','_top','Consumer Industries');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/industries/energy','_top','Energy');
  newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/industries/financialservices','_top','Financial Services');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/industries/infotechnology','_top','Information Technology');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/industries/manfacturing','_top','Manufacturing');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/industries/media','_top','Media & Entertainment');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/industries/medical','_top','Medical Industries');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/industries/naturalresources','_top','Natural Resources');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/industries/services','_top','Services');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/industries/telecommunications','_top','Telecommunications');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/industries/transport','_top','Transportation');
 newobj.addurl(newurl);
  newnav=new objnav('news & analysis','newnav',newobj,-1);

 newurl= new objurl('#','_top','Market News');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/global','_top','Global');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/us','_top','US');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/uk','_top','UK');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/asia','_top','Asia Pacific');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/europe','_top','Europe');
 newobj.addurl(newurl);
 newnav.addsubj(newobj);

 newurl= new objurl('#','_top','Business in Brief');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://news.ft.com/news/businessnews/global','_top','Global');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/businessnews/us','_top','US');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/businessnews/uk','_top','UK');
 newobj.addurl(newurl);
 newnav.addsubj(newobj);

 newurl= new objurl('#','_top','World News');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://news.ft.com/news/worldnews/global','_top','Global');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/worldnews/us','_top','US');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/worldnews/uk','_top','UK');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/worldnews/europe','_top','Europe');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/worldnews/americas','_top','Americas');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/worldnews/asia','_top','Asia Pacific');
 newobj.addurl(newurl);
  newurl= new objurl('http://news.ft.com/news/worldnews/mideastafrica','_top','Middle East &#38; Africa');
 newobj.addurl(newurl);
 newnav.addsubj(newobj);

 newurl= new objurl('#','_top','Companies');
 newobj= new objsubj(newurl);
 // Andrew Smith 8th Feb - removed Top Stories, By Region and By Industry links from launch
 // newurl= new objurl('http://news.ft.com/news/companynews/topcompanies','_top','Top Stories');
 // newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/news/companynews/az','_top','A - Z');
 newobj.addurl(newurl);
 // newurl= new objurl('http://news.ft.com/news/companynews/byregion','_top','By Region');
 // newobj.addurl(newurl);
 // newurl= new objurl('http://news.ft.com/news/companynews/byindustry','_top','By Industry');
 // newobj.addurl(newurl);
 newurl= new objurl('Http://news.ft.com/news/ipo','_top','IPOs');
 newobj.addurl(newurl);
 newnav.addsubj(newobj);

 newurl= new objurl('http://news.ft.com/news/newsbyemail','_top','News by E-mail');
 newobj= new objsubj(newurl);
 newnav.addsubj(newobj);

 newurl= new objurl('http://news.ft.com/news/reports','_top','Special Reports');
 newobj= new objsubj(newurl);
 newnav.addsubj(newobj);

 newurl= new objurl('http://news.ft.com/news/surveys','_top','Country / Industry Surveys');
 newobj= new objsubj(newurl);
 newnav.addsubj(newobj);
 
 newurl= new objurl('http://news.ft.com/news/headlines','_top','Video Headlines');
 newobj= new objsubj(newurl);
 newnav.addsubj(newobj);

 newurl= new objurl('http://news.ft.com/news/comments','_top','Video Comment');
 newobj= new objsubj(newurl);
 newnav.addsubj(newobj);

 newurl= new objurl('http://markets.ft.com/markets/home','_top','Markets Home');
 newobj= new objsubj(newurl);
 marketnav=new objnav('markets & portfolio','marketnav',newobj,-1);

 newurl= new objurl('http://www.portfolio.ft.com','_top','Personal Portfolio');
 newobj= new objsubj(newurl);
 marketnav.addsubj(newobj);

 newurl= new objurl('#','_top','Market News');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/global','_top','Global');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/us','_top','US');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/uk','_top','UK');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/asia','_top','Asia Pacific');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/news/markets/europe','_top','Europe');
 newobj.addurl(newurl);
 marketnav.addsubj(newobj);

 newurl= new objurl('#','_top','Premium Research');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://markets.ft.com/markets/annual_reports','_top','Annual Reports');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/markets/analyst_reports','_top','Analyst Estimates');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/markets/company','_top','Company Financials');
 newobj.addurl(newurl);
 marketnav.addsubj(newobj);

 newurl= new objurl('#','_top','Equities');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://markets.ft.com/markets/equities/home','_top','Equities Home');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/markets/equities/world','_top','World Indices');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/markets/equities/global','_top','FTSE Global Indices');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/markets/equities/london_aim','_top','London AIM Prices');
 newobj.addurl(newurl);
 newurl= new objurl('http://news.ft.com/markets/equities/closing','_top','World Closing');
 newobj.addurl(newurl);
 marketnav.addsubj(newobj);

 newurl= new objurl('#','_top','Currencies');
 newobj= new objsubj(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/currencies','_top','Currencies Home');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/currencies/converter','_top','Currency Converter');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/currencies/major','_top','Major Currencies');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/currencies/all','_top','All Currencies');
 newobj.addurl(newurl);
 newurl= new objurl('http://markets.ft.com/markets/currencies/international','_top','Intl. Currency Rates');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/currencies/moneyrates','_top','Money Rates');
 newobj.addurl(newurl);
 marketnav.addsubj(newobj);

 newurl= new objurl('http://markets.ft.com/markets/managed_funds','_top','Managed Funds');
 newobj= new objsubj(newurl);
 marketnav.addsubj(newobj);
 
 newurl= new objurl('#','_top','Capital Markets');
 newobj= new objsubj(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/capital/rates','_top','Money Rates');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/capital/govs','_top','Benchmark Govts.');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/capital/bonds','_top','Intl. Bonds');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/capital/spreads','_top','10-year Spreads');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/capital/emerging','_top','Emerging Market Bonds');
 newobj.addurl(newurl);
 marketnav.addsubj(newobj);

 newurl= new objurl('#','_top','Euro Special Report');
 newobj= new objsubj(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/euro/spot','_top','Euro Spot');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/euro/ecu','_top','EMS ECU Rates');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/euro/bonds','_top','Euro Zone Bonds');
 newobj.addurl(newurl);
 newurl= new objurl('Http://markets.ft.com/markets/euro/trading_day','_top','Euro Trading Day');
 newobj.addurl(newurl);
 marketnav.addsubj(newobj);

 newurl= new objurl('Http://markets.ft.com/markets/euro/commodities','_top','Commodities');
 newobj= new objsubj(newurl);
 marketnav.addsubj(newobj);
 
 newurl= new objurl('Http://news.ft.com/news/ipo','_top','IPOs');
 newobj= new objsubj(newurl);
 marketnav.addsubj(newobj);
 
 newurl= new objurl('http://news.ft.com/markets/equities/indicators','_top','Economic Indicators');
 newobj= new objsubj(newurl);
 marketnav.addsubj(newobj);
 
 newurl= new objurl('http://markets.ft.com/markets/equities/charts','_top','Interactive Charting');
 newobj= new objsubj(newurl);
 marketnav.addsubj(newobj);

 newurl= new objurl('http://people.ft.com/people','_top','People Home');
 newobj= new objsubj(newurl);
 peoplenav=new objnav('people','peoplenav',newobj,-1);

 newurl= new objurl('http://people.ft.com/people/movers','_top','People on the Move');
 newobj= new objsubj(newurl);
 peoplenav.addsubj(newobj);

 newurl= new objurl('http://people.ft.com/people/newsmakers','_top','Newsmakers Index');
 newobj= new objsubj(newurl);
 peoplenav.addsubj(newobj);

 newurl= new objurl('http://people.ft.com/people/directory','_top','People Directory');
 newobj= new objsubj(newurl);
 peoplenav.addsubj(newobj);

 newurl= new objurl('http://career.ft.com/careers','_top','Career Advisor Home');
 newobj= new objsubj(newurl);
 careernav=new objnav('career advisor','careernav',newobj,-1);

 newurl= new objurl('#','_top','Your Career');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://career.ft.com/careers/yourcareer/home','_top','Your Career');
 newobj.addurl(newurl);
 newurl= new objurl('http://career.ft.com/careers/survey/ei','_top','E I Survey');
 newobj.addurl(newurl);
 newurl= new objurl('http://career.ft.com/careers/survey/pv','_top','Personal Values Survey');
 newobj.addurl(newurl);
 newurl= new objurl('http://career.ft.com/careers/yourcareer/jobprofiles','_top','Job Profiles');
 newobj.addurl(newurl);
 newurl= new objurl('http://career.ft.com/careers/yourcareer/industryprofiles','_top','Industry Profiles');
 newobj.addurl(newurl);
 newurl= new objurl('http://career.ft.com/careers/yourcareer/resumeadvice','_top','Resume Advice');
 newobj.addurl(newurl);
 newurl= new objurl('http://career.ft.com/careers/yourcareer/interviewadvice','_top','Interview Advice');
 newobj.addurl(newurl);
 careernav.addsubj(newobj);

 newurl= new objurl('#','_top','Business Education');
 newobj= new objsubj(newurl);
 newurl= new objurl('http://career.ft.com/careers/buseducation/home','_top','Business Education');
 newobj.addurl(newurl);
 newurl= new objurl('http://www.ft.com/education/','_top','Business Courses');
 newobj.addurl(newurl);
 newurl= new objurl('http://www.ft.com/education/jan00_index.htm','_top','Business Program Rankings');
 newobj.addurl(newurl);
 careernav.addsubj(newobj);

 newurl= new objurl('http://timeoff.ft.com/timeoff','_top','Time Off Home');
 newobj= new objsubj(newurl);
 timenav=new objnav('time off','timenav',newobj,-1);

 newurl= new objurl('http://timeoff.ft.com/timeoff/sports','_top','Sports');
 newobj= new objsubj(newurl);
 timenav.addsubj(newobj);

 newurl= new objurl('http://timeoff.ft.com/timeoff/travel','_top','Travel');
 newobj= new objsubj(newurl);
 timenav.addsubj(newobj);

 newurl= new objurl('http://timeoff.ft.com/timeoff/goingout','_top','Going Out');
 newobj= new objsubj(newurl);
 timenav.addsubj(newobj);

 newurl= new objurl('http://timeoff.ft.com/timeoff/usshop','_top','US Shop');
 newobj= new objsubj(newurl);
 timenav.addsubj(newobj);

 newurl= new objurl('http://timeoff.ft.com/timeoff/euroshop','_top','European Shop');
 newobj= new objsubj(newurl);
 timenav.addsubj(newobj);
 
 newurl= new objurl('http://community.ft.com/community','_top','Community Home');
 newobj= new objsubj(newurl);
 ftnav=new objnav('community','ftnav',newobj,-1);
 
 newurl= new objurl('http://community.ft.com/community/forums','_top','Discussion Forums');
 newobj= new objsubj(newurl);
 ftnav.addsubj(newobj);
 
 newurl= new objurl('http://community.ft.com/community_directory','_top','Forum Directory');
 newobj= new objsubj(newurl);
 ftnav.addsubj(newobj);

 newurl= new objurl('http://search.ft.com/directory/topLevelNavigation.htm','_top','Business Directory');
 newobj= new objsubj(newurl);
 searchnav=new objnav('search &#38; archive','searchnav',newobj,-1);

 newurl= new objurl('http://search.ft.com/Search/advancedsearch','_top','Advanced Search (Archive Only)');
 newobj= new objsubj(newurl);
 searchnav.addsubj(newobj);
 }

 function writeLayer(){
 if (myBrowser == "NN"){
 if (window.wfDocWrite != null) wfDocWrite("<LAYER ID='editLayer' LEFT=156 TOP=145 width=145 bgcolor=#ffffff visibility=hidden><font face=\'arial\, helvetica\' size=\'2\'>Click a section name on the left to see its content and navigate the site. To open and close this toolbar, click on the arrow above.<\/font></LAYER>");}
 else if (myBrowser == "IE"){
 if (window.wfDocWrite != null) wfDocWrite("<DIV ID='editLayer' STYLE='position: absolute; left: 157; top: 145; width:145; z-index:200; background-color:#ffffff; visibility:hidden'><font face=\'arial\, helvetica\' size=\'2\'>Click a section name on the left to see its content and navigate the site. To open and close this toolbar, click on the arrow above.<\/font></DIV>");}
 }

//Build Personal toolbar content

  //add content here
  var pbline='';
  pbline +='<font class="toolbarLinks1">Welcome to Personal Office on FT.com, the essential tools you need to manage your time and your work.</font><br><br>';
  pbline +='<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=cal" class="toolbarLinks3" target=_top>Calendar</a>&nbsp;|&nbsp<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=caladd" class="toolbarLinks2" target=_top>[ <u>ADD</u> ]</a><br>';
  pbline +='<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=task" class="toolbarLinks3" target=_top>To Do</a>&nbsp;|&nbsp<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=taskadd" class="toolbarLinks2" target=_top>[ <u>ADD</u> ]</a><br>';
  pbline +='<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=email" class="toolbarLinks3" target=_top>Email</a>&nbsp;|&nbsp<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=emailcompose" class="toolbarLinks2" target=_top>[ <u>COMPOSE</u> ]</a><br>';
  pbline +='<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=addrbook" class="toolbarLinks3" target=_top>Address Book</a>&nbsp;|&nbsp<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=addrbookadd" class="toolbarLinks2" target=_top>[ <u>ADD</u> ]</a><br>';
  pbline +='<a href="http://ftoffice1.ft.com/verifyCookie/Authentication.asp?func=files" class="toolbarLinks3" target=_top>Files</a><br><br><br>';
    pbline +='&nbsp;<img src="http://globalelements.ft.com/global/images/global/clear.gif" width="1" height="500" border="0">';

function netscapeCssFix() {

  if (document.FT.netscapeCssFix.initWindowWidth != window.innerWidth || document.FT.netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function netscapeCssFixCheckIn() {

  if (ns4 == true) {
    if (typeof document.FT == 'undefined'){
      document.FT = new Object;
    }
    if (typeof document.FT.FT_scaleFont == 'undefined') {
      document.FT.netscapeCssFix = new Object;
      document.FT.netscapeCssFix.initWindowWidth = window.innerWidth;
      document.FT.netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = netscapeCssFix;
  }
}

netscapeCssFixCheckIn();

