/**
 * Created by liutiantian on 2015/10/22.
 */
var iqqi_constances = {};

{
    /**
     * what is the difference between gone and hidden?
     * gone means the element will has no space in the document, it may be visible, but you can not find them.
     * hidden means the element hold on to its position and width and height, you just can not see it.
     */

    /**
     * what is presto and webkit
     * presto, the old core name of opera, in tv, you just set it to presto, for although the core detected is webkit, but it acts exactly like presto.
     * webkit, oh, you must be kidding if you do not know.
     */

    /**
     * what is 720P and 1080P
     * our tv works in two screen mode, very much disgusting.
     * we sacrifice about 7000 lines to just handle this two screen size.
     * if you point an element with 720P flag, then in 720P screen, this css will be used first. 1080P has the same logic.
     * since almost all the csses must define 720P and 1080P version, these flags are set to all element's default flag.
     */

    iqqi_constances.c_rtl = 0x1;                                    // this element has its own rtl css, such as css_rtl, otherwise it should be css.
    iqqi_constances.c_rtl_exclude_hidden = 0x2;                     // this element has a hidden css which can handle hidden status without rtl flag. such as css_hidden, otherwise it should be css_rtl_hidden.
    iqqi_constances.c_rtl_exclude_gone = 0x4;                       // this element has a gone css which can handle hidden status without rtl flag. such as css_gone, otherwise it should be css_rtl_gone.
    iqqi_constances.c_password = 0x8;                               // this element has its own password css, such css_password, otherwise it should be css.
    iqqi_constances.c_password_exclude_hidden = 0x10;               // this element has a hidden css which can handle hidden status without password flag, such as css_hidden, otherwise it should be css_password_hidden.
    iqqi_constances.c_closed = 0x20;                                // this element is self closed, such as <br />, otherwise is will be strictly closed, such as <div></div>
    iqqi_constances.c_browser_presto = 0x40;                        // this element has a presto css. such as css_presto, otherwise it will be without presto tag.
    iqqi_constances.c_browser_webkit = 0x80;                        // this element has a webkit css. such as css_webkit, otherwise it will be without webkit tag.
    iqqi_constances.c_browser_exclude_hidden = 0x100;               // this element has a hidden css which can handle hidden status without browser tag. such as css_hidden, otherwise it should has two hidden css, such as css_presto_hidden and css_webkit_hidden.
    iqqi_constances.c_browser_exclude_gone = 0x200;                 // this element has a gone css which can handle gone status without browser tag. such as css_gone, otherwise it should has two gone css, such as css_presto_gone and css_webkit_gone.
    iqqi_constances.c_screen_720P = 0x400;                          // this element has a 720P css, such as css_720P, otherwise it will be without 720P tag.
    iqqi_constances.c_screen_1080P = 0x800;                         // this element has a 720P css, such as css_1080P, otherwise it will be without 1080P tag.
    iqqi_constances.c_screen_exclude_hidden = 0x1000;               // this element has a hidden css which can handle hidden status without screen tag, otherwise it should has two hidden csses, such as css_720P_hidden and css_1080P_hidden.
    iqqi_constances.c_screen_exclude_gone = 0x2000;                 // this element has a hidden css which can handle gone status without screen tag, otherwise it should has two gone csses, such as css_720P_gone and css_1080P_gone.
    iqqi_constances.c_shift_caps_care = 0x4000;                     // this element has different csses in normal, shift and caps mode, such as css_normal, css_shift and css_caps, otherwise it should be css.
}

{
    // these flags are combined flags from first block.
    iqqi_constances.c_default = iqqi_constances.c_browser_presto|iqqi_constances.c_screen_720P|iqqi_constances.c_screen_1080P;
    iqqi_constances.c_exclude_gone = iqqi_constances.c_browser_exclude_gone|iqqi_constances.c_rtl_exclude_gone|iqqi_constances.c_screen_exclude_gone;
    iqqi_constances.c_exclude_hidden = iqqi_constances.c_browser_exclude_hidden|iqqi_constances.c_rtl_exclude_hidden|iqqi_constances.c_screen_exclude_hidden;
    iqqi_constances.c_default_btn = iqqi_constances.c_default|iqqi_constances.c_exclude_gone|iqqi_constances.c_exclude_hidden;
}
