function check_browser(versions) {
var versions;
var uaVers='';

if (window.navigator.userAgent.indexOf ("Opera") >= 0)

  {

   ua = 'Opera';

   uaVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("Opera")+6,4);

  }

else

if (window.navigator.userAgent.indexOf ("Gecko") >= 0) // (Mozilla, Netscape, FireFox)

  { 

   ua = 'Netscape';

   uaVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("Gecko")+6,8)+ ' ('+ window.navigator.userAgent.substr(8,3) + ')';

  }

else

if (window.navigator.userAgent.indexOf ("MSIE") >= 0)

  {

   ua = 'MSIE';

   uaVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("MSIE")+5,3);
	var myString = new String(uaVers);
	var uaVers = myString.substring(0,1);	
  }

else

   ua = window.navigator.appName; // Неизвестные мне браузеры


if ((ua+" "+uaVers)==versions) return true;
return false;
}

if(check_browser("MSIE 6"))
{
document.write('<link rel="stylesheet" type="text/css" href="/css/stylesIE6.css">');
}
else
{
document.write('<link rel="stylesheet" type="text/css" href="/css/styles.css">');
}