ua = navigator.userAgent;
ua = ua.replace("Windows ","Win");
if (ua.indexOf("MSIE") >= 0) {
    ua = ua.replace("("," ");
}else{
    ua = ua.replace("[(]"," ");
}
ua = ua.replace(")"," ");
while (ua.indexOf("/") >= 0) {
  ua = ua.replace("/"," ");
}
while (ua.indexOf(";") >= 0) {
  ua = ua.replace(";"," ");
}
while (ua.indexOf("  ") >= 0) {
  ua = ua.replace("  "," ");
}
if (ua.substring(ua.length - 1) == " ") {
  ua = ua.substring(0, ua.length - 1);
}
var binfo = new Array();
binfo = ua.split(" ");
if (binfo.length > 1) {
  bName = binfo[0];
  bVers = parseInt(binfo[1]);
  bPlat = "";
  for (pos = 2; pos < binfo.length; pos++){
    inf = binfo[pos];
	if (inf == "MSIE"){
	  bName = inf;
	  if (pos+1 < binfo.length){
	    bVers = parseInt(binfo[pos+1]);
	  }
	}
    if ((inf.substring(0,3) == "Win")
	 || (inf.substring(0,3) == "Mac")
	 || (inf.substring(0,3) == "Web")
	 || (inf.substring(0,3) == "Sun")
	 || (inf.substring(0,2) == "HP")
	 || (inf.substring(0,3) == "AIX")
	 || (inf.substring(0,3) == "BSD")
	 || (inf.substring(0,7) == "FreeBSD")
	 || (inf.substring(0,3) == "OSF")
	 || (inf.substring(0,4) == "IRIX")
	 || (inf.substring(0,5) == "Linux")
	 || (inf.substring(0,4) == "OS/2")){
	  bPlat = inf;
	}
  }
}

var popupWin = '';
has_run = 0;
function launchwin(page,w,h,tool,scroll) 
{
	if ((bPlat.substring(0,3) == "Mac") && (bName == "MSIE"))
	{
		if (has_run == 0) 
		{
			//popupWin.close();
			has_run = 1;
			popupWin=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=no,width=" + w + ",height=" + h);
			popupWin.focus();
		}
		else if (popupWin.closed)
		{
			popupWin=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=no,width=" + w + ",height=" + h);
			popupWin.focus();
		}
		else if (has_run == 1) 
		{
			//popupWin2=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=yes,width=" + w + ",height=" + h);
			
			popupWin.close();
			popupWin=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=no,width=" + w + ",height=" + h);
			popupWin=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=no,width=" + w + ",height=" + h);
			popupWin.focus();
		}
	}
	
	else
	{
		if (has_run == 0) 
		{
			//popupWin.close();
			has_run = 1;
			popupWin=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=no,width=" + w + ",height=" + h);
			popupWin.focus();
		}
		else if (popupWin.closed)
		{
			popupWin=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=no,width=" + w + ",height=" + h);
			popupWin.focus();
		}
		else if (has_run == 1) 
		{
			popupWin2=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=yes,width=" + w + ",height=" + h);
			
			if (!((bPlat == "Macintosh") && (bName == "Mozilla")))
			{
				popupWin.close();
			}
			popupWin=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=no,width=" + w + ",height=" + h);
			//popupWin=window.open(page,"popup","status=no,toolbar=" + tool + ",directories=no,scrollbars=" + scroll + ",menubar=no,resizable=no,width=" + w + ",height=" + h);
			popupWin.focus();
		}
	}
}
	
/*
function resizewin(mnw,mnh,miew,mieh,wnw,wnh,wiew,wieh)
{
	if ((bPlat.substring(0,3) == "Mac") && (bName == "Mozilla"))
	{
		if (window.resizeTo) {self.resizeTo(mnw,mnh);}
	}
	else if ((bPlat.substring(0,3) == "Mac") && (bName == "MSIE"))
	{
		if (window.resizeTo) {self.resizeTo(miew,mieh);}
	}
	else if ((bPlat.substring(0,3) == "Win") && (bName == "Mozilla"))
	{
		if (window.resizeTo) {self.resizeTo(wnw,wnh);}
	}
	else if ((bPlat.substring(0,3) == "Win") && (bName == "MSIE"))
	{
		if (window.resizeTo) {self.resizeTo(wiew,wieh);}
	}
}
*/
function macnetscapestyle()
{
	if ((bPlat == "Macintosh") && (bName == "Mozilla"))
	{
		document.write('<style type="text/css">');
		document.write('<!--');
		document.write('.headline {  font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-weight: normal; color: #000000}');
		document.write('.headlinebold {  font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-weight: bold; color: #000000}');
		document.write('a:link {  font-family: Arial, Helvetica, sans-serif; color: #000000}');

		document.write('a {  font-family: Arial, Helvetica, sans-serif; color: #000000}');
		document.write('a:visited {  color: #000000}');
		document.write('.text {  font-family: Arial, Helvetica, sans-serif; font-size: 11pt}');
		document.write('.textbold {  font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-weight: bold}');
		document.write('.textsmall {  font-family: Arial, Helvetica, sans-serif; font-size: 9pt}');
		document.write('-->');
		document.write('</style>');
	}
}

if (bName == "Mozilla")
{
	tablewidth=660;
	bordercolor="000000";
}
else
{
	tablewidth=900;
	bordercolor="ffffff";
}