function Querystring(a){this.params={};this.get=Querystring_get;if(a==null)a=location.search.substring(1,location.search.length);if(a.length==0)return;a=a.replace(/\+/g," ");for(var e=a.split("&"),d=0;d<e.length;d++){var b,c=e[d].split("="),f=unescape(c[0]);if(c.length==2)b=unescape(c[1]);else b=f;this.params[f]=b}}function Querystring_get(c,a){if(a==null)a=null;var b=this.params[c];if(b==null)b=a;return b}var expDays=365;function SetCookie(h,g){var b=SetCookie.arguments,a=SetCookie.arguments.length,c=a>2?b[2]:null,e=a>3?b[3]:null,d=a>4?b[4]:null,f=a>5?b[5]:false;document.cookie=h+"="+escape(g)+(c==null?"":"; expires="+c.toGMTString())+(e==null?"":"; path="+e)+(d==null?"":"; domain="+d)+(f==true?"; secure":"")}function DeleteCookie(b){var a=new Date;a.setTime(a.getTime()-1);var c=GetCookie(b);document.cookie=b+"="+c+"; expires="+a.toGMTString()}var exp=new Date;exp.setTime(exp.getTime()+expDays*24*60*60*1e3);function amt(){var a=GetCookie("count");if(a==null){SetCookie("count","1");return 1}else{var b=parseInt(a)+1;DeleteCookie("count");SetCookie("count",b,exp);return a}}function getCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1)a=document.cookie.length;return unescape(document.cookie.substring(b,a))}function GetCookie(f){var b=f+"=",d=b.length,e=document.cookie.length,a=0;while(a<e){var c=a+d;if(document.cookie.substring(a,c)==b)return getCookieVal(c);a=document.cookie.indexOf(" ",a)+1;if(a==0)break}return null}function getRootDomain(c){var b=c==null?location.href:c,a="";if(b.indexOf("/",7)<1)a=b;else if(b.indexOf("https://")>-1)a=b.substring(0,b.indexOf("/",8));else a=b.substring(0,b.indexOf("/",7));if(b.indexOf("localhost")==-1){if(a.indexOf("http://")==0)a=a.substring(7);if(a.indexOf("https://")==0)a=a.substring(8);while(a.split(".").length>2){var d=a.indexOf(".",1)+1;a=a.substring(d)}return a}else return a+b.substring(b.indexOf("/",8),b.indexOf("/",b.indexOf("/",8)+1))+"/"}var qs=new Querystring,src=qs.get("src"),rURL=getRootDomain();src!=null&&SetCookie("adv",src,exp,"/",rURL);var aid=qs.get("adused");aid!=null&&SetCookie("aid",aid,exp,"/",rURL);function setwsEntityHigh(a){var b=getRootDomain();SetCookie("wsEntity",a,exp,"/",b)}function setwsEntityLow(a){if(!GetCookie("wsEntity")){var b=getRootDomain();SetCookie("wsEntity",a,exp,"/",b)}}function setEntityLang(a){var b=getRootDomain();SetCookie("wsEntityLang",a,exp,"/",b)}function setEntityPlatform(){}function setwsLang(c){if(document.getElementsByName("language_pref")[0]!=null){var a={"Chinese Simplified":"zh-CN","Chinese Traditional":"zh-TW",English:"en-US","English US":"en-US","English UK":"en-GB",Arabic:"ar",Russian:"ru-RU",Spanish:"es-ES",French:"fr-FR",German:"de-DE",Polish:"pl-PL",Japanese:"ja-JP",Portuguese:"pt",Hindi:"hi-IN",Urdu:"ur-PK",Greek:"el-GR",Mandarin:"zh-CN",Cantonese:"zh-TW"};a.English=c=="EU"?"en-GB":"en-US";var b=a[document.demo_account_form.language_pref.value]?a[document.demo_account_form.language_pref.value]:"en-US",d=getRootDomain();SetCookie("wsLang",b,exp,"/",d)}}function getEntityByCountry(a){switch(true){case/Rep\. of South Africa|Algeria|Bahrain|Belgium|Canada|China|Chinese Taipei|Czech Republic|Denmark|Egypt|Finland|France|Germany|Hungary|Italy|Jordan|Kuwait|Lebanon|Morocco|Netherlands|Norway|Portugal|Qatar|Saudi Arabia|Spain|Sweden|Switzerland|Georgia|Andorra|Austria|Brazil|Bulgaria|Croatia|Estonia|Greece|Iceland|Ireland|Israel|Lithuania|Luxembourg|Monaco|Poland|Romania|Slovakia|Albania|Antilles Netherland|Antigua \(WI\)|Arab Rep\. Egypt|Argentina|Armenia|Aruba|Azerbaijan|Bahamas|Bangladesh|Barbados|Belize|Benin|Bermuda|Bhutan|Bolivia|Bosnia\-Herzegovina|Botswana|British Virgin|Brunei Darussalam|Burkina Faso|Cambodia|Cameroon|Canary Islands|Cayman Islands|Central African|Chad|Chile|Colombia|Cook Islands|Costa Rica|Cyprus|Djibouti|Dominica|Dominican Republic|East Timor|Ecuador|El Salvador|Equatorial Guin|Ethiopia|Faroe Is.|Fiji|French Guiana|Gabon Republic|Gambia|Ghana|Gibraltar|Greenland|Grenada|Guadeloupe|Guatemala|^Guinea$|Guyana|Haiti|Honduras|India|Indonesia|Jamaica|Kazakhstan|Kenya|Kyrghyzstan|Laos|Latvia|Lesotho|Libya|Liechtenstein|Macau|Macedonia|Madagascar|Malawi|Malaysia|Maldives|Mali|Malta|Martinique|Mauritania|Mauritius|Mexico|Moldova|Mongolia|Montenegro|Mozambique|Myanma\, Union Of|Namibia|Nauru|Nepal|New Caledonia|Nicaragua|^Niger$|Nigeria|Oman|Pakistan|Panama|Papua\-New Guinea|Paraguay|Peru|Philippines|Reunion Is.|Russia|Rwanda|Samoa \(Western\)|San Marino|Senegal|Serbia|Seychelles|Sierra Leone|Singapore|Slovenia|Solomon Islands|Somalia|South Africa|South Korea|Sri Lanka|St\. Kitts|St\. Lucia|St\. Pierre|St\. Vincent|Surinam|Swaziland|Tadjikistan|Tahiti|Taiwan ROC|Tanzania|Thailand|Togo|Tonga|Trinidad|Tunisia|Turkey|Uganda|Ukraine|United Arab Emirates|United Kingdom|Uruguay|Uzbekistan|Vanuatu|Vatican City|Venezuela|Vietnam|Yemen|Zaire|Zambia/.test(a):return"EU";break;case/Hong Kong|Peoples Rep Korea|United States/.test(a):return"NA";break;case/Japan/.test(a):return"JP";break;case/Australia|New Zealand/.test(a):return"AU";break;case/^$/.test(a):break;default:return"EU"}}function getEntityLangByCountry(a){switch(true){case/Rep\. of South Africa|Algeria|Bahrain|Belgium|Canada|China|Chinese Taipei|Czech Republic|Denmark|Egypt|Finland|France|Germany|Hungary|Italy|Jordan|Kuwait|Lebanon|Morocco|Netherlands|Norway|Portugal|Qatar|Saudi Arabia|Spain|Sweden|Switzerland|Georgia|Andorra|Austria|Brazil|Bulgaria|Croatia|Estonia|Greece|Iceland|Ireland|Israel|Lithuania|Luxembourg|Monaco|Poland|Romania|Slovakia|Albania|Antilles Netherland|Antigua \(WI\)|Arab Rep\. Egypt|Argentina|Armenia|Aruba|Azerbaijan|Bahamas|Bangladesh|Barbados|Belize|Benin|Bermuda|Bhutan|Bolivia|Bosnia\-Herzegovina|Botswana|British Virgin|Brunei Darussalam|Burkina Faso|Cambodia|Cameroon|Canary Islands|Cayman Islands|Central African|Chad|Chile|Colombia|Cook Islands|Costa Rica|Cyprus|Djibouti|Dominica|Dominican Republic|East Timor|Ecuador|El Salvador|Equatorial Guin|Ethiopia|Faroe Is.|Fiji|French Guiana|Gabon Republic|Gambia|Ghana|Gibraltar|Greenland|Grenada|Guadeloupe|Guatemala|^Guinea$|Guyana|Haiti|Honduras|India|Indonesia|Jamaica|Kazakhstan|Kenya|Kyrghyzstan|Laos|Latvia|Lesotho|Libya|Liechtenstein|Macau|Macedonia|Madagascar|Malawi|Malaysia|Maldives|Mali|Malta|Martinique|Mauritania|Mauritius|Mexico|Moldova|Mongolia|Montenegro|Mozambique|Myanma\, Union Of|Namibia|Nauru|Nepal|New Caledonia|Nicaragua|^Niger$|Nigeria|Oman|Pakistan|Panama|Papua\-New Guinea|Paraguay|Peru|Philippines|Reunion Is.|Russia|Rwanda|Samoa \(Western\)|San Marino|Senegal|Serbia|Seychelles|Sierra Leone|Singapore|Slovenia|Solomon Islands|Somalia|South Africa|South Korea|Sri Lanka|St\. Kitts|St\. Lucia|St\. Pierre|St\. Vincent|Surinam|Swaziland|Tadjikistan|Tahiti|Taiwan ROC|Tanzania|Thailand|Togo|Tonga|Trinidad|Tunisia|Turkey|Uganda|Ukraine|United Arab Emirates|United Kingdom|Uruguay|Uzbekistan|Vanuatu|Vatican City|Venezuela|Vietnam|Yemen|Zaire|Zambia/.test(a):return"EU,en";break;case/Hong Kong|Peoples Rep Korea|United States/.test(a):return"NA,en";break;case/Japan/.test(a):return"JP,ja";break;case/Australia|New Zealand/.test(a):return"AU,en";break;case/^$/.test(a):break;default:return"EU,en"}}function detectGeo(a){var c=GetCookie("geo"),d=new Querystring,b=d.get("redir");b=="0"&&SetCookie("redir","0",null,"/",rURL);if(GetCookie("redir")!="0"){if(GetCookie("wsEntity")=="NA")return;if(GetCookie("wsEntity")=="EU")document.location="http://www.forex.com/uk/"+a;if(GetCookie("wsEntity")=="AU")document.location="http://www.forex.com/au/"+a;if(GetCookie("wsEntity")=="JP")document.location="http://jp.forex.com/jp/";switch(c){case"US":setwsEntityHigh("NA");setEntityLang("en");break;case"AU":setwsEntityHigh("AU");setEntityLang("en");document.location="http://www.forex.com/au/"+a;break;case"NZ":setwsEntityHigh("AU");setEntityLang("en");document.location="http://www.forex.com/au/"+a;break;case"HK":document.location="http://www.forex.com/hk";break;case"JP":setwsEntityHigh("JP");setEntityLang("ja");document.location="http://jp.forex.com/";break;case"ZA":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"CA":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"GB":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"MY":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"VN":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"BN":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"KH":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"ID":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"PH":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"TH":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"CK":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"FJ":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"LA":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"NR":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"PF":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"TO":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"VU":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"KR":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"SG":setwsEntityHigh("EU");setEntityLang("en");document.location="http://www.forex.com/uk/"+a;break;case"TW":setwsEntityHigh("EU");setEntityLang("zh");document.location="http://www.forex.com/uk/cns/"+a;break;case"BH":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"EG":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"JO":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"KW":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"LB":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"OM":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"QA":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"SA":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"AE":setwsEntityHigh("EU");setEntityLang("ar");document.location="http://www.forex.com/uk/ar/"+a;break;case"CN":setwsEntityHigh("EU");setEntityLang("zh");document.location="http://www.forex.com/uk/cns/"+a;break;case"AM":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"AZ":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"BY":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"KZ":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"KG":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"LV":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"LT":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"MD":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"RU":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"TJ":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"UA":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"UZ":setwsEntityHigh("EU");setEntityLang("ru");document.location="http://www.forex.com/uk/ru/"+a;break;case"DE":setwsEntityHigh("EU");setEntityLang("de");document.location="http://www.forex.com/de/"+a;break;case"AT":setwsEntityHigh("EU");setEntityLang("de");document.location="http://www.forex.com/de/"+a}}}function detectMeta(){var b=new Querystring,a=b.get("redir");a=="0"&&SetCookie("redir","0",null,"/",rURL);if(GetCookie("redir")!="0"){if(GetCookie("wsEntity")=="NA"&&GetCookie("wsEntityPlatform")=="META")document.location="http://www.forex.com/metatrader/";if(GetCookie("wsEntity")=="EU"&&GetCookie("wsEntityPlatform")=="META")document.location="http://www.forex.com/metatraderuk/";if(GetCookie("wsEntity")=="AU"&&GetCookie("wsEntityPlatform")=="META")document.location="http://www.forex.com/metatraderau/"}}function detectGeoDemo(b){var d=GetCookie("geo"),c=new Querystring,a=c.get("v")==null?"":"?v="+c.get("v");if(GetCookie("wsEntity")=="NA")return;if(GetCookie("wsEntity")=="EU")document.location="http://www.forex.com/uk/"+b+a;if(GetCookie("wsEntity")=="JP")document.location="http://jp.forex.com/jp/services/forextrader_open_demo.shtml";switch(true){case/AL|AD|AG|AN|AR|AM|AW|AU|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(d):document.location="http://www.forex.com/uk/"+b+a}}function grabGeo(){var a=GetCookie("geo");a==null&&document.write('<script type="text/javascript" src="https://secure.efxnow.com/zipproxy/keyfield.asp"><\/script>')}function assignGeoDemo(a){var c=GetCookie("geo");if(typeof cc!="undefined")if(cc!=""&&c==null){var b=getRootDomain();SetCookie("geo",cc,exp,"/",b)}detectGeoDemo(a)}function assignGeo(a){var c=GetCookie("geo");if(typeof cc!="undefined")if(cc!=""&&c==null){var b=getRootDomain();SetCookie("geo",cc,exp,"/",b)}detectGeo(a)}function assignGeoDemoBeta(){var b=GetCookie("geo");if(typeof cc!="undefined")if(cc!=""&&b==null){var a=getRootDomain();SetCookie("geo",cc,exp,"/",a)}detectGeoDemoBeta()}function assignGeoDemoUK(){var b=GetCookie("geo");if(typeof cc!="undefined")if(cc!=""&&b==null){var a=getRootDomain();SetCookie("geo",cc,exp,"/",a)}detectGeoDemoUK()}function assignGeoDemoAU(){var b=GetCookie("geo");if(typeof cc!="undefined")if(cc!=""&&b==null){var a=getRootDomain();SetCookie("geo",cc,exp,"/",a)}detectGeoDemoAU()}function assignGeoDemoUSMeta(){var b=GetCookie("geo");if(typeof cc!="undefined")if(cc!=""&&b==null){var a=getRootDomain();SetCookie("geo",cc,exp,"/",a)}detectGeoDemoUSMeta()}function assignGeoDemoUKMeta(){var b=GetCookie("geo");if(typeof cc!="undefined")if(cc!=""&&b==null){var a=getRootDomain();SetCookie("geo",cc,exp,"/",a)}detectGeoDemoUKMeta()}function assignGeoDemoAUMeta(){var b=GetCookie("geo");if(typeof cc!="undefined")if(cc!=""&&b==null){var a=getRootDomain();SetCookie("geo",cc,exp,"/",a)}detectGeoDemoAUMeta()}function detectGeoDemoBeta(){var c=GetCookie("geo"),e=new Querystring,d=e.get("redir"),b=window.location.pathname,a=b.substring(b.lastIndexOf("/")+1)+location.search;d=="0"&&SetCookie("redir","0",null,"/",rURL);if(GetCookie("redir")!="0"){if(GetCookie("wsEntity")=="NA")return;if(GetCookie("wsEntity")=="EU")document.location="http://www.forex.com/uk/"+a;if(GetCookie("wsEntity")=="AU")document.location="http://www.forex.com/au/"+a;if(GetCookie("wsEntity")=="JP")document.location="http://jp.forex.com/jp/services/forextrader_open_demo.shtml";switch(true){case/AL|AD|AG|AN|AR|AM|AW|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|KR|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|SG|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|TW|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(c):document.location="http://www.forex.com/uk/"+a;break;case/AU|NZ/.test(c):document.location="http://www.forex.com/au/"+a}}}function detectGeoDemoUK(){var c=GetCookie("geo"),e=new Querystring,d=e.get("redir"),b=window.location.pathname,a=b.substring(b.lastIndexOf("/")+1)+location.search;d=="0"&&SetCookie("redir","0",null,"/",rURL);if(GetCookie("redir")!="0"){if(GetCookie("wsEntity")=="EU")return;if(GetCookie("wsEntity")=="NA")document.location="http://www.forex.com/"+a;if(GetCookie("wsEntity")=="AU")document.location="http://www.forex.com/au/"+a;if(GetCookie("wsEntity")=="JP")document.location="http://jp.forex.com/jp/services/forextrader_open_demo.shtml";switch(true){case/HK|KP|US/.test(c):document.location="http://www.forex.com/"+a;break;case/AU|NZ/.test(c):document.location="http://www.forex.com/au/"+a}}}function detectGeoDemoAU(){var c=GetCookie("geo"),e=new Querystring,d=e.get("redir"),b=window.location.pathname,a=b.substring(b.lastIndexOf("/")+1)+location.search;d=="0"&&SetCookie("redir","0",null,"/",rURL);if(GetCookie("redir")!="0"){if(GetCookie("wsEntity")=="AU")return;if(GetCookie("wsEntity")=="NA")document.location="http://www.forex.com/"+a;if(GetCookie("wsEntity")=="EU")document.location="http://www.forex.com/uk/"+a;if(GetCookie("wsEntity")=="JP")document.location="http://jp.forex.com/jp/services/forextrader_open_demo.shtml";switch(true){case/HK|KP|US/.test(c):document.location="http://www.forex.com/"+a;break;case/AL|AD|AG|AN|AR|AM|AW|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|KR|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|SG|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|TW|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(c):document.location="http://www.forex.com/uk/"+a}}}function detectGeoDemoUSMeta(){var c=GetCookie("geo"),e=new Querystring,d=e.get("redir"),b=window.location.pathname,a=b.substring(b.lastIndexOf("/")+1)+location.search;d=="0"&&SetCookie("redir","0",null,"/",rURL);if(GetCookie("redir")!="0"){if(GetCookie("wsEntity")=="NA")return;if(GetCookie("wsEntity")=="EU")document.location="http://www.forex.com/metatraderuk/"+a;if(GetCookie("wsEntity")=="AU")document.location="http://www.forex.com/metatraderau/"+a;if(GetCookie("wsEntity")=="JP")document.location="http://jp.forex.com/jp/metatrader/services/demo_account.shtml";switch(true){case/AL|AD|AG|AN|AR|AM|AW|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|KR|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|SG|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|TW|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(c):document.location="http://www.forex.com/metatraderuk/"+a;break;case/AU|NZ/.test(c):document.location="http://www.forex.com/metatraderau/"+a}}}function detectGeoDemoUKMeta(){var c=GetCookie("geo"),e=new Querystring,d=e.get("redir"),b=window.location.pathname,a=b.substring(b.lastIndexOf("/")+1)+location.search;d=="0"&&SetCookie("redir","0",null,"/",rURL);if(GetCookie("redir")!="0"){if(GetCookie("wsEntity")=="EU")return;if(GetCookie("wsEntity")=="NA")document.location="http://www.forex.com/metatrader/"+a;if(GetCookie("wsEntity")=="AU")document.location="http://www.forex.com/metatraderau/"+a;if(GetCookie("wsEntity")=="JP")document.location="http://jp.forex.com/jp/metatrader/services/demo_account.shtml";switch(true){case/HK|KP|US/.test(c):document.location="http://www.forex.com/metatrader/"+a;break;case/AU|NZ/.test(c):document.location="http://www.forex.com/metatraderau/"+a}}}function detectGeoDemoAUMeta(){var c=GetCookie("geo"),e=new Querystring,d=e.get("redir"),b=window.location.pathname,a=b.substring(b.lastIndexOf("/")+1)+location.search;d=="0"&&SetCookie("redir","0",null,"/",rURL);if(GetCookie("redir")!="0"){if(GetCookie("wsEntity")=="AU")return;if(GetCookie("wsEntity")=="NA")document.location="http://www.forex.com/metatrader/"+a;if(GetCookie("wsEntity")=="EU")document.location="http://www.forex.com/metatraderuk/"+a;if(GetCookie("wsEntity")=="JP")document.location="http://jp.forex.com/jp/metatrader/services/demo_account.shtml";switch(true){case/HK|KP|US/.test(c):document.location="http://www.forex.com/metatrader/"+a;break;case/AL|AD|AG|AN|AR|AM|AW|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|KR|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|SG|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|TW|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(c):document.location="http://www.forex.com/metatraderuk/"+a}}}function openLandingHome(){window.open("index.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=0,top=0,width=700, height=600")}function openLandingLearn(){window.open("learn.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=50,top=50,width=700, height=600")}function openLandingTrade(){window.open("trade.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=50,top=50,width=700, height=600")}function openLandingResearch(){window.open("resources.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=50,top=50,width=700, height=600")}function openLandingProducts(){window.open("products.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=50,top=50,width=700, height=600")}function openLandingAbout(){window.open("about.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=50,top=50,width=700, height=600")}function openLandingPrivacy(){window.open("privacy-policy.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=0,top=0,width=700, height=600")}function openLandingEA(){window.open("expert-advisors.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=50,top=50,width=700, height=600")}function openRiskWarning(){window.open("risk-warning.html","FOREXcom","status=yes,toolbar=yes,directories=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=50,top=50,width=700, height=600")}
