// Copyright Acro Media Inc. 1998-2004, www.acromediainc.com
preloaded = 0;
var imageNames;
var imageOver;
graphicsDir = dirDepth+"graphics/toolbar/";

if(document.images){
	imageNames = new initArray("button1", "button2", "button3", "button4" , "button5");
	imageOver = new initArray("b_home_02.gif", "b_corp_02.gif", "b_network_02.gif", "b_ne_02.gif","b_contact_02.gif");
}

function preloadImages(){
	var i, temp;

	if(document.images){
		for(i=0; i<imageNames.length; i++){
			document.images[imageNames[i]].offsrc = document.images[imageNames[i]].src;
		}


		for(i=0; i<imageNames.length; i++){
			temp = new Image();
			temp.src = graphicsDir + imageOver[i];
			document.images[imageNames[i]].oversrc = temp.src;
		}
		preloaded = 1;
	}
}

function initArray(){
	if (document.images){
		this.length = initArray.arguments.length;
		for (var i=0;i<= this.length; i++){
			this[i] = initArray.arguments[i];
		}
	}
}

function mouseOver(imageID) {
	if(document.images && preloaded){
		document.images[imageNames[imageID]].src = document.images[imageNames[imageID]].oversrc;
	}
}

function mouseOut(imageID) {
	if(document.images && preloaded){
		document.images[imageNames[imageID]].src = document.images[imageNames[imageID]].offsrc;
	}
}

function showPwd(theField){
  theField.style.display='none';
  pwdField = theField.form.password;
  pwdField.style.display='block';
  pwdField.focus();
}
function showNote(theField){
  if(theField.value==""){
    theField.style.display='none';
    noteField = theField.form.pwdNote;
    noteField.style.display='';
  }
}

// Copyright Acro Media Inc. 1998-2004, www.acromediainc.com
var newWin;

function openUp(windowURL, windowWidth, windowHeight) {
  var topPos = "";
  var leftPos = "";
  if(!windowWidth) windowWidth = 0;
  if(!windowHeight) windowHeight = 0;
  if(windowWidth == 0){
    if(screen){
      windowWidth = screen.availWidth -10;
    }
    else{
      windowWidth = 790;
    }
    leftPos = ",left=0";
  }
  if(windowHeight == 0){
    if(screen){
      windowHeight = screen.availHeight -30;
    }
    else{
      windowHeight = 790;
    }
    topPos = ",top=0";
  }

  newWin = window.open(windowURL,"acromedia","toolbar=no,menubar=0,width="+windowWidth+",height="+windowHeight+topPos+leftPos+",scrollbars=no,resizable=no");

  if(javascript_version > 1.0){
    setTimeout('newWin.focus();',100);
  }
}
function openwin()
{
mywindow = window.open ("message01.htm","mywindow","location=0,status=0,scrollbars=1,width=800,height=510");
mywindow.moveTo(0,0);
}