

GadgetConstants =
{
    CHECK_UPDATE_AVAILABLE_DELAY: 2000,
    REFRESH_RATE: 2000,
    WAIT_FOR_STATUS_DELAY: 10000,
    WAIT_FOR_STATUS_INTERVAL: 200,
    
    MIN_GADGET_HEIGHT: 150,
	MAX_GADGET_HEIGHT: 1024,
    UPDATE_BAR_HEIGHT: 28,
    BG_IMAGES_PATH: "bg/messengerBackground",
    BG_IMAGES_EXTENSION: ".png",
	TOOLTIP_LEFT: 6,
    UPDATE_BAR_TIMEOUT_INTERVAL: 50,
    UPDATE_BAR_POSITION_SIZE_DELTA: 4,
	
	UPDATE_OPTION_NEVER: 0,
	UPDATE_OPTION_DOWNLOAD: 1,
    UPDATE_OPTION_REMIND: 2,
	
	SHOW_EMAIL_COUNTER_NEVER: 0,
	SHOW_EMAIL_COUNTER_ONLY_WHEN_UNREAD: 1,
	SHOW_EMAIL_COUNTER_ALWAYS:2
}

MessengerConstants =
{
    MISTATUS_UNKNOWN: 0,
    MISTATUS_OFFLINE: 1,
    MISTATUS_ONLINE: 2,
    MISTATUS_INVISIBLE: 6,
    MISTATUS_BUSY: 10,
    MISTATUS_BE_RIGHT_BACK: 14,
    MISTATUS_IDLE: 18,
    MISTATUS_AWAY: 34,
    MISTATUS_ON_THE_PHONE: 50,
    MISTATUS_OUT_TO_LUNCH: 66,
    MISTATUS_LOCAL_FINDING_SERVER: 256,
    MISTATUS_LOCAL_CONNECTING_TO_SERVER: 512,
    MISTATUS_LOCAL_SYNCHRONIZING_WITH_SERVER: 768,
    MISTATUS_LOCAL_DISCONNECTING_FROM_SERVER: 1024,

    MISTATUS_CAN_BE_PAGED: 2048,
	
	MUAFOLDER_INBOX: 0,
	MUAFOLDER_ALL_OTHER_FOLDERS: 1,

    SORT_BY_GROUP: 0,
    SORT_BY_STATUS: 1,

    FILTER_SHOW_ALL: 0,
    FILTER_SHOW_MESSENGER_ONLY: 1,
    FILTER_SHOW_ONLINE_ONLY: 2,

    VIEW_BY_DISPLAY_NAME: 0,
    VIEW_BY_NAME: 1,
    VIEW_BY_EMAIL: 2,

    STATUS_CHANGE_NONE: 0,
    STATUS_CHANGE_OFFLINE_ONLINE: 1,
    STATUS_CHANGE_ONLINE_OFFLINE: 2,

    CONTACT_CHANGE_STATUS: 0,
    CONTACT_CHANGE_FRIENDLYNAME: 1,
    CONTACT_CHANGE_GROUP: 2
}

EmoticonConstants = 
{
	"\\:\\)":"smile",
	"\\:D":"openMouthedSmile",
	"\\;\\)":"wink",
	"\\:\\-O":"surprised",
	"\\:\\P":"tongueOut",
	"\\(H\\)":"hot",
	"\\:\\@":"angry",
	"\\:\\$":"embarrased",
	"\\:S":"confused",
	"\\:\\(":"sad",
	"\\:\\'\\(":"crying",
	"\\:\\|":"disappointed",
	"\\(6\\)":"devil",
	"\\(A\\)":"angel",
	"\\(L\\)":"redHeart",
	"\\(U\\)":"brokenHeart",
	"\\(M\\)":"msnMessengerIcon",
	"\\(\\@\\)":"catFace",
	"\\(\\&\\)":"dogFace",
	"\\(S\\)":"sleepingHalfMoon",
	"\\(\\*\\)":"star",
	"\\(\\~\\)":"filmstrip",
	"\\(8\\)":"note",
	"\\(E\\)":"email",
	"\\(F\\)":"redRose",
	"\\(W\\)":"wiltedRose",
	"\\(O\\)":"clock",
	"\\(K\\)":"resLips",
	"\\(G\\)":"giftWithABow",
	"\\(\\^\\)":"birthdayCake",
	"\\(P\\)":"camera",
	"\\(I\\)":"lightBulb",
	"\\(C\\)":"coffeeCup",
	"\\(T\\)":"telephoneReceiver",
	"\\(\\{\\)":"leftHug",
	"\\(\\}\\)":"rightHug",
	"\\(B\\)":"beerMug",
	"\\(D\\)":"martiniGlass",
	"\\(Z\\)":"boy",
	"\\(X\\)":"girl",
	"\\(Y\\)":"thumbsUp",
	"\\(N\\)":"thumbsDown",
	"\\:\\[":"vampireBat",
	"\\(nah\\)":"goat",
	"\\(\\#\\)":"sun",
	"\\(R\\)":"rainbow",
	"\\:\\-\\#":"dontTellAnyone",
	"8o\\|":"barringTeeth",
	"8\\-\\|":"nerd",
	"\\^o\\)":"sarcastic",
	"\\:\\-\\*":"secretTelling",
	"\\+o\\(":"sick",
	"\\(sn\\)":"snail",
	"\\(tu\\)":"turtle",
	"\\(pl\\)":"plate",
	"\\(\\|\\|\\)":"bowl",
	"\\(pi\\)":"pizza",
	"\\(so\\)":"soccerBall",
	"\\(au\\)":"auto",
	"\\(ap\\)":"airplane",
	"\\(um\\)":"umbrella",
	"\\(ip\\)":"islandWithAPalmTree",
	"\\(co\\)":"computer",
	"\\(mp\\)":"mobilePhone",
	"\\(brb\\)":"beRightBack",
	"\\(st\\)":"stormyCloud",
	"\\(h5\\)":"hi5",
	"\\(mo\\)":"money",
	"\\(bah\\)":"blackSheep",
	"\\:\\^\\)":"iDontKnow",
	"\\*\\-\\)":"thinking",
	"\\(li\\)":"lightning",
	"\\<\\:o\\)":"party",
	"8\\-\\)":"eyeRolling",
	"\\|\\-\\)":"sleepy",
	"\\*red\\+u":"im",
	"\\*bgca":"im",
	"\\*naf":"im",
	"\\*mssoc":"im",
	"\\*9mil":"im",
	"\\*sierra":"im",
	"\\*help":"im",
	"\\*komen":"im",
	"\\*unicef":"im"
}

SettingsConstants = 
{
	DEFAULT_GADGET_COLOR: "Blue",
	DEFAULT_SORT_BY: MessengerConstants.SORT_BY_STATUS,
	DEFAULT_GADGET_GET_UPDATE_NOTIFICATIONS: GadgetConstants.UPDATE_OPTION_REMIND,
	DEFAULT_GROUP_OFFLINE: 1,
	DEFAULT_GROUP_MOBILE: 1,
	DEFAULT_FILTER_BY: MessengerConstants.FILTER_SHOW_ALL,
	DEFAULT_VIEW_CONTACTS_BY: MessengerConstants.VIEW_BY_DISPLAY_NAME,
	DEFAULT_GADGET_SIZE: 200,
    DEFAULT_CONTACTLIST_SIZE: 170,
    DEFAULT_CONTACT_AREA_SIZE: 172,
	DEFAUL_UPDATE_OPTION: GadgetConstants.UPDATE_OPTION_REMIND,
	DEFAULT_SHOW_EMAIL_COUNTER: GadgetConstants.SHOW_EMAIL_COUNTER_ONLY_WHEN_UNREAD
}

WMIConstants =
{
    WBEM_FLAG_RETURN_INMMEDIATELY: 0x10,
    WBEM_FLAG_FORWARD_ONLY: 0x20
}

WebServiceConstants =
{
    WEB_SERVICE_URL: "http://messengergadget.members.winisp.net/MessengerGadgetService.asmx",
    WEB_SERVICE_NS: "http://messengergadget.members.winisp.net/"
}

