﻿//Virus Threats Displaying parameter.
// If this is 0 nothing will be printed in display even not heading
// based on value the display will be formed
MAX_CURRENT_THREATS_DISPLAY_COUNT = 25
MAX_RECENT_THREATS_DISPLAY_COUNT = 25

//Default Content Settings
dsplycur = 1;
dsplyrec = 1;
dsplyrem = 1;
dsplysrc = 1;
dspylogolnk = 1;
lnklogo = "http://us.mcafee.com";
dsplyfs = 0;
lnkfs = "";
dsplyvs = 0;
lnkvs = "";

//Default Color Settings
defbor = "#E5E3B5";
deftlt = "#000000";
defbgc = "#F9F9ED";
deflnk = "#204658";

//Default Color Variables
colbor = defbor;
coltlt = deftlt;
colbgc = defbgc;
collnk = deflnk;


//Default value if URL value is not valid
DefaultLinklogo = "http://us.mcafee.com";
DefaultLinkfs = "http://us.mcafee.com/root/mfs/default.asp";
DefaultLinkvs = "http://us.mcafee.com/root/package.asp?pkgid=100";


//Pre-cache clear.gif
imgtr = new Image(1, 1);
imgtr.src = "http://images.mcafee.com/mcalerts/clear.gif";
ImageServerDomain = "http://images.mcafee.com/mcalerts";

//	Domain where Virus display code is hosted
SecurityServerDomain = "http://securityalerts.mcafee.com";
SecurityAlertsDomain = "http://securityalerts.mcafee.com";
//	SecurityServerDomain =  "http://mishra.mcafee.com";

SearchDomainWithID = "http://us.mcafee.com/virusInfo/default.asp?id=alphar"
//Mcafee web site domain
McAfeeDomain = "http://us.mcafee.com"

// 	Language code 
LANGUAGECODE = "en-us";

//  Validate flag is use to validate URL name. If there will be matching with search expression
//  Then the url will be replace with default. 
VALIDATE_MCAFEE_URL = 1
SEARCH_EXPRESSION = /syman/gi;

// Language dependent constants

CURRENT_THREATS = "Current Threats"
CURRENT_THREATS_MESSAGE = "virus"
CURRENT_THREATS_RISK_MESSAGE = " Risk"

RECENT_THREATS = "Recent Threats"
COMPLETE_LIST = "Complete list"
COMPLETE_LIST_URL = "http://us.mcafee.com/virusInfo/default.asp?id=recentlyDiscovered"

WORRIED_ABOUT_VIRUSES = "Worried About Viruses?"
WORRIED_ABOUT_VIRUSES_TEXT = "McAfee FreeScan"

NEED_PROTECTION = "Need Protection?"
NEED_PROTECTION_TEXT = "McAfee VirusScan"

VIRUS_SEARCH = "Virus Search"
VIRUS_SEARCH_TEXT1 = "beginning with"
VIRUS_SEARCH_TEXT2 = "containing"
VIRUS_SEARCH_TEXT3 = "ending with"
VIRUS_SEARCH_INVALID_MESSAGE = "Please enter a search criteria."

REMOVAL_TOOLS = "Removal Tools"
REMOVAL_TOOLS_LOVESCAN = "Lovsan"
REMOVAL_TOOLS_KLEZ = "Klez"
REMOVAL_TOOLS_BUGBEAR = "Bugbear"
REMOVAL_TOOLS_STRINGER = "Stinger Removal Tool"

NO_CURRENT_THREATS_MESSAGE = "There are no high risk threats at this time."
NO_RECENT_THREATS_MESSAGE = "There are no recent threats at this time."


// Color Palette related message
COLOR_PALETTE_CLOSE = "Close Color Picker";
COLOR_PALETTE_HEADING = "216 Web Safe Colors";

INVALID_COLOR_MESSAGE = "Entered colors must be in a hexadecimal format (for example, #000000 or #CCAA45)\n" +
		"or be one of the 140 named colors supported by HTML.\n\n" +
		"The selected display element has been reset to it's default value. Please enter a\n" +
		"properly formatted color code, use the color picker to select a color, or enter a\n" +
		"supported color name."

//Crate and initialize multidimensionalArray use for Resorce file

function MultiDimensionalArrayCT(iRows, iCols) {
    var i;
    var j;
    var a = new Array(iRows);
    for (i = 0; i < iRows; i++) {
        a[i] = new Array(iCols);
        for (j = 0; j < iCols; j++) {
            a[i][j] = "";
        }
    }
    return (a);
}

function MultiDimensionalArrayRT(iRows, iCols) {
    var i;
    var j;
    var a = new Array(iRows);
    for (i = 0; i < iRows; i++) {
        a[i] = new Array(iCols);
        for (j = 0; j < iCols; j++) {
            a[i][j] = "";
        }
    }
    return (a);
} 