NS4 = false;

hasDOM = false;

IE4 = false;

done = null;



function firstPageTest() {

  if (NS4 == false && navigator.appName == 'Netscape' && parseInt(navigator.appVersion) == 4) { 

    document.location = document.location;

  }

}



window.onload=firstPageTest;



function testLayer() {

  if (done && document.layers.testWidth.document.width < 200) {

    for (i=0; i<document.layers.length; i++) {

      document.layers[i].visibility = "hide";

    }

    cancelEvents();

    document.location = document.location;

  }

}



function testLayerInit() {

  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {

    window.onresize = testLayer;

  }

}



testLayerInit();



var bV=parseInt(navigator.appVersion);

mac=(navigator.appVersion.indexOf("Mac") != -1) ? true : false;

NS4=(document.layers) ? true : false;

IE4=((document.all)&&(bV>=4))?true:false;

ver4 = (NS4 || IE4) ? true : false;

hasDOM = (document.getElementById && !IE4) ? true : false;

function cancelEvents() {
  if (NS4 && !hasDOM) {
    releaseEvents(Event.MOUSEOVER);
    releaseEvents(Event.MOUSEUP);
  }
}

if (IE4 && !hasDOM) {

  layerDom = "document.all['";

  elemEnd = "']";

  idsDom = "document.all['";

  pLeft = "'].style.pixelLeft";

  pTop = "'].style.pixelTop";

  pHeightS = "'].style.pixelHeight";

  pWidth = "'].style.pixelWidth";

  pWidth2 = "'].style.pixelWidth";

  pWidth3 = (navigator.appVersion.indexOf("MSIE 4") != -1) ? "'].scrollWidth" : "'].offsetWidth";

  pHeight = (navigator.appVersion.indexOf("MSIE 4") != -1) ? "'].scrollHeight" : "'].offsetHeight";

  pVis = "'].style.visibility";

  pBgColor = "'].style.backgroundColor";

  V = "visible";

  H = "hidden";

}



if (NS4 && !hasDOM) {

  layerDom = "document.layers['";

  elemEnd = "']";

  idsDom = "document.ids['";

  pLeft = "'].pageX";

  pTop = "'].pageY";

  pHeightS = "'].clip.height";

  pWidth = "'].width";

  pWidth2 = "'].clip.width";

  pWidth3 = "'].document.width";

  pHeight = "'].document.height";

  pVis = "'].visibility";

  pBgColor = "'].bgColor";

  V = "show";

  H = "hide";

}



if (hasDOM) {

  layerDom = "document.getElementById('";

  elemEnd = "')";

  idsDom = "document.getElementById('";

  pLeft = "').style.left";

  pTop = "').style.top";

  pHeightS = "').style.height";

  pWidth = "').style.width";

  pWidth2 = "').style.width";

  pWidth3 = "').offsetWidth";

  pHeight = "').offsetHeight";

  pVis = "').style.visibility";

  pBgColor = "').style.backgroundColor";

  V = "visible";

  H = "hidden";

}



objArray = new Array();

x = 0;



function layerPos(n) {

  this.n = n;

  this.l = "";

  this.t = "";

  this.w = "";

  this.v = "";

  this.h = "";

  this.menus = "";

  this.bgC = "";

  this.hiC = "";

  objArray[x] = this;

  x++;

}



fixedWidth = 780;



//----Layer Positioning Properties



      newSection = null;



      Mbluestretch = new layerPos("bluestretch");

      Mbluestretch.l = "0";

      Mbluestretch.t = "0";

      Mbluestretch.w = "getWindowWidth()";

      Mbluestretch.v = "V";

      Mbluestretch.h = "60";

      Mbluestretch.bgC = "#333366";

      

//      Mbluetop = new layerPos("bluetop");

//      Mbluetop.l = "0";

//      Mbluetop.t = "0";

//      Mbluetop.w = "590";

//      Mbluetop.v = "V";

//      Mbluetop.h = "17";          



//      Mnyspics = new layerPos("nyspics");

//      Mnyspics.l = "0";

//      Mnyspics.t = "18";

//      Mnyspics.w = "590";

//      Mnyspics.v = "V";

//      Mnyspics.h = "49";

      

//      Mperilinks = new layerPos("perilinks");

//      Mperilinks.l = "0";

//      Mperilinks.t = "66";

//      Mperilinks.w = "590";

//      Mperilinks.v = "V";

//      Mperilinks.h = "34";

      

      Mlogostretch = new layerPos("logostretch");

      Mlogostretch.l = "0";

      Mlogostretch.t = "60";

      Mlogostretch.w = "getWindowWidth()";

      Mlogostretch.v = "V";

      Mlogostretch.h = "106";



      Mlogo1 = new layerPos("logo1");

      Mlogo1.l = "0";

      Mlogo1.t = "60";

      Mlogo1.w = "106";

      Mlogo1.v = "V";

      Mlogo1.h = "106";

      

      Mlogo2 = new layerPos("logo2");

      Mlogo2.l = "107";

      Mlogo2.t = "60";

      Mlogo2.w = "359";

      Mlogo2.v = "V";

      Mlogo2.h = "106";



//----About SUCF---- SECTION



      MaboutSucfBTNS = new layerPos("aboutSucfBTNS");

      MaboutSucfBTNS.t = "180";

      MaboutSucfBTNS.l = "15";

      MaboutSucfBTNS.w = "130";

      MaboutSucfBTNS.v = "V";

      MaboutSucfBTNS.h = "-1";

      MaboutSucfBTNS.menus = new Array("missionBTNS", "orgFunctionsBTNS", "contactSucfBTNS", "integrityBTNS","employSucfBTNS", "foilBTNS","webcastBTNS","sitemapBTNS");

      MaboutSucfBTNS.bgC = "#FFFFFF";

      MaboutSucfBTNS.hiC = "#99CCFF";



      MmissionBTNS = new layerPos("missionBTNS");

      MmissionBTNS.t = "180";

      MmissionBTNS.l = "getRight('aboutSucfBTNS')";

      MmissionBTNS.w = "150";

      MmissionBTNS.v = "H";

      MmissionBTNS.h = "-1";

      MmissionBTNS.subL = 0;

      MmissionBTNS.bgC = "#99CCFF";

      MmissionBTNS.hiC = "#FFCC00";

      

      MorgFunctionsBTNS = new layerPos("orgFunctionsBTNS");

      MorgFunctionsBTNS.t = "getBottom('missionBTNS')";

      MorgFunctionsBTNS.l = "getRight('aboutSucfBTNS')";

      MorgFunctionsBTNS.w = "150";

      MorgFunctionsBTNS.v = "H";

      MorgFunctionsBTNS.h = "-1";

      MorgFunctionsBTNS.subL = 0;

      MorgFunctionsBTNS.bgC = "#99CCFF";

      MorgFunctionsBTNS.hiC = "#FFCC00"; 

      

      McontactSucfBTNS = new layerPos("contactSucfBTNS");

      McontactSucfBTNS.t = "getBottom('orgFunctionsBTNS')";

      McontactSucfBTNS.l = "getRight('aboutSucfBTNS')";

      McontactSucfBTNS.w = "150";

      McontactSucfBTNS.v = "H";

      McontactSucfBTNS.h = "-1";

      McontactSucfBTNS.subL = 0;

      McontactSucfBTNS.bgC = "#99CCFF";

      McontactSucfBTNS.hiC = "#FFCC00"; 



      MintegrityBTNS = new layerPos("integrityBTNS");

      MintegrityBTNS.t = "getBottom('contactSucfBTNS')";

      MintegrityBTNS.l = "getRight('aboutSucfBTNS')";

      MintegrityBTNS.w = "150";

      MintegrityBTNS.v = "H";

      MintegrityBTNS.h = "-1";

      MintegrityBTNS.subL = 0;

      MintegrityBTNS.bgC = "#99CCFF";

      MintegrityBTNS.hiC = "#FFCC00"; 



      MemploySucfBTNS = new layerPos("employSucfBTNS");

      MemploySucfBTNS.t = "getBottom('integrityBTNS')";

      MemploySucfBTNS.l = "getRight('aboutSucfBTNS')";

      MemploySucfBTNS.w = "150";

      MemploySucfBTNS.v = "H";

      MemploySucfBTNS.h = "-1";

      MemploySucfBTNS.subL = 0;

      MemploySucfBTNS.bgC = "#99CCFF";

      MemploySucfBTNS.hiC = "#FFCC00"; 



      MfoilBTNS = new layerPos("foilBTNS");

      MfoilBTNS.t = "getBottom('employSucfBTNS')";

      MfoilBTNS.l = "getRight('aboutSucfBTNS')";

      MfoilBTNS.w = "150";

      MfoilBTNS.v = "H";

      MfoilBTNS.h = "-1";

      MfoilBTNS.subL = 0;

      MfoilBTNS.bgC = "#99CCFF";

      MfoilBTNS.hiC = "#FFCC00"; 


     MwebcastBTNS = new layerPos("webcastBTNS");

      MwebcastBTNS.t = "getBottom('foilBTNS')";

      MwebcastBTNS.l = "getRight('aboutSucfBTNS')";

      MwebcastBTNS.w = "150";

      MwebcastBTNS.v = "H";

      MwebcastBTNS.h = "-1";

      MwebcastBTNS.subL = 0;

      MwebcastBTNS.bgC = "#99CCFF";

      MwebcastBTNS.hiC = "#FFCC00"; 



      MsitemapBTNS = new layerPos("sitemapBTNS");

      MsitemapBTNS.t = "getBottom('webcastBTNS')";

      MsitemapBTNS.l = "getRight('aboutSucfBTNS')";

      MsitemapBTNS.w = "150";

      MsitemapBTNS.v = "H";

      MsitemapBTNS.h = "-1";

      MsitemapBTNS.subL = 0;

      MsitemapBTNS.bgC = "#99CCFF";

      MsitemapBTNS.hiC = "#FFCC00"; 


      

//----Business Contracting Oppourtunities--- SECTION

      

      MbusinessBTNS = new layerPos("businessBTNS");

      MbusinessBTNS.t = "getBottom('aboutSucfBTNS') + 1";

      MbusinessBTNS.l = "15";

      MbusinessBTNS.w = "130";

      MbusinessBTNS.v = "V";

      MbusinessBTNS.h = "-1";

      MbusinessBTNS.menus = new Array("procureBTNS","conBidActBTNS", "conBidCalBTNS", "conBidResBTNS", "conSelectBTNS", "conStatusBTNS");

      MbusinessBTNS.bgC = "#FFFFFF";

      MbusinessBTNS.hiC = "#99CCFF";


      MprocureBTNS = new layerPos("procureBTNS");

      MprocureBTNS.t = "getTop('businessBTNS')";

      MprocureBTNS.l = "getRight('businessBTNS')";

      MprocureBTNS.w = "150";

      MprocureBTNS.v = "H";

      MprocureBTNS.h = "-1";

      MprocureBTNS.subL = 0;

      MprocureBTNS.bgC = "#99CCFF";

      MprocureBTNS.hiC = "#FFCC00";



      MconBidActBTNS = new layerPos("conBidActBTNS");

      MconBidActBTNS.t = "getBottom('procureBTNS')";

      MconBidActBTNS.l = "getRight('businessBTNS')";

      MconBidActBTNS.w = "150";

      MconBidActBTNS.v = "H";

      MconBidActBTNS.h = "-1";

      MconBidActBTNS.subL = 0;

      MconBidActBTNS.bgC = "#99CCFF";

      MconBidActBTNS.hiC = "#FFCC00";

      

      MconBidCalBTNS = new layerPos("conBidCalBTNS");

      MconBidCalBTNS.t = "getBottom('conBidActBTNS')";

      MconBidCalBTNS.l = "getRight('businessBTNS')";

      MconBidCalBTNS.w = "150";

      MconBidCalBTNS.v = "H";

      MconBidCalBTNS.h = "-1";

      MconBidCalBTNS.subL = 0;

      MconBidCalBTNS.bgC = "#99CCFF";

      MconBidCalBTNS.hiC = "#FFCC00";

      

      MconBidResBTNS = new layerPos("conBidResBTNS");

      MconBidResBTNS.t = "getBottom('conBidCalBTNS')";

      MconBidResBTNS.l = "getRight('businessBTNS')";

      MconBidResBTNS.w = "150";

      MconBidResBTNS.v = "H";

      MconBidResBTNS.h = "-1";

      MconBidResBTNS.subL = 0;

      MconBidResBTNS.bgC = "#99CCFF";

      MconBidResBTNS.hiC = "#FFCC00"; 

      

      MconSelectBTNS = new layerPos("conSelectBTNS");

      MconSelectBTNS.t = "getBottom('conBidResBTNS')";

      MconSelectBTNS.l = "getRight('businessBTNS')";

      MconSelectBTNS.w = "150";

      MconSelectBTNS.v = "H";

      MconSelectBTNS.h = "-1";

      MconSelectBTNS.subL = 0;

      MconSelectBTNS.bgC = "#99CCFF";

      MconSelectBTNS.hiC = "#FFCC00"; 


      MconStatusBTNS = new layerPos("conStatusBTNS");

      MconStatusBTNS.t = "getBottom('conSelectBTNS')";

      MconStatusBTNS.l = "getRight('businessBTNS')";

      MconStatusBTNS.w = "150";

      MconStatusBTNS.v = "H";

      MconStatusBTNS.h = "-1";

      MconStatusBTNS.subL = 0;

      MconStatusBTNS.bgC = "#99CCFF";

      MconStatusBTNS.hiC = "#FFCC00"; 
    

//----Design and Construction Resources--- SECTION

 

      MdesignBTNS = new layerPos("designBTNS");

      MdesignBTNS.t = "getBottom('businessBTNS') + 1";

      MdesignBTNS.l = "15";

      MdesignBTNS.w = "130";

      MdesignBTNS.v = "V";

      MdesignBTNS.h = "-1";

      MdesignBTNS.menus = new Array("staffBTNS", "formsBTNS", "bulletinsBTNS", "nysContractBTNS", "mwbeBTNS", "taxBTNS", "prevailingBTNS", "ccformsBTNS");

      MdesignBTNS.bgC = "#FFFFFF";

      MdesignBTNS.hiC = "#99CCFF"; 

      

      MstaffBTNS = new layerPos("staffBTNS");

      MstaffBTNS.t = "getTop('designBTNS')";

      MstaffBTNS.l = "getRight('designBTNS')";

      MstaffBTNS.w = "150";

      MstaffBTNS.v = "H";

      MstaffBTNS.h = "-1";

      MstaffBTNS.subL = 0;

      MstaffBTNS.bgC = "#99CCFF";

      MstaffBTNS.hiC = "#FFCC00"; 



      MformsBTNS = new layerPos("formsBTNS");

      MformsBTNS.t = "getBottom('staffBTNS')";

      MformsBTNS.l = "getRight('designBTNS')";

      MformsBTNS.w = "150";

      MformsBTNS.v = "H";

      MformsBTNS.h = "-1";

      MformsBTNS.subL = 0;

      MformsBTNS.bgC = "#99CCFF";

      MformsBTNS.hiC = "#FFCC00"; 



      MbulletinsBTNS = new layerPos("bulletinsBTNS");

      MbulletinsBTNS.t = "getBottom('formsBTNS')";

      MbulletinsBTNS.l = "getRight('designBTNS')";

      MbulletinsBTNS.w = "150";

      MbulletinsBTNS.v = "H";

      MbulletinsBTNS.h = "-1";

      MbulletinsBTNS.subL = 0;

      MbulletinsBTNS.bgC = "#99CCFF";

      MbulletinsBTNS.hiC = "#FFCC00"; 



      MnysContractBTNS = new layerPos("nysContractBTNS");

      MnysContractBTNS.t = "getBottom('bulletinsBTNS')";

      MnysContractBTNS.l = "getRight('designBTNS')";

      MnysContractBTNS.w = "150";

      MnysContractBTNS.v = "H";

      MnysContractBTNS.h = "-1";

      MnysContractBTNS.subL = 0;

      MnysContractBTNS.bgC = "#99CCFF";

      MnysContractBTNS.hiC = "#FFCC00";



      MmwbeBTNS = new layerPos("mwbeBTNS");

      MmwbeBTNS.t = "getBottom('nysContractBTNS')";

      MmwbeBTNS.l = "getRight('designBTNS')";

      MmwbeBTNS.w = "150";

      MmwbeBTNS.v = "H";

      MmwbeBTNS.h = "-1";

      MmwbeBTNS.subL = 0;

      MmwbeBTNS.bgC = "#99CCFF";

      MmwbeBTNS.hiC = "#FFCC00";



      MtaxBTNS = new layerPos("taxBTNS");

      MtaxBTNS.t = "getBottom('mwbeBTNS')";

      MtaxBTNS.l = "getRight('designBTNS')";

      MtaxBTNS.w = "150";

      MtaxBTNS.v = "H";

      MtaxBTNS.h = "-1";

      MtaxBTNS.subL = 0;

      MtaxBTNS.bgC = "#99CCFF";

      MtaxBTNS.hiC = "#FFCC00";



      MprevailingBTNS = new layerPos("prevailingBTNS");

      MprevailingBTNS.t = "getBottom('taxBTNS')";

      MprevailingBTNS.l = "getRight('designBTNS')";

      MprevailingBTNS.w = "150";

      MprevailingBTNS.v = "H";

      MprevailingBTNS.h = "-1";

      MprevailingBTNS.subL = 0;

      MprevailingBTNS.bgC = "#99CCFF";

      MprevailingBTNS.hiC = "#FFCC00";



      MccformsBTNS = new layerPos("ccformsBTNS");

      MccformsBTNS.t = "getBottom('prevailingBTNS')";

      MccformsBTNS.l = "getRight('designBTNS')";

      MccformsBTNS.w = "150";

      MccformsBTNS.v = "H";

      MccformsBTNS.h = "-1";

      MccformsBTNS.subL = 0;

      MccformsBTNS.bgC = "#99CCFF";

      MccformsBTNS.hiC = "#FFCC00";


      

//----Projects--- SECTION          

    

      MprojectsBTNS = new layerPos("projectsBTNS");

      MprojectsBTNS.t = "getBottom('designBTNS') + 1";

      MprojectsBTNS.l = "15";

      MprojectsBTNS.w = "130";

      MprojectsBTNS.v = "V";

      MprojectsBTNS.h = "-1";

      MprojectsBTNS.menus = new Array("capplanBTNS","currentBTNS", "locatBTNS", "locatdBTNS","environBTNS","webcamBTNS", "galleryBTNS");

      MprojectsBTNS.bgC = "#FFFFFF";

      MprojectsBTNS.hiC = "#99CCFF";            

      

      McapplanBTNS = new layerPos("capplanBTNS");

      McapplanBTNS.t = "getTop('projectsBTNS')";

      McapplanBTNS.l = "getRight('projectsBTNS')";

      McapplanBTNS.w = "150";

      McapplanBTNS.v = "H";

      McapplanBTNS.h = "-1";

      McapplanBTNS.subL = 0;

      McapplanBTNS.bgC = "#99CCFF";

      McapplanBTNS.hiC = "#FFCC00"; 



      McurrentBTNS = new layerPos("currentBTNS");

      McurrentBTNS.t = "getBottom('capplanBTNS')";

      McurrentBTNS.l = "getRight('projectsBTNS')";

      McurrentBTNS.w = "150";

      McurrentBTNS.v = "H";

      McurrentBTNS.h = "-1";

      McurrentBTNS.subL = 0;

      McurrentBTNS.bgC = "#99CCFF";

      McurrentBTNS.hiC = "#FFCC00"; 



      MlocatBTNS = new layerPos("locatBTNS");

      MlocatBTNS.t = "getBottom('currentBTNS')";

      MlocatBTNS.l = "getRight('projectsBTNS')";

      MlocatBTNS.w = "150";

      MlocatBTNS.v = "H";

      MlocatBTNS.h = "-1";

      MlocatBTNS.subL = 0;

      MlocatBTNS.bgC = "#99CCFF";

      MlocatBTNS.hiC = "#FFCC00"; 


      MlocatdBTNS = new layerPos("locatdBTNS");

      MlocatdBTNS.t = "getBottom('locatBTNS')";

      MlocatdBTNS.l = "getRight('projectsBTNS')";

      MlocatdBTNS.w = "150";

      MlocatdBTNS.v = "H";

      MlocatdBTNS.h = "-1";

      MlocatdBTNS.subL = 0;

      MlocatdBTNS.bgC = "#99CCFF";

      MlocatdBTNS.hiC = "#FFCC00"; 


      MenvironBTNS = new layerPos("environBTNS");

      MenvironBTNS.t = "getBottom('locatdBTNS')";

      MenvironBTNS.l = "getRight('projectsBTNS')";

      MenvironBTNS.w = "150";

      MenvironBTNS.v = "H";

      MenvironBTNS.h = "-1";

      MenvironBTNS.subL = 0;

      MenvironBTNS.bgC = "#99CCFF";

      MenvironBTNS.hiC = "#FFCC00"; 



      MwebcamBTNS = new layerPos("webcamBTNS");

      MwebcamBTNS.t = "getBottom('environBTNS')";

      MwebcamBTNS.l = "getRight('projectsBTNS')";

      MwebcamBTNS.w = "150";

      MwebcamBTNS.v = "H";

      MwebcamBTNS.h = "-1";

      MwebcamBTNS.subL = 0;

      MwebcamBTNS.bgC = "#99CCFF";

      MwebcamBTNS.hiC = "#FFCC00"; 


  
    
      MgalleryBTNS = new layerPos("galleryBTNS");

      MgalleryBTNS.t = "getBottom('webcamBTNS')";

      MgalleryBTNS.l = "getRight('projectsBTNS')";

      MgalleryBTNS.w = "150";

      MgalleryBTNS.v = "H";

      MgalleryBTNS.h = "-1";

      MgalleryBTNS.subL = 0;

      MgalleryBTNS.bgC = "#99CCFF";

      MgalleryBTNS.hiC = "#FFCC00";      

      

//----SUNY Facilities--- SECTION       

      

      MfacilitiesBTNS = new layerPos("facilitiesBTNS");

      MfacilitiesBTNS.t = "getBottom('projectsBTNS') + 1";

      MfacilitiesBTNS.l = "15";

      MfacilitiesBTNS.w = "130";

      MfacilitiesBTNS.v = "V";

      MfacilitiesBTNS.h = "-1";

      MfacilitiesBTNS.menus = new Array("campusBTNS", "rockefellerBTNS","campFacsBTNS", "plantBTNS", "facinvmanBTNS");

      MfacilitiesBTNS.bgC = "#FFFFFF";

      MfacilitiesBTNS.hiC = "#99CCFF";   

      

      McampusBTNS = new layerPos("campusBTNS");

      McampusBTNS.t = "getTop('facilitiesBTNS')";

      McampusBTNS.l = "getRight('facilitiesBTNS')";

      McampusBTNS.w = "150";

      McampusBTNS.v = "H";

      McampusBTNS.h = "-1";

      McampusBTNS.subL = 0;

      McampusBTNS.bgC = "#99CCFF";

      McampusBTNS.hiC = "#FFCC00";       

    
      MrockefellerBTNS = new layerPos("rockefellerBTNS");

      MrockefellerBTNS.t = "getBottom('campusBTNS')";

      MrockefellerBTNS.l = "getRight('facilitiesBTNS')";

      MrockefellerBTNS.w = "150";

      MrockefellerBTNS.v = "H";

      MrockefellerBTNS.h = "-1";

      MrockefellerBTNS.subL = 0;

      MrockefellerBTNS.bgC = "#99CCFF";

      MrockefellerBTNS.hiC = "#FFCC00";       

  

      McampFacsBTNS = new layerPos("campFacsBTNS");

      McampFacsBTNS.t = "getBottom('rockefellerBTNS')";

      McampFacsBTNS.l = "getRight('facilitiesBTNS')";

      McampFacsBTNS.w = "150";

      McampFacsBTNS.v = "H";

      McampFacsBTNS.h = "-1";

      McampFacsBTNS.subL = 0;

      McampFacsBTNS.bgC = "#99CCFF";

      McampFacsBTNS.hiC = "#FFCC00";       

      

      MplantBTNS = new layerPos("plantBTNS");

      MplantBTNS.t = "getBottom('campFacsBTNS')";

      MplantBTNS.l = "getRight('facilitiesBTNS')";

      MplantBTNS.w = "150";

      MplantBTNS.v = "H";

      MplantBTNS.h = "-1";

      MplantBTNS.subL = 0;

      MplantBTNS.bgC = "#99CCFF";

      MplantBTNS.hiC = "#FFCC00";    



      MfacinvmanBTNS = new layerPos("facinvmanBTNS");

      MfacinvmanBTNS.t = "getBottom('plantBTNS')";

      MfacinvmanBTNS.l = "getRight('facilitiesBTNS')";

      MfacinvmanBTNS.w = "150";

      MfacinvmanBTNS.v = "H";

      MfacinvmanBTNS.h = "-1";

      MfacinvmanBTNS.subL = 0;

      MfacinvmanBTNS.bgC = "#99CCFF";

      MfacinvmanBTNS.hiC = "#FFCC00";    


//----SUNY Applications--- SECTION       

     

      MAppsBTNS = new layerPos("AppsBTNS");

      MAppsBTNS.t = "getBottom('facilitiesBTNS') + 1";

      MAppsBTNS.l = "15";

      MAppsBTNS.w = "130";

      MAppsBTNS.v = "V";

      MAppsBTNS.h = "-1";

      MAppsBTNS.bgC = "#FFFFFF";

      MAppsBTNS.hiC = "#99CCFF";   


     
//----modified 5/25/05 to accomodate new SUNY Logo - lma
//----modified 7/07/06 to accomodate new SUNY Applications menu - lma
//----created 02/29/08 this text in "white" for index.shtml left rail 

//--  the suny logo 
   Mtower = new layerPos("tower");

   Mtower.l = "45";

   Mtower.t = "getBottom('AppsBTNS') + 10";

   Mtower.w = "68";

   Mtower.v = "V";

   Mtower.h = "64";   

//----  the suny words   
   Msuny = new layerPos("suny");

   Msuny.l = "15";

   Msuny.t = "getBottom('tower') + 1";

   Msuny.w = "150";

   Msuny.v = "V";

   Msuny.h = "-1";   

//----  the sucf word
//----   Msucf = new layerPos("sucf");

//----   Msucf.l = "58";

//----   Msucf.t = "getBottom('suny') + 1";

//----   Msucf.w = "4";

//----   Msucf.v = "V";

//----   Msucf.h = "-1";   

//----  the corporate integrity words
   Mcip = new layerPos("cip");

   Mcip.l = "5";

   Mcip.t = "getBottom('suny') +20";

   Mcip.w = "160";

   Mcip.v = "V";

   Mcip.h = "-1";   

//---- this is the phone 
   Mphone = new layerPos("phone");

   Mphone.l = "52";

   Mphone.t = "getBottom('cip') + 1";

   Mphone.w = "32";

   Mphone.v = "V";

   Mphone.h = "32";   

//---- this is the intergrity phone number
   Mnumber = new layerPos("number");

   Mnumber.l = "25";

   Mnumber.t = "getBottom('phone') + 1";

   Mnumber.w = "150";

   Mnumber.v = "V";

   Mnumber.h = "-1";   


//----  this is the Governor Paterson's words
   Mgovernor = new layerPos("governor");

   Mgovernor.l = "42";

   Mgovernor.t = "getBottom('number') +20";

   Mgovernor.w = "160";

   Mgovernor.v = "V";

   Mgovernor.h = "-1";   

//---- this is the Albany Belt image 
   Mbelt = new layerPos("belt");

   Mbelt.l = "45";

   Mbelt.t = "getBottom('governor') + 1";

   Mbelt.w = "68";

   Mbelt.v = "V";

   Mbelt.h = "64";   

//---- this is the Taxpayer Accountability words
   Mtax = new layerPos("tax");

   Mtax.l = "16";

   Mtax.t = "getBottom('belt') + 1";

   Mtax.w = "150";

   Mtax.v = "V";

   Mtax.h = "-1";   


   

   Mwtc = new layerPos("wtc");

   Mwtc.l = "170";

   Mwtc.t = "100";

   Mwtc.w = "313";

   Mwtc.v = "V";

   Mwtc.h = "20"; 

     

     

//----Body--- SECTION  



if (IE4) {

     Mcontent = new layerPos("content");

     Mcontent.l = "170";

     Mcontent.t = "180";

     Mcontent.w = "getWindowWidth() - 180";

     Mcontent.v = "V";

     Mcontent.h = "-1";

}

     

        

  //   Mbobby = new layerPos("bobby");

  //   Mbobby.l = "getWindowWidth() - 95";

  //   Mbobby.t = "getBottom('body') + 10";

  //   Mbobby.w = "88";

  //   Mbobby.h = "-1";

  //   Mbobby.v = "V";   

     

     

     

     

     

     



//----End Layer Position Properties





//----Side Bar Navigation



lastScrollTop = (IE4) ? 0 : window.pageYOffset;

  

function getBottom(what) {

  gBot = getTop(what) + getHeight(what);

  return gBot;

}



function getSecBottom() {

  whatObj = eval("document.sections."+curSec);

  what = whatObj[whatObj.length - 1];

  gBot = getTop(what) + getHeight(what);

  return gBot;

}



function getSecVis(what) {

  vis = (what == curSec) ? V : H;

  return vis;

}



function getLowestBottom() {

  gLBot = 0;

  for (j=0;j<getLowestBottom.arguments.length;j++) {

    thisBottom = parseInt(getBottom(getLowestBottom.arguments[j]));

    gLBot = (thisBottom > gLBot) ? thisBottom : gLBot;

  }

  return gLBot;

}



function getGreatestHeight() {

  gGH = 0;

  for (j=0;j<getGreatestHeight.arguments.length;j++) {

    thisHeight = getHeight(getGreatestHeight.arguments[j]);

    refV = (thisHeight > gGH) ? thisHeight : gGH;

  }

  return gGH;

}



function getRight(what) {

  gRt = getLeft(what) + getWidth(what);

  return gRt;

}



function getRightNpad(what) {

  gRtP = getLeft(what) + getWidth(what);

  return gRtP;

}



function getWidth(what) {

  hPad = 0;

  if (mac && navigator.appVersion.indexOf("MSIE 4") != -1) {

    classN = eval(layerDom+what+"'].className");

    testHPad = "document.pads.M"+classN;

    if (typeof eval(testHPad) != "undefined") { 

      hPad = eval("document.pads.M"+classN+".pdL") + eval("document.pads.M"+classN+".pdR");

    }

  }

  gWdth = parseInt(eval(layerDom+what+pWidth3)) + hPad;

  return gWdth;

}

  

function getTop(what) {

  topOff = 0;

  if (mac && navigator.appVersion.indexOf("MSIE 4.0") != -1) {

    classN = eval(layerDom+what+"'].className");

    testHPad = "document.pads.M"+classN;

    if (typeof eval(testHPad) != "undefined") { 

      topOff = eval("document.pads.M"+classN+".pdT");

    }

  }

  gTp = parseInt(eval(layerDom+what+pTop)) - topOff;

  return gTp;

}



function getLeft(what) {

  leftOff = 0;

  if (mac && navigator.appVersion.indexOf("MSIE 4.0") != -1) {

    classN = eval(layerDom+what+"'].className");

    testHPad = "document.pads.M"+classN;

    if (typeof eval(testHPad) != "undefined") { 

      leftOff = eval("document.pads.M"+classN+".pdL");

    }

  }

  gLt = parseInt(eval(layerDom+what+pLeft)) - leftOff;

  return gLt;

}



function getHeight(what) {

  vPad = 0;

  if (mac && navigator.appVersion.indexOf("MSIE 4") != -1) {

    classN = eval(layerDom+what+"'].className");

    testPad = "document.pads.M"+classN;

    if (typeof eval(testPad) != "undefined") { 

      vPad = eval("document.pads.M"+classN+".pdT") + eval("document.pads.M"+classN+".pdB");

    }

  }

  if (NS4 && !hasDOM) {

    gHeight = (parseInt(eval(layerDom+what+pHeight)) > parseInt(eval(layerDom+what+pHeightS)) ) ? parseInt(eval(layerDom+what+pHeight)) : parseInt(eval(layerDom+what+pHeightS));

  } else if (IE4  && !hasDOM) {

    gHeight = parseInt(eval(layerDom+what+pHeightS));

  } else if (hasDOM) {

    gHeight = parseInt(eval(layerDom+what+pHeight));

  }

  gHt = gHeight + vPad;

  return gHt;

}





sWWidth = null;



function getWindowWidth() {

  gWW = (IE4 && !hasDOM) ? document.body.clientWidth : parseInt(window.innerWidth);

  //gWW = (gWW < 800) ? 780 : gWW;

  if (!sWWidth) { 

    sWWidth = gWW;

  } else {

    gWW = sWWidth;

  }

  return gWW;

}



function getCenterPad() {

  realWidth = (IE4 && !hasDOM) ? document.body.clientWidth : parseInt(window.innerWidth);

  centerPad = (realWidth > fixedWidth) ? (realWidth - fixedWidth) / 2 : 0;

  return centerPad;

}



function getDocumentHeight() {

  scrollH = (IE4) ? mostHeight : document.height; //DOM needs to be addressed here?

  clientH = (IE4 && !hasDOM) ? document.body.clientHeight : parseInt(window.innerHeight);

  refV = (clientH > scrollH) ? clientH : scrollH;

  return refV;

}



function getWindowHeight() {

  scrollOff = (mac) ? 0 : 5;

  gWH = (IE4 && !hasDOM) ? document.body.clientHeight - scrollOff : parseInt(window.innerHeight);

  return gWH;

}



function doWidths() {

  for (j=0;j<objArray.length;j++) {

    wV = objArray[j].w.toString();

    if (wV.indexOf("getRight(") == -1) {

      whatSetting = eval(objArray[j].w);

      if (whatSetting != -1) {

        eval(idsDom+objArray[j].n+pWidth+" = "+whatSetting);

      }

    }

  }

}





classL = new Array();



function padObjs() {

  document.pads = new Object;

  for (i=0; i<document.styleSheets.length; i++) {

    ruleS = document.styleSheets[i].rules;

    for (j=0; j<ruleS.length; j++) {

      if (ruleS[j].selectorText.indexOf(".") != -1 && ruleS[j].selectorText.indexOf(":") == -1) {

        objName = "M"+ruleS[j].selectorText.substring(1,ruleS[j].selectorText.length);

        testObj = "document.pads."+objName;

        if (typeof eval(testObj) == "undefined") {

          eval("document.pads."+objName+" = new Object");

          classL[classL.length] = objName;

        }

        pdL = (ruleS[j].style.paddingLeft != "") ? parseInt(ruleS[j].style.paddingLeft) : 0;

        pdR = (ruleS[j].style.paddingRight != "") ? parseInt(ruleS[j].style.paddingRight) : 0;

        pdT = (ruleS[j].style.paddingTop != "") ? parseInt(ruleS[j].style.paddingTop) : 0;

        pdB = (ruleS[j].style.paddingBottom != "") ? parseInt(ruleS[j].style.paddingBottom) : 0;

        eval("document.pads."+objName+".pdL = "+pdL);

        eval("document.pads."+objName+".pdR = "+pdR);

        eval("document.pads."+objName+".pdT = "+pdT);

        eval("document.pads."+objName+".pdB = "+pdB);

      }

    }

    if (document.styleSheets[i].imports.length > 0) {

      for (k=0; k<document.styleSheets[i].imports.length; k++) {

        impRuleS = document.styleSheets[i].imports[k].rules;

        for (l=0; l<impRuleS.length; l++) {

          if (impRuleS[l].selectorText.indexOf(".") != -1 && impRuleS[l].selectorText.indexOf(":") == -1) {

            objName = "M"+impRuleS[l].selectorText.substring(1,impRuleS[l].selectorText.length);

            testObj = "document.pads."+objName;

            if (typeof (testObj) == "undefined") {

              eval("document.pads."+objName+" = new Object");

              classL[classL.length] = objName;

            }

            pdL = (impRuleS[l].style.paddingLeft != "") ? parseInt(impRuleS[l].style.paddingLeft) : (eval("document.pads."+objName+".pdL") && eval("document.pads."+objName+".pdL") != 0) ? eval("document.pads."+objName+".pdL") : 0;

            pdR = (impRuleS[l].style.paddingRight != "") ? parseInt(impRuleS[l].style.paddingRight) : (eval("document.pads."+objName+".pdR") && eval("document.pads."+objName+".pdR") != 0) ? eval("document.pads."+objName+".pdR") : 0;

            pdT = (impRuleS[l].style.paddingTop != "") ? parseInt(impRuleS[l].style.paddingTop) : (eval("document.pads."+objName+".pdT") && eval("document.pads."+objName+".pdT") != 0) ? eval("document.pads."+objName+".pdT") : 0;

            pdB = (impRuleS[l].style.paddingBottom != "") ? parseInt(impRuleS[l].style.paddingBottom) : (eval("document.pads."+objName+".pdT") && eval("document.pads."+objName+".pdB") != 0) ? eval("document.pads."+objName+".pdB") : 0;

            eval("document.pads."+objName+".pdL = "+pdL);

            eval("document.pads."+objName+".pdR = "+pdR);

            eval("document.pads."+objName+".pdT = "+pdT);

            eval("document.pads."+objName+".pdB = "+pdB);

          }

        }

      }

    }

  }

}



elCount=0;

toggle=0;

done = null;



function checkLoad() {

  if (elCount < objArray.length) {

    testObj = eval(layerDom+objArray[elCount].n+elemEnd);

    if (typeof testObj != "undefined") {

      if (toggle == 0) { 

        doWIt(elCount);

        toggle = 1;

      } else {

        doIt(elCount);

        toggle = 0;

        elCount++;

      }

    }

  } else {

    clearInterval(blah);

    done = true;

    if (saveList) {

      btnOver(saveList);

      eval(layerDom+"loading"+pVis+" = '"+H+"'");

    }

    if (NS4 && document.location.href.indexOf("#") != -1) { document.location = document.location; }

    initEvents();

  }

}



function doWIt(objI) {

  thisLayer =  eval(layerDom+objArray[objI].n+elemEnd);

  pdL = 0; pdR = 0; pdT = 0; pdB = 0;

  if (mac && navigator.appVersion.indexOf("MSIE 4") != -1) {

    cName = "M"+thisLayer.className;

    for (i=0;i<classL.length;i++) {

      if (cName == classL[i]) {

        pdL = eval("document.pads."+cName+".pdL");

        pdR = eval("document.pads."+cName+".pdR");

        pdT = eval("document.pads."+cName+".pdT");

        pdB = eval("document.pads."+cName+".pdB");

        thisLayer.style.paddingLeft = pdL;

        thisLayer.style.paddingRight = pdR;

        thisLayer.style.paddingTop = pdT;

        thisLayer.style.paddingBottom = pdB;

      }

    }

  }

  whatWidth = eval(objArray[objI].w);

  if (hasDOM && whatWidth == 1) { 

    thisLayer.style.width = thisLayer.getElementsByTagName("A").item(0).offsetWidth;

  }

  adjustWidth = whatWidth - (pdL + pdR);

  if (whatWidth > 1) {

    eval(layerDom+objArray[objI].n+pWidth2+" = "+adjustWidth);

    difW = parseInt(eval(layerDom+objArray[objI].n+pWidth3)) - whatWidth;

    if (difW > 0 && hasDOM) { eval(layerDom+objArray[objI].n+pWidth+" = "+whatWidth+" - "+difW); }

  } else if (IE4) {

    initW = eval(layerDom+objArray[objI].n+pWidth3) - (pdL + pdR);

    naturalWidth = initW;

    eval(layerDom+objArray[objI].n+pWidth+" = "+naturalWidth);

    difW = parseInt(eval(layerDom+objArray[objI].n+pWidth3)) - initW;

    if (difW > 0 && hasDOM) { eval(layerDom+objArray[objI].n+pWidth+" = "+initW+" - "+difW); }

  }

}



function doIt(objI) {

  pdL = 0; pdR = 0; pdT = 0; pdB = 0;

  if (mac && navigator.appVersion.indexOf("MSIE 4") != -1) {

    cName = "M"+thisLayer.className;

    for (i=0;i<classL.length;i++) {

      if (cName == classL[i]) {

        pdL = eval("document.pads."+cName+".pdL");

        pdR = eval("document.pads."+cName+".pdR");

        pdT = eval("document.pads."+cName+".pdT");

        pdB = eval("document.pads."+cName+".pdB");

      }

    }

  }

  whatLeft = (mac && navigator.appVersion.indexOf("MSIE 4.0") != -1) ? eval(objArray[objI].l) + pdL : eval(objArray[objI].l);

  eval(layerDom+objArray[objI].n+pLeft+" = "+whatLeft);

  whatHeight = eval(objArray[objI].h);

  initH = eval(layerDom+objArray[objI].n+pHeight);

  if (whatHeight != -1) { 

    eval(layerDom+objArray[objI].n+pHeightS+" = "+whatHeight);

    difH = parseInt(eval(layerDom+objArray[objI].n+pHeight)) - whatHeight;

    if (difH > 0 && hasDOM) { eval(layerDom+objArray[objI].n+pHeightS+" = "+whatHeight+" - "+difH); }

  } else if (IE4) {

    naturalHeight = initH;

    eval(layerDom+objArray[objI].n+pHeightS+" = "+naturalHeight);

    difH = parseInt(eval(layerDom+objArray[objI].n+pHeight)) - initH;

    if (difW > 0 && hasDOM) { eval(layerDom+objArray[objI].n+pHeightS+" = "+initH+" - "+difW); }

  }

  whatTop = (mac && navigator.appVersion.indexOf("MSIE 4.0") != -1) ? eval(objArray[objI].t) + pdT : eval(objArray[objI].t);

  eval(layerDom+objArray[objI].n+pTop+" = "+whatTop);

  testSec = "M"+objArray[objI].n+".section";

  if (typeof eval(testSec) != "undefined") {

    secName = eval(testSec);

    whatTopsObj = eval("document.sections."+secName+".tops");

    whatTopsObj[whatTopsObj.length] = whatTop;

  }

  objArray[objI].t = whatTop;

  if (eval(objArray[objI].bgC.length > 0)) {

    whatbgC = objArray[objI].bgC;

    eval(layerDom+objArray[objI].n+pBgColor+" = '"+whatbgC+"'");

  }

  whatVis = eval(objArray[objI].v);

  eval(layerDom+objArray[objI].n+pVis+" = '"+whatVis+"'");

}



if (NS4 && !hasDOM) { doWidths(); }

if (mac && navigator.appVersion.indexOf("MSIE 4") != -1) { padObjs(); }

if (NS4 || IE4 || hasDOM) {
	blah = setInterval("checkLoad()",1);
}



// functions for menus



lastOverButton = null;

lastMenu = new Array();

lastButton = null;

moveObj = null;

mouseLbM = null;

mouseRbM = null;

mouseTbM = null;

mouseBbM = null;

mouseLbS = null;

mouseRbS = null;

mouseTbS = null;

mouseBbS = null;

butT = null;

butB = null;

butL = null;

butR = null;



function initEvents() {

  if (NS4 && !hasDOM) {

    testLayer();

    captureEvents(Event.MOUSEOVER);

    onmouseover = checkMouseOver;

    captureEvents(Event.MOUSEMOVE);

    onmousemove = checkMouseMove;

    captureEvents(Event.MOUSEUP);

    onmouseup = checkBTNClick;

  } else if (IE4 && !hasDOM) {

    document.onmousemove = checkMouseMove;

  } else if (hasDOM) {

    document.addEventListener('mousemove', checkMouseMove, true);

  }

}


function checkBTNClick(e) {

  if (lastButton && done) {

    if (lastButton.indexOf("BTN") != -1) {

      goLink(lastButton);

    }

  }

}



function findParentDiv(what) {

  if (IE4 && !hasDOM) {

    elem = what.parentElement;

    while (elem.tagName != "DIV") {

      elem = elem.parentElement;

      if (elem.tagName == "BODY") {

        elemId = null;

        break;

      }

    }

  } else if (hasDOM) {

    elem = what.parentNode;

    while (elem.nodeName != "DIV") {

      elem = elem.parentNode;

      if (elem.nodeName == "#document") {

        elemId = null;

        break;

      }

    }

  }

  elemId = elem.id;

  return elemId;

}



saveBtnO = 0;

saveList = null;



function checkMouseOver(e) {

  what = null;

  if (IE4 && !hasDOM) {

    if (event.srcElement.tagName == "DIV") {

      what = event.srcElement.id;

    } else {

      what = findParentDiv(event.srcElement);

    }

  } else if (NS4 && !hasDOM) {

    what = e.target.name;

    if (!e.target.name || what == "undefined" || !what) { 

      what = null;

    }

  } else if (hasDOM) {

    if (e.nodeName == "DIV") {

      what = e.id;

    } else {

      what = findParentDiv(e);

    }

  }



  if (what && what != lastButton && what.indexOf("BTN") != -1) {

    if (saveBtnO == 0) {

      saveBtnO = 1;

      btnOver(what);

    } else {

      saveList = what;

    }

  }

}



function btnOver(what) {

  subs = eval("M"+what+".menus");

  if (subs.length > 0 && done) {

    setMoveBounds(what,subs[0],subs[subs.length-1]);

  } else if (subs.length > 0) {

    ll = eval("M"+subs[0]+".l");

    tt = eval("M"+subs[0]+".t");

    ww = eval("M"+subs[0]+".w");

    cc = eval("M"+subs[0]+".bgC");

    eval(layerDom+"loading"+pBgColor+" = '"+cc+"'");

    eval(layerDom+"loading"+pLeft+" = "+ll);

    eval(layerDom+"loading"+pWidth2+" = "+ww);

    eval(layerDom+"loading"+pTop+" = "+tt);

    eval(layerDom+"loading"+pVis+" = '"+V+"'");

    saveList = what;

  }

  setButtonBounds(what);

}



function btnOut(what) {

  btn = (what != "useLast") ? what : lastButton;

  bgC = eval("M"+btn+".bgC");

  eval(layerDom+btn+pBgColor+" = '"+bgC+"'");

  lastButton = null;

}



function resetNcheck(what,topSub,bottomSub,mY,mX) {

  mouseTbM = getTop(what);

  mouseBbM = getBottom(what);

  mouseLbM = getLeft(what);

  mouseRbM = getRight(what);

  mouseTbS = getTop(topSub);

  mouseBbS = getBottom(bottomSub);

  mouseLbS = getLeft(bottomSub);

  mouseRbS = getRight(bottomSub);

  whichBottom = (mX < mouseLbS) ? mouseBbM : mouseBbS;

  whichTop = (mX < mouseLbS) ? mouseTbM : mouseTbS;

  if (mY < whichTop || mY > whichBottom || mX < mouseLbM || mX > mouseRbS) {

    hideLastMenu();

    return false;

  } else {

    return true;

  }

}





function checkMouseMove(e) {

  test = false;

  x = lastMenu.length;

  mY = (NS4 || hasDOM) ? e.pageY : event.clientY + document.body.scrollTop;

  mX = (NS4 || hasDOM) ? e.pageX : event.clientX + document.body.scrollLeft;

  if (lastMenu[x-1]) {

      whichBottom = (mX < mouseLbS) ? mouseBbM : mouseBbS;

      whichTop = (mX < mouseLbS) ? mouseTbM : mouseTbS;

      if (mY < whichTop || mY > whichBottom || mX < mouseLbM || mX > mouseRbS) {

        hideLastMenu();

        if (x > 0) {

          while (test == false) {

            if (lastMenu.length > 0) {

              what = lastMenu[lastMenu.length-1];

              subs = eval("M"+what+".menus");

              test = resetNcheck(what,subs[0],subs[subs.length-1],mY,mX);

            } else { break; }     

          }

        }

    } 

  }

  if (lastButton) {

    if (lastButton.indexOf("BTN") != -1) {

      if (mY < butT || mY > butB || mX < butL || mX > butR) {

        btnOut(lastButton);

      }

    }

  } else if (saveList) {

    btnOver(saveList);

    saveList = null;

  }

}



function hideLastMenu() {

  x = lastMenu.length;

  if (lastMenu[x-1]) {

    subs = eval("M"+lastMenu[x-1]+".menus");

    if (subs.length > 0) {

      for (i=0;i<subs.length;i++) {

        eval(layerDom+subs[i]+pVis+" = '"+H+"'");

      }

    }

    lastMenu = lastMenu.slice(0,x-1);

  }

}



function setMoveBounds(what,topSub,bottomSub) {

  slot = 0;

  for (i=0;i<lastMenu.length;i++) {

    if (eval(layerDom+what+pLeft) > eval(layerDom+lastMenu[i]+pLeft)) {

      slot = i + 1;

    } else {

      slot = i;

      break;

    }

  }

  x = lastMenu.length;

  if (slot <= x) {

    for (j=x-1;j>slot-1;j--) {

      if (lastMenu[j] != what) { hideLastMenu(); }

    }

  }

  lastMenu[slot] = what;

  if (eval(layerDom+what+elemEnd)) {

    mouseTbM = getTop(what);

    mouseBbM = getBottom(what);

    mouseLbM = getLeft(what);

    mouseRbM = getRight(what);

    mouseTbS = getTop(topSub);

    mouseBbS = getBottom(bottomSub);

    mouseLbS = getLeft(bottomSub);

    mouseRbS = getRight(bottomSub);

  }

  subs = eval("M"+what+".menus");

  for (i=0;i<subs.length;i++) {

    eval(layerDom+subs[i]+pVis+" = '"+V+"'");

  }

}



function setButtonBounds(what) {

  if (lastButton && lastButton != what) { btnOut("useLast"); }

  if (eval(layerDom+what+elemEnd)) {

    butT = getTop(what);

    butB = getBottom(what);

    butL = getLeft(what);

    butR = getRight(what);

    bgC = eval("M"+what+".hiC");

    eval(layerDom+what+pBgColor+" = '"+bgC+"'");

    lastButton = what;

  }

}



function goLink(what) {

  whatButton = eval(layerDom+what+elemEnd);

  if (!hasDOM) {

    linkObj = (IE4) ? whatButton.all.tags('a') : whatButton.document.links;

  } else if (hasDOM) {

    linkObj = whatButton.getElementsByTagName("A");

  }

  if (linkObj.length > 0) {

    theTarget = (linkObj[0].target == "_parent" || linkObj[0].target == "_top") ? "parent." : "";

    eval(theTarget+"document.location = linkObj[0].href");

  }

}

