// JavaScript Document

var BrowserName=navigator.appName;  //Böngésző neve változóba

//Következnek a felbontás, azon belül böngésző szerinti leválogatások

if (screen.width==1600)  //1600 képernyőszélesség
{
     if (BrowserName=="Microsoft Internet Explorer")  //Ha Internet Explorer
	 {
		document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt1600ie.css" rel="stylesheet" type="text/css">');
     }

     else if (BrowserName=="Netscape")   //Ha Netscape, vagy Firefox
	 {
	 document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt1600ns.css" rel="stylesheet" type="text/css">');
     }
}


if (screen.width==1280)  //1280 képernyő szélesség
{
      if (BrowserName=="Microsoft Internet Explorer")  //Ha Internet Explorer
	  {  
         document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt1280ie.css" rel="stylesheet" type="text/css">');
      }
      
       else if (BrowserName=="Netscape")   //Ha Netscape, vagy Firefox
	  {
      document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt1280ns.css" rel="stylesheet" type="text/css">');
      }
}


if (screen.width==1152)  //1152 képernyő szélesség
 {
      if (BrowserName=="Microsoft Internet Explorer")  //Ha Internet Explorer
	 {    
 	      document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt1152ie.css" rel="stylesheet" type="text/css">');
     }

      else if (BrowserName=="Netscape")   //Ha Netscape, vagy Firefox
	 {
           document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt1152ns.css" rel="stylesheet" type="text/css">');
     }
}


if (screen.width==1024 || screen.height==768)  //1024x768 képernyőfelbontás
{
     if (BrowserName=="Microsoft Internet Explorer")  //Ha Internet Explorer
	 { 
	       document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt1024ie.css" rel="stylesheet" type="text/css">');
     }
     else if (BrowserName=="Netscape")   //Ha Netscape, vagy Firefox
	 {
           document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt1024ns.css" rel="stylesheet" type="text/css">');
     }
}


if (screen.width==800 )  //800x600 képernyőfelbontás
     {
      if (BrowserName=="Microsoft Internet Explorer")  //Ha Internet Explorer
	 {    
              document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt800ie.css" rel="stylesheet" type="text/css">');
	 } 
     else if (BrowserName=="Netscape")   //Ha Netscape, vagy Firefox
	 {
              document.write('<link href="http://www.mrtt.hu/Stylesheet/mrtt800ns.css" rel="stylesheet" type="text/css">');
         } 
}
