imgArray = new Array('images/page/foot/nav/home.gif','images/page/foot/nav/services.gif','images/page/foot/nav/clients.gif','images/page/foot/nav/resources.gif','images/page/foot/nav/profile.gif','images/page/nav/services_simulation_on.gif','images/page/nav/services_strategy_on.gif','images/page/nav/services_facilitation_on.gif','images/page/nav/services_coaching_on.gif','images/page/nav/home_on.gif', 'images/page/nav/services_on.gif', 'images/page/nav/clients_on.gif', 'images/page/nav/resources_on.gif', 'images/page/nav/profile_on.gif');
cacheArray = new Array();

function preload()
{
	if (document.images)
	{
		for (cnt = 0; cnt < imgArray.length; cnt++)
		{
			img = imgArray[cnt];
			cacheArray[cnt] = new Image();
			cacheArray[cnt].src = img;
		}
	}
}

function imgSwap(img, state)
{
	suffix = (state == true) ? '_on.gif' : '.gif';
	if (document.getElementById) el = document.getElementById(img);
	else if (document.images) el = document.images[img];
	if (el) el.src = 'images/' + img + suffix;
}

function photoWindow(url, width, height)
{
	if (!window.open || !url) return true;

	width	= Math.max(width + 64, 400);
	height	+= 96;

	if (screen.availWidth)	width	= Math.min(screen.availWidth - 64, width);
	if (screen.availHeight)	height	= Math.min(screen.availHeight - 112, height);

	var popupWindow = window.open(url, '', 'scrollbars=yes,resizable=yes,status=yes,width=' + width + ',height=' + height + ',top=20,left=20');
	if (popupWindow.focus) popupWindow.focus();
	return false;
}