//Globall Variables

var browser ="null";
var os = 0;
var cannotDetect =0;

	// Checks for the Operating System
	if(navigator.appVersion.indexOf('Win') !=-1)
			/*
			! is "not", in this case -1 (-1 means that it can't be found)
			if it's not there 
			*/
		{
			//alert("true");
			//alert(navigator.appVersion.indexOf('Win'));
			os = "windows";
		} else if(navigator.appVersion.indexOf('Mac') !=-1)
		{
			//alert("true");
			os = "macintosh";
		} else {
			cannotDetect = "nothing";	
		}
		
	//Check for different browsers
	//alert(navigator.appName);
	
	if(navigator.appName.indexOf('Netscape') !=-1)
		{
			browser = "NS";
		} else if (navigator.appName.indexOf('Microsoft') !=-1)
		{
			browser = "IE";	
		} else {
			browser = "null";	
		}
		
	/*document.write(os + "<br>" + browser + "<br>");*/
