			/* */
			/* Variable declarations for browser identifcation */
			/* */

			var browser = new String('Unknown');
			var compatible = new String('None');
			var version = new String('0.0');
			var browsersearchstr = new String('Unknown');
			var compatiblesearchstr = new String('Unknown');
			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.appVersion+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)		
						};			
					};				
									
					compatiblesearchstr = 'GreenBrowser';				
					versionsearchstr = 'GreenBrowser';				
									
					if ( navigator.userAgent.indexOf(compatiblesearchstr) >= 0 )				
					{				
						browser = compatiblesearchstr;			
									
						/* Browser is GreenBrowser, get the version */			

						version = navigator.appVersion.substr(0,navigator.appVersion.indexOf(' '));		
					};				
					/* 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 */				
									
					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(compatiblesearchstr)+compatiblesearchstr.length+1,navigator.userAgent.length-navigator.userAgent.indexOf(compatiblesearchstr)-versionsearchstr.length+1);		
						};			
					};

					compatiblesearchstr = 'Mozilla';				
					versionsearchstr = 'Mozilla';				

					if ( navigator.userAgent.indexOf(compatiblesearchstr) >= 0 )				
					{				
						browser = compatiblesearchstr;			
									
						/* Browser is Mozilla, get the version */			
									
						if ( navigator.userAgent.indexOf(versionsearchstr) >= 0 )			
						{			
							version = navigator.userAgent.substr(navigator.userAgent.indexOf(compatiblesearchstr)+compatiblesearchstr.length+1,navigator.userAgent.length-navigator.userAgent.indexOf(compatiblesearchstr)-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 */				
									

					compatiblesearchstr = 'SeaMonkey';				
					versionsearchstr = 'SeaMonkey';				

					if ( navigator.userAgent.indexOf(compatiblesearchstr) >= 0 )				
					{				
						browser = compatiblesearchstr;			
									
						/* Browser is SeaMonkey, get the version */			
									
						if ( navigator.userAgent.indexOf(versionsearchstr) >= 0 )			
						{			
							version = navigator.userAgent.substr(navigator.userAgent.indexOf(compatiblesearchstr)+compatiblesearchstr.length+1,navigator.userAgent.length-navigator.userAgent.indexOf(compatiblesearchstr)-versionsearchstr.length+1);		
						};			
					};				

					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	*/
