// JavaScript Document
function centerPopUp(mypage, myname, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=0,resizable=0';
  newwin = window.open(mypage, myname, winprops);
  if (newwin.opener == null) { // for Nav 2.0x 
   newwin.opener = self; // this creates and sets a new property 
  }
  if (parseInt(navigator.appVersion) >= 4) { newwin.window.focus(); }
}

var ind = 0;
function linkCol(num) {
	ind = num;
	var bread = "bread" + ind;
	for (i = 1; i < 6; i++) {
		var breadOff = "bread" + i;
    	document.getElementById(breadOff).style.color = "#FFFFFF";
	}	
	document.getElementById(bread).style.color = '#000000';
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
