/*----------------------------------------------------------------------------*/

// Required configuration

// This is the main file for configuring Point for your site.
Point.accountName = "Cosmic1";

// The URL for the server-side proxy
Point.proxyUrl = "/point/point.php";

// If findContentById is true, Point content is enabled inside an element with
// an id matching Point.pointEnabledDivId, instead of a CSS class matching
// Point.pointEnabledDivClass
Point.findContentById = true;
Point.pointEnabledDivId = "main-content";
Point.pointEnabledDivClass = "point_sym_hover";

/*----------------------------------------------------------------------------*/

// Optional configuration

// Whether to use a server-side proxy. Set this to false if using just Flash.
Point.useServerProxy = true;

// Whether to use a Flash proxy. Set this to false if using just a server proxy.
Point.useFlashProxy = true;

// The URL for the Flash proxy. You shouldn't need to change this.
Point.flashProxyUrl = "https://pointflash.widgit.com/flash_proxy/proxy/" + Point.accountName;

// Whether to use CloudFront for symbol images where possible
Point.useCloudFrontForSymbols = true;

// The size of symbol images in pixels. If this is set to a value other than 80,
// CloudFront cannot be used.
Point.symbolSize = 80;

// The maximum number of symbols that appear in each Point tooltip
Point.maxSymbols = 4;

// If Point.httpsImageUrls is true, Point's symbol images will be served via
// HTTPS rather than HTTP, unless using CloudFront URLs.
Point.httpsImageUrls = false;

// If Point.enableImmediately is set to true, Point will enable itself
// automatically as soon as the page has loaded
Point.enableImmediately = true;

// If set to true, this caches Point tooltips for the current page.
Point.cacheTooltips = true;

// The length of time in milliseconds to keep cached tooltips
Point.cacheExpiry = 86400000;

Point.enabledPointImage = "/point/buttons/light_background/on.gif";
Point.disabledPointImage = "/point/buttons/light_background/off.gif";
Point.waitIconImage = "/point/point_waiticon.gif";

// Point will not be applied to text within the following elements:
Point.blacklistedElements = [
    "applet",
    "button",
    "canvas",
    "embed",
    "iframe",
    "img",
    "input",
    "map",
    "object",
    "script",
    "select",
    "style",
    "table",
    "tbody",
    "textarea",
    "tfoot",
    "thead",
    "title",
    "tr"
];

Point.blacklistedWords = [
    "a",
    "the",
    "an",
    "if",
    "then",
    "but",
    "because",
    "therefore",
    "of",
    "so",
    "than",
    "though",
    "would",
    "wouldn't"
];

// Multilingual support
Point.defaultLanguage = "English_UK";

Point.languageCssClasses = {
    "point_english_uk": "English_UK",
    "point_czech": "Czech",
    "point_danish": "Danish",
    "point_dutch": "Dutch",
    "point_english_us": "English_US",
    "point_finnish": "Finnish",
    "point_french": "French",
    "point_greek": "Greek",
    "point_italian": "Italian",
    "point_norwegian": "Norwegian",
    "point_polish": "Polish",
    "point_portuguese": "Portuguese",
    "point_spanish": "Spanish",
    "point_swedish": "Swedish"
};

// The delay between hovering over a word and Point starting to retrieve
// symbols for that word
Point.hoverTimeout = 200;

// Point.spansInheritParentStyles should be set to false unless there are
// any layout problems inside Point-enabled content.
Point.spansInheritParentStyles = false;

// Whether each word is symbolised within the context in which it appears or is
// symbolised on its own
Point.symboliseContext = true;

// Whether idioms and phrases are symbolised as one concept or as individual
// words. Has no effect if Point.symboliseContext is false.
Point.symboliseIdioms = false;

// Whether or not Point always surrounds each word within Point-enabled content
// when the page loads. If false and Point.enableImmediately is false, and the
// user has not previously enabled Point, Point waits until the user enables
// Point before performing "spanification"
Point.spanifyOnLoad = true;

// Whether or not Point removes the elements it has added to the document when
// Point is disabled
Point.despanifyWhenDisabled = false;

// Access key for enabling and disabling Point
Point.accessKey = "P";

