	  function checkBrowser () 
	  {
	   userAg = navigator.userAgent;
	    bName = navigator.appName;
	    bVer  = parseInt(navigator.appVersion);
/*
	    document.write('<br> AppVersion: ');
		document.write(navigator.appVersion);
		document.write('<br> Nazwa: ');
		document.write(bName);
		document.write('<br> Wersja: ');
		document.write(bVer);		
		document.write('<br> ver: ');
		document.write(navigator.appVersion.substring(16,25));
*/
		
	    if (bVer == 4) 
		{
			//	document.write('czórka');
	        if (bName.substring(0,9) == "Microsoft")       
			{	
			// document.write('Microsoft');
				if (navigator.appVersion.substring(17,25) == "MSIE 6.0")
	            	document.write("<link rel='stylesheet' href='css/styl_IE6.css' type='text/css'>");
				else 						 // (navigator.appVersion.substring(17,25) == "MSIE 7.0")
	            	document.write("<link rel='stylesheet' href='css/styl_IE7.css' type='text/css'>");
			}
		}
		else 
	            document.write("<link rel='stylesheet' href='css/styl.css' type='text/css'>");
    
	  } 

checkBrowser ();

