function detect(lineBreak) {
	var pluginName = "";
	var qtVersion = 0;
	var msg = "";

	if (navigator.appName.indexOf("Netscape") > -1) {
		if (parseFloat(navigator.appVersion) < 5.0) {
			msg += "You need to upgrade to Netscape 7.1 at least." + lineBreak;
		}
	} else if (navigator.appName.indexOf("Internet Explorer") > -1) {
		if (parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+4)) < 5.5) {
			msg += "You need to upgrade to Internet Explorer 5.5 at least." + lineBreak;
		}
	} else {
		msg += "Your browser may not support this training program. You should upgrade to Internet Explorer 5.5 or Netscape 7.1 at least." + lineBreak;
	}

	for(var i=0; i<navigator.plugins.length; i++) {
		pluginName = navigator.plugins[i].name;
		if (pluginName.indexOf("QuickTime") > -1) {
			qtVersion = parseFloat(pluginName.substring(pluginName.lastIndexOf(" ")));
			break;
		}
	}
	if (navigator.plugins.length > 0 && qtVersion < 4) {
		msg += "This program requires installation of the QuickTime plugin." + lineBreak;
	}

	if (screen.width < 800 || screen.height < 600) {
		msg += "You will need a display of at least 800x600 to view this training program." + lineBreak;
	}
	return msg;
}
