	if ((navigator.userAgent.indexOf("blocked by Outpost") >= 0) || (navigator.userAgent.indexOf("www.agnitum.com") >= 0))
    top.location.href = "http://www.agnitum.com/";
  if (document.location.href.search("siegesoft") >= 1) 
    top.location.href = "http://www.siegesoft.com/";
//*******************************************************************
// NEW dynamic image resizer by burgwinkel.com : consume freely
	var imgW = null;
	var imgH = null;
function imgRsz(w,h,pct,imgFile,imgRL,altTxt)
{
if (document.documentElement && document.documentElement.clientWidth){
  cw = document.documentElement.clientWidth;
  ch = document.documentElement.clientHeight;
}else{
  cw = document.body.clientWidth;
  ch = document.body.clientHeight;
}
if (navigator.userAgent.indexOf("MSIE ") == -1){
  cw = (screen.availWidth * 0.66);
  ch = (screen.availHeight * 0.66);
}
	if (pct==0){
imgW = w;
imgH = h;
  }else{
imgW = parseInt(cw*(pct/100));
imgH = parseInt(imgW*(h/w));
	}
	if (altTxt=="" || altTxt==0){
altTag = "";
  }else{
altTag = "alt='" + altTxt + "'";
  }
document.write("<img class='" +imgRL+ "' src='" +imgFile+ "' border='0' width='" +imgW+ "' height='" +imgH+ "' " +altTag+ ">");
// for testing...
// document.write("<br>&lt;img class='" +imgRL+ "' src='" +imgFile+ "' border='0' width='" +imgW+ "' height='" +imgH+ "' " +altTag+ "&gt;<br>");
}// END



//*******************************************************************
// Pop-up window opener

function opWin(theURL,winName,features) //v2.0
{ 	if (window.winName && window.winName.closed==false) 
	{
		if (navigator.userAgent.indexOf("MSIE 3")==-1) 
		{ window.winName.focus(); }
	}else{ winName=window.open(theURL,winName,features);
	}
}// END


//*******************************************************************
//<!-- dynamic image resizer

	var imgW = null;
	var imgH = null;
function imgResize(w,h,pct){
	var har = h/w
	var war = w/h
	if (!document.body)	
	{ 	var cw = (screen.availWidth * 0.66);
		var ch = (screen.availHeight * 0.66);
	}else{
	var cw = document.body.clientWidth;
	var ch = document.body.clientHeight; }
	if (ch/cw <= h/w)
		{ 
		imgH = parseInt(ch*(pct/100));
		imgW = parseInt(imgH * war);
	}else{
		imgW = parseInt(cw*(pct/100));
		imgH = parseInt(imgW * har);
	}
}
//END




//*******************************************************************
//<!-- comments opener

    function OpenComments (c) {
        window.open('/MT/mt-comments.cgi?' +
                    'entry_id=' + c,
                    'comments',
                    'width=500,height=560,scrollbars=1,status=1');
    }
//END




//*******************************************************************
//<!-- browser sniffer

v3 = 0; op = 0; ie4  = 0; ie5 = 0; ie55 = 0; ie6 = 0; nn4 = 0; nn6 = 0; isMac = 0; aol = 0;

if(document.images){
  if(navigator.userAgent.indexOf("Opera") != -1){
  op = 1;
  } else {
    if(navigator.userAgent.indexOf("AOL") != -1){
    aol = 1;
    } else {
      if (navigator.userAgent.indexOf("MSIE 6") != -1){
      ie6 = 1;
      } else {
        if (navigator.userAgent.indexOf("MSIE 5.5") != -1){
        ie55 = 1;
        } else {
          if (navigator.userAgent.indexOf("MSIE 5.0") != -1){
          ie5 = 1;
          } else {
            if (document.all && !document.getElementById){
              ie4 = 1;
            } else {
              if (document.layers){
              nn4 = 1;
              } else {
  //              ie6 = (document.all && document.getElementById);
                if (document.addEventListener){
                nn6 = 1;
                }
              }
            }
          }
        }
      }
    }
  }
} else {
  v3 = 1;	
}
if(navigator.userAgent.indexOf("Mac") != -1){
    isMac = 1;
}

function adjustCSS(){
  autoCSS = "";
  if(v3 || op || ie4 || isMac || aol){
  document.write("");
  } else {
    if(nn4 || nn6){
    autoCSS = 'nn.css';
    } else {
      if(ie5){
      autoCSS = 'ie5.css';
      } else {
        if(ie55){
        autoCSS = 'ie55.css';
        } else {
          if(ie6){
          autoCSS = 'ie6.css';
          }
        }
      }
    }
    document.write("<link rel=\"stylesheet\" href=\"/" + autoCSS + "\" type=\"text/css\">");
  }
//        alert(navigator.userAgent + '\n' + 'Opera = ' + op + '\n' + 'aol   = ' + aol + '\n' + 'ie55  = ' + ie55 + '\n' + 'ie5   = ' + ie5 + '\n' + 'ie4   = ' + ie4 + '\n' + 'nn4   = ' + nn4 + '\n' + 'ie6   = ' + ie6 + '\n' + 'nn6   = ' + nn6 + '\n' + 'v3    = ' + v3 + '\n' + 'mac   = ' + isMac  + '\n' + 'css   = ' + autoCSS );
}

