// JavaScript Document

var n = (document.layers) ? 1:0; 
var ie = (document.all) ? 1:0;
var mac = (navigator.userAgent.indexOf('Mac')>-1) ? 1:0;
		
function openWin( image, name, wval, hval ) {
			
// set general size vars
var w_val = wval;
var h_val = hval;
		
		
// if browser is ie mac
if (ie && mac) {
w_val -= 16;
h_val -= 16;
}
			
// open the browser
var nw=window.open( image, name, 'width='+w_val+',height='+h_val+', status=yes,menubar=no,scrollable=no,resizable=yes');
nw.focus();
			
// move it to the upper lefthand corner
nw.moveTo(50,50);
				
}
