<!--
//    -=pH2=-  April 1, 2004
// --------------------  **tnw-rr.com JavaScript **  ----------------->
//    ph2 Enterprises 


defaultStatus = "TNW Corporation";


// --------------------  ** Browser Detection **  ----------------->

   bName = navigator.appName;
   bVersion = parseFloat(navigator.appVersion);
   r = 'false';

if (bName == "Netscape" && bVersion >= 3.0){
        //alert(bName+bVersion);
	document.write('<link rel=stylesheet type="text/css" href="css/netscape.css">');
        r = 'true';
	}
else if (bName == "Microsoft Internet Explorer" && bVersion >= 3.0)
	{
	document.write('<link rel=stylesheet type="text/css" href="css/default.css">');
	r = 'true';
	}
else
	{
	//alert("Niether");
	r = 'false';
	document.write('<link rel=stylesheet type="text/css" href="css/default.css">');
}
// --------------------  ** DOM Detection **  ----------------->
  	     
var b // Check DOM 

if (document.getElementById) {
        //alert("This browser is WC3 DOM Compliant! IE 5.5 or Netscape 6");
        	if (bName == "Netscape" && bVersion >= 4.0){
        	
        		var NS6 = true; //It is Netscape 6
			b="WC3";
			
  		}else{
  			b="WC3"; 
  			var NS6 = false;
  			
  		}
  	}
else if(document.all){
	//alert("This browser is IE!");
	b="IE";
	}
else if (document.layers) {
  	//alert("This browser is Netscape!");
    	b="N";
}

//alert(b);   


// --------------------  ** Image Rollover Function **  ----------------->

function msover(img,ref){
	if (r == 'true'){
		document.images[img].src = ref;
	}
}

function msout(img,ref){
	if (r == 'true'){
		document.images[img].src = ref;
	}
}


   
// --------------------  ** New Window Function **  ----------------->  
   
function openWin(thepage,winname,iwidth,iheight,scroll) {
   
	if (parseInt(navigator.appVersion) >= 4) {
		var winl = (screen.width - iwidth) / 2;
		var wint = (screen.height - iheight) / 2;
		winargs = 'height='+iheight+',width='+iwidth+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(thepage,winname,winargs)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 
		} 
      
		else
      
		{
		winargs = 'height='+iheight+',width='+iwidth+ ', scrollbars='+scroll
		window.open(thepage,winname,winargs)
		}
}
         


// -->
