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;
	});
	jQuery("a.infoLink").click(function() {
		fOpenInfo(this.id);
		return false;
	});
	
	jQuery("#supportLink").click(function() {
		fOpenSupport();
		return false;
	});
	jQuery("#listLink").click(function() {
		fOpenList();
		return false;
	});
});

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

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

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


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 = 600;
	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();
}