/******************************************
**                                       **
**  Written by: Paul Hedgeland           **
**  Company: Nettec plc                  **
**  Date: 27th August 2002               **
**  Ver: 1.x                             **
**                                       **
******************************************/


var applicationName = (navigator.appName);
var base = "images/menu/"

if(document.images){

  what_on  = new Image(); what_on.src  = base + "animated-gif.gif"
  what_off = new Image(); what_off.src = base + "lhs_menu_arrow.gif"
  how_on  = new Image(); how_on.src  = base + "animated-gif.gif"
  how_off = new Image(); how_off.src = base + "lhs_menu_arrow.gif"
  who_on  = new Image(); who_on.src  = base + "animated-gif.gif"
  who_off = new Image(); who_off.src = base + "lhs_menu_arrow.gif"
  management_on  = new Image(); management_on.src  = base + "animated-gif.gif"
  management_off = new Image(); management_off.src = base + "lhs_menu_arrow.gif"
  advisors_on  = new Image(); advisors_on.src  = base + "animated-gif.gif"
  advisors_off = new Image(); advisors_off.src = base + "lhs_menu_arrow.gif"
  vendors_on  = new Image(); vendors_on.src  = base + "animated-gif.gif"
  vendors_off = new Image(); vendors_off.src = base + "lhs_menu_arrow.gif"
  co_on  = new Image(); co_on.src  = base + "animated-gif.gif"
  co_off = new Image(); co_off.src = base + "lhs_menu_arrow.gif"
  business_on  = new Image(); business_on.src  = base + "animated-gif.gif"
  business_off = new Image(); business_off.src = base + "lhs_menu_arrow.gif"
  corporate_on  = new Image(); corporate_on.src  = base + "animated-gif.gif"
  corporate_off = new Image(); corporate_off.src = base + "lhs_menu_arrow.gif"
  news_on  = new Image(); news_on.src  = base + "animated-gif.gif"
  news_off = new Image(); news_off.src = base + "lhs_menu_arrow.gif"
  portfolio_on  = new Image(); portfolio_on.src  = base + "animated-gif.gif"
  portfolio_off = new Image(); portfolio_off.src = base + "lhs_menu_arrow.gif"
  ir_on  = new Image(); ir_on.src  = base + "animated-gif.gif"
  ir_off = new Image(); ir_off.src = base + "lhs_menu_arrow.gif"
  reportandaccounts_on  = new Image(); reportandaccounts_on.src  = base + "animated-gif.gif"
  reportandaccounts_off = new Image(); reportandaccounts_off.src = base + "lhs_menu_arrow.gif"
  companystatement_on  = new Image(); companystatement_on.src  = base + "animated-gif.gif"
  companystatement_off = new Image(); companystatement_off.src = base + "lhs_menu_arrow.gif"
  corporategovernance_on  = new Image(); corporategovernance_on.src  = base + "animated-gif.gif"
  corporategovernance_off = new Image(); corporategovernance_off.src = base + "lhs_menu_arrow.gif"


}

function imgsOn(imgName) {
    if (document.images) {
      document[imgName].src = eval(imgName + "_on.src");
    }
  }

function imgsOff(imgName) {
    if (document.images) {
      document[imgName].src = eval(imgName + "_off.src");
    }
  }

function pageSetup(){
    footerDepth = (applicationName.indexOf("Netscape")!=-1)?28:32

    var docHeight = document.getElementById("mainWindow").offsetHeight
    var winHeight = (applicationName.indexOf("Netscape")!=-1)?window.innerHeight: document.body.offsetHeight
    if((winHeight-docHeight) <  footerDepth){

      document.getElementById("footer").style.top = docHeight
    }else{
      document.getElementById("footer").style.top = winHeight-footerDepth
    }
    document.getElementById("footer").style.visibility = 'visible'
  
  }

function winPop(url) {
    new_Window = window.open
    (url,"newWindow","location=no,toolbar=yes,directories=no,status=yes,menubar=yes,copyhistory=no,scrollbars=yes,resizable=yes,width=620,height=420,left=10,top=10");
  }
  
  function winPop2(url) {
    new_Window = window.open
    (url,"newWindow","location=yes,toolbar=yes,directories=no,status=yes,menubar=yes,copyhistory=no,scrollbars=yes,resizable=yes,width=900,height=420,left=10,top=10");
  }