			/* */
			/* Variable declarations for browser identifcation */
			/* */

			var browser = new String('Unknown');
			var compatible = new String(browsersearchstr);
			var version = new String('0.0');
			var browsersearchstr = new String('Unknown');
			var compatiblesearchstr = new String('Netscape');
			var versionsearchstr = new String('0.0');
	
			/* */
			/* End of variable declarations for browser identifcation */
			/* */

			/* */
			/* browserCheck() checks for Internet Explorer and known compatible browsers 			*/	
			/* */
			





			function browserCheck()
			{				
				browsersearchstr = 'Microsoft Internet Explorer';					
				versionsearchstr = 'MSIE';					
									
				if ( navigator.appName.indexOf(browsersearchstr) >= 0 )					
				{					
					/* Browser seems to be Internet Explorer */				
									
					browser = browsersearchstr;				
					compatible = browsersearchstr;				
									
					if ( navigator.appVersion.indexOf(versionsearchstr) >= 0 )				
					{				
						version = navigator.appVersion.substr(navigator.appVersion.indexOf(versionsearchstr)+versionsearchstr.length+1,3)			
					};				
									
					/* Check for known Internet Explorer compatibles*/				
									
					compatiblesearchstr = 'Opera';				
					versionsearchstr = 'Opera';				
									
					if ( navigator.userAgent.indexOf(compatiblesearchstr) >= 0 )				
					{				
						browser = compatiblesearchstr;			
									
						if ( navigator.userAgent.indexOf(versionsearchstr) >= 0 )			
						{			
							version = navigator.userAgent.substr(navigator.userAgent.indexOf(versionsearchstr)+versionsearchstr.length+1,3)		
						};			
					};				
									
					compatiblesearchstr = 'Crazy Browser';				
					versionsearchstr = 'Crazy Browser';				
									
					if ( navigator.userAgent.indexOf(compatiblesearchstr) >= 0 )				
					{				
						browser = compatiblesearchstr;			
									
						if ( navigator.userAgent.indexOf(versionsearchstr) >= 0 )			
						{			
							version = navigator.userAgent.substr(navigator.userAgent.indexOf(versionsearchstr)+versionsearchstr.length+1,5)		
						};			
					};				
									
					/* Last Internet Explorer compatible has been checked */				
				};					
									
				/* End of Internet Explorer and comptibles check  */					
									
				/* check for Netscape and compatible browsers */					
									
				browsersearchstr = 'Netscape';					
				versionsearchstr = 'Netscape';					
									
				if ( navigator.appName.indexOf(browsersearchstr) >= 0 )					
				{					
					/* Browser is Netscape compatible                           */				
									
					compatible = browsersearchstr;				
									
					/* Get the version number and verify whether it truly is Netscape */				
									
					if ( navigator.userAgent.indexOf(versionsearchstr) >= 0 )				
					{				
						/* Looks like a Netscape version so say that it is Netscape */			
									
						browser = browsersearchstr;			
									
						/* Looks like a Netscape version so set the version */			
									
						version = navigator.userAgent.substr(navigator.userAgent.indexOf(versionsearchstr)+versionsearchstr.length+1,navigator.userAgent.length-navigator.userAgent.indexOf(versionsearchstr)-versionsearchstr.length+1);			
						browser = browsersearchstr			
					};				
									
					/* Check for known Netscape compatibles*/				
									
					compatiblesearchstr = 'Firebird';				
					versionsearchstr = 'Firebird';				
									
					if ( navigator.userAgent.indexOf(compatiblesearchstr) >= 0 )				
					{				
						browser = compatiblesearchstr;			
									
						/* Browser is Firebird, get the version */			
									
						if ( navigator.userAgent.indexOf(versionsearchstr) >= 0 )			
						{			
							version = navigator.userAgent.substr(navigator.userAgent.indexOf(versionsearchstr)+versionsearchstr.length+1,navigator.userAgent.length-navigator.userAgent.indexOf(versionsearchstr)-versionsearchstr.length+1);		
						};			
					};				
									
					compatiblesearchstr = 'Firefox';				
					versionsearchstr = 'Firefox';				
									
					if ( navigator.userAgent.indexOf(compatiblesearchstr) >= 0 )				
					{				
						browser = compatiblesearchstr;			
									
						/* Browser is Firefox, get the version */			
									
						if ( navigator.userAgent.indexOf(versionsearchstr) >= 0 )			
						{			
							version = navigator.userAgent.substr(navigator.userAgent.indexOf(versionsearchstr)+versionsearchstr.length+1,navigator.userAgent.length-navigator.userAgent.indexOf(versionsearchstr)-versionsearchstr.length+1);		
						};			
					};				
									
					/* If browser is Netscape compatible and is unknown:  probably Mozilla */				
									
					if(browser == 'Unknown')				
					{				
							browser = 'Mozilla';		
									
							/* Get the revision number */		
									
							versionsearchstr = new String('rv');		
									
							if ( navigator.userAgent.indexOf(versionsearchstr) >= 0 )		
							{		
								version = navigator.userAgent.substr(navigator.userAgent.indexOf(versionsearchstr)+versionsearchstr.length+1,3);	
							};		
					};				
									
					/* End of Netscape compatibility check */				
				};

			};

			/* End of browser check: if not identified, brower will remain set to 'unknown' 			*/				
			/* Output variables:  browser, version, compatible							*/				
