function printPage()
	{
	if (!window.print)
		{alert ("This method is not supported on this platform");
		}
	else window.print();
	} 

function addBookmark ()
	{if(browser.ie)
		{if (browser.mac) alert ("This method is not supported on this platform");
		 else  window.external.AddFavorite(location.href, document.title); 
		}
	  else 
		{alert ("Please press " + ((browser.mac) ? "Command" : "Control") + "-D to add the bookmark");
		}
	}
	
var browser = new BrowserInfo;
/*
  browser.win			true or false
  browser.mac			true or false
  browser.ie			true or false
  browser.ns			true or flase	Netscape compatibale (i.e. mozilla)
  browser.ver			version
  browser.name			browser name
  browser.codename		codeName (i.e. Mozilla)
*/
function BrowserInfo()
{	var ie, ns, sa, win, mac, ns4, ns6, ver;

	ns4 = document.layers;
	ns6 = document.getElementById && !document.all; 
	ie = /(explorer|((^|\s)MSIE($|\s)))/i.test(navigator.appName) ||
		 /(explorer|((^|\s)MSIE($|\s)))/i.test(navigator.userAgent);
	sa = /(Safari|((^|\s)Safari($|\s)))/i.test(navigator.appName) ||
		 /(Safari|((^|\s)Safari($|\s)))/i.test(navigator.userAgent);
	ns = ns4 || ns6 || /(netscape|((^|\s)(NS|NN)($|\s)))/i.test(navigator.appName);
	win = /win/i.test(navigator.appVersion) || /win/i.test(navigator.platform);
	mac = /mac/i.test(navigator.appVersion) || /mac/i.test(navigator.platform);

	this.name = navigator.appName;
	this.codename = navigator.appCodeName;
	this.version = navigator.appVersion.substring(0,4);
	this.platform = navigator.platform;
	this.javaEnabled = navigator.javaEnabled();
	this.screenWidth = screen.width;
	this.screenHeight = screen.height;
	this.win = win;
	this.mac = mac;
	this.ie = ie;
	this.ns = ns;
	this.sa  = this.safari = sa;
	this.ver = this.version;
}
