///\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\\
//*  file; abstract.js, written by, Sohail AT stupidcomputing DOT com      *\\
//*                                                                        *\\
//*       Last modified on Thursday, 11th of February 2010 @12:57:00       *\\
//*         -----------------------------------------------------          *\\
//*       ---------------------------------------------------------        *\\
///\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\\

    
    var userAgent = 0; 
    var cssFile = ".css";

    function checkUserAgent(){

       //DEBUG CRITERIA.	
       //varBrowser=navigator.appName;        
       //window.alert(navigator.appName);  
       //window.alert(navigator.userAgent); 
       //window.alert(navigator.appCodeName);

       // for netscpae 4   
       if ((navigator.appName).indexOf('Netscape') >= 0 && (navigator.userAgent).indexOf("Mozilla/4") >= 0) {  
          userAgent  = 1;
          cssFile = "styles" + screen.width + "-ne4" + cssFile;
       } 
       // for mozilla and firefox and new netscapes
       else if((navigator.appName).indexOf('Netscape') >= 0 && (navigator.userAgent).indexOf("Mozilla/5") >= 0) {  
          userAgent = 3;
          cssFile = "styles" + screen.width + "-firefox" + cssFile;           
       }   
       // for opera
       else if ((navigator.appName).indexOf('Opera') >= 0) {
          userAgent = 4;
          cssFile = "styles" + screen.width + "-opera" + cssFile;                   
       }    
       // for ie
       else if ((navigator.appName).indexOf('Explorer') >= 0) {
          userAgent = 2;
          cssFile = "styles" + screen.width +"-ie" + cssFile;       
       }        
       //for konqueror
       else if ((navigator.appName).indexOf('Konqueror') >= 0) {
	  userAgent = 5;
          cssFile = "styles" + screen.width +  "-Konqueror" + cssFile;
       }	
       //an unknown browser/UserAget is detected, the behavior of the page is uncretain
       else {
          userAgent = 1000;
          cssFile = "styles" + screen.width + "-Unknown" + cssFile;
       }

       cssFile = "http://www.stupidcomputing.com/" + cssFile;
    }

    checkUserAgent();
    



