var detect = navigator.userAgent.toLowerCase();
var thestring;

if (checkIt('konqueror')) {
				  document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrmoz.css'/> ");
				 // if  (window.screen.width > 800)  {
   				 // document.write("css/stylesgrmoz.css'/>");
				 // } 
  				 // else if (window.screen.width <= 800) {  
      			 // document.write("css/stylesgrmoz86.css'/>");
				 // }
}

else if (checkIt('safari'))  {
			document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrmoz.css'/> ");
			//if  (window.screen.width > 800)  {
			//document.write("css/stylesgrmoz.css'/>");
			//} 
			//else if (window.screen.width <= 800) {
  			//document.write("css/stylesgrmoz86.css'/>");
			//}
}
else if (checkIt('msie')) {
			
			if (window.XMLHttpRequest) {
	
			document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrie7.css'/> ");
			
			} else {
			
			document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrie.css'/> ");
			
			}
			
			//if  (window.screen.width > 800)  {
			//document.write("css/stylesgrie.css'/>");
			//} 
			//else if (window.screen.width <= 800) {
			//document.write("css/stylesgrie86.css'/>");
			//}
}
else if (checkIt('mozilla')) {
			 document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrmoz.css'/> ");
			 //if  (window.screen.width > 800)  {
     		 //document.write("css/stylesgrmoz.css'/>");
			 //} 
  			 //else if (window.screen.width <= 800) {  
        	 //document.write("css/stylesgrmoz86.css'/>");
			 //}
}

else if (checkIt('opera')) {
			 document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrmoz.css'/> ");
			 //if  (window.screen.width > 800)  {
     		 //document.write("css/stylesgrmoz.css'/>");
			 //} 
  			 //else if (window.screen.width <= 800) {  
        	 //document.write("css/stylesgrmoz86.css'/>");
			 //}

}

else if (checkIt('icab')) {
             document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrmoz.css'/> ");
			 //if  (window.screen.width > 800)  {
     		 //document.write("css/stylesgrmoz.css'/>");
			 //} 
  			 //else if (window.screen.width <= 800) {  
        	 //document.write("css/stylesgrmoz86.css'/>");
			 //}
}

else if (!checkIt('compatible'))

{
  document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrie.css'/> ");
			//if  (window.screen.width > 800)  {
			//document.write("css/stylesgrie.css'/>");
			//} 
			//else if (window.screen.width <= 800) {
			//document.write("css/stylesgrie86.css'/>");
			//}

}
else {
  document.write("<link rel='stylesheet' type='text/css' href='css/stylesgrie.css'/> ");
			//if  (window.screen.width > 800)  {
			//document.write("css/stylesgrie.css'/>");
			//} 
			//else if (window.screen.width <= 800) {
			//document.write("css/stylesgrie86.css'/>");
			//}
}

function checkIt(string)
{
  place = detect.indexOf(string) + 1;
  thestring = string;
  return place;
}