    //var cookie = "resolution="+ screen.width +"x"+ screen.height; 
    //document.cookie=cookie;
    //alert (document.cookie);
    //location = index.php;
  /*  
    * appCodeName - The name of the browser's code such as "Mozilla".
    * appMinorVersion - The minor version number of the browser.
    * appName - The name of the browser such as "Microsoft Internet Explorer" or "Netscape Navigator".
    * appVersion - The version of the browser which may include a compatability value and operating system name.
    * cookieEnabled - A boolean value of true or false depending on whether cookies are enabled in the browser.
    * cpuClass - The type of CPU which may be "x86"
    * mimeTypes - An array of MIME type descriptive strings that are supported by the browser.
    * onLine - A boolean value of true or false.
    * opsProfile
    * platform - A description of the operating system platform. In my case it is "Win32" for Windows 95.
    * plugins - An array of plug-ins supported by the browser and installed on the browser.
    * systemLanguage - The language being used such as "en-us".
    * userAgent - In my case it is "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)" which describes the browser associated user agent header.
    * userLanguage - The languge the user is using such as "en-us".
    * userProfile 
   */ 
       
    
    var width = screen.width;
    // var ua = navigator.userAgent;
    var browser = navigator.appName;
   // alert(browser);
    //alert(navigator.userAgent);
   // if() {alert("sou o mozilla");}

  
    
if(browser=='Netscape') {     
/*if(width==1680) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1680.css' type='text/css'/>");
    }
    if(width==1600) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1600.css' type='text/css'/>");
    }
    if(width==1440) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1400.css' type='text/css'/>");
    }
    if(width==1400) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1400.css' type='text/css'/>");
    }
     if(width==1280) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1280.css' type='text/css'/>");
    }
    if(width==1152) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1152.css' type='text/css'/>");
    }
    if(width==1024) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1024.css' type='text/css'/>");
    }*/
}
if(browser=='Microsoft Internet Explorer') {     
    if(width==1680) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1680_ie.css' type='text/css'/>");
    }
    if(width==1600) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1600_ie.css' type='text/css'/>");
    }
    if(width==1400) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1400_ie.css' type='text/css'/>");
    }
     if(width==1280) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1280_ie.css' type='text/css'/>");
    }
    if(width==1152) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1152_ie.css' type='text/css'/>");
    }
    if(width==1024) {
        document.write("<link rel='stylesheet' href='<?php echo $this->baseurl ?>/templates/tenco/css/template_1024_ie.css' type='text/css'/>");
    }
}

