PageSourceSearch

https://www.rotita.com/currency.js?refresh=1790237110

js rotita.com collected 2026-09-24 10:18:48 UTC 84,409 bytes, 1,740 lines download raw bytes

1var default_currency='USD';
2var default_rate='1.00000';
3var default_symbol_left='US$';
4
5var custom_currency='';
6var custom_rate='';
7var custom_symbol_left='';
8var currency = baseCurrencys =new Array();
9var symbol_left=new Array();
10var symbol_right=new Array();
11var rate = baseRates=new Array();
12var countrys = baseCountrys=new Array();
13var country_ids=new Array();
14var country_codes=new Array();
15var size_keys=new Array();
16var is_zhifus=new Array();
17var language_keys=new Array();
18var no_shipping_country_codes = new Array();
19var country_id='1783';
20var country='United States';
21var country_icon='1659683459745252328.png';
22var currency_id='26';
23
24var free_amounts = JSON.parse('{"1851":["69","69","USD","26"],"1902":["129","129","USD","26"],"8860":["179","179","USD","26"],"8783":["109","109","USD","26"],"1812":{"0":63.670000000000002,"1":"95","2":"AUD","3":"35","app":{"usd":52.939999999999998,"value":"79","currencies_id":"35"}},"1803":["69","69","USD","26"],"1881":["79","79","USD","26"],"7754":["69","69","USD","26"],"1798":["69","69","USD","26"],"8868":["69","69","USD","26"],"8997":["69","69","USD","26"],"1824":["69","69","USD","26"],"1787":["69","69","USD","26"],"1784":{"0":66.859999999999999,"1":"99","2":"CAD","3":"34","app":{"usd":53.359999999999999,"value":"79","currencies_id":"34"}},"1890":["109","109","USD","26"],"1829":["179","179","USD","26"],"1842":["69","69","USD","26"],"1872":["109","109","USD","26"],"1833":["69","69","USD","26"],"1807":["69","69","USD","26"],"1924":["109","109","USD","26"],"1836":["69","69","USD","26"],"8870":["109","109","USD","26"],"1808":["69","69","USD","26"],"1794":[54.450000000000003,"55","EUR","32"],"1797":{"0":54.450000000000003,"1":"55","2":"EUR","3":"32","app":{"usd":44.549999999999997,"value":"45","currencies_id":"32"}},"8781":["79","79","USD","26"],"1804":["109","109","USD","26"],"9377":["69","69","USD","26"],"1955":["69","69","USD","26"],"1848":["69","69","USD","26"],"1811":["179","179","USD","26"],"1801":{"0":"69","1":"69","2":"USD","3":"26","app":{"usd":"49","value":"49","currencies_id":"26"}},"1796":[54.450000000000003,"55","EUR","32"],"1815":["69","69","USD","26"],"1819":["89","89","USD","26"],"8886":["69","69","USD","26"],"1816":["69","69","USD","26"],"1820":["89","89","USD","26"],"1837":["69","69","USD","26"],"8890":["69","69","USD","26"],"8679":["69","69","USD","26"],"1956":["69","69","USD","26"],"2303":["109","109","USD","26"],"1785":["69","69","USD","26"],"1806":["69","69","USD","26"],"1828":["89","89","USD","26"],"1839":["89","89","USD","26"],"8898":["79","79","USD","26"],"1947":["129","129","USD","26"],"8766":["69","69","USD","26"],"8944":["129","129","USD","26"],"1800":["69","69","USD","26"],"1813":{"0":"69","1":"69","2":"USD","3":"26","app":{"usd":"49","value":"49","currencies_id":"26"}},"1809":["79","79","USD","26"],"1861":["79","79","USD","26"],"1830":["109","109","USD","26"],"2005":["69","69","USD","26"],"1847":["69","69","USD","26"],"1805":["109","109","USD","26"],"1889":{"0":"69","1":"69","2":"USD","3":"26","app":{"usd":"49","value":"49","currencies_id":"26"}},"1849":["69","69","USD","26"],"8926":["69","69","USD","26"],"1876":["69","69","USD","26"],"8989":["179","179","USD","26"],"1843":["69","69","USD","26"],"2004":["69","69","USD","26"],"1840":["69","69","USD","26"],"1841":["69","69","USD","26"],"1951":["109","109","USD","26"],"1795":["69","69","USD","26"],"8992":["79","79","USD","26"],"1810":["69","69","USD","26"],"1802":["69","69","USD","26"],"1957":["129","129","USD","26"],"1786":["69","69","USD","26"],"8769":["79","79","USD","26"],"1856":["69","69","USD","26"],"8936":["109","109","USD","26"],"9341":["109","109","USD","26"],"1793":{"0":56.75,"1":"45","2":"GBP","3":"33","app":{"usd":49.18,"value":"39","currencies_id":"33"}},"1783":{"0":"69","1":"69","2":"USD","3":"26","app":{"usd":"49","value":"49","currencies_id":"26"}},"1822":["89","89","USD","26"],"8775":["79","79","USD","26"],"9340":["69","69","USD","26"]}');
25var special_currencies = JSON.parse('{"JPY":"JPY","HUF":"HUF","DKK":"DKK","HKD":"HKD","ILS":"ILS","MXN":"MXN","NOK":"NOK","SEK":"SEK","ZAR":"ZAR"}');
26
27if(getCookie("currency")==null)
28{
29    setCookie("currency",default_currency,30,'/');
30}
31if(getCookie("rate")==null)
32{
33    setCookie("rate",default_rate,30,'/');
34}
35if(getCookie("symbol_left")==null)
36{
37    setCookie("symbol_left",default_symbol_left,30,'/');
38}
39
40currency[26]='USD';
41currency[34]='CAD';
42currency[33]='GBP';
43currency[32]='EUR';
44currency[35]='AUD';
45currency[42]='NOK';
46currency[46]='ILS';
47currency[44]='SEK';
48currency[49]='MXN';
49currency[48]='NZD';
50currency[37]='HKD';
51currency[38]='JPY';
52currency[39]='RUB';
53currency[40]='BRL';
54currency[41]='CLP';
55currency[36]='CHF';
56currency[43]='DKK';
57currency[45]='KRW';
58currency[47]='HUF';
59currency[50]='AED';
60currency[51]='ZAR';
61currency[52]='PLN	';
62
63symbol_left[26]='US$';
64symbol_left[34]='CA$';
65symbol_left[33]='£';
66symbol_left[32]='€';
67symbol_left[35]='AU$';
68symbol_left[42]='kr.';
69symbol_left[46]='₪';
70symbol_left[44]='Kr.';
71symbol_left[49]='$';
72symbol_left[48]='$';
73symbol_left[37]='HK$';
74symbol_left[38]='Â¥';
75symbol_left[39]='p.';
76symbol_left[40]='R$';
77symbol_left[41]='$';
78symbol_left[36]='₣';
79symbol_left[43]='kr.';
80symbol_left[45]='₩';
81symbol_left[47]='FT.';
82symbol_left[50]='';
83symbol_left[51]='';
84symbol_left[52]='$';
85
86symbol_right[26]='';
87symbol_right[34]='';
88symbol_right[33]='';
89symbol_right[32]='';
90symbol_right[35]='';
91symbol_right[42]='';
92symbol_right[46]='';
93symbol_right[44]='';
94symbol_right[49]='';
95symbol_right[48]='';
96symbol_right[37]='';
97symbol_right[38]='';
98symbol_right[39]='';
99symbol_right[40]='';
100symbol_right[41]='';
101symbol_right[36]='';
102symbol_right[43]='';
103symbol_right[45]='';
104symbol_right[47]='';
105symbol_right[50]='';
106symbol_right[51]='';
107symbol_right[52]='PLN';
108
109rate[26]='1.00000';
110rate[34]='1.48060';
111rate[33]='0.79296';
112rate[32]='1.01016';
113rate[35]='1.49215';
114rate[42]='10.91431';
115rate[46]='3.19190';
116rate[44]='11.40386';
117rate[49]='18.40545';
118rate[48]='1.84936';
119rate[37]='8.23777';
120rate[38]='165.99240';
121rate[39]='87.34000';
122rate[40]='5.10390';
123rate[41]='937.36000';
124rate[36]='0.94944';
125rate[43]='7.55067';
126rate[45]='1360.18000';
127rate[47]='368.93150';
128rate[50]='3.85623';
129rate[51]='17.19144';
130rate[52]='4.03883';
131
132baseRates = rate;
133
134countrys[1851]="Albania";
135countrys[1902]="Algeria";
136countrys[8860]="Andorra";
137countrys[8783]="Aruba";
138countrys[1812]="Australia";
139countrys[1803]="Austria";
140countrys[1881]="Azerbaijan";
141countrys[7754]="Bangladesh";
142countrys[1798]="Belgium";
143countrys[8868]="Bermuda";
144countrys[8997]="Bhutan";
145countrys[1824]="Brazil";
146countrys[1787]="Cambodia";
147countrys[1784]="Canada";
148countrys[1890]="Chile";
149countrys[1829]="Colombia";
150countrys[1842]="Croatia";
151countrys[1872]="Cyprus";
152countrys[1833]="Czech Republic";
153countrys[1807]="Denmark";
154countrys[1924]="Egypt";
155countrys[1836]="Estonia";
156countrys[8870]="Faroe Islands";
157countrys[1808]="Finland";
158countrys[1794]="France";
159countrys[1797]="Germany";
160countrys[8781]="Gibraltar";
161countrys[1804]="Greece";
162countrys[9377]="Guam";
163countrys[1955]="Hongkong";
164countrys[1848]="Hungary";
165countrys[1811]="Iceland";
166countrys[1801]="Ireland";
167countrys[1796]="Italy";
168countrys[1815]="Japan";
169countrys[1819]="Kazakhstan";
170countrys[8886]="Kiribati";
171countrys[1816]="Korea, The Republic of";
172countrys[1820]="Kyrgyzstan";
173countrys[1837]="Latvia";
174countrys[8890]="Liechtenstein";
175countrys[8679]="Luxembourg";
176countrys[1956]="Macau";
177countrys[2303]="Macedonia";
178countrys[1785]="Malaysia";
179countrys[1806]="Malta";
180countrys[1828]="Mexico";
181countrys[1839]="Moldova";
182countrys[8898]="Monaco";
183countrys[1947]="Morocco";
184countrys[8766]="Myanmar";
185countrys[8944]="Namibia";
186countrys[1800]="Netherlands";
187countrys[1813]="New Zealand";
188countrys[1809]="Norway";
189countrys[1861]="Oman";
190countrys[1830]="Peru";
191countrys[2005]="Philippines";
192countrys[1847]="Poland";
193countrys[1805]="Portugal";
194countrys[1889]="Puerto Rico";
195countrys[1849]="Romania";
196countrys[8926]="San Marino";
197countrys[1876]="Saudi Arabia";
198countrys[8989]="Senegal";
199countrys[1843]="Serbia";
200countrys[2004]="Singapore";
201countrys[1840]="Slovakia";
202countrys[1841]="Slovenia";
203countrys[1951]="South Africa";
204countrys[1795]="Spain";
205countrys[8992]="Swaziland";
206countrys[1810]="Sweden";
207countrys[1802]="Switzerland";
208countrys[1957]="Taiwan";
209countrys[1786]="Thailand";
210countrys[8769]="Tonga";
211countrys[1856]="Turkey";
212countrys[8936]="Tuvalu";
213countrys[9341]="U.S. Virgin Islands";
214countrys[1793]="United Kingdom";
215countrys[1783]="United States";
216countrys[1822]="Uzbekistan";
217countrys[8775]="Vanuatu";
218countrys[9340]="Vietnam";
219
220baseCountrys = countrys;
221
222country_ids[1851]="1851";
223country_ids[1902]="1902";
224country_ids[8860]="8860";
225country_ids[8783]="8783";
226country_ids[1812]="1812";
227country_ids[1803]="1803";
228country_ids[1881]="1881";
229country_ids[7754]="7754";
230country_ids[1798]="1798";
231country_ids[8868]="8868";
232country_ids[8997]="8997";
233country_ids[1824]="1824";
234country_ids[1787]="1787";
235country_ids[1784]="1784";
236country_ids[1890]="1890";
237country_ids[1829]="1829";
238country_ids[1842]="1842";
239country_ids[1872]="1872";
240country_ids[1833]="1833";
241country_ids[1807]="1807";
242country_ids[1924]="1924";
243country_ids[1836]="1836";
244country_ids[8870]="8870";
245country_ids[1808]="1808";
246country_ids[1794]="1794";
247country_ids[1797]="1797";
248country_ids[8781]="8781";
249country_ids[1804]="1804";
250country_ids[9377]="9377";
251country_ids[1955]="1955";
252country_ids[1848]="1848";
253country_ids[1811]="1811";
254country_ids[1801]="1801";
255country_ids[1796]="1796";
256country_ids[1815]="1815";
257country_ids[1819]="1819";
258country_ids[8886]="8886";
259country_ids[1816]="1816";
260country_ids[1820]="1820";
261country_ids[1837]="1837";
262country_ids[8890]="8890";
263country_ids[8679]="8679";
264country_ids[1956]="1956";
265country_ids[2303]="2303";
266country_ids[1785]="1785";
267country_ids[1806]="1806";
268country_ids[1828]="1828";
269country_ids[1839]="1839";
270country_ids[8898]="8898";
271country_ids[1947]="1947";
272country_ids[8766]="8766";
273country_ids[8944]="8944";
274country_ids[1800]="1800";
275country_ids[1813]="1813";
276country_ids[1809]="1809";
277country_ids[1861]="1861";
278country_ids[1830]="1830";
279country_ids[2005]="2005";
280country_ids[1847]="1847";
281country_ids[1805]="1805";
282country_ids[1889]="1889";
283country_ids[1849]="1849";
284country_ids[8926]="8926";
285country_ids[1876]="1876";
286country_ids[8989]="8989";
287country_ids[1843]="1843";
288country_ids[2004]="2004";
289country_ids[1840]="1840";
290country_ids[1841]="1841";
291country_ids[1951]="1951";
292country_ids[1795]="1795";
293country_ids[8992]="8992";
294country_ids[1810]="1810";
295country_ids[1802]="1802";
296country_ids[1957]="1957";
297country_ids[1786]="1786";
298country_ids[8769]="8769";
299country_ids[1856]="1856";
300country_ids[8936]="8936";
301country_ids[9341]="9341";
302country_ids[1793]="1793";
303country_ids[1783]="1783";
304country_ids[1822]="1822";
305country_ids[8775]="8775";
306country_ids[9340]="9340";
307
308country_codes[1851]="AL";
309country_codes[1902]="DZ";
310country_codes[8860]="AD";
311country_codes[8783]="AW";
312country_codes[1812]="AU";
313country_codes[1803]="AT";
314country_codes[1881]="AZ";
315country_codes[7754]="BD";
316country_codes[1798]="BE";
317country_codes[8868]="BM";
318country_codes[8997]="BT";
319country_codes[1824]="BR";
320country_codes[1787]="KH";
321country_codes[1784]="CA";
322country_codes[1890]="CL";
323country_codes[1829]="CO";
324country_codes[1842]="HR";
325country_codes[1872]="CY";
326country_codes[1833]="CZ";
327country_codes[1807]="DK";
328country_codes[1924]="EG";
329country_codes[1836]="EE";
330country_codes[8870]="FO";
331country_codes[1808]="FI";
332country_codes[1794]="FR";
333country_codes[1797]="DE";
334country_codes[8781]="GI";
335country_codes[1804]="GR";
336country_codes[9377]="GU";
337country_codes[1955]="HK";
338country_codes[1848]="HU";
339country_codes[1811]="IS";
340country_codes[1801]="IE";
341country_codes[1796]="IT";
342country_codes[1815]="JP";
343country_codes[1819]="KZ";
344country_codes[8886]="KI";
345country_codes[1816]="KR";
346country_codes[1820]="KG";
347country_codes[1837]="LV";
348country_codes[8890]="LI";
349country_codes[8679]="LU";
350country_codes[1956]="MO";
351country_codes[2303]="MK";
352country_codes[1785]="MY";
353country_codes[1806]="MT";
354country_codes[1828]="MX";
355country_codes[1839]="MD";
356country_codes[8898]="MC";
357country_codes[1947]="MA";
358country_codes[8766]="MM";
359country_codes[8944]="NA";
360country_codes[1800]="NL";
361country_codes[1813]="NZ";
362country_codes[1809]="NO";
363country_codes[1861]="OM";
364country_codes[1830]="PE";
365country_codes[2005]="PH";
366country_codes[1847]="PL";
367country_codes[1805]="PT";
368country_codes[1889]="PR";
369country_codes[1849]="RO";
370country_codes[8926]="SM";
371country_codes[1876]="SA";
372country_codes[8989]="SN";
373country_codes[1843]="RS";
374country_codes[2004]="SG";
375country_codes[1840]="SK";
376country_codes[1841]="SI";
377country_codes[1951]="ZA";
378country_codes[1795]="ES";
379country_codes[8992]="SZ";
380country_codes[1810]="SE";
381country_codes[1802]="CH";
382country_codes[1957]="TW";
383country_codes[1786]="TH";
384country_codes[8769]="TO";
385country_codes[1856]="TR";
386country_codes[8936]="TV";
387country_codes[9341]="VI";
388country_codes[1793]="GB";
389country_codes[1783]="US";
390country_codes[1822]="UZ";
391country_codes[8775]="VU";
392country_codes[9340]="VN";
393
394size_keys[1851]="6";
395size_keys[1902]="6";
396size_keys[8860]="6";
397size_keys[8783]="6";
398size_keys[1812]="4";
399size_keys[1803]="5";
400size_keys[1881]="6";
401size_keys[7754]="6";
402size_keys[1798]="5";
403size_keys[8868]="2";
404size_keys[8997]="6";
405size_keys[1824]="6";
406size_keys[1787]="6";
407size_keys[1784]="3";
408size_keys[1890]="6";
409size_keys[1829]="6";
410size_keys[1842]="5";
411size_keys[1872]="5";
412size_keys[1833]="5";
413size_keys[1807]="5";
414size_keys[1924]="6";
415size_keys[1836]="5";
416size_keys[8870]="6";
417size_keys[1808]="5";
418size_keys[1794]="5";
419size_keys[1797]="5";
420size_keys[8781]="6";
421size_keys[1804]="5";
422size_keys[9377]="6";
423size_keys[1955]="6";
424size_keys[1848]="5";
425size_keys[1811]="6";
426size_keys[1801]="5";
427size_keys[1796]="5";
428size_keys[1815]="6";
429size_keys[1819]="6";
430size_keys[8886]="6";
431size_keys[1816]="6";
432size_keys[1820]="6";
433size_keys[1837]="5";
434size_keys[8890]="6";
435size_keys[8679]="5";
436size_keys[1956]="6";
437size_keys[2303]="6";
438size_keys[1785]="6";
439size_keys[1806]="5";
440size_keys[1828]="6";
441size_keys[1839]="6";
442size_keys[8898]="6";
443size_keys[1947]="6";
444size_keys[8766]="6";
445size_keys[8944]="6";
446size_keys[1800]="5";
447size_keys[1813]="7";
448size_keys[1809]="6";
449size_keys[1861]="6";
450size_keys[1830]="6";
451size_keys[2005]="6";
452size_keys[1847]="5";
453size_keys[1805]="5";
454size_keys[1889]="1";
455size_keys[1849]="5";
456size_keys[8926]="6";
457size_keys[1876]="6";
458size_keys[8989]="6";
459size_keys[1843]="6";
460size_keys[2004]="6";
461size_keys[1840]="5";
462size_keys[1841]="5";
463size_keys[1951]="6";
464size_keys[1795]="5";
465size_keys[8992]="6";
466size_keys[1810]="5";
467size_keys[1802]="6";
468size_keys[1957]="6";
469size_keys[1786]="6";
470size_keys[8769]="6";
471size_keys[1856]="6";
472size_keys[8936]="6";
473size_keys[9341]="6";
474size_keys[1793]="2";
475size_keys[1783]="1";
476size_keys[1822]="6";
477size_keys[8775]="6";
478size_keys[9340]="6";
479
480language_keys[1851]="0";
481language_keys[1902]="0";
482language_keys[8860]="0";
483language_keys[8783]="0";
484language_keys[1812]="0";
485language_keys[1803]="0";
486language_keys[1881]="0";
487language_keys[7754]="0";
488language_keys[1798]="0";
489language_keys[8868]="0";
490language_keys[8997]="0";
491language_keys[1824]="0";
492language_keys[1787]="0";
493language_keys[1784]="0";
494language_keys[1890]="0";
495language_keys[1829]="0";
496language_keys[1842]="0";
497language_keys[1872]="0";
498language_keys[1833]="0";
499language_keys[1807]="0";
500language_keys[1924]="0";
501language_keys[1836]="0";
502language_keys[8870]="0";
503language_keys[1808]="0";
504language_keys[1794]="2";
505language_keys[1797]="4";
506language_keys[8781]="0";
507language_keys[1804]="0";
508language_keys[9377]="0";
509language_keys[1955]="0";
510language_keys[1848]="0";
511language_keys[1811]="0";
512language_keys[1801]="0";
513language_keys[1796]="5";
514language_keys[1815]="0";
515language_keys[1819]="0";
516language_keys[8886]="0";
517language_keys[1816]="0";
518language_keys[1820]="0";
519language_keys[1837]="0";
520language_keys[8890]="0";
521language_keys[8679]="0";
522language_keys[1956]="0";
523language_keys[2303]="0";
524language_keys[1785]="0";
525language_keys[1806]="0";
526language_keys[1828]="0";
527language_keys[1839]="0";
528language_keys[8898]="0";
529language_keys[1947]="0";
530language_keys[8766]="0";
531language_keys[8944]="0";
532language_keys[1800]="0";
533language_keys[1813]="0";
534language_keys[1809]="0";
535language_keys[1861]="0";
536language_keys[1830]="0";
537language_keys[2005]="0";
538language_keys[1847]="0";
539language_keys[1805]="0";
540language_keys[1889]="0";
541language_keys[1849]="0";
542language_keys[8926]="0";
543language_keys[1876]="0";
544language_keys[8989]="0";
545language_keys[1843]="0";
546language_keys[2004]="0";
547language_keys[1840]="0";
548language_keys[1841]="0";
549language_keys[1951]="0";
550language_keys[1795]="3";
551language_keys[8992]="0";
552language_keys[1810]="0";
553language_keys[1802]="0";
554language_keys[1957]="0";
555language_keys[1786]="0";
556language_keys[8769]="0";
557language_keys[1856]="0";
558language_keys[8936]="0";
559language_keys[9341]="0";
560language_keys[1793]="0";
561language_keys[1783]="0";
562language_keys[1822]="0";
563language_keys[8775]="0";
564language_keys[9340]="0";
565
566is_zhifus[26] = '1';
567is_zhifus[34] = '1';
568is_zhifus[33] = '1';
569is_zhifus[32] = '1';
570is_zhifus[35] = '1';
571is_zhifus[42] = '1';
572is_zhifus[46] = '1';
573is_zhifus[44] = '1';
574is_zhifus[49] = '1';
575is_zhifus[48] = '1';
576is_zhifus[37] = '1';
577is_zhifus[38] = '1';
578is_zhifus[39] = '0';
579is_zhifus[40] = '0';
580is_zhifus[41] = '0';
581is_zhifus[36] = '1';
582is_zhifus[43] = '1';
583is_zhifus[45] = '0';
584is_zhifus[47] = '1';
585is_zhifus[50] = '0';
586is_zhifus[51] = '0';
587is_zhifus[52] = '0';
588
589var afterpay_currency=new Array();
590afterpay_currency[1784] = "CAD";
591afterpay_currency[1812] = "AUD";
592
593var klarna_currency=new Array();
594klarna_currency[1783] = "USD";
595klarna_currency[1784] = "CAD";
596klarna_currency[1793] = "GBP";
597klarna_currency[1803] = "EUR";
598klarna_currency[1807] = "DKK";
599klarna_currency[1808] = "EUR";
600klarna_currency[1800] = "EUR";
601klarna_currency[1810] = "SEK";
602
603var klarna_locale=new Array();
604klarna_locale[1783] = "en-US";
605klarna_locale[1784] = "en-CA";
606klarna_locale[1793] = "en-GB";
607klarna_locale[1797] = "en-DE";
608klarna_locale[1794] = "en-FR";
609klarna_locale[1795] = "en-ES";
610klarna_locale[1803] = "en-AT";
611klarna_locale[1798] = "en-BE";
612klarna_locale[1802] = "en-CH";
613klarna_locale[1807] = "en-DK";
614klarna_locale[1808] = "en-FI";
615klarna_locale[1796] = "en-IT";
616klarna_locale[1800] = "en-NL";
617klarna_locale[1809] = "en-NO";
618klarna_locale[1810] = "en-SE";
619
620no_shipping_country_codes[0]="ID";
621no_shipping_country_codes[1]="BN";
622no_shipping_country_codes[2]="PG";
623no_shipping_country_codes[3]="MN";
624no_shipping_country_codes[4]="TJ";
625no_shipping_country_codes[5]="CU";
626no_shipping_country_codes[6]="AR";
627no_shipping_country_codes[7]="PA";
628no_shipping_country_codes[8]="RU";
629no_shipping_country_codes[9]="BY";
630no_shipping_country_codes[10]="UA";
631no_shipping_country_codes[11]="LT";
632no_shipping_country_codes[12]="BA";
633no_shipping_country_codes[13]="BG";
634no_shipping_country_codes[14]="LK";
635no_shipping_country_codes[15]="KW";
636no_shipping_country_codes[16]="LB";
637no_shipping_country_codes[17]="GE";
638no_shipping_country_codes[18]="IN";
639no_shipping_country_codes[19]="NP";
640no_shipping_country_codes[20]="QA";
641no_shipping_country_codes[21]="IR";
642no_shipping_country_codes[22]="IL";
643no_shipping_country_codes[23]="PK";
644no_shipping_country_codes[24]="AE";
645no_shipping_country_codes[25]="JO";
646no_shipping_country_codes[26]="LA";
647no_shipping_country_codes[27]="VE";
648no_shipping_country_codes[28]="UY";
649no_shipping_country_codes[29]="PY";
650no_shipping_country_codes[30]="JM";
651no_shipping_country_codes[31]="EC";
652no_shipping_country_codes[32]="CR";
653no_shipping_country_codes[33]="TN";
654no_shipping_country_codes[34]="RE";
655no_shipping_country_codes[35]="LY";
656no_shipping_country_codes[36]="CN";
657no_shipping_country_codes[37]="ET";
658no_shipping_country_codes[38]="SC";
659no_shipping_country_codes[39]="MU";
660no_shipping_country_codes[40]="BJ";
661no_shipping_country_codes[41]="TZ";
662no_shipping_country_codes[42]="MV";
663no_shipping_country_codes[43]="SD";
664no_shipping_country_codes[44]="PF";
665no_shipping_country_codes[45]="MP";
666no_shipping_country_codes[46]="FJ";
667no_shipping_country_codes[47]="NC";
668no_shipping_country_codes[48]="PW";
669no_shipping_country_codes[49]="MH";
670no_shipping_country_codes[50]="AS";
671no_shipping_country_codes[51]="GL";
672no_shipping_country_codes[52]="BS";
673no_shipping_country_codes[53]="BB";
674no_shipping_country_codes[54]="KY";
675no_shipping_country_codes[55]="GH";
676no_shipping_country_codes[56]="IQ";
677no_shipping_country_codes[57]="BZ";
678no_shipping_country_codes[58]="FK";
679no_shipping_country_codes[59]="GF";
680no_shipping_country_codes[60]="GD";
681no_shipping_country_codes[61]="GG";
682no_shipping_country_codes[62]="HT";
683no_shipping_country_codes[63]="JE";
684no_shipping_country_codes[64]="KV";
685no_shipping_country_codes[65]="MQ";
686no_shipping_country_codes[66]="NR";
687no_shipping_country_codes[67]="AN";
688no_shipping_country_codes[68]="NI";
689no_shipping_country_codes[69]="NU";
690no_shipping_country_codes[70]="LC";
691no_shipping_country_codes[71]="VC";
692no_shipping_country_codes[72]="SB";
693no_shipping_country_codes[73]="SR";
694no_shipping_country_codes[74]="TC";
695no_shipping_country_codes[75]="BF";
696no_shipping_country_codes[76]="BI";
697no_shipping_country_codes[77]="CV";
698no_shipping_country_codes[78]="CF";
699no_shipping_country_codes[79]="TD";
700no_shipping_country_codes[80]="KM";
701no_shipping_country_codes[81]="CD";
702no_shipping_country_codes[82]="CI";
703no_shipping_country_codes[83]="DJ";
704no_shipping_country_codes[84]="GQ";
705no_shipping_country_codes[85]="ER";
706no_shipping_country_codes[86]="GA";
707no_shipping_country_codes[87]="GM";
708no_shipping_country_codes[88]="GN";
709no_shipping_country_codes[89]="LS";
710no_shipping_country_codes[90]="LR";
711no_shipping_country_codes[91]="MG";
712no_shipping_country_codes[92]="MW";
713no_shipping_country_codes[93]="ML";
714no_shipping_country_codes[94]="MR";
715no_shipping_country_codes[95]="YT";
716no_shipping_country_codes[96]="MZ";
717no_shipping_country_codes[97]="NE";
718no_shipping_country_codes[98]="RW";
719no_shipping_country_codes[99]="ST";
720no_shipping_country_codes[100]="SO";
721no_shipping_country_codes[101]="TG";
722no_shipping_country_codes[102]="UG";
723no_shipping_country_codes[103]="ZM";
724no_shipping_country_codes[104]="ZW";
725no_shipping_country_codes[105]="AF";
726no_shipping_country_codes[106]="TP";
727no_shipping_country_codes[107]="CG";
728no_shipping_country_codes[108]="XB";
729no_shipping_country_codes[109]="XS";
730no_shipping_country_codes[110]="VG";
731no_shipping_country_codes[111]="XN";
732no_shipping_country_codes[112]="XE";
733no_shipping_country_codes[113]="XM";
734no_shipping_country_codes[114]="KP";
735no_shipping_country_codes[115]="SH";
736no_shipping_country_codes[116]="AO";
737no_shipping_country_codes[117]="SL";
738no_shipping_country_codes[118]="BW";
739no_shipping_country_codes[119]="NG";
740no_shipping_country_codes[120]="BH";
741no_shipping_country_codes[121]="default";
742
743var consignee_country_id = 0;
744window.change_org_currencies_id = true;
745
746function setCurrency(currency_id)
747{
748    if(window.change_org_currencies_id)
749    {
750        setCookie("org_currencies_id",currency_id,30,'/');
751    }
752
753    var selected_currency=baseCurrencys[currency_id];
754    if(selected_currency && (selected_currency != undefined))
755    {
756        setCookie("currencies_id",currency_id,30,'/');
757        setCookie("currency_id",currency_id,30,'/');
758    }
759    var selected_rate=baseRates[currency_id];
760    var selected_symbol_left=symbol_left[currency_id];
761    var selected_symbol_left_t = selected_symbol_left;
762    var region_id = (arguments[1]!=undefined)?arguments[1]:-1;
763    var language_key = (arguments[2]!=undefined)?arguments[2]:-1;
764    if (region_id > -1) 
765    {
766        var selected_country=baseCountrys[region_id];
767        var selected_country_id=country_ids[region_id];
768        var selected_country_code=country_codes[region_id];
769        var selected_size_display=size_keys[region_id];
770        var free_amount = free_amounts[region_id][0];
771        if(selected_country_id)
772        {
773            setCookie("country",selected_country,24,'/');
774            setCookie("country_id",selected_country_id,24,'/');
775            setCookie("country_code",selected_country_code,24,'/');
776            setCookie("free_amount",free_amount,24,'/');
777            setSizeDisplay(selected_size_display);
778        }
779    }
780    else
781    {
782        var selected_country_code=getCookie("country_code");
783    }
784    var lan_change=$('#float_cc_language').attr('data-change');
785    lan_change=lan_change == undefined ? 0 : lan_change;
786    if(language_key>-1 && lan_change == 1)
787    {
788        $('#float_cc_language').attr('data-change',0);
789        setShowLanguage(language_key);
790    }
791    if(selected_currency == 'USD' || selected_currency == 'CAD' || selected_currency == 'AUD' || selected_currency == 'HKD')
792    {
793        selected_symbol_left_t = '$';
794    }
795    //不在可发货地区
796    var no_shipping_country_tip = '';
797    if($.inArray(selected_country_code, country_codes) === -1 || ($.inArray(selected_country_code, no_shipping_country_codes) !== -1))
798    {
799        no_shipping_country_tip = 'NOT SHIP';
800        selected_currency = getCookie("currency");
801        selected_symbol_left = getCookie("symbol_left");
802        selected_rate = getCookie("rate");
803    }
804    var selected_con="<i class='country_flag css_"+selected_country_code+"'>"+no_shipping_country_tip+"</i>";
805    $("#js_Currency").html(selected_con);
806    setCookie("currency",selected_currency,30,'/');
807    setCookie("rate",selected_rate,30,'/');
808    setCookie("symbol_left",selected_symbol_left,30,'/');
809    $("#country_selector").hide();
810    setAllPrice(getCookie("currency"),getCookie("rate"),selected_symbol_left);
811    getPaymentCode();
812
813    if(document.getElementById("approximately") != undefined)
814    {
815        $('#approximately').hide();
816        if(is_zhifus[currency_id] == '0')
817        {
818            $('#approximately').show();
819        }
820    }
821
822    var shop_price = $("#MY_PRICE_klarna").attr('data-us-amount');
823    show_klarna_info(shop_price);//判断klarna提示是否显示
824    if(document.getElementById("afterpay_info"))
825    {
826        show_afterpay_info();//判断afterpay提示是否显示
827    }
828}
829
830function addScript(url,client_id)
831{
832    //alert(url);
833    var script = document.createElement('script');
834    script.setAttribute('async',true);
835    script.setAttribute('src',url);
836    script.setAttribute('data-client-id',client_id);
837    document.getElementsByTagName('head')[0].appendChild(script);
838}
839
840//移除已经加载过的js/css
841function removejscssfile(filename)
842{
843    var targetelement= "script";
844    var targetattr = "src";
845    var allsuspects = document.getElementsByTagName(targetelement)
846    for (var i=allsuspects.length; i>=0;i--){
847    if (allsuspects[i] && allsuspects[i].getAttribute(targetattr)!=null && allsuspects[i].getAttribute(targetattr).indexOf(filename)!=-1)
848     allsuspects[i].parentNode.removeChild(allsuspects[i])
849    }
850}
851/**
852 * 判断klarna提示是否显示
853 * shop_price 商品价格
854 */
855 function show_klarna_info(shop_price = 0,goods_id = 0)
856 {
857    goods_id = parseInt(goods_id);
858    let klarna_div_id = 'klarna_info';
859    let klarna_price_id = 'MY_PRICE_klarna';
860    if(goods_id > 0)
861    {
862        klarna_div_id = 'klarna_info_'+goods_id;
863        klarna_price_id = 'MY_PRICE_klarna_'+goods_id;
864    }
865
866    if(document.getElementById(klarna_div_id))
867    {
868        var country_id  = getCookie("country_id");
869        var selected_currency = getCookie("currency");
870        var ap_currency = klarna_currency[country_id] == undefined ? '' : klarna_currency[country_id];
871        if(ap_currency == selected_currency)
872        {
873            $("#"+klarna_price_id).attr('data-us-amount',shop_price);
874            var rate   = getCookie("rate");
875            shop_price = parseFloat(shop_price)*parseFloat(rate);
876            shop_price = FormatDecimal(2,shop_price.toString());
877            shop_price = parseInt(shop_price * 100);
878            $("#"+klarna_price_id).attr('data-purchase-amount',shop_price);
879            removejscssfile('https://na-library.klarnaservices.com/lib.js');
880            removejscssfile('https://eu-library.klarnaservices.com/lib.js');
881            removejscssfile('https://na-library.klarnaservices.com/lib.js');
882            if(country_id == 1783)
883            {
884                addScript('https://na-library.klarnaservices.com/lib.js','67289649-1b05-505f-9fd3-176cc79904f2');
885                $("#"+klarna_price_id).attr("data-locale","en-US");
886            }
887            else if(country_id == 1784)
888            {
889                addScript('https://na-library.klarnaservices.com/lib.js','59d6ad7d-d823-500d-aae9-9e4ad88bc021');
890                $("#"+klarna_price_id).attr("data-locale",klarna_locale[country_id]);
891            }
892            else
893            {
894                addScript('https://eu-library.klarnaservices.com/lib.js','654458dc-49b5-5f4b-919d-c73a50f5eb92');
895                $("#"+klarna_price_id).attr("data-locale",klarna_locale[country_id]);
896            }
897
898            window.KlarnaOnsiteService = window.KlarnaOnsiteService || [];
899            window.KlarnaOnsiteService.push({eventName: 'refresh-placements'});
900
901            $("#"+klarna_div_id).show();
902            $("#"+klarna_div_id).attr('data-country-id',country_id);
903            base_gtm_event_data_push('','View','klarna Tips::View_'+country_id);
904        }
905        else
906        {
907            $("#"+klarna_div_id).hide();
908        }
909    }
910}
911
912function setCurrency2(currency_id,currency,rate,symbol_left)
913{
914    var selected_con="<div class='"+currency+"_flag'></div><span>"+currency+"</span>";
915    $("#top-country-selector").html(selected_con);
916    $(".c_currency").find('span').html(currency);
917    $("#currency_code").html(currency);
918    $(".currency_code").html(currency);
919    $("#currency_name").attr('value',currency);
920    $("#currency_id").attr('value',currency_id);
921    
922    setCookie("currency",currency,30,'/');
923    setCookie("rate",rate,30,'/');
924    setCookie("symbol_left",symbol_left,30,'/');
925    
926    setAllPrice(currency,rate);
927    
928    $("#c_list").hide();
929}
930
931function setAllPrice(code,rate,symbol_left)
932{
933    if(code in special_currencies)
934    {
935        var precision=0;
936    }
937    else{
938        var precision=2;
939    }
940    var code_t = code;
941    var cur_price_min='';
942    if(getCookie("filter_price_min")!=null)
943    {
944        cur_price_min=getCookie("filter_price_min");
945    }
946    var cur_price_max='';
947    if(getCookie("filter_price_max")!=null)
948    {
949        cur_price_max=getCookie("filter_price_max");
950    }
951    if(code == 'USD' || code == 'EUR' || code == 'GBP' || code == 'CAD' || code == 'AUD' || code == 'HKD')
952    {
953        code_t = symbol_left;
954    }
955    var code_right = '';
956    if(code == 'EUR')
957    {
958        code_right = code_t;
959        code_t = '';
960    }
961    $(".my_shop_price").each(function(){
962        //获取美金价格
963        var shop_price=$(this).attr('orgp');
964        
965        shop_price=parseFloat(shop_price)*parseFloat(rate);
966        
967        if(!isNaN(shop_price))
968        {
969            var minlab = $(this).attr('data-minlab');
970            minlab = minlab == undefined ? '' : minlab;
971            $(this).attr('data-minlab',minlab);
972            shop_price=FormatDecimal(precision,shop_price.toString());
973            
974            if ($(this).attr('data-minlab') == code && cur_price_min && Math.abs(cur_price_min-shop_price) <1) 
975            {
976                $(this).html(code_t+cur_price_min+code_right);
977            }
978            else if($(this).attr('data-maxlab') == code && cur_price_max && Math.abs(cur_price_max-shop_price) <1)
979            {
980                $(this).html(code_t+cur_price_max+code_right);
981            }
982            else
983            {
984                $(this).html(code_t+shop_price+code_right);
985            }
986        }
987    });
988
989    $(".my_shop_price_new").each(function(){
990        //获取美金价格
991        var shop_price=$(this).attr('orgp');
992        shop_price=parseFloat(shop_price)*parseFloat(rate);
993        shop_price=FormatDecimal(precision,shop_price.toString());
994        $(this).html(code_t+shop_price+code_right);
995    });
996    $(".my_shop_new_price").each(function(){
997        //获取美金价格
998        var shop_price=$(this).attr('orgp');
999        shop_price = shop_price == '' || shop_price == undefined ? '' : shop_price;
1000        if(shop_price!='')
1001        {
1002            shop_price=parseFloat(shop_price)*parseFloat(rate);
1003            shop_price=FormatDecimal(precision,shop_price.toString());
1004            $(this).html(shop_price);
1005        }
1006    });
1007    
1008    $(".my_shop_price2").each(function(){
1009        //获取美金价格
1010        var shop_price=$(this).attr('orgp');
1011        shop_price=parseFloat(shop_price)*parseFloat(rate);
1012        shop_price=FormatDecimal(precision,shop_price.toString());
1013        $(this).html(shop_price);
1014        $(this).prev('span.currency_code').html(code);
1015    }); 
1016    
1017    $(".filter_price_min").each(function(){
1018        //获取美金价格
1019        var shop_price=$(this).attr('orgp');
1020        if (shop_price) 
1021        {
1022            shop_price=parseFloat(shop_price)*parseFloat(rate);
1023            shop_price=FormatDecimal(precision,shop_price.toString());
1024            if ($(this).hasClass('filter-price-input')) 
1025            {
1026                $(this).val(shop_price);
1027            }
1028            else
1029            {
1030                shop_price=Math.floor(shop_price);
1031                $(this).html(code_t+shop_price+code_right);
1032            }
1033        }
1034        
1035    });
1036    
1037    $(".filter_price_max").each(function(){
1038        //获取美金价格
1039        var shop_price=$(this).attr('orgp');
1040        if (shop_price) 
1041        {
1042            shop_price=parseFloat(shop_price)*parseFloat(rate);
1043            shop_price=FormatDecimal(precision,shop_price.toString());
1044            if ($(this).hasClass('filter-price-input')) 
1045            {
1046                $(this).val(shop_price);
1047            }
1048            else
1049            {
1050                shop_price=Math.ceil(shop_price);
1051                $(this).html(code_t+shop_price+code_right);
1052            }
1053        }
1054        
1055    });
1056
1057    if(document.getElementsByClassName("MY_PRICE_afterpay") != undefined)
1058    {
1059        $(".MY_PRICE_afterpay").each(function(){
1060            //获取美金价格
1061            var afterpay_price = $(this).attr('orgp');
1062            $(this).html(code_t+afterpay_price);
1063        });
1064    }
1065    if(document.getElementById("MY_PRICE_afterpay_suits") != undefined)
1066    {
1067        var afterpay_price = $("#MY_PRICE_afterpay_suits").attr('orgp');
1068        $("#MY_PRICE_afterpay_suits").html(code_t+afterpay_price);
1069    }
1070    if(document.getElementById("afterpay_amount") != undefined)
1071    {
1072        var afterpay_amount = $("#afterpay_amount").attr('orgp');
1073        $("#afterpay_amount").html(code_t+afterpay_amount);
1074    }
1075
1076    if(document.getElementById("klarna_above") != undefined){
1077        var ot_total = $("#ot_total").attr('orgp');
1078        //1797德国,1803奥地利,1798比利时,1802瑞士
1079        if(consignee_country_id != 1797 && consignee_country_id != 1803 && consignee_country_id != 1798 && consignee_country_id != 1802 && consignee_country_id != 1807 && consignee_country_id != 1808 && consignee_country_id != 1800 && consignee_country_id != 1809 && consignee_country_id != 1810 && ot_total < 10)
1080        {
1081            $('#pay_desc_19').hide();
1082            klarna_above_price = code_t ? code_t + "10" : "10"+ code_right;
1083            klarna_above = "Klarna, Available for order above "+klarna_above_price;
1084            $('#klarna_above').html(klarna_above);
1085            $('#klarna_above').show();
1086        }
1087    }
1088
1089    //购物车显示klarna提示
1090    if(document.getElementById("pay_discount_span") != undefined && consignee_country_id == 0)
1091    {
1092        $('#pay_discount_span').hide();
1093        var country_id = getCookie("country_id");
1094        var selected_currency = getCookie("currency");
1095        var ap_currency = klarna_currency[country_id] == undefined ? '' : klarna_currency[country_id];
1096        if(ap_currency == selected_currency)
1097        {
1098            var pay_discount = $('#pay_discount').attr('orgp');
1099            if(pay_discount > 0)
1100            {
1101                $('#pay_discount_span').show();
1102            }
1103        }
1104    }
1105
1106    if(code_right != '')
1107    {
1108        code_t = code_right;
1109    }
1110    $("#c_code").html(code);
1111    if(code == 'EUR')
1112    {
1113        if($("#currency_code_right").length > 0)
1114        {
1115            $("#currency_code").html('');
1116            $("#currency_code_right").html(code_t);
1117        }
1118        if($(".currency_code_right").length > 0)
1119        {
1120            $(".currency_code").html('');
1121            $(".currency_code_right").html(code_t);
1122        }
1123    }
1124    else
1125    {
1126        $("#currency_code_right").html('');
1127        $(".currency_code_right").html('');
1128        $("#currency_code").html(code_t);
1129        $(".currency_code").html(code_t);
1130    }
1131    $(".Tcurrency_code").html(code);
1132
1133    var max_arr = new Array();
1134    $(".cinfo").each(function(){
1135      var str = $(this).find('span').html();
1136      str = str.toString();
1137      w = (str.length-1) * 10;
1138      max_arr.push(w);
1139    });
1140    var w = Math.max.apply(null,max_arr);
1141    $(".cinfo").css('width',w+'px');
1142}
1143
1144function initCurrency()
1145{
1146    setDefaultReturnPolicy(0);
1147        if (getCookie("currency") == 'USD')
1148    {
1149        var currency_key=26;
1150    }
1151        if (getCookie("currency") == 'CAD')
1152    {
1153        var currency_key=34;
1154    }
1155        if (getCookie("currency") == 'GBP')
1156    {
1157        var currency_key=33;
1158    }
1159        if (getCookie("currency") == 'EUR')
1160    {
1161        var currency_key=32;
1162    }
1163        if (getCookie("currency") == 'AUD')
1164    {
1165        var currency_key=35;
1166    }
1167        if (getCookie("currency") == 'NOK')
1168    {
1169        var currency_key=42;
1170    }
1171        if (getCookie("currency") == 'ILS')
1172    {
1173        var currency_key=46;
1174    }
1175        if (getCookie("currency") == 'SEK')
1176    {
1177        var currency_key=44;
1178    }
1179        if (getCookie("currency") == 'MXN')
1180    {
1181        var currency_key=49;
1182    }
1183        if (getCookie("currency") == 'NZD')
1184    {
1185        var currency_key=48;
1186    }
1187        if (getCookie("currency") == 'HKD')
1188    {
1189        var currency_key=37;
1190    }
1191        if (getCookie("currency") == 'JPY')
1192    {
1193        var currency_key=38;
1194    }
1195        if (getCookie("currency") == 'RUB')
1196    {
1197        var currency_key=39;
1198    }
1199        if (getCookie("currency") == 'BRL')
1200    {
1201        var currency_key=40;
1202    }
1203        if (getCookie("currency") == 'CLP')
1204    {
1205        var currency_key=41;
1206    }
1207        if (getCookie("currency") == 'CHF')
1208    {
1209        var currency_key=36;
1210    }
1211        if (getCookie("currency") == 'DKK')
1212    {
1213        var currency_key=43;
1214    }
1215        if (getCookie("currency") == 'KRW')
1216    {
1217        var currency_key=45;
1218    }
1219        if (getCookie("currency") == 'HUF')
1220    {
1221        var currency_key=47;
1222    }
1223        if (getCookie("currency") == 'AED')
1224    {
1225        var currency_key=50;
1226    }
1227        if (getCookie("currency") == 'ZAR')
1228    {
1229        var currency_key=51;
1230    }
1231        if (getCookie("currency") == 'PLN	')
1232    {
1233        var currency_key=52;
1234    }
1235        
1236    var currency = getCookie("currency");
1237    var select_symbol_left=symbol_left[currency_key];
1238    var select_symbol_left_t = select_symbol_left;
1239    if(currency == 'USD' || currency == 'CAD' || currency == 'AUD' || currency == 'HKD')
1240    {
1241        select_symbol_left_t = '$';
1242    }
1243
1244    var country_code=getCookie("country_code");
1245    //不在可发货地区
1246    var no_shipping_country_tip = '';
1247    if($.inArray(country_code, country_codes) === -1 || ($.inArray(country_code, no_shipping_country_codes) !== -1))
1248    {
1249        no_shipping_country_tip = 'NOT SHIP';
1250        select_symbol_left = getCookie("symbol_left");
1251    }
1252    var selected_con="<i class='country_flag css_"+country_code+"'>"+no_shipping_country_tip+"</i>";
1253    $("#js_Currency").html(selected_con);
1254    setAllPrice(getCookie("currency"),getCookie("rate"),select_symbol_left);
1255}
1256
1257function getPaymentCode()
1258{
1259    if(document.getElementById("pay_online"))
1260    {
1261        var order_id=$("#pay_online").attr('order_id');
1262
1263        Ajax.call('user.php', 'act=get_payment_code&order_id='+order_id, getPaymentCodeResponse, 'POST', 'JSON');
1264    }
1265}
1266
1267function getPaymentCodeResponse(res)
1268{
1269    $("#pay_online").html(res.pay_online);
1270}
1271
1272
1273$(document).ready(function(){
1274    initCurrency();
1275    
1276    $("#country_icon1").attr('src','data/codeimg/'+country_icon);
1277    $("#country_icon2").attr('src','data/codeimg/'+country_icon);
1278    
1279    $("#country_name").html(country+',');
1280    $("#country").attr('value',country);
1281    var currency = getCookie("currency");
1282    if(currency == 'USD' || currency == 'CAD' || currency == 'AUD' || currency == 'HKD' || currency == 'EUR' || currency == 'GBP')
1283    {
1284        currency = symbol_left[currency_id];
1285    }
1286    $("#currency_code").html(currency);
1287    $(".currency_code").html(currency);
1288    $("#currency_name").attr('value',getCookie("currency"));
1289    
1290    $("#country_id").attr('value',country_id);
1291    $("#currency_id").attr('value',currency_id);
1292    $("#country_icon").attr('value',country_icon);
1293    $("#symbol_left").html(symbol_left[currency_id]);
1294    
1295    $(".c_currency").find('span').html(currency);
1296    
1297    $("#n_langue").show();
1298});
1299
1300function FormatDecimal(bit,strDecimal)
1301{
1302    var i=0;
1303    //补零    
1304    var strFill="";
1305    //四舍五入后要加的数值
1306    var addDecimal="0.";             
1307    while(i<bit)
1308    {           
1309      strFill=strFill+"0";
1310      if(i==bit-1)
1311      {            
1312         addDecimal=addDecimal+"1";            
1313      }
1314      else
1315      {            
1316         addDecimal=addDecimal+"0";
1317      }         
1318      i=i+1;         
1319    } 
1320    i=0;          
1321    var beginPlace=strDecimal.indexOf(".");
1322    //判断此浮点数是否无小数部份
1323    if(beginPlace==-1)
1324    {
1325         if(bit==0)
1326         {
1327         //精确位数到个位           
1328          return strDecimal;                      
1329         }
1330         // 精确位数到个位,小数位数不足时添零      
1331         return strDecimal+"."+strFill;         
1332    }            
1333    var strDecimalC=strDecimal+strFill;
1334    
1335    var str= strDecimalC.split(/[.]/);      
1336    var strInt=str[0];      
1337    var strDecimal=str[1]+strFill;
1338    var IntDecimal=parseFloat("0."+strDecimal);       
1339    var validPlace=beginPlace+bit+1;
1340    var validData=strDecimalC.substring(validPlace,validPlace+1);    
1341    //进行四舍五入判断
1342    if(parseInt(validData)>4)
1343    {  
1344         if(bit==0)
1345          {
1346              //精确位数到个位            
1347              return parseInt(strInt)+1;                    
1348          }
1349         //精确到小数的位数
1350         var differents="0."+strFill+strDecimal.substring(bit,strDecimal.length);
1351         IntDecimal=IntDecimal-parseFloat(differents);
1352         IntDecimal=IntDecimal+parseFloat(addDecimal);
1353   
1354         var DecimalValue=parseInt(strInt)+IntDecimal;
1355        
1356         if(DecimalValue.toString().indexOf(".")== -1 )//如果算出的值刚好为整数,如"30"; 
1357            DecimalValue=DecimalValue.toString()+".";//则在末尾加上小数点'.'
1358           
1359         strDecimalC=DecimalValue.toString(10)+strFill;
1360    }
1361    //strDecimalC为重新得到的浮点数字符串 
1362    var beginPlace=strDecimalC.indexOf(".");
1363    //得到整数部分                   
1364    var beginStr=strDecimalC.substring(0,beginPlace);
1365    if(bit==0)
1366    {      
1367        return beginStr;            
1368    }
1369    return strDecimalC.substring(0, beginPlace+bit+1);
1370}
1371
1372function setDefaultReturnPolicy(country_id = 0)
1373{
1374    country_id = country_id == undefined ? 0 : country_id;
1375    country_id = country_id > 0 ? country_id : getCookie("country_id");
1376    country_id = country_id == undefined ? 1783 : country_id;
1377
1378    if(!(country_id in free_amounts))
1379    {
1380        country_id = 1783;
1381    }
1382
1383    var app_usd_free_amount_value = free_amounts[country_id][4];
1384    var free_amount_usd = free_amounts[country_id][0];
1385    var free_amount = free_amounts[country_id][1];
1386    var free_amount_currency = free_amounts[country_id][2];
1387    var currencies_id = free_amounts[country_id][3];
1388    var symbol = symbol_left[currencies_id];
1389    free_amount = free_amount == undefined ? 69 : free_amount;
1390    free_amount_usd = free_amount_usd == undefined ? 69 : free_amount_usd;
1391
1392    $('.app_free_shipping_order_amount').attr('orgp',free_amount_usd).html(symbol+free_amount);
1393    if('app' in free_amounts[country_id])
1394    {
1395        var app_usd_free_amount_value = free_amounts[country_id]['app']['usd'];
1396        var app_usd_free_amount = free_amounts[country_id]['app']['value'];
1397        var app_currencies_id = free_amounts[country_id]['app']['currencies_id'];
1398        var app_symbol = symbol_left[app_currencies_id];
1399        $('.app_free_shipping_order_amount').attr('orgp',app_usd_free_amount_value).html(app_symbol+app_usd_free_amount);
1400        if(app_usd_free_amount_value == free_amount_usd) $('.app_line_through_amount').hide();
1401    }
1402    else
1403    {
1404        $('.app_line_through_amount').hide();
1405    }
1406
1407    if (country_id == '1783' || country_id == '1784' || country_id == '1793') //美国 英国 加拿大
1408    {
1409        $('.us_free_shipping_order_amount').attr('orgp',free_amount_usd).html(symbol+free_amount);
1410        $('.us-merchant-return-policy').show();
1411        $('.merchant-return-policy').hide();
1412        $('#return_policy_menu').show();
1413        $('#return_policy_menu .us-ul').removeClass('none');
1414        $('.article-return-policy').hide();
1415        $('.us-normal-return-policy').show();
1416        $('.product-shock-show').show();
1417        $('.sms_subscription_ads').show();
1418    }
1419    else
1420    {
1421        $('.free_shipping_order_amount').attr('orgp',free_amount_usd).html(symbol+free_amount);
1422        $('.us-merchant-return-policy').hide();
1423        $('.merchant-return-policy').show();
1424        if (country_id == '1793')
1425        {
1426            $('#return_policy_menu').show();
1427            $('#return_policy_menu .uk-ul').removeClass('none');
1428            $('.article-return-policy').hide();
1429            $('.uk-normal-return-policy').show();
1430        }
1431        else
1432        {
1433            $('#return_policy_menu').hide();
1434            $('.article-return-policy').hide();
1435            $('.normal-return-policy').show();
1436        }
1437        $('.product-shock-show').hide();
1438        $('.sms_subscription_ads').hide();
1439    }
1440
1441    let country_code = getCookie('country_code');
1442    country_code = country_code == '' || country_code == null ? 'US' : country_code;
1443    $('.payment-method-icons').each(function(){
1444        let countrys = $(this).attr('data-countrys');
1445        countrys = countrys == undefined ? '' : countrys;
1446        if(countrys == '')
1447        {
1448            $(this).removeClass('none_show');
1449        }
1450        else
1451        {
1452            countrys = countrys.split(',');
1453            let flag = false;
1454            for (var i = countrys.length - 1; i >= 0; i--)
1455            {
1456                if(countrys[i] == country_code)
1457                {
1458                    flag = true;
1459                }
1460            }
1461            if(flag)
1462            {
1463                $(this).removeClass('none_show');
1464            }
1465            else
1466            {
1467                $(this).addClass('none_show');
1468            }
1469        }
1470    });
1471}var country_id = "1783";
1472var default_size_display="1";
1473var size_variety_list = JSON.parse('{"1":"US","2":"UK","3":"CA","4":"AU","5":"EU","6":"INT","7":"NZ","8":"CN","9":"FR"}');
1474var size_list = JSON.parse('{"2":{"1":{"S":"S | US2-4","M":"M | US6-8","L":"L | US10-12","XL":"XL | US14-16","XXL":"XXL | US18"},"2":{"S":"S | UK6-8","M":"M | UK10-12","L":"L | UK14-16","XL":"XL | UK18-20","XXL":"XXL | UK22"},"3":{"S":"S | CA2-4","M":"M | CA6-8","L":"L | CA10-12","XL":"XL | CA14-16","XXL":"XXL | CA18"},"4":{"S":"S | AU6-8","M":"M | AU10-12","L":"L | AU14-16","XL":"XL | AU18-20","XXL":"XXL | AU22"},"5":{"S":"S | EU34-36","M":"M | EU38-40","L":"L | EU42-44","XL":"XL | EU46-48","XXL":"XXL | EU50"},"6":{"S":"S","M":"M","L":"L","XL":"XL","XXL":"XXL"},"7":{"S":"S | NZ6-8","M":"M | NZ10-12","L":"L | NZ14-16","XL":"XL | NZ18-20","XXL":"XXL | NZ22"}},"3":{"1":{"0X":"0X | US14","1X":"1X | US16-18","2X":"2X | US18W-20W","3X":"3X | US22W-24W"},"2":{"0X":"0X | UK18","1X":"1X | UK20-22","2X":"2X | UK22-24","3X":"3X | UK26-28"},"3":{"0X":"0X | CA14","1X":"1X | CA16-18","2X":"2X | CA18W-20W","3X":"3X | CA22W-24W"},"4":{"0X":"0X | AU18","1X":"1X | AU20-22","2X":"2X | AU22-24","3X":"3X | AU26-28"},"5":{"0X":"0X | EU46","1X":"1X | EU48-50","2X":"2X | EU50-52","3X":"3X | EU54-56"},"6":{"0X":"0X","1X":"1X","2X":"2X","3X":"3X"},"7":{"0X":"0X | NZ18","1X":"1X | NZ20-22","2X":"2X | NZ22-24","3X":"3X | NZ26-28"}},"4":{"1":{"S":"S | US4-6","M":"M | US8","L":"L | US10","XL":"XL | US12","XXL":"XXL | US14","XXXL":"XXXL | US16-18"},"2":{"S":"S | UK8-10","M":"M | UK12","L":"L | UK14","XL":"XL | UK16","XXL":"XXL | UK18","XXXL":"XXXL | UK20-22"},"3":{"S":"S | CA4-6","M":"M | CA8","L":"L | CA10","XL":"XL | CA12","XXL":"XXL | CA14","XXXL":"XXXL | CA16-18"},"4":{"S":"S | AU8-10","M":"M | AU12","L":"L | AU14","XL":"XL | AU16","XXL":"XXL | AU18","XXXL":"XXXL | AU20-22"},"5":{"S":"S | EU36-38","M":"M | EU40","L":"L | EU42","XL":"XL | EU44","XXL":"XXL | EU46","XXXL":"XXXL | EU48-50"},"6":{"S":"S","M":"M","L":"L","XL":"XL","XXL":"XXL","XXXL":"XXXL"},"7":{"S":"S | NZ8-10","M":"M | NZ12","L":"L | NZ14","XL":"XL | NZ16","XXL":"XXL | NZ18","XXXL":"XXXL | NZ20-22"}},"5":{"1":{"000":"US 000","00":"US 00","0":"US 0","2":"US 2","4":"US 4","6":"US 6","8":"US 8","10":"US 10","12":"US 12","14":"US 14","16":"US 16","18":"US 18","20":"US 20"}
1474,"2":{"000":"UK 0","00":"UK 2","0":"UK 4","2":"UK 6","4":"UK 8","6":"UK 10","8":"UK 10","10":"UK 12","12":"UK 14","14":"UK 16","16":"UK 18","18":"UK 20","20":"UK 22"},"3":{"000":"CA 000","00":"CA 00","0":"CA 0","2":"CA 2","4":"CA 4","6":"CA 6","8":"CA 8","10":"CA 10","12":"CA 12","14":"CA 14","16":"CA 16","18":"CA 18","20":"CA 20"},"4":{"000":"AU 0","00":"AU 2","0":"AU 4","2":"AU 6","4":"AU 8","6":"AU 10","8":"AU 10","10":"AU 12","12":"AU 14","14":"AU 16","16":"AU 18","18":"AU 20","20":"AU 22"},"5":{"000":"EU 28","00":"EU 30","0":"EU 32","2":"EU 34","4":"EU 36","6":"EU 38","8":"EU 38","10":"EU 40","12":"EU 42","14":"EU 44","16":"EU 46","18":"EU 48","20":"EU 50"},"6":{"000":"XXS | US000","00":"XXS | US00","0":"XS | US0","2":"XS | US2","4":"S | US4","6":"S | US6","8":"M | US8","10":"M | US10","12":"L | US12","14":"L | US14","16":"XL | US16","18":"XL | US18","20":"1X | US20"},"7":{"000":"NZ 0","00":"NZ 2","0":"NZ 4","2":"NZ 6","4":"NZ 8","6":"NZ 10","8":"NZ 10","10":"NZ 12","12":"NZ 14","14":"NZ 16","16":"NZ 18","18":"NZ 20","20":"NZ 22"}},"6":{"1":{"14W":"US 14W","16W":"US 16W","18W":"US 18W","20W":"US 20W","22W":"US 22W","24W":"US 24W"},"2":{"14W":"UK 20","16W":"UK 22","18W":"UK 24","20W":"UK 26","22W":"UK 28","24W":"UK 30"},"3":{"14W":"CA 14W","16W":"CA 16W","18W":"CA 18W","20W":"CA 20W","22W":"CA 22W","24W":"CA 24W"},"4":{"14W":"AU 20","16W":"AU 22","18W":"AU 24","20W":"AU 26","22W":"AU 28","24W":"AU 30"},"5":{"14W":"EU 48","16W":"EU 50","18W":"EU 52","20W":"EU 54","22W":"EU 56","24W":"EU 58"},"6":{"14W":"0X | US14W","16W":"1X | US16W","18W":"1X | US18W","20W":"2X | US20W","22W":"2X | US22W","24W":"3X | US24W"},"7":{"14W":"NZ 20","16W":"NZ 22","18W":"NZ 24","20W":"NZ 26","22W":"NZ 28","24W":"NZ 30"}},"7":{"1":{"5.5":"US 5.5","6.5":"US 6.5","7.5":"US 7.5","8.5":"US 8.5","9.5":"US 9.5"},"2":{"5.5":"UK 3.5","6.5":"UK 4.5","7.5":"UK 5.5","8.5":"UK 6.5","9.5":"UK 7.5"},"3":{"5.5":"CA 5.5","6.5":"CA 6.5","7.5":"CA 7.5","8.5":"CA 8.5","9.5":"CA 9.5"},"4":{"5.5":"AU 5.5","6.5":"AU 6.5","7.5":"AU 7.5","8.5":"AU 8.5","9.5":"AU 9.5"},"5":{"5.5":"EU 36","6.5":"EU 37","7.5":"EU 38","8.5":"EU 39","9.5":"EU 40"},"6":{"5.5":"INT 230","6.5":"INT 235","7.5":"INT 240","8.5":"INT 245","9.5":"INT 250"},"7":{"5.5":"NZ 5.5","6.5":"NZ 6.5","7.5":"NZ 7.5","8.5":"NZ 8.5","9.5":"NZ 9.5"}},"8":{"1":{"M":"S-M | US0-6","XL":"L-XL | US8-12","3XL":"2XL-3XL | US14-18","5XL":"4XL-5XL | US18W-20W","7XL":"6XL-7XL | US22W-24W"},"2":{"M":"S-M | UK4-10","XL":"L-XL | UK12-16","3XL":"2XL-3XL | UK18-22","5XL":"4XL-5XL | UK18W-20W","7XL":"6XL-7XL | UK26-28"},"3":{"M":"S-M | CA0-6","XL":"L-XL | CA8-12","3XL":"2XL-3XL | CA14-18","5XL":"4XL-5XL | CA18W-20W","7XL":"6XL-7XL | CA22W-24W"},"4":{"M":"S-M | AU4-10","XL":"L-XL | AU12-16","3XL":"2XL-3XL | AU18-22","5XL":"4XL-5XL | AU18W-20W","7XL":"6XL-7XL | AU26-28"},"5":{"M":"S-M | EU32-38","XL":"L-XL | EU40-44","3XL":"2XL-3XL | EU46-50","5XL":"4XL-5XL | EU40-52","7XL":"6XL-7XL | EU26-28"},"6":{"M":"S-M","XL":"L-XL","3XL":"2XL-3XL","5XL":"4XL-5XL","7XL":"6XL-7XL"},"7":{"M":"S-M | NZ4-10","XL":"L-XL | NZ12-16","3XL":"2XL-3XL | NZ18-22","5XL":"4XL-5XL | NZ18W-20W","7XL":"6XL-7XL | NZ26-28"}},"9":{"1":{"000":"000","00":"00","0":"0","2":"2","4":"4","6":"6","8":"8","10":"10","12":"12","14":"14","16":"16","18":"18","20":"20","18W":"18W","20W":"20W","22W":"22W","24W":"24W","26W":"26W","28W":"28W","30W":"30W","32W":"32W"},"2":{"000":"0","00":"2","0":"4","2":"6","4":"8","6":"10","8":"12","10":"14","12":"16","14":"18","16":"20","18":"22","20":"24","18W":"22","20W":"24","22W":"26","24W":"28","26W":"30","28W":"32","30W":"34","32W":"36"},"3":{"000":"000","00":"00","0":"0","2":"2","4":"4","6":"6","8":"8","10":"10","12":"12","14":"14","16":"16","18":"18","20":"20","18W":"18W","20W":"20W","22W":"22W","24W":"24W","26W":"26W","28W":"28W","30W":"30W","32W":"32W"},"4":{"000":"0","00":"2","0":"4","2":"6","4":"8","6":"10","8":"12","10":"14","12":"16","14":"18","16":"20","18":"22","20":"24","18W":"22","20W":"24","22W":"26","24W":"28","26W":"30","28W":"32","30W":"34","32W":"36"},"5":{"000":"28","00":"30","0":"32","2":"34","4":"36","6":"38","8":"40","10":"42","12":"44","14":"46","16":"48","18":"50","20":"52","18W":"50","20W":"52","22W":"54","24W":"56","26W":"58","28W":"60","30W":"62","32W":"64"},"7":{"000":"0","00":"2","0":"4","2":"6","4":"8","6":"10","8":"12","10":"14","12":"16","14":"18","16":"20","18":"22","20":"24","18W":"22","20W":"24","22W":"26","24W":"28","26W":"30","28W":"32","30W":"34","32W":"36"}}
1474,"10":{"1":{"XXS":"XXS | US000-00","XS":"XS | US0-2","S":"S | US4-6","M":"M | US8-10","L":"L | US12-14","XL":"XL | US16-18","XXL":"XXL | US20","1X":"1X | US18W-20W","2X":"2X | US22W-24W","3X":"3X | US26W-28W","4X":"4X | US30W-32W"},"2":{"XXS":"XXS | UK0-2","XS":"XS | UK4-6","S":"S | UK8-10","M":"M | UK12-14","L":"L | UK16-18","XL":"XL | UK20-22","XXL":"XXL | UK24","1X":"1X | UK22-24","2X":"2X | UK26-28","3X":"3X | UK30-32","4X":"4X | UK34-36"},"3":{"XXS":"XXS | CA000-00","XS":"XS | CA0-2","S":"S | CA4-6","M":"M | CA8-10","L":"L | CA12-14","XL":"XL | CA16-18","XXL":"XXL | CA20","1X":"1X | CA18W-20W","2X":"2X | CA22W-24W","3X":"3X | CA26W-28W","4X":"4X | CA30W-32W"},"4":{"XXS":"XXS | AU0-2","XS":"XS | AU4-6","S":"S | AU8-10","M":"M | AU12-14","L":"L | AU16-18","XL":"XL | AU20-22","XXL":"XXL | AU24","1X":"1X | AU22-24","2X":"2X | AU26-28","3X":"3X | AU30-32","4X":"4X | AU34-36"},"5":{"XXS":"XXS | EU28-30","XS":"XS | EU32-34","S":"S | EU36-38","M":"M | EU40-42","L":"L | EU44-46","XL":"XL | EU48-50","XXL":"XXL | EU52","1X":"1X | EU50-52","2X":"2X | EU54-56","3X":"3X | EU58-60","4X":"4X | EU62-64"},"6":{"XXS":"XXS","XS":"XS","S":"S","M":"M","L":"L","XL":"XL","XXL":"XXL","1X":"1X","2X":"2X","3X":"3X","4X":"4X"},"7":{"XXS":"XXS | NZ0-2","XS":"XS | NZ4-6","S":"S | NZ8-10","M":"M | NZ12-14","L":"L | NZ16-18","XL":"XL | NZ20-22","XXL":"XXL | NZ24","1X":"1X | NZ22-24","2X":"2X | NZ26-28","3X":"3X | NZ30-32","4X":"4X | NZ34-36"}}
1474,"11":{"1":{"XXS":"XXS | US000-00","XS":"XS | US0-2","S":"S | US4-6","M":"M | US8-10","L":"L | US12-14","XL":"XL | US16-18","XXL":"XXL | US20","1X":"1X | US18W-20W","2X":"2X | US22W-24W","3X":"3X | US26W-28W","4X":"4X | US30W-32W"},"2":{"XXS":"XXS | UK0-2","XS":"XS | UK4-6","S":"S | UK8-10","M":"M | UK12-14","L":"L | UK16-18","XL":"XL | UK20-22","XXL":"XXL | UK24","1X":"1X | UK22-24","2X":"2X | UK26-28","3X":"3X | UK30-32","4X":"4X | UK34-36"},"3":{"XXS":"XXS | CA000-00","XS":"XS | CA0-2","S":"S | CA4-6","M":"M | CA8-10","L":"L | CA12-14","XL":"XL | CA16-18","XXL":"XXL | CA20","1X":"1X | CA18W-20W","2X":"2X | CA22W-24W","3X":"3X | CA26W-28W","4X":"4X | CA30W-32W"},"4":{"XXS":"XXS | AU0-2","XS":"XS | AU4-6","S":"S | AU8-10","M":"M | AU12-14","L":"L | AU16-18","XL":"XL | AU20-22","XXL":"XXL | AU24","1X":"1X | AU22-24","2X":"2X | AU26-28","3X":"3X | AU30-32","4X":"4X | AU34-36"},"5":{"XXS":"XXS | EU28-30","XS":"XS | EU32-34","S":"S | EU36-38","M":"M | EU40-42","L":"L | EU44-46","XL":"XL | EU48-50","XXL":"XXL | EU52","1X":"1X | EU50-52","2X":"2X | EU54-56","3X":"3X | EU58-60","4X":"4X | EU62-64"},"6":{"XXS":"XXS","XS":"XS","S":"S","M":"M","L":"L","XL":"XL","XXL":"XXL","1X":"1X","2X":"2X","3X":"3X","4X":"4X"},"7":{"XXS":"XXS | NZ0-2","XS":"XS | NZ4-6","S":"S | NZ8-10","M":"M | NZ12-14","L":"L | NZ16-18","XL":"XL | NZ20-22","XXL":"XXL | NZ24","1X":"1X | NZ22-24","2X":"2X | NZ26-28","3X":"3X | NZ30-32","4X":"4X | NZ34-36"}},"12":{"1":{"000":"US 000","00":"US 00","0":"US 0","2":"US 2","4":"US 4","6":"US 6","8":"US 8","10":"US 10","12":"US 12","14":"US 14","16":"US 16","18":"US 18","20":"US 20","18W":"US 18W","20W":"US 20W","22W":"US 22W","24W":"US 24W","26W":"US 26W","28W":"US 28W","30W":"US 30W","32W":"US 32W"},"2":{"000":"UK 0","00":"UK 2","0":"UK 4","2":"UK 6","4":"UK 8","6":"UK 10","8":"UK 12","10":"UK 14","12":"UK 16","14":"UK 18","16":"UK 20","18":"UK 22","20":"UK 24","18W":"UK 22","20W":"UK 24","22W":"UK 26","24W":"UK 28","26W":"UK 30","28W":"UK 32","30W":"UK 34","32W":"UK 36"},"3":{"000":"CA 000","00":"CA 00","0":"CA 0","2":"CA 2","4":"CA 4","6":"CA 6","8":"CA 8","10":"CA 10","12":"CA 12","14":"CA 14","16":"CA 16","18":"CA 18","20":"CA 20","18W":"CA 18W","20W":"CA 20W","22W":"CA 22W","24W":"CA 24W","26W":"CA 26W","28W":"CA 28W","30W":"CA 30W","32W":"CA 32W"},"4":{"000":"AU 0","00":"AU 2","0":"AU 4","2":"AU 6","4":"AU 8","6":"AU 10","8":"AU 12","10":"AU 14","12":"AU 16","14":"AU 18","16":"AU 20","18":"AU 22","20":"AU 24","18W":"AU 22","20W":"AU 24","22W":"AU 26","24W":"AU 28","26W":"AU 30","28W":"AU 32","30W":"AU 34","32W":"AU 36"},"5":{"000":"EU 28","00":"EU 30","0":"EU 32","2":"EU 34","4":"EU 36","6":"EU 38","8":"EU 40","10":"EU 42","12":"EU 44","14":"EU 46","16":"EU 48","18":"EU 50","20":"EU 52","18W":"EU 50","20W":"EU 52","22W":"EU 54","24W":"EU 56","26W":"EU 58","28W":"EU 60","30W":"EU 62","32W":"EU 64"},"6":{"000":"XXS | US000","00":"XXS | US00","0":"XS | US0","2":"XS | US2","4":"S | US4","6":"S | US6","8":"M | US8","10":"M | US10","12":"L | US12","14":"L | US14","16":"XL | US16","18":"XL | US18","20":"XXL | US20","18W":"1X | US18W","20W":"1X | US20W","22W":"2X | US22W","24W":"2X | US24W","26W":"3X | US26W","28W":"3X | US28W","30W":"4X | US30W","32W":"4X | US32W"},"7":{"000":"NZ 0","00":"NZ 2","0":"NZ 4","2":"NZ 6","4":"NZ 8","6":"NZ 10","8":"NZ 12","10":"NZ 14","12":"NZ 16","14":"NZ 18","16":"NZ 20","18":"NZ 22","20":"NZ 24","18W":"NZ 22","20W":"NZ 24","22W":"NZ 26","24W":"NZ 28","26W":"NZ 30","28W":"NZ 32","30W":"NZ 34","32W":"NZ 36"}},"13":{"1":{"000":"US 000","00":"US 00","0":"US 0","2":"US 2","4":"US 4","6":"US 6","8":"US 8","10":"US 10","12":"US 12","14":"US 14","16":"US 16","18":"US 18","20":"US 20","18W":"US 18W","20W":"US 20W","22W":"US 22W","24W":"US 24W","26W":"US 26W","28W":"US 28W","30W":"US 30W","32W":"US 32W"},"2":{"000":"UK 0","00":"UK 2","0":"UK 4","2":"UK 6","4":"UK 8","6":"UK 10","8":"UK 12","10":"UK 14","12":"UK 16","14":"UK 18","16":"UK 20","18":"UK 22","20":"UK 24","18W":"UK 22","20W":"UK 24","22W":"UK 26","24W":"UK 28","26W":"UK 30","28W":"UK 32","30W":"UK 34","32W":"UK 36"},"3":{"000":"CA 000","00":"CA 00","0":"CA 0","2":"CA 2","4":"CA 4","6":"CA 6","8":"CA 8","10":"CA 10","12":"CA 12","14":"CA 14","16":"CA 16","18":"CA 18","20":"CA 20","18W":"CA 18W","20W":"CA 20W","22W":"CA 22W","24W":"CA 24W","26W":"CA 26W","28W":"CA 28W","30W":"CA 30W","32W":"CA 32W"},"4":{"000":"AU 0","00":"AU 2","0":"AU 4","2":"AU 6","4":"AU 8","6":"AU 10","8":"AU 12","10":"AU 14","12":"AU 16","14":"AU 18","16":"AU 20","18":"AU 22","20":"AU 24","18W":"AU 22","20W":"AU 24","22W":"AU 26","24W":"AU 28","26W":"AU 30","28W":"AU 32","30W":"AU 34","32W":"AU 36"},"5":{"000":"EU 28","00":"EU 30","0":"EU 32","2":"EU 34","4":"EU 36","6":"EU 38","8":"EU 40","10":"EU 42","12":"EU 44","14":"EU 46","16":"EU 48","18":"EU 50","20":"EU 52","18W":"EU 50","20W":"EU 52","22W":"EU 54","24W":"EU 56","26W":"EU 58","28W":"EU 60","30W":"EU 62","32W":"EU 64"},"6":{"000":"XXS | US000","00":"XXS | US00","0":"XS | US0","2":"XS | US2","4":"S | US4","6":"S | US6","8":"M | US8","10":"M | US10","12":"L | US12","14":"L | US14","16":"XL | US16","18":"XL | US18","20":"XXL | US20","18W":"1X | US18W","20W":"1X | US20W","22W":"2X | US22W","24W":"2X | US24W","26W":"3X | US26W","28W":"3X | US28W","30W":"4X | US30W","32W":"4X | US32W"},"7":{"000":"NZ 0","00":"NZ 2","0":"NZ 4","2":"NZ 6","4":"NZ 8","6":"NZ 10","8":"NZ 12","10":"NZ 14","12":"NZ 16","14":"NZ 18","16":"NZ 20","18":"NZ 22","20":"NZ 24","18W":"NZ 22","20W":"NZ 24","22W":"NZ 26","24W":"NZ 28","26W":"NZ 30","28W":"NZ 32","30W":"NZ 34","32W":"NZ 36"}},"14":{"1":{"36":"EU36 | US6","37":"EU37 | US6.5","38":"EU38 | US7","39":"EU39 | US7.5","40":"EU40 | US8.5","41":"EU41 | US9","42":"EU42 | US9.5","43":"EU43 | US10","44":"EU44 | US11","45":"EU45 | US12"},"2":{"36":"EU36 | UK4","37":"EU37 | UK4.5","38":"EU38 | UK5","39":"EU39 | UK5.5","40":"EU40 | UK6.5","41":"EU41 | UK7","42":"EU42 | UK7.5","43":"EU43 | UK8","44":"EU44 | UK8.5","45":"EU45 | UK9"},"3":{"36":"EU36 | CA6","37":"EU37 | CA6.5","38":"EU38 | CA7","39":"EU39 | CA7.5","40":"EU40 | CA8.5","41":"EU41 | CA9","42":"EU42 | CA9.5","43":"EU43 | CA10","44":"EU44 | CA11","45":"EU45 | CA12"},"4":{"36":"EU36 | AU5.5","37":"EU37 | AU6.5","38":"EU38 | AU7.5","39":"EU39 | AU8.5","40":"EU40 | AU9.5","41":"EU41 | AU10.5","42":"EU42 | AU11.5","43":"EU43 | AU12.5","44":"EU44 | AU13.5","45":"EU45 | AU14.5"},"5":{"36":"36","37":"37","38":"38","39":"39","40":"40","41":"41","42":"42","43":"43","44":"44","45":"45"},"7":{"36":"EU36 | NZ5.5","37":"EU37 | NZ6.5","38":"EU38 | NZ7.5","39":"EU39 | NZ8.5","40":"EU40 | NZ9.5","41":"EU41 | NZ10.5","42":"EU42 | NZ11.5","43":"EU43 | NZ12.5","44":"EU44 | NZ13.5","45":"EU45 | NZ14.5"}},"15":{"1":{"23":"CN23 | US6","23.5":"CN23.5 | US6.5","24":"CN24 | US7","24.5":"CN24.5 | US7.5","25":"CN25 | US8.5"},"2":{"23":"CN23 | UK4","23.5":"CN23.5 | UK4.5","24":"CN24 | UK5","24.5":"CN24.5 | UK5.5","25":"CN25 | UK6.5"}
1474,"3":{"23":"CN23 | CA6","23.5":"CN23.5 | CA6.5","24":"CN24 | CA7","24.5":"CN24.5 | CA7.5","25":"CN25 | CA8.5"},"4":{"23":"CN23 | AU5.5","23.5":"CN23.5 | AU6.5","24":"CN24 | AU7.5","24.5":"CN24.5 | AU8.5","25":"CN25 | AU9.5"},"5":{"23":"CN23 | EU36","23.5":"CN23.5 | EU37","24":"CN24 | EU38","24.5":"CN24.5 | EU39","25":"CN25 | EU40"},"7":{"23":"CN23 | NZ5.5","23.5":"CN23.5 | NZ6.5","24":"CN24 | NZ7.5","24.5":"CN24.5 | NZ8.5","25":"CN25 | NZ9.5"},"8":{"23":"23","23.5":"23.5","24":"24","24.5":"24.5","25":"25"}},"16":{"1":{"S":"S | 28-30","M":"M | 32-34","L":"L | 36-38","XL":"XL | 40-42","2XL":"2XL | 44-46","3XL":"3XL | 48-50","4XL":"4XL | 52-54","5XL":"5XL | 56-58"},"2":{"S":"S | 28-30","M":"M | 32-34","L":"L | 36-38","XL":"XL | 40-42","2XL":"2XL | 44-46","3XL":"3XL | 48-50","4XL":"4XL | 52-54","5XL":"5XL | 56-58"},"3":{"S":"S | 28-30","M":"M | 32-34","L":"L | 36-38","XL":"XL | 40-42","2XL":"2XL | 44-46","3XL":"3XL | 48-50","4XL":"4XL | 52-54","5XL":"5XL | 56-58"},"4":{"S":"S | 28-30","M":"M | 32-34","L":"L | 36-38","XL":"XL | 40-42","2XL":"2XL | 44-46","3XL":"3XL | 48-50","4XL":"4XL | 52-54","5XL":"5XL | 56-58"},"5":{"S":"S | 28-30","M":"M | 32-34","L":"L | 36-38","XL":"XL | 40-42","2XL":"2XL | 44-46","3XL":"3XL | 48-50","4XL":"4XL | 52-54","5XL":"5XL | 56-58"},"6":{"S":"S | 28-30","M":"M | 32-34","L":"L | 36-38","XL":"XL | 40-42","2XL":"2XL | 44-46","3XL":"3XL | 48-50","4XL":"4XL | 52-54","5XL":"5XL | 56-58"},"7":{"S":"S | 28-30","M":"M | 32-34","L":"L | 36-38","XL":"XL | 40-42","2XL":"2XL | 44-46","3XL":"3XL | 48-50","4XL":"4XL | 52-54","5XL":"5XL | 56-58"},"8":{"S":"S | 28-30","M":"M | 32-34","L":"L | 36-38","XL":"XL | 40-42","2XL":"2XL | 44-46","3XL":"3XL | 48-50","4XL":"4XL | 52-54","5XL":"5XL | 56-58"}},"17":{"1":{"71":"28","74":"29","76":"30","79":"31","81":"32","84":"33","86":"34","89":"35","91":"36","94":"37","97":"38","99":"39","102":"40","104":"41","107":"42","109":"43","112":"44","114":"45","117":"46","119":"47","122":"48","124":"49","127":"50","130":"51","132":"52","135":"53","137":"54","140":"55","142":"56","145":"57","147":"58"},"2":{"71":"28","74":"29","76":"30","79":"31","81":"32","84":"33","86":"34","89":"35","91":"36","94":"37","97":"38","99":"39","102":"40","104":"41","107":"42","109":"43","112":"44","114":"45","117":"46","119":"47","122":"48","124":"49","127":"50","130":"51","132":"52","135":"53","137":"54","140":"55","142":"56","145":"57","147":"58"},"3":{"71":"28","74":"29","76":"30","79":"31","81":"32","84":"33","86":"34","89":"35","91":"36","94":"37","97":"38","99":"39","102":"40","104":"41","107":"42","109":"43","112":"44","114":"45","117":"46","119":"47","122":"48","124":"49","127":"50","130":"51","132":"52","135":"53","137":"54","140":"55","142":"56","145":"57","147":"58"},"4":{"71":"28","74":"29","76":"30","79":"31","81":"32","84":"33","86":"34","89":"35","91":"36","94":"37","97":"38","99":"39","102":"40","104":"41","107":"42","109":"43","112":"44","114":"45","117":"46","119":"47","122":"48","124":"49","127":"50","130":"51","132":"52","135":"53","137":"54","140":"55","142":"56","145":"57","147":"58"},"5":{"71":"28","74":"29","76":"30","79":"31","81":"32","84":"33","86":"34","89":"35","91":"36","94":"37","97":"38","99":"39","102":"40","104":"41","107":"42","109":"43","112":"44","114":"45","117":"46","119":"47","122":"48","124":"49","127":"50","130":"51","132":"52","135":"53","137":"54","140":"55","142":"56","145":"57","147":"58"},"6":{"71":"28","74":"29","76":"30","79":"31","81":"32","84":"33","86":"34","89":"35","91":"36","94":"37","97":"38","99":"39","102":"40","104":"41","107":"42","109":"43","112":"44","114":"45","117":"46","119":"47","122":"48","124":"49","127":"50","130":"51","132":"52","135":"53","137":"54","140":"55","142":"56","145":"57","147":"58"},"7":{"71":"28","74":"29","76":"30","79":"31","81":"32","84":"33","86":"34","89":"35","91":"36","94":"37","97":"38","99":"39","102":"40","104":"41","107":"42","109":"43","112":"44","114":"45","117":"46","119":"47","122":"48","124":"49","127":"50","130":"51","132":"52","135":"53","137":"54","140":"55","142":"56","145":"57","147":"58"},"8":{"71":"28","74":"29","76":"30","79":"31","81":"32","84":"33","86":"34","89":"35","91":"36","94":"37","97":"38","99":"39","102":"40","104":"41","107":"42","109":"43","112":"44","114":"45","117":"46","119":"47","122":"48","124":"49","127":"50","130":"51","132":"52","135":"53","137":"54","140":"55","142":"56","145":"57","147":"58"}},"19":{"1":{"32A":"32A | 32A","32B":"32B | 32B","32C":"32C | 32C","32D":"32D | 32D","32DD":"32DD | 32DD","32DDD":"32DDD | 32DDD","34A":"34A | 34A","34B":"34B | 34B","34C":"34C | 34C","34D":"34D | 34D","34DD":"34DD | 34DD","34DDD":"34DDD | 34DDD","36A":"36A | 36A","36B":"36B | 36B","36C":"36C | 36C","36D":"36D | 36D","36DD":"36DD | 36DD","36DDD":"36DDD | 36DDD","38A":"38A | 38A","38B":"38B | 38B","38C":"38C | 38C","38D":"38D | 38D","38DD":"38DD | 38DD","38DDD":"38DDD | 38DDD","40A":"40A | 40A","40B":"40B | 40B","40C":"40C | 40C","40D":"40D | 40D","40DD":"40DD | 40DD","40DDD":"40DDD | 40DDD"},"2":{"32A":"32A | 32A","32B":"32B | 32B","32C":"32C | 32C","32D":"32D | 32D","32DD":"32DD | 32DD","32DDD":"32DDD | 32DDD","34A":"34A | 34A","34B":"34B | 34B","34C":"34C | 34C","34D":"34D | 34D","34DD":"34DD | 34DD","34DDD":"34DDD | 34DDD","36A":"36A | 36A","36B":"36B | 36B","36C":"36C | 36C","36D":"36D | 36D","36DD":"36DD | 36DD","36DDD":"36DDD | 36DDD","38A":"38A | 38A","38B":"38B | 38B","38C":"38C | 38C","38D":"38D | 38D","38DD":"38DD | 38DD","38DDD":"38DDD | 38DDD","40A":"40A | 40A","40B":"40B | 40B","40C":"40C | 40C","40D":"40D | 40D","40DD":"40DD | 40DD","40DDD":"40DDD | 40DDD"},"3":{"32A":"32A | 32A","32B":"32B | 32B","32C":"32C | 32C","32D":"32D | 32D","32DD":"32DD | 32DD","32DDD":"32DDD | 32DDD","34A":"34A | 34A","34B":"34B | 34B","34C":"34C | 34C","34D":"34D | 34D","34DD":"34DD | 34DD","34DDD":"34DDD | 34DDD","36A":"36A | 36A","36B":"36B | 36B","36C":"36C | 36C","36D":"36D | 36D","36DD":"36DD | 36DD","36DDD":"36DDD | 36DDD","38A":"38A | 38A","38B":"38B | 38B","38C":"38C | 38C","38D":"38D | 38D","38DD":"38DD | 38DD","38DDD":"38DDD | 38DDD","40A":"40A | 40A","40B":"40B | 40B","40C":"40C | 40C","40D":"40D | 40D","40DD":"40DD | 40DD","40DDD":"40DDD | 40DDD"},"4":{"32A":"10A | 32A","32B":"10B | 32B","32C":"10C | 32C","32D":"10D | 32D","32DD":"10DD | 32DD","32DDD":"10E | 32DD
1474D","34A":"12A | 34A","34B":"12B | 34B","34C":"12C | 34C","34D":"12D | 34D","34DD":"12DD | 34DD","34DDD":"12DDD | 34DDD","36A":"14A | 36A","36B":"14B | 36B","36C":"14C | 36C","36D":"14D | 36D","36DD":"14DD | 36DD","36DDD":"14DDD | 36DDD","38A":"16A | 38A","38B":"16B | 38B","38C":"16C | 38C","38D":"16D | 38D","38DD":"16DD | 38DD","38DDD":"16DDD | 38DDD","40A":"18A | 40A","40B":"18B | 40B","40C":"18C | 40C","40D":"18D | 40D","40DD":"18DD | 40DD","40DDD":"18DDD | 40DDD"},"5":{"32A":"70A | 32A","32B":"70B | 32B","32C":"70C | 32C","32D":"70D | 32D","32DD":"70E | 32DD","32DDD":"70E | 32DDD","34A":"75A | 34A","34B":"75B | 34B","34C":"75C | 34C","34D":"75D | 34D","34DD":"75E | 34DD","34DDD":"75F | 34DDD","36A":"80A | 36A","36B":"80B | 36B","36C":"80C | 36C","36D":"80D | 36D","36DD":"80E | 36DD","36DDD":"80F | 36DDD","38A":"85A | 38A","38B":"85B | 38B","38C":"85C | 38C","38D":"85D | 38D","38DD":"85E | 38DD","38DDD":"85F | 38DDD","40A":"90A | 40A","40B":"90B | 40B","40C":"90C | 40C","40D":"90D | 40D","40DD":"90E | 40DD","40DDD":"90F | 40DDD"},"9":{"32A":"85A | 32A","32B":"85B | 32B","32C":"85C | 32C","32D":"85D | 32D","32DD":"85E | 32DD","32DDD":"85E | 32DDD","34A":"90A | 34A","34B":"90B | 34B","34C":"90C | 34C","34D":"90D | 34D","34DD":"90E | 34DD","34DDD":"90F | 34DDD","36A":"95A | 36A","36B":"95B | 36B","36C":"95C | 36C","36D":"95D | 36D","36DD":"95E | 36DD","36DDD":"95F | 36DDD","38A":"100A | 38A","38B":"100B | 38B","38C":"100C | 38C","38D":"100D | 38D","38DD":"100E | 38DD","38DDD":"100F | 38DDD","40A":"105A | 40A","40B":"105B | 40B","40C":"105C | 40C","40D":"105D | 40D","40DD":"105E | 40DD","40DDD":"105F | 40DDD"}},"20":{"1":{"70A":"US32A | 70A","70B":"US32B | 70B","70C":"US32C | 70C","70D":"US32D | 70D","70E":"US32DD | 70E","70F":"US32DDDD | 70F","75A":"US34A | 75A","75B":"US34B | 75B","75C":"US34C | 75C","75D":"US34D | 75D","75E":"US34DD | 75E","75F":"US34DDDD | 75F","80A":"US36A | 80A","80B":"US36B | 80B","80C":"US36C | 80C","80D":"US36D | 80D","80E":"US36DD | 80E","80F":"US36DDDD | 80F","85A":"US38A | 85A","85B":"US38B | 85B","85C":"US38C | 85C","85D":"US38D | 85D","85E":"US38DD | 85E","85F":"US38DDDD | 85F","90A":"US40A | 90A","90B":"US40B | 90B","90C":"US40C | 90C","90D":"US40D | 90D","90E":"US40DD | 90E","90F":"US40DDDD | 90F"},"2":{"70A":"UK32A | 70A","70B":"UK32B | 70B","70C":"UK32C | 70C","70D":"UK32D | 70D","70E":"UK32DD | 70E","70F":"UK32DDDD | 70F","75A":"UK34A | 75A","75B":"UK34B | 75B","75C":"UK34C | 75C","75D":"UK34D | 75D","75E":"UK34DD | 75E","75F":"UK34DDDD | 75F","80A":"UK36A | 80A","80B":"UK36B | 80B","80C":"UK36C | 80C","80D":"UK36D | 80D","80E":"UK36DD | 80E","80F":"UK36DDDD | 80F","85A":"UK38A | 85A","85B":"UK38B | 85B","85C":"UK38C | 85C","85D":"UK38D | 85D","85E":"UK38DD | 85E","85F":"UK38DDDD | 85F","90A":"UK40A | 90A","90B":"UK40B | 90B","90C":"UK40C | 90C","90D":"UK40D | 90D","90E":"UK40DD | 90E","90F":"UK40DDDD | 90F"},"3":{"70A":"CA32A | 70A","70B":"CA32B | 70B","70C":"CA32C | 70C","70D":"CA32D | 70D","70E":"CA32DD | 70E","70F":"CA32DDDD | 70F","75A":"CA34A | 75A","75B":"CA34B | 75B","75C":"CA34C | 75C","75D":"CA34D | 75D","75E":"CA34DD | 75E","75F":"CA34DDDD | 75F","80A":"CA36A | 80A","80B":"CA36B | 80B","80C":"CA36C | 80C","80D":"CA36D | 80D","80E":"CA36DD | 80E","80F":"CA36DDDD | 80F","85A":"CA38A | 85A","85B":"CA38B | 85B","85C":"CA38C | 85C","85D":"CA38D | 85D","85E":"CA38DD | 85E","85F":"CA38DDDD | 85F","90A":"CA40A | 90A","90B":"CA40B | 90B","90C":"CA40C | 90C","90D":"CA40D | 90D","90E":"CA40DD | 90E","90F":"CA40DDDD | 90F"},"4":{"70A":"AU10A | 70A","70B":"AU10B | 70B","70C":"AU10C | 70C","70D":"AU10D | 70D","70E":"AU10DD | 70E","70F":"AU10E | 70F","75A":"AU12A | 75A","75B":"AU12B | 75B","75C":"AU12C | 75C","75D":"AU12D | 75D","75E":"AU12DD | 75E","75F":"AU12DDDD | 75F","80A":"AU14A | 80A","80B":"AU14B | 80B","80C":"AU14C | 80C","80D":"AU14D | 80D","80E":"AU14DD | 80E","80F":"AU14DDDD | 80F","85A":"AU16A | 85A","85B":"AU16B | 85B","85C":"AU16C | 85C","85D":"AU16D | 85D","85E":"AU16DD | 85E","85F":"AU16DDDD | 85F","90A":"AU18A | 90A","90B":"AU18B | 90B","90C":"AU18C | 90C","90D":"AU18D | 90D","90E":"AU18DD | 90E","90F":"AU18DDDD | 90F"},"5":{"70A":"EU70A | 70A","70B":"EU70B | 70B","70C":"EU70C | 70C","70D":"EU70D | 70D","70E":"EU70E | 70E","70F":"EU70F | 70F","75A":"EU75A | 75A","75B":"EU75B | 75B","75C":"EU75C | 75C","75D":"EU75D | 75D","75E":"EU75E | 75E","75F":"EU75F | 75F","80A":"EU80A | 80A","80B":"EU80B | 80B","80C":"EU80C | 80C","80D":"EU80D | 80D","80E":"EU80E | 80E","80F":"EU80F | 80F","85A":"EU85A | 85A","85B":"EU85B | 85B","85C":"EU85C | 85C","85D":"EU85D | 85D","85E":"EU85E | 85E","85F":"EU85F | 85F","90A":"EU90A | 90A","90B":"EU90B | 90B","90C":"EU90C | 90C","90D":"EU90D | 90D","90E":"EU90E | 90E","90F":"EU90F | 90F"},"9":{"70A":"FR85A | 70A","70B":"FR85B | 70B","70C":"FR85C | 70C","70D":"FR85D | 70D","70E":"FR85E | 70E","70F":"FR85F | 70F","75A":"FR90A | 75A","75B":"FR90B | 75B","75C":"FR90C | 75C","75D":"FR90D | 75D","75E":"FR90E | 75E","75F":"FR90F | 75F","80A":"FR95A | 80A","80B":"FR95B | 80B","80C":"FR95C | 80C","80D":"FR95D | 80D","80E":"FR95E | 80E","80F":"FR95F | 80F","85A":"FR100A | 85A","85B":"FR100B | 85B","85C":"FR100C | 85C","85D":"FR100D | 85D","85E":"FR100E | 85E","85F":"FR100F | 85F","90A":"FR105A | 90A","90B":"FR105B | 90B","90C":"FR105C | 90C","90D":"FR105D | 90D","90E":"FR105E | 90E","90F":"FR105F | 90F"}}}');
1475
1476var size_list1= JSON.parse('{"5":{"5":{"8":"EU 38|FR 40","10":"EU 40|FR 42","12":"EU 42|FR 44","14":"EU 44|FR 46","16":"EU 46|FR 48","18":"EU 48|FR 50","20":"EU 50|FR 52"}},"6":{"5":{"14W":"EU 44|FR 44","16W":"EU 46|FR 46","18W":"EU 48|FR 48","20W":"EU 50|FR 50","22W":"EU 52|FR 52","24W":"EU 54|FR 54"}}}');
1477var size_list2= JSON.parse('{"5":{"5":{"8":"EU 38|IT 44","10":"EU 40|IT 46","12":"EU 42|IT 48","14":"EU 44|IT 50","16":"EU 46|IT 52","18":"EU 48|IT 54","20":"EU 50|IT 56"}},"6":{"5":{"14W":"EU 44|IT 48","16W":"EU 46|IT 50","18W":"EU 48|IT 52","20W":"EU 50|IT 54","22W":"EU 52|IT 56","24W":"EU 54|IT 58"}}}');
1478
1479var size_arr = new Array();
1480var size_arr1 = new Array();
1481var size_arr2 = new Array();
1482
1483    size_arr[0] = "2";
1484    size_arr[1] = "3";
1485    size_arr[2] = "4";
1486    size_arr[3] = "5";
1487    size_arr[4] = "6";
1488    size_arr[5] = "7";
1489    size_arr[6] = "8";
1490    size_arr[7] = "9";
1491    size_arr[8] = "10";
1492    size_arr[9] = "11";
1493    size_arr[10] = "12";
1494    size_arr[11] = "13";
1495    size_arr[12] = "14";
1496    size_arr[13] = "15";
1497    size_arr[14] = "16";
1498    size_arr[15] = "17";
1499    size_arr[16] = "19";
1500    size_arr[17] = "20";
1501
1502    size_arr1[0] = "2";
1503    size_arr1[1] = "3";
1504    size_arr1[2] = "4";
1505    size_arr1[3] = "8";
1506    size_arr1[4] = "9";
1507    size_arr1[5] = "10";
1508    size_arr1[6] = "11";
1509    size_arr1[7] = "14";
1510    size_arr1[8] = "15";
1511    size_arr1[9] = "17";
1512
1513    size_arr2[0] = "9";
1514    size_arr2[1] = "17";
1515
1516if(getCookie("size_display")==null)
1517{
1518    setCookie("size_display",default_size_display,30);
1519}
1520
1521function setSizeDisplay(size_display)
1522{
1523    setCookie("size_display",size_display,30);
1524    setAllSizeDisplay(size_display);
1525    //修改购物车已存在的产品
1526    insert_dynamic('cart_info');
1527}
1528
1529function setAllSizeDisplay(size_display)
1530{
1531    var country_id = getCookie("country_id");
1532    if ($(".size_display").length>0) 
1533    {
1534        $(".size_display").val(size_display);
1535    }
1536    var is_filter = $('#js_cate_attr').length;
1537    $(".my_shop_size").each(function(){
1538        //获取美金价格
1539        var size_val=$(this).attr('sorgp');
1540        var size_type=$(this).attr('stype');
1541        var size_saus=$(this).attr('saus');
1542        size_saus=(typeof size_saus =='undefined')?'':size_saus;
1543        if (size_in_array(size_type,size_arr))
1544        {
1545            var size_dis=$(this).html();
1546            if (size_in_array(size_type,size_arr1)) 
1547            {
1548                size_dis=size_val;
1549                size_display=(size_display=='6' || (size_display=='8' && size_type!='15'))?'1':size_display;
1550                $(".size_display").val(size_display);
1551                if(size_in_array(size_type,size_arr2) && size_saus!='')
1552                {
1553                    var str=size_type == '9'?size_val+' | '+size_variety_list[size_display]:size_val+' | ';
1554                    if (size_saus.indexOf("-") != -1) 
1555                    {
1556                        var attr_us_size = size_saus.split('-');
1557                        var us_start=attr_us_size[0] != ''?size_list[size_type][size_display][attr_us_size[0]]:'';
1558                        var us_end=attr_us_size[1] != ''?size_list[size_type][size_display][attr_us_size[1]]:'';
1559                        str+=us_start+'-'+us_end;
1560                    }
1561                    else
1562                    {
1563                        str+= size_list[size_type][size_display][size_saus];
1564                    }
1565                    size_dis = str;
1566                }
1567                else if(size_type != '9')
1568                {
1569                    if(typeof(size_list[size_type][size_display]) != 'undefined' && typeof(size_list[size_type][size_display][size_val]) != 'undefined')
1570                    {
1571                        size_dis=size_list[size_type][size_display][size_val];
1572                    }
1573                }
1574            }
1575            else
1576            {
1577                size_display = ((size_display=='8' && size_type!='15')) ? '1' : size_display;
1578                if(typeof(size_list[size_type][size_display]) != 'undefined' && typeof(size_list[size_type][size_display][size_val]) != 'undefined')
1579                {
1580                    size_dis=size_list[size_type][size_display][size_val];
1581                }
1582            }
1583            size_dis = (size_dis == undefined || size_dis == 'undefined') ? size_val : size_dis;
1584            if(is_filter > 0 && size_display == 6)
1585            {
1586                if(size_dis.indexOf('|') > -1)
1587                {
1588                    var str = size_dis.split('|');
1589                    size_dis = Utils.trim(str[1]);
1590                }
1591            }
1592            $(this).html(size_dis);
1593            if ($(this).attr('label')) 
1594            {
1595                $(this).attr('label',size_dis);
1596            }
1597        }
1598    }); 
1599}
1600
1601function initSizeDisplay()
1602{
1603    var size_display = getCookie("size_display");
1604    setAllSizeDisplay(size_display);
1605}
1606//检测数组中是否存在某个字符串
1607function size_in_array(search,array)
1608{
1609    for(var i in array)
1610    {
1611        if(array[i]==search)
1612        {
1613            return true;
1614        }
1615    }
1616    return false;
1617}
1618$(document).ready(function(){
1619    initSizeDisplay();
1620});var country_id = "1783";
1621var default_language_show="0";
1622var language_show_list = JSON.parse('{"0":"English","2":"Français","4":"Deutsch","3":"Español","5":"Italiano","1":"عربي"}');
1623var language_show_codes= JSON.parse('["en","ar","fr","es","de","it"]');
1624var language_googtrans= JSON.parse('{"\/en\/en":0,"\/en\/ar":1,"\/en\/fr":2,"\/en\/es":3,"\/en\/de":4,"\/en\/it":5}');
1625var tpl_lang= 'en';
1626var enUrl= 'https://www.rotita.com/';
1627
1628var googtrans = getCookie("googtrans");
1629googtrans = googtrans == undefined ? '' : googtrans;
1630if(googtrans == '')
1631{
1632    let googtrans_code=language_show_codes[default_language_show];
1633    googtrans=`/en/${googtrans_code}`;
1634    var use_language_show = "0";
1635    if(use_language_show == 1)
1636    {
1637        setCookie("googtrans",googtrans,30,'/');
1638    }
1639}
1640else
1641{
1642    if(tpl_lang != 'en')
1643    {
1644        setCookie("googtrans",'',30,'/');
1645    }
1646}
1647
1648function googleTranslateElementInit() 
1649{
1650    new google.translate.TranslateElement({
1651        pageLanguage: 'en',
1652        includedLanguages: 'en,ar,fr,es,de,it',
1653        autoDisplay: false,
1654    }, 'google_translate_element');
1655    var googtrans = getCookie("googtrans");
1656    googtrans = googtrans == undefined ? '' : googtrans;
1657
1658}
1659function initLanguageShow()
1660{
1661    if(tpl_lang != 'en')
1662    {
1663        var googtrans = `/en/${tpl_lang}`;
1664    }
1665    else
1666    {
1667        var googtrans = getCookie("googtrans");
1668        googtrans=googtrans == undefined ? '/en/en' : googtrans;
1669    }
1670    let lang_key=language_googtrans[googtrans];
1671    lang_key=lang_key == undefined ? 0 : lang_key;
1672    let selected_lang=language_show_list[lang_key];
1673    $("#js_Language").html(`<span class='split'>/</span><span>${selected_lang}</span>`);
1674
1675}
1676
1677function setShowLanguage() 
1678{
1679    let lang_key = (arguments[0]!=undefined)?arguments[0]:-1;
1680    if(lang_key == -1)
1681    {
1682        lang_key=$('#cc_language').data('value');
1683    }
1684    lang_key = lang_key != undefined ? lang_key : 0;
1685    let lang_code=language_show_codes[lang_key];
1686    let selected_lang=language_show_list[lang_key];
1687    let selectIndex = 0;
1688    var linkLangArr=['fr','de'];
1689    setCookie("selected_lang",lang_code,30,'/');
1690    if(in_array(lang_code,linkLangArr))
1691    {
1692        $('#float_cc_language').attr('data-jump-lang',1);
1693        window.location.href=enUrl+lang_code+'/';
1694    }
1695    else
1696    {
1697        $("#google_translate_element option").each(function(index){
1698            let opLangCode=$(this).attr('value');
1699            if(lang_code == opLangCode)
1700            {
1701                selectIndex=index;
1702                return false;
1703            }
1704        });
1705        if(selectIndex>=0)
1706        {
1707            if(!in_array(lang_code,linkLangArr) && lang_code != 'en')
1708            {
1709                let transSelectObj = document.querySelector("#google_translate_element select");
1710                transSelectObj.selectedIndex = selectIndex;
1711                transSelectObj.dispatchEvent(new Event('change'));
1712                let googtrans=`/en/${lang_code}`;
1713                setCookie("googtrans",googtrans,30,'/');
1714            }
1715            if(tpl_lang != 'en')
1716            {
1717                $('#float_cc_language').attr('data-jump-lang',1);
1718                window.location.href=enUrl;
1719            }
1720            $("#js_Language").html(`<span class='split'>/</span><span>${selected_lang}</span>`);
1721        }
1722    }
1723}
1724function setCookieL(objName,objValue,expiredDays)
1725{
1726    var str = objName + "=" + escape(objValue);
1727    if(expiredDays > 0)
1728    {
1729        var date = new Date();
1730        var ms = expiredDays*24*3600*1000;
1731        date.setTime(date.getTime() + ms);
1732        str += "; expires=" + date.toGMTString();
1733   }
1734   
1735   str += ";path=/";
1736   document.cookie = str;
1737}
1738$(document).ready(function(){
1739    initLanguageShow();
1740});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.