// JavaScript Document

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		services_over = newImage("images/services_over.png");
		clients_over = newImage("images/clients_over.png");
		about_us_over = newImage("images/about_us_over.png");
		contact_us_over = newImage("images/contact_us_over.png");
		preloadFlag = true;
	}
}


var popUpWin=0;
function popUpWindow(URLStr, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = window.open(URLStr, 'popUpWin', 'top=210,left=345,toolbar=1,location=0,directories=0,status=0,menub ar=0,scrollbars=1,resizable=0,copyhistory=1,width='+width+',height='+height+'');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function internalRedirect(theform)
{
	if (theform.selectmenu.options[theform.selectmenu.selectedIndex].value=="client")
	{
		window.location="webdisk/";
	}
	else
	{
		window.location="./employees_associates.html";
	}
}

