// Copyright 2006 Pharmsource.

var browser = navigator.appName;
var version = parseInt(navigator.appVersion);

function isWin() {
	if (navigator.appVersion.indexOf("Win")!= -1) return true;
	}
	
function isMac() {
	if (navigator.appVersion.indexOf("Macintosh")!= -1) return true;
	}
	
function isIE5Mac() {
	if (navigator.appVersion.indexOf("MSIE 5.0")!= -1) return true;
	}

function printPS() {
	if (isWin()) {
		if (version >= 4) {
		window.print()
		}
	else {
	window.alert("Press Crtl+P to print this page.")
		 }
	}
else if (isMac()) {
	if (isIE5Mac()) {
	window.alert("Press Command+P to print this page.") }
	else if ((browser == "Netscape") && (version <= 4.0)) {
	window.alert("Press Command+P to print this page.") }
	else if (version >= 4) {
	window.print() }
	}
}

function bookmarkPS() {
if (isWin()) {
if ((browser == "Microsoft Internet Explorer")&&(version >= 4)) {
	window.external.AddFavorite( location.href, document.title ) }
else { alert("Press Ctrl+D to bookmark this page.") }
}
else if (isMac()) {
alert("Press Command+D to bookmark this page.") }
}
