//
// 'All' IDs.
//
var gLangIdAll = 0;
var gDomainIdAll = 0;
var gBrandIds = [JS_BRAND_ID_10PIPS, JS_BRAND_ID_500PLUS];

//
// Define language array.
//
// NOTE: Array key is the language ID.
// Make sure it fits the one defined
// in the API function get-language-list().
//
var gLangTitles = [];
gLangTitles['ar'] = 'Arabic';
gLangTitles['cz'] = 'Czech';
//gLangTitles['nl'] = 'Dutch';
gLangTitles['en'] = 'English';
gLangTitles['fr'] = 'French';
gLangTitles['de'] = 'Deutsch';
gLangTitles['gr'] = 'Greek';
gLangTitles['il'] = 'Hebrew';
gLangTitles['it'] = 'Italian';
gLangTitles['es'] = 'Spanish';
gLangTitles['tu'] = 'Turkish';
gLangTitles['pt'] = 'Portuguese';

gLangTitles['dk'] = 'Dansk';
gLangTitles['fi'] = 'Suomeksi';
gLangTitles['hu'] = 'Magyar';
gLangTitles['pl'] = 'Polski';
gLangTitles['no'] = 'Norsk';
gLangTitles['sk'] = 'Slovencina';

//
// Define domains title array.
//
var gDomainTitles = [JS_BRAND_ID_10PIPS, JS_BRAND_ID_500PLUS];

gDomainTitles[JS_BRAND_ID_10PIPS] = '10pips';
gDomainTitles[JS_BRAND_ID_500PLUS] = '500plus™';

//
// Define domains prefix array.
//
var gDomainPrefixes = [JS_BRAND_ID_10PIPS, JS_BRAND_ID_500PLUS];

gDomainPrefixes[JS_BRAND_ID_10PIPS] = '10pips';
gDomainPrefixes[JS_BRAND_ID_500PLUS] = 'plus500';

//
// Define languages that fit every brand.
//
var gBrandLangIds = [JS_BRAND_ID_10PIPS, JS_BRAND_ID_500PLUS];

gBrandLangIds[JS_BRAND_ID_10PIPS] = ['en','fr','de','gr','it','es','nl','cz','pt', 'tu', 'ar', 'dk', 'fi', 'hu', 'pl', 'no', 'sk'];
//gBrandLangIds[JS_BRAND_ID_500PLUS] = ['ar','ch','dk','en','fr','de','gr','il'];
gBrandLangIds[JS_BRAND_ID_500PLUS] = ['en','il'];
gBrandLangIds[JS_BRAND_ID_ALL] = ['ar','ch','dk','en','fr','de','gr','il'];

//
// Define domain endings by brand and language.
//
var gEndings = [JS_BRAND_ID_10PIPS, JS_BRAND_ID_500PLUS];

gEndings[JS_BRAND_ID_10PIPS] = ['en','fr','de','gr','it','es','nl','cz','pt', 'tu', 'ar', 'dk', 'fi', 'hu', 'pl', 'no', 'sk'];
//gEndings[JS_BRAND_ID_500PLUS] = ['ar','ch','dk','en','fr','de','gr','il'];
gEndings[JS_BRAND_ID_500PLUS] = ['en','il'];

//gEndings[JS_BRAND_ID_10PIPS]['en'] = ['com', 'com/ca', 'co.uk'];
gEndings[JS_BRAND_ID_10PIPS]['en'] = ['com'];
gEndings[JS_BRAND_ID_10PIPS]['fr'] = ['com/fr'];
gEndings[JS_BRAND_ID_10PIPS]['de'] = ['com/de'];
gEndings[JS_BRAND_ID_10PIPS]['gr'] = ['com/gr'];
//gEndings[JS_BRAND_ID_10PIPS]['il'] = ['fr'];
//gEndings[JS_BRAND_ID_10PIPS]['it'] = ['com/it'];
gEndings[JS_BRAND_ID_10PIPS]['it'] = ['com'];
gEndings[JS_BRAND_ID_10PIPS]['es'] = ['com/es'];
gEndings[JS_BRAND_ID_10PIPS]['nl'] = ['com'];
//gEndings[JS_BRAND_ID_10PIPS]['nl'] = ['com/nl'];
gEndings[JS_BRAND_ID_10PIPS]['cz'] = ['com/cz'];
gEndings[JS_BRAND_ID_10PIPS]['pt'] = ['com/pt'];

gEndings[JS_BRAND_ID_10PIPS]['tu'] = ['com/tu'];
gEndings[JS_BRAND_ID_10PIPS]['ar'] = ['com/ar'];
gEndings[JS_BRAND_ID_10PIPS]['dk'] = ['com/dk'];
gEndings[JS_BRAND_ID_10PIPS]['fi'] = ['com/fi'];
gEndings[JS_BRAND_ID_10PIPS]['hu'] = ['com/hu'];
gEndings[JS_BRAND_ID_10PIPS]['pl'] = ['com/pl'];
gEndings[JS_BRAND_ID_10PIPS]['no'] = ['com/no'];
gEndings[JS_BRAND_ID_10PIPS]['sk'] = ['com/sk'];


a = [];
a = a.concat(gEndings[JS_BRAND_ID_10PIPS]['en']);
a = a.concat(gEndings[JS_BRAND_ID_10PIPS]['fr']);
gEndings[JS_BRAND_ID_10PIPS][gLangIdAll] = a;

//gEndings[JS_BRAND_ID_500PLUS]['ar'] = ['co.ar1', 'co.ar2', 'co.ar3', 'co.ar4'];
//gEndings[JS_BRAND_ID_500PLUS]['ch'] = ['co.cz', 'biz.cz'];
//gEndings[JS_BRAND_ID_500PLUS]['dk'] = ['du'];
//gEndings[JS_BRAND_ID_500PLUS]['en'] = ['com', 'co.uk', 'co.au'];
//gEndings[JS_BRAND_ID_500PLUS]['fr'] = ['co.fr'];
//gEndings[JS_BRAND_ID_500PLUS]['de'] = ['co.de'];
//gEndings[JS_BRAND_ID_500PLUS]['gr'] = ['co.gr'];
gEndings[JS_BRAND_ID_500PLUS]['en'] = ['com'];
gEndings[JS_BRAND_ID_500PLUS]['il'] = ['co.il'];

a = [];
//a = a.concat(gEndings[JS_BRAND_ID_500PLUS]['ar']);
//a = a.concat(gEndings[JS_BRAND_ID_500PLUS]['ch']);
//a = a.concat(gEndings[JS_BRAND_ID_500PLUS]['dk']);
//a = a.concat(gEndings[JS_BRAND_ID_500PLUS]['en']);
//a = a.concat(gEndings[JS_BRAND_ID_500PLUS]['fr']);
//a = a.concat(gEndings[JS_BRAND_ID_500PLUS]['de']);
//a = a.concat(gEndings[JS_BRAND_ID_500PLUS]['gr']);
a = a.concat(gEndings[JS_BRAND_ID_500PLUS]['il']);
gEndings[JS_BRAND_ID_500PLUS][gLangIdAll] = a;

var gLandingpages = 
[
    '10pips.com',
    '10pips.com/de',
    '10pips.com/fr',
//    '10pips.com/nl',
    '10pips.com/gr',
    '10pips.com/es',
//    '10pips.com/it',
    '10pips.com/pt',
    '10pips.com/cz',
    '10pips.com/tu',
    '10pips.com/ar',
    '10pips.com/dk',
    '10pips.com/fi',
    '10pips.com/hu',
    '10pips.com/pl',
    '10pips.com/no',
    '10pips.com/sk',
];

//gLandingpages['10pips.com'] = ['Home|', 'Forex|forex.php'];

gLandingpages['10pips.com'] = ['Home Page EN|', 'General CA|forex-tl/', 'Forex EN|lp/forex/' ];
gLandingpages['10pips.com/de'] = ['Home Page DE|', 'General DE|lp/forex2/', 'Forex DE|lp/forex3/'];
//gLandingpages['10pips.com/nl'] = ['Home Page NL|', 'General NL|lp/forex-nl/', 'Forex NL|lp/forex3/' ];
gLandingpages['10pips.com/cz'] = ['Home Page CZ|', 'Forex CZ|lp/forex/'];
gLandingpages['10pips.com/pt'] = ['Home|'];
gLandingpages['10pips.com/fr'] = ['Home Page FR|', 'General FR|lp/forex/'];
//gLandingpages['10pips.com/it'] = ['Home Page IT|', 'General IT|lp/forex/'];
gLandingpages['10pips.com/es'] = ['Home Page ES|', 'General ES|lp/forex3/'];
gLandingpages['10pips.com/gr'] = ['Home Page GR|', 'General GR|lp/forex-gr/', 'Forex GR|lp/forex3/' ];
gLandingpages['10pips.com/dk'] = ['General DK|lp/forex/'];
gLandingpages['10pips.com/fi'] = ['General FI|lp/forex/'];
gLandingpages['10pips.com/hu'] = ['General HU|lp/forex/'];
gLandingpages['10pips.com/pl'] = ['General PL|lp/forex/'];
gLandingpages['10pips.com/no'] = ['General NO|lp/forex/'];
gLandingpages['10pips.com/sk'] = ['General SK|lp/forex/'];
gLandingpages['10pips.com/ar'] = ['Start Trading AR |start-trading.php'];
gLandingpages['10pips.com/tu'] = ['Start Trading TU|', 'General TU|lp/forex/'];


//gLandingpages['10pips.com/fr'] = ['Home|', 'Forex|forex.php'];
//gLandingpages['10pips.com/nl'] = ['Home|', 'Forex|forex.php'];
//gLandingpages['10pips.com/gr'] = ['Home|', 'Forex|forex.php'];
//gLandingpages['10pips.com/es'] = ['Home|', 'Forex|forex.php'];
//gLandingpages['10pips.com/it'] = ['Home|', 'Forex|forex.php'];

//gLandingpages['10pips.com/cz'] = ['Home|', 'Forex|forex.php'];


//gLandingpages['10pips.com/de'] = ['Stocks|stocks/', 'Start Trading|ohman.php'];




/*
///////////////////////////////////////////////////////////////

//
//Define domain endings by brand and language.
//
var gLandingPages = [JS_BRAND_ID_10PIPS, JS_BRAND_ID_500PLUS];

gLandingPages[JS_BRAND_ID_10PIPS] = ['com','co.uk','com/fr','com/de','com/gr','com/it','com/es','com/nl'];
//gEndings[JS_BRAND_ID_500PLUS] = ['ar','ch','dk','en','fr','de','gr','il'];
gLandingPages[JS_BRAND_ID_500PLUS] = ['il'];

//gEndings[JS_BRAND_ID_10PIPS]['en'] = ['com', 'com/ca', 'co.uk'];
gLandingPages[JS_BRAND_ID_10PIPS]['com'] = ['Forex', 'Landing 1', 'Landing 2'];
gLandingPages[JS_BRAND_ID_10PIPS]['co.uk'] = ['Stocks', 'Landing 1', 'Landing 3'];

gLandingPages[JS_BRAND_ID_10PIPS]['com/fr'] = ['Landing 1'];
gLandingPages[JS_BRAND_ID_10PIPS]['com/de'] = ['Landing 1'];
gLandingPages[JS_BRAND_ID_10PIPS]['com/gr'] = ['Landing 1'];
//gEndings[JS_BRAND_ID_10PIPS]['il'] = ['fr'];
gLandingPages[JS_BRAND_ID_10PIPS]['com/it'] = ['Landing 1'];
gLandingPages[JS_BRAND_ID_10PIPS]['com/es'] = ['Landing 1'];
gLandingPages[JS_BRAND_ID_10PIPS]['com/nl'] = ['Landing 1'];


a = [];
a = a.concat(gLandingPages[JS_BRAND_ID_10PIPS]['com']);
a = a.concat(gLandingPages[JS_BRAND_ID_10PIPS]['com/fr']);
gLandingPages[JS_BRAND_ID_10PIPS][gLangIdAll] = a;


///////////////////////////////////////////////////////////////

*/

//
// Define banner sizes.
//
var gBannerSize = 
[
    "468x60",
    "728x90",
    "200x200",
    "250x250",
    "160x600",
    "120x600",
    "300x250",
    "Other"
];

//
// Define text link titles.
//
var gTextLinkTitles = 
[
	"General",
	"Bonuses",
	"CFD",
	"Forex",
	"Commodities",
	"Indices",
	"ETF",
	"Stocks",
    "Your&nbsp;Own&nbsp;Text&nbsp;Link"
];

//
// Define mailer titles.
//
var gMailerTitles = 
[
 	"Mailers"
    //"General"//,
    //"Forex",
   // "Commodities",
    //"Stocks",
    //"Indices",
    //"EFT's",
   // "CFD's",
   // "Promotions"
];

//
// User types.
//
var USER_TYPE_CPL = 3;
var USER_TYPE_CPA = 4;
var USER_TYPE_RS = 5;

//
// Logical operators.
//
var OPERATION_PLUS = 1;
var OPERATION_OR = 2;
