// JavaScript Document
// Spatial Intelligence stylesheets
if(navigator.userAgent.indexOf("Mac") != -1) {
	if(navigator.appName.indexOf("Netscape") != -1){
		document.write("<link REL='stylesheet' HREF='include/si_main_mac.css' TYPE='text/css'>");
	}
	else{
		document.write("<link REL='stylesheet' HREF='include/si_main.css' TYPE='text/css'>");
	}
}
else {
	document.write("<link REL='stylesheet' HREF='include/si_main.css' TYPE='text/css'>");
}

// Rinker stylesheets
  if ( (navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) < 4) ) {
     // -- THIS ONE IS FOR VERSIONS OF IE LESS THAN 4
     // ---------------------------------------------
     document.write("<LINK REL=\"stylesheet\"HREF=\"../../../Ssheets/ie3_style.css\" TYPE=\"text/css\">");
  }
  else if ( navigator.appVersion.indexOf("Mac") != -1 ) {
     // THIS ONE IS FOR MAC
     // ---------------------------------------------
     document.write("<LINK REL=\"stylesheet\"HREF=\"../../../Ssheets/mac_style.css\" TYPE=\"text/css\">");
  }
  else if ( navigator.appName.indexOf("Netscape") > -1) {
     // -- THIS ONE IS FOR NETSCAPE
     // ---------------------------------------------
     document.write("<LINK REL=\"stylesheet\"HREF=\"../../../Ssheets/netscape_style.css\" TYPE=\"text/css\">");
  }
  else {
     // -- THIS ONE IS FOR EVERYTHING ELSE (including IE5+)
     // -- probably where you would put your current style sheet
     // -- (Common/Ssheets/standard.css)
     // ---------------------------------------------
     document.write("<LINK REL=\"stylesheet\"HREF=\"../../../Ssheets/standard.css\" TYPE=\"text/css\">");
  }     // ------------ END HIDE ----------------------- -->
	
	function showpopup(popup_url, popup_name, pheight, pwidth) {
	strpopup_url = new String(popup_url)
	strpopup_name = new String(popup_name)
	
	// calculate left/top to centre the window.
	if (document.all)
			var xMax = screen.width, yMax = screen.height;
	else
			if (document.layers)
					var xMax = window.outerWidth, yMax = window.outerHeight;
			else
					var xMax = 640, yMax=480;

	var xOffset = (xMax - pwidth)/2, yOffset = (yMax - pheight)/2;
	myWindow = window.open(strpopup_url,strpopup_name,'height='+pheight+',width='+pwidth+',toolbar=no,titlebar=no,resizable=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'') 
	myWindow.focus();
}
