// Browser detection for css and address cloaking script.  
//Rogier Gruys/David Wolowicz, University of Victoria, 2004

function setcss(SiteDir,CssName)
{	
//test for ie3 ie4
		if ((navigator.userAgent.indexOf('MSIE 4')==-1) && (navigator.userAgent.indexOf('MSIE 3')==-1))
		{
			document.write('<link rel="stylesheet" type="text/css" href="' + SiteDir+ 'css/' + CssName + '-print.css" media="print" />')
		
		}		
}

function address(one, zero) 
{

	var a = 'ma';
	var b = 'il';
	var c = 'to:';
	document.write('<a href="');
	document.write(a+b+c);
	document.write(zero);
	document.write('&#64;');
	document.write(one);
	document.write('" title="Send Email">');
	document.write(zero);
	document.write('&#64;');
	document.write(one+'</a>');
}
//Popup window function. (C) Rogier Gruys, University of Victoria, 2003
// Version 1.0 July 18, 2003
var newWin = null; 
function popUp(strURL, strType, strWidth, strHeight) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="none") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="menu") 
   strOptions="menubar,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="scroll") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}
