/* $Id: script.js,v 1.1 2006/05/10 14:02:15 matt Exp $ */
var disclaimerWin

function disclaimer() {
	// Make the window work locally as well as remotely
	var loc = 'disclaimer.html'
	if(self.location.protocol == 'http') {
		loc = self.location.hostname + '/' + loc;
	} else if (self.location.href.match(/\/heat_exchangers\/|\/industrial_separators\/|\/marine_separators\/|\/Templates\//)) {
		loc = '../' + loc;
	}
	
	// Screen position
	x = (screen) ? (screen.availWidth - 250)/2 : 195;
	y = (screen) ? (screen.availHeight - 300)/2 : 90;
	
	disclaimerWin = window.open(loc, '','fullscreen=no, toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes, directories=no, location=no, width=250, height=300, screenX='+x+', screenY='+y+', top='+y+',left='+x);
	disclaimerWin.focus();  // bring the popup window to the front
}
