jQuery("document").ready (function() {
	jQuery(".bio").click(function () {
		openBio(this.id);
		return false;
	});
	jQuery("#locLink").click(function() {
		openMap();
		return false;
	});
	
	jQuery("#hoursLink").click(function() {
		openHours();
		return false;
	});
});


function openBio(theId)
{
			var arBio = new Array();
			arBio[0] = 'fisher.cfm';
			arBio[1] = 'tgs.cfm';
			arBio[2] = 'satya.cfm';
			arBio[3] = 'joyce.cfm';
			arBio[4] = 'zak.cfm';
			
			var theDoc = arBio[theId];
			var width = 525;
			var height = 425;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) / 2;
			var objPopup = window.open('bios/' + theDoc,'contactWin','height=' + height + ',width=' + width + ',left=' + newLeft +',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0');
			objPopup.focus();
}

function openHours()
{
	var width = 560;
	var height = 400;
	var newLeft = (window.screen.availWidth - width) / 2;
	var newHeight = (window.screen.availHeight - height) / 2;
	var objPopup = window.open('contact/hours.cfm','contactWin','height=' + height + ',width=' + width + ',left=' + newLeft +',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0');
	objPopup.focus();
}

function openMap()
{
			var width = 560;
			var height = 500;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) / 2;
			var objPopup = window.open('contact/map2.cfm','contactWin','height=' + height + ',width=' + width + ',left=' + newLeft +',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0');
			objPopup.focus();
}