public void main()
    {
        LookAndFeel.set();
        ur=new UserDataReadWrite();
        if(ur.readSplash()==1)
            SwingUtilities.invokeLater(new Splash());
        try{
            Thread.sleep(3000);
        }catch(InterruptedException ex){}
        ur.readDomainFile();
        st=new SysTray(ur);
        final boolean fg=ur.readEnabled();
        final int gg=ur.readSplash();
        try
        {   
            SwingUtilities.invokeAndWait(new Runnable()
            {    
                public void run()
                {
                    st.initialise(fg,gg);
                }
            });
        }
        catch(InterruptedException e){}
        catch(java.lang.reflect.InvocationTargetException e){}
        String input="";
        input=ur.prefs.get("firststart","1");
        ur.prefs.put("firststart","0");
        try{
            ur.prefs.flush();
        }catch(Exception e){}
        if(Integer.parseInt(input)==1)
        {
            display("<html><h3>IIT-P WebApp:</h3>Welcome to IIT-P WebApp where you will experience <br>an easy way to access your WebMail. It automatically <br>connects to your mail service and get the updates... <br>With many additional options. <br><br>Please complete the following formalities...<br>  </html>",10);
            ur.newFile();
            //display("<html><h3>IIT-P WebApp:</h3>Congratulations... !! You have been registered.<br>Connecting to ashoka.iitp.ac.in...</html>",4);
            SwingUtilities.invokeLater(new Runnable()
            {    
                public void run()
                {
                    st.showMessage("IITPWebApp","Welcome !!");
                }
            });
            try{
                Thread.sleep(2000);
            }catch(InterruptedException ex){}
        }
        IITPWebMail mail=new IITPWebMail(st,ur);
        mail.main();
    }