/*if (document.images) {
sidebar_r2_c1_F1 = new Image(63,23); sidebar_r2_c1_F1.src = "/images/sidebar_r2_c1.gif";
sidebar_r2_c1_F2 = new Image(63,23); sidebar_r2_c1_F2.src = "/images/sidebar_r2_c1_F2.gif";
sidebar_r2_c2_F1 = new Image(58,23); sidebar_r2_c2_F1.src = "/images/sidebar_r2_c2.gif";
sidebar_r2_c2_F2 = new Image(58,23); sidebar_r2_c2_F2.src = "/images/sidebar_r2_c2_F2.gif";
} */

/* Function that swaps images. */

function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

function showPath() {

  var browserLoc = location.href;
  
  if(browserLoc.split) {		//ignore code if IE3
  
    var nameArray= new Array();	//create and populate lookup array
    nameArray.businessunits = "Business Units";
    nameArray.commercial = "Commercial";
    nameArray.corpinfo = "Corporate Information";
    nameArray.locations = "Locations";
    nameArray.directions = "Directions";
    nameArray.community = "Community Involvement";
    nameArray.profiles = "Executive Profiles";
    nameArray.estore = "e-Stores";
    nameArray.federal = "Federal";
    nameArray.contracts = "Major Contracts";
    nameArray.cecom = "CECOM";
    nameArray.itsp = "ITSP";
    nameArray.itss = "ITSS";
    nameArray.catalog = "Catalog";
    nameArray.niseboa = "NISE BOA";
    nameArray.community = "Community Involvement";
    nameArray.offidiq = "Offutt IDIQ";
    nameArray.tdpi = "TDPI";
    nameArray.usaid = "USAID";
    nameArray.usdaboa = "USDA BOA";
    nameArray.fedbuy = "fedbuy.com";
    nameArray.gsa = "GSA Schedules";
    nameArray.intranet = "Intranet";
    nameArray.jobs = "Hot Jobs";
    nameArray.community = "Community Involvement";
    nameArray.kiosk = "Employee Kiosk";
    nameArray.newsletter = "Newsletter";
    nameArray.legal = "Legal Information";
    nameArray.news = "News &amp; Events";
    nameArray.awards = "Awards";
    nameArray.events = "Events";
    nameArray.media = "Media";
    nameArray.press = "News Releases";
    nameArray.products = "Services & Solutions";
    nameArray.conversions = "Document Management & Conversion Services";
    nameArray.quoteform = "Quote Form";    
    nameArray.ebusiness = "e-Business";
    nameArray.erp = "Enterprise Resource Planning";
    nameArray.oracle = "Oracle Solutions & Services";
    nameArray.systems = "Systems & Networking";
    nameArray.cisco = "CISCO Services";
    nameArray.sun = "SUN Services";
    nameArray.services = "Online Services";
    nameArray.lucent = "Lucent Technologies";
    nameArray.fujitsu = "Fujitsu";
    nameArray.swb = "Southwestern Bell";
    nameArray.sunpsr = "SUN Productivity Status Reports";
    nameArray.sitemap = "Sitemap";
    nameArray.telco = "Telco";
    nameArray.telcobuy = "telcobuy.com";
    nameArray.order = "Order Status";
    nameArray.ota = "Order Status R11";
    nameArray.ota107 = "Order Status R8";
    nameArray.batlantic = "Bell Atlantic Extranet";
    nameArray.usdoj = "USDOJ BPA";
    nameArray.techcenter = "WWT Tech Center";
    nameArray.va = "Veterans Affairs";
    nameArray.dojitss = "DOJ ITSS";
    nameArray.orderstat = "Order Status";
    nameArray.forms = "Forms";
    nameArray.admin = "Administration";
  
    var nonHTTP = browserLoc.substring(browserLoc.indexOf("//")+2);		//remove "http://"
    var pathArray = nonHTTP.split("/");		//remove slashes between folder names
    var rebuiltLoc = "http://" + pathArray[0] + "/";
    document.write("<a class='legal' href='/'>Home</a> : ");
    for (var i = 1; i < pathArray.length-1; i++) {
      rebuiltLoc = rebuiltLoc + pathArray[i] + "/";		//reconstruct path to enable html hyperlinks
      if (nameArray[pathArray[i]]) {									//is folder defined in nameArray?
      	document.write("<a class='legal' href='" + rebuiltLoc + "'>" + nameArray[pathArray[i]] + "</a> : ")	//write nameArray string
     	}
     	else {
     		document.write("<a class='legal' href='" + rebuiltLoc + "'>" + pathArray[i] + "</a> : ")		//write the folder name itself
      }
    }
  }
}


/*
<!--#config timefmt="%A, %B %e, %Y" -->
<!--#echo var="DATE_LOCAL"-->
*/

// format date...

    var mydate = Date();
    var length = mydate.length;
    var myYear = mydate.substring(length-4, length);
    var myDay = (new Date()).getDay();
    var myMonth=(new Date()).getMonth();
    var myMonthDay = (new Date()).getDate();
    
    month = new Array();
    month[0] = "January";
    month[1] = "February";
    month[2] = "March";
    month[3] = "April";
    month[4] = "May";
    month[5] = "June";
    month[6] = "July";
    month[7] = "August";
    month[8] = "September";
    month[9] = "October";
    month[10] = "November";
    month[11] = "December";
    
    day = new Array();
    day[0] = "Sunday";
    day[1] = "Monday";
    day[2] = "Tuesday";
    day[3] = "Wednesday";
    day[4] = "Thursday";
    day[5] = "Friday";
    day[6] = "Saturday";
    
    var myWeekDay = day[myDay]
    var myMonth=month[myMonth];

function writeDate() {
 var dateStr = myWeekDay + ", " + myMonth +" " + myMonthDay + ", "  + myYear;
 document.write(dateStr);
}
//-->

