<!--

var NS4 = false;
var IE4 = false;
var DOM = false;

popUpDim = new Array()
popUpDim['sample'] = ['leftOffset','top','width','height']
popUpDim['pressreleases'] = [35,100,490,300]
popUpDim['pressroom'] = [35,100,490,490]
popUpDim['olm'] = [35,100,490,490]
popUpDim['olmrelease'] = [35,100,490,490]
popUpDim['articles'] = [35,100,490,490]
popUpDim['article'] = [35,100,490,490]
popUpDim['schedule'] = [35,100,490,490]
popUpDim['jobs'] = [35,25,640,490]
popUpDim['jobdescriptions'] = [5,25,400,500]
popUpDim['emailsubscription'] = [420,25,280,490]
popUpDim['olmsubscription'] = [420,25,280,490]
popUpDim['bios'] = [35,100,490,300]
popUpDim['contactform'] = [420,25,280,490]
popUpDim['contactformaux'] = [420,25,280,490]
popUpDim['values'] = [203,53,255,444]
popUpDim['culture'] = [223,73,255,444]
popUpDim['ourteam'] = [243,93,255,320]
popUpDim['factsheet'] = [243,93,280,444]
popUpDim['emailpolicy'] = [35,100,490,490]
popUpDim['privacy'] = [35,100,490,490]
popUpDim['terms'] = [35,100,490,490]
popUpDim['casestudy'] = [35,100,500,490]
popUpDim['contactmap'] = [35,100,295,294]

popUpFile = new Array()
popUpFile['jobdescriptions'] = "jobs/job_description_base.html"
popUpFile['bios'] = "whoweare/management_bios.html"
popUpFile['pressreleases'] = "pressroom/pressreleases_base.html"
popUpFile['olmrelease'] = "ourthinking/olm_base.html"
popUpFile['article'] = "ourthinking/articles_base.html"
popUpFile['casestudy'] = "casestudies/casestudies_popup_base.html"
popUpFile['contactformaux'] = "contact/contact_base.html"

if (document.getElementById) {
		DOM = true;
		doc = "document.getElementById('"
		sty = "').style";
}
if (document.layers) {
		NS4 = true;
		doc = "document['";
		sty = "']";
}
if (document.all && !DOM) {
		IE4 = true;
		doc = "document.all['";
		sty = "'].style";
}

function leaveon(i) {
	document.images[i].src = eval(i + "on.src");
}

function turnon(i,whichLayer) {
	if (i != currentpage) {
		if (NS4 && whichLayer) {
			menuLyr = eval(doc + whichLayer + sty);
			menuLyr.document[i].src = eval(i + "over.src");
		} else {
			document.images[i].src = eval(i + "over.src");
		}
	}
}

function turnoff(i,whichLayer) {
	if (i != currentpage) {
		if (NS4 && whichLayer) {
			menuLyr = eval(doc + whichLayer + sty);
			menuLyr.document[i].src = eval(i + "off.src");
		} else {
			document.images[i].src = eval(i + "off.src");
		}
	}
}



function openView(file,windowName,home) {
	leftPoint = measureScreen()
	leftPoint = leftPoint + popUpDim[windowName][0]
	
	features = "left=" + leftPoint + ",top=" + popUpDim[windowName][1] + ",width=" + popUpDim[windowName][2] + ",height=" + popUpDim[windowName][3] + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no";
	eval("newWindow" + windowName + "= window.open( file, windowName, features)")
	eval("newWindow" + windowName + ".focus()");
}

function loadSubPage(url,windowName) {
	eval('newWindow' + windowName + '.top.content.location = url;')
	eval("newWindow" + windowName + ".focus()");
}

function measureScreen() {
	leftPoint = (screen.width < 710) ? 35 : Math.round((screen.width - 710) / 2);
	return leftPoint
}

function measureWindow() {
	if (document.layers) thewidth = innerWidth - 16;
	if (document.all) thewidth = document.body.clientWidth ;
	if (document.getElementById && !document.all) thewidth = innerWidth - 20;
	referencepoint = Math.round((thewidth - 710) / 2);
	if (thewidth < 710) referencepoint = 0;
	return referencepoint;
}


function setUpLayers(layername,offset,hide) {
	leftPoint = measureWindow()
	menuLyr = eval(doc + layername + sty);
	menuLyr.left = leftPoint + offset
	if (!hide) {
		menuLyr.visibility = "visible";
	} else {
		menuLyr.visibility = "hidden";
	}
}

function turnPage(newPage) {
	if (newPage != pageMarker) {
		oldPageLayer = eval(doc + pageMarker + sty);
		newPageLayer = eval(doc + newPage + sty);
		oldPageLayer.visibility = "hidden";
		newPageLayer.visibility = "visible";
		pageMarker = newPage;
	}
}

function hideLayer(theLayer) {
	layerToHide = eval(doc + theLayer + sty)
	layerToHide.visibility = "hidden";
}
		
function showLayer(theLayer) {
	layerToShow = eval(doc + theLayer + sty)
	layerToShow.visibility = "visible";
}
		
var today = new Date();
var day = today.getDate();
var month = today.getMonth() + 1;
monthArray = ["January","February","March","April","May","June","July","August","September","October","November","December"];
var year = today.getYear();
if (year < 2000)    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
var offset = today.getDay();
var week;

if(offset != 0) {
day = day - offset;
if ( day < 1) {
if ( month == 1) day = 31 + day;
if (month == 2) day = 31 + day;
if (month == 3) {
if (( year == 00) || ( year == 04)) {
day = 29 + day;
}
else {
day = 28 + day;
   }
}
if (month == 4) day = 31 + day;
if (month == 5) day = 30 + day;
if (month == 6) day = 31 + day;
if (month == 7) day = 30 + day;
if (month == 8) day = 31 + day;
if (month == 9) day = 31 + day;
if (month == 10) day = 30 + day;
if (month == 11) day = 31 + day;
if (month == 12) day = 30 + day;
if (month == 1) {
month = 12;
year = year - 1;
}
else {
month = month - 1;
      }
   }
}


dateString = "Week of December 31, 2001";


//-->
