if (!gwpstyle) { var gwpstyle = document.createElement('style'); gwpstyle.textContent = ' .gwp-div { clear: both; position:relative; } .sm-gwp-img-list { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0px; width: 100%; } .gwp-opt { box-sizing: border-box; text-align: center; border:3px solid transparent; border-bottom: 0px; padding:1px 1px 5px 1px; margin:0px; border-radius:7px; overflow-x:hidden; position: relative; } .gwp-opt:hover { border:0px solid #EEEEEE; padding:1px; } .gwp-opt-sel { border:2px solid #BB9C6E !important; padding:1px; } .gwp-opt-sel:hover { padding:1px; } .gwp-opt-name { text-align: center; width: 100%; } .gwp-opt-title { min-height: 1em; padding: 11px 0px; } .gwp-opt-prev { position:relative; } .gwp-opt-prev div { position:absolute; left:-105px; width:100px; display:none; z-index:1000; border:1px solid #bcbcbc; background-color:#FFFFFF; box-shadow:3px 3px 6px #AAAAAA; } .gwp-opt img { cursor:pointer; border-radius:7px; } .gwp-opt-more { position:relative; cursor:pointer; border-radius:7px; border:1px solid #888888; color:#888888; padding-top:100%; } .gwp-opt-more div { font-size:14px; text-align:center; line-height:12px; position:absolute; top:50%; left:0px; width:100%; margin-top:-0.5em; }'; document.head.appendChild(gwpstyle); } gwpNo = {127: "1", 128: "1", 129: "1", 130: "1", 131: "1", 107: "1", 108: "1", 109: "1", 110: "1", 111: "1", 157: "1", 158: "1", 159: "1", 160: "1", 161: "1", 162: "1", 163: "1", 164: "1", 165: "1", 166: "1", 167: "1", 168: "1", 169: "1", 170: "1", 171: "1", 172: "1", 173: "1", 174: "1", 175: "1", 176: "1", 177: "1", 178: "1", 179: "1", 180: "1", 181: "1", 182: "1", 183: "1", 184: "1", 185: "1", 186: "1", 187: "1", 393: "1", 394: "1", 395: "1", 396: "1", 397: "1", 398: "1", 399: "1", 400: "1", 401: "1", 402: "1", 403: "1", 404: "1", 405: "1", 406: "1", 407: "1", 408: "1", 409: "1", 410: "1", 411: "1", 412: "1", 413: "1", 414: "1", 415: "1", 416: "1", 417: "1", 418: "1", 419: "1", 420: "1", 437: "1", 438: "1", 439: "1", 440: "1", 441: "1", 442: "1", 443: "1", 444: "1", 445: "1", 446: "1", 447: "2", 448: "1", 449: "1", 450: "1", 451: "1", 452: "1", 453: "1", 454: "1", 455: "1", 456: "1", 457: "1", 458: "1", 459: "1", 460: "1", 461: "1", 462: "1", 463: "1", 464: "1", 465: "1", 466: "1", 467: "1", 468: "1", 469: "1", 470: "1", 471: "1", 472: "1", 473: "1", 474: "1", 475: "1", 476: "1", 477: "1", 478: "1", 479: "1", 421: "1", 422: "1", 423: "1", 424: "1", 425: "1", 426: "1", 427: "1", 428: "1", 429: "1", 430: "1", 431: "1", 432: "1", 433: "1", 434: "1", 435: "1", 436: "1", 480: "1", 481: "1", 482: "1", 483: "1", 484: "1", 485: "1", 486: "1", 487: "2", 488: "1", 489: "1", 490: "1", 491: "1", 492: "1", 493: "1", 494: "1", 495: "1", 496: "1", 497: "1", 498: "1", 499: "1", 500: "1", 501: "1", 502: "1", 503: "1", 504: "1", 505: "1", 506: "1", 507: "1", 508: "1", 509: "1", 510: "1", 511: "1", 512: "1", 513: "1", 514: "1", 515: "1", 516: "1", 517: "1", 518: "1", 519: "1", 520: "1", 521: "1", 522: "1", 341: "1", 342: "1", 343: "1", 344: "1", 345: "1", 346: "1", 347: "1", 348: "1", 349: "1", 350: "1", 351: "1", 352: "1", 353: "1", 354: "1", 355: "1", 356: "1", 357: "1", 358: "1", 359: "1", 360: "1", 361: "1", 362: "1", 363: "1", 364: "1", 365: "1", 366: "1", 367: "1", 368: "1", 369: "1", 370: "1", 371: "1", 372: "1", 373: "1", 374: "1", 375: "1", 376: "1", 377: "1", 378: "1", 379: "1", 380: "1", 381: "1", 382: "1", 383: "1", 384: "1", 385: "1", 386: "1", 387: "1", 388: "1", 523: "1", 524: "1", 525: "1", 526: "1", 527: "1", 528: "1", 529: "1", 530: "1", 531: "1", 532: "1", 533: "1", 534: "1", 535: "1", 536: "1", 537: "1", 538: "1", 539: "1", 540: "1", 541: "1", 542: "1", 543: "1", 544: "1", 545: "1", 546: "1", 547: "1", 548: "1", 549: "1", 550: "1", 551: "1", 552: "1", 553: "1", 554: "1", 555: "1", 556: "1", 557: "1", 558: "1", 559: "1", 560: "1", 561: "1", 562: "1", 563: "1", 564: "1", 565: "1", 596: "1", 597: "1", 598: "1", 599: "1", 600: "1", 601: "1", 602: "1", 603: "1", 604: "1", 605: "1", 606: "1", 607: "1", 608: "1", 609: "1", 610: "1", 713: "1", 714: "1", 715: "1", 716: "1", 717: "1", 718: "1", 719: "1", 720: "1", 721: "1", 722: "1", 723: "1", 724: "1", 725: "1", 726: "1", 727: "1", 728: "1", 729: "1", 730: "1", 731: "1", 732: "1", 733: "1", 734: "1", 735: "1", 736: "1", 737: "1", 738: "1", 739: "1", 740: "1", 202: "1", 203: "1", 204: "1", 205: "1", 206: "1", 207: "1", 208: "1", 209: "1", 210: "1", 211: "1", 212: "1", 213: "1", 214: "1", 215: "1", 216: "1", 217: "1", 218: "1", 219: "1", 220: "1", 221: "1", 222: "1", 223: "1", 224: "2", 225: "1", 226: "1", 227: "1", 228: "1", 229: "1", 230: "1", 231: "1", 232: "1", 233: "1", 234: "1", 235: "1", 236: "1", 237: "1", 238: "1", 239: "1", 240: "1", 241: "1", 242: "1", 243: "1", 244: "1", 245: "1", 246: "1", 247: "1", 248: "1", 249: "1", 250: "1", 251: "1", 252: "1", 253: "1", 254: "1", 255: "1", 256: "1", 257: "1", 258: "1", 259: "1", 260: "1", 261: "1", 262: "1", 263: "1", 264: "1", 265: "1", 266: "1", 267: "1", 268: "1", 269: "1", 270: "1", 271: "1", 272: "1", 273: "1", 274: "1", 275: "1", 276: "1", 277: "1", 278: "1", 279: "1", 280: "1", 281: "1", 282: "1", 283: "1", 284: "1", 285: "1", 286: "1", 287: "1", 288: "1", 289: "1", 290: "1", 291: "1", 292: "1", 293: "1", 294: "1", 295: "1", 296: "1", 297: "1", 298: "1", 299: "1", 300: "1", 302: "1", 303: "1", 304: "1", 305: "1", 306: "1", 307: "1", 308: "1", 309: "1", 310: "1", 311: "1", 312: "1", 313: "1", 314: "1", 315: "1", 316: "1", 317: "1", 318: "1", 319: "1", 320: "1", 321: "1", 322: "1", 323: "1", 324: "1", 325: "1", 326: "1", 327: "1", 328: "1", 329: "1", 330: "1", 331: "1", 332: "1", 333: "1", 334: "1", 335: "1", 336: "1", 5529: "1", 5530: "1", 5531: "1", 5532: "1", 5533: "1", 5534: "1", 5535: "1", 5536: "1", 5537: "1", 5538: "1", 5539: "1", 5540: "1", 5541: "1", 5542: "1", 5543: "1", 5544: "1", 5545: "1", 5546: "1", 5547: "1", 5548: "1", 5549: "1", 5550: "1", 5551: "1", 5552: "1", 5553: "1", 5554: "1", 5555: "1", 5556: "1", 5557: "1", 5558: "1", 5622: "1", 5623: "1", 5624: "1", 5625: "1", 5626: "1", 5627: "1", 5628: "1", 5629: "1", 5630: "1", 5631: "1", 5632: "1", 5633: "1", 5634: "1", 5635: "1", 5636: "1", 5637: "1", 5638: "1", 5639: "1", 5640: "1", 5641: "1", 5642: "1", 5643: "1", 5644: "1", 5645: "1", 5646: "1", 5647: "1", 5648: "1", 5649: "1", 5650: "1", 5651: "1", 5591: "1", 5592: "1", 5593: "1", 5594: "1", 5595: "1", 5596: "1", 5597: "1", 5598: "1", 5599: "1", 5600: "1", 5601: "1", 5602: "1", 5603: "1", 5604: "1", 5605: "1", 5606: "1", 5607: "1", 5608: "1", 5609: "1", 5610: "1", 5611: "1", 5612: "1", 5613: "1", 5614: "1", 5615: "1", 5616: "1", 5617: "1", 5618: "1", 5619: "1", 5620: "1", 6398: "1", 6399: "1", 6400: "1", 6401: "1", 6402: "1", 6403: "1", 6404: "1", 6165: "1", 6166: "1", 6167: "1", 6168: "1", 6169: "1", 6170: "1", 6171: "2", 6172: "2", 6173: "1", 6174: "1", 6175: "1", 6176: "1", 6177: "1", 6178: "1", 6179: "1", 6180: "1", 6181: "1", 6182: "1", 6183: "1", 6184: "1", 6185: "1", 6186: "1", 6187: "1", 6188: "1", 6189: "1", 6190: "1", 6191: "1", 6192: "1", 6193: "1", 6194: "1", 6238: "1", 6239: "1", 6240: "1", 6241: "1", 6242: "1", 6243: "1", 6244: "1", 6245: "1", 6246: "1", 6247: "1", 6248: "1", 6249: "1", 6250: "1", 6251: "1", 6585: "1", 6586: "1", 6587: "1", 6588: "1", 6589: "1", 6590: "1", 6591: "1", 6592: "1", 6593: "1", 6594: "1", 6595: "1", 6596: "1", 6597: "1", 6598: "1", 6599: "1", 6600: "1", 6601: "1", 6602: "1", 6564: "1", 6565: "1", 6566: "1", 6567: "1", 6568: "1", 6569: "1", 6570: "1", 6571: "1", 6572: "1", 6573: "1", 6574: "1", 6575: "1", 6576: "1", 6577: "1", 6578: "1", 6579: "1", 6580: "1", 6581: "1", 5993: "1", 5994: "1", 5995: "1", 5996: "1", 5997: "1", 5998: "1", 5999: "1", 6000: "1", 6001: "1", 6002: "1", 6003: "1", 6004: "1", 6005: "1", 6006: "1", 6007: "1", 6008: "1", 6009: "1", 6010: "1", 6011: "1", 6012: "1", 6013: "1", 6014: "1", 6015: "1", 6016: "1", 6017: "1", 6018: "1", 6019: "1", 6020: "1", 6021: "1", 6022: "1", 5049: "1", 5051: "1", 5231: "1", 5232: "1", 5233: "1", 5234: "1", 5235: "1", 5236: "1", 5237: "1", 5238: "1", 5239: "1", 5240: "1", 5241: "1", 5242: "1", 5243: "1", 5244: "1", 5245: "1", 5246: "1", 5087: "1", 5088: "1", 5089: "1", 5090: "1", 5091: "1", 5092: "1", 5093: "1", 5094: "1", 5095: "1", 5096: "1", 5097: "1", 5098: "1", 5099: "1", 5100: "1", 5101: "1", 5102: "1", 5103: "1", 5104: "1", 5105: "1", 5106: "1", 5107: "1", 5108: "1", 5109: "1", 5110: "1", 5111: "1", 5875: "1", 5876: "1", 5877: "1", 5878: "1", 5879: "1", 5880: "1", 5881: "1", 5882: "1", 5883: "1", 5884: "1", 5885: "1", 5886: "1", 5887: "1", 5888: "1", 5889: "1", 5890: "1", 5891: "1", 5892: "1", 5893: "1", 5894: "1", 5895: "1", 5896: "1", 5897: "1", 5898: "1", 5899: "1", 5900: "1", 5901: "1", 5902: "1", 5903: "1", 5904: "1", 5910: "1", 5911: "1", 5912: "1", 5913: "1", 5914: "1", 5915: "1", 5916: "1", 5917: "1", 5918: "1", 5919: "1", 5920: "1", 5921: "1", 5922: "1", 5923: "1", 5924: "1", 5925: "1", 5926: "1", 5927: "1", 5928: "1", 5929: "1", 5930: "1", 5931: "1", 5932: "1", 5933: "1", 5934: "1", 5935: "1", 5936: "1", 5937: "1", 5938: "1", 5939: "1", 5247: "1", 5248: "1", 5249: "1", 5250: "1", 5251: "1", 5252: "1", 5253: "1", 5254: "1", 5255: "1", 5256: "1", 5257: "1", 5258: "1", 5259: "1", 5260: "1", 5261: "1", 5262: "1", 5263: "1", 5264: "1", 6061: "1", 6062: "1", 6063: "1", 6064: "1", 6065: "1", 6066: "1", 6067: "1", 6068: "1", 6069: "1", 6070: "1", 6071: "1", 6072: "1", 6073: "1", 6074: "1", 6075: "4", 6076: "1", 6077: "1", 6078: "1", 6079: "1", 6080: "1", 6081: "1", 6082: "1", 6083: "1", 6084: "1", 6085: "1", 6086: "1", 6087: "1", 6088: "1", 6089: "1", 6090: "1", 5835: "1", 5836: "1", 5837: "1", 5838: "1", 5839: "1", 5840: "1", 5841: "1", 5842: "1", 5843: "1", 5844: "1", 5845: "1", 5846: "1", 5847: "1", 5848: "1", 5849: "1", 5850: "1", 5851: "1", 5852: "1", 5853: "1", 5854: "1", 5855: "1", 5856: "1", 5857: "1", 5858: "1", 5859: "1", 5860: "1", 5861: "1", 5862: "1", 5863: "1", 5864: "1", 6204: "1", 6205: "1", 6206: "1", 6207: "1", 6208: "1", 6209: "1", 6210: "1", 6211: "1", 6212: "1", 6213: "1", 6214: "1", 6215: "1", 6216: "1", 6217: "1", 6218: "1", 6219: "1", 6220: "1", 6221: "1", 6222: "1", 6223: "1", 6224: "1", 6225: "1", 6226: "1", 6227: "1", 6228: "1", 6229: "1", 6230: "1", 6231: "1", 6232: "1", 6233: "1", 5373: "1", 5374: "1", 5375: "1", 5376: "1", 5377: "1", 5378: "1", 5379: "1", 5380: "1", 5381: "1", 5382: "1", 5383: "1", 5384: "1", 5385: "1", 5386: "1", 5387: "1", 5388: "1", 5389: "1", 5390: "1", 5391: "1", 5392: "1", 5393: "1", 5394: "1", 5395: "1", 5396: "1", 5397: "1", 5341: "1", 5342: "1", 5343: "1", 5344: "1", 5345: "1", 5346: "1", 5347: "1", 5348: "1", 5349: "1", 5350: "1", 5351: "1", 5352: "1", 5353: "1", 5354: "1", 5355: "1", 5356: "1", 5357: "1", 5358: "1", 5359: "1", 5360: "1", 5361: "1", 5362: "1", 5363: "1", 5364: "1", 5365: "1", 6512: "1", 6513: "1", 6514: "1", 6515: "1", 6516: "1", 6517: "1", 6518: "1", 6519: "1", 6520: "1", 6521: "1", 6522: "1", 6523: "1", 6524: "1", 6525: "1", 6526: "1", 6527: "1", 6528: "1", 6529: "1", 6530: "1", 6531: "1", 6532: "1", 6533: "1", 6534: "1", 6535: "1", 6536: "1", 6537: "1", 6538: "1", 6539: "1", 6540: "1", 6541: "1", 5755: "1", 5756: "1", 5757: "1", 5758: "1", 5759: "1", 5760: "1", 5761: "1", 5762: "1", 5763: "1", 5764: "1", 5765: "1", 5766: "1", 5767: "1", 5768: "1", 5769: "1", 5770: "1", 5771: "1", 5772: "1", 5773: "1", 5774: "1", 5775: "1", 5776: "1", 5777: "1", 5778: "1", 5779: "1", 5780: "1", 5781: "1", 5782: "1", 5783: "1", 5784: "1", 5715: "1", 5716: "1", 5717: "1", 5718: "1", 5719: "1", 5720: "1", 5721: "1", 5722: "1", 5723: "1", 5724: "1", 5725: "1", 5726: "1", 5727: "1", 5728: "1", 5729: "1", 5730: "1", 5731: "1", 5732: "1", 5733: "1", 5734: "1", 5735: "1", 5736: "1", 5737: "1", 5738: "1", 5739: "1", 5740: "1", 5741: "1", 5742: "1", 5743: "2", 5744: "1", 6474: "1", 6475: "1", 6476: "1", 6477: "1", 6478: "1", 6479: "1", 6480: "1", 6481: "1", 6482: "1", 6483: "1", 6484: "1", 6485: "1", 6486: "1", 6487: "1", 6488: "1", 6489: "1", 6490: "1", 6491: "1", 6492: "1", 6493: "1", 6494: "1", 6495: "1", 6496: "1", 6497: "1", 6498: "1", 6499: "1", 6500: "1", 6501: "1", 6502: "1", 6503: "1", 6252: "1", 6253: "1", 6254: "1", 6255: "1", 6256: "1", 6257: "1", 6258: "1", 6259: "1", 6260: "1", 6261: "1", 6262: "1", 6263: "1", 6264: "1", 6265: "1", 6266: "1", 6267: "1", 6268: "1", 6269: "1", 6270: "1", 6271: "1", 6272: "1", 6273: "1", 6274: "1", 6275: "1", 6276: "1", 6277: "1", 6278: "1", 6279: "1", 6280: "1", 6281: "1", 5952: "1", 5953: "1", 5954: "1", 5955: "1", 5956: "1", 5957: "1", 5958: "1", 5959: "1", 5960: "1", 5961: "1", 5962: "1", 5963: "1", 5964: "1", 5965: "1", 5966: "1", 5967: "1", 5968: "1", 5969: "1", 5970: "1", 5971: "1", 5972: "1", 5973: "1", 5974: "1", 5975: "1", 5976: "1", 5977: "1", 5978: "1", 5979: "1", 5980: "1", 5981: "1", 5441: "1", 5442: "1", 5443: "1", 5444: "1", 5445: "1", 5446: "1", 5447: "1", 5448: "1", 5449: "1", 5450: "1", 5451: "1", 5452: "1", 5453: "1", 5454: "1", 5455: "1", 5456: "1", 5457: "1", 5458: "1", 5466: "1", 5467: "1", 5468: "1", 5469: "1", 5470: "1", 5471: "1", 5472: "1", 5473: "1", 5474: "1", 5475: "1", 5476: "1", 5477: "1", 5478: "1", 5479: "1", 5480: "1", 5481: "1", 5482: "1", 5483: "1", 6092: "1", 6093: "1", 6094: "1", 6095: "1", 6096: "1", 6097: "1", 6098: "1", 6099: "1", 6100: "1", 6101: "1", 6102: "1", 6103: "1", 6104: "1", 6105: "1", 6106: "1", 6107: "1", 6108: "1", 6109: "1", 6110: "1", 6111: "1", 6112: "1", 6113: "1", 6114: "1", 6115: "1", 6116: "1", 6117: "1", 6118: "1", 6119: "1", 6120: "1", 6121: "1", 5560: "1", 5561: "1", 5562: "1", 5563: "1", 5564: "1", 5565: "1", 5566: "1", 5567: "1", 5568: "1", 5569: "1", 5570: "1", 5571: "1", 5572: "1", 5573: "1", 5574: "1", 5575: "1", 5576: "1", 5577: "1", 5578: "1", 5579: "1", 5580: "1", 5581: "1", 5582: "1", 5583: "1", 5584: "1", 5585: "1", 5586: "1", 5587: "1", 5588: "1", 5589: "1", 6411: "1", 6412: "1", 6413: "1", 6414: "1", 6415: "1", 6416: "1", 6417: "1", 6418: "1", 6419: "1", 6420: "1", 6421: "1", 6422: "1", 6423: "1", 6424: "1", 6425: "1", 6426: "1", 6427: "1", 6428: "1", 6429: "1", 6430: "1", 6431: "1", 6432: "1", 6433: "1", 6434: "1", 6435: "1", 6436: "1", 6437: "1", 6438: "1", 6439: "1", 6440: "1", 5684: "1", 5685: "1", 5686: "1", 5687: "1", 5688: "1", 5689: "1", 5690: "1", 5691: "1", 5692: "1", 5693: "1", 5694: "1", 5695: "1", 5696: "1", 5697: "1", 5698: "1", 5699: "1", 5700: "1", 5701: "1", 5702: "1", 5703: "1", 5704: "1", 5705: "1", 5706: "1", 5707: "1", 5708: "1", 5709: "1", 5710: "1", 5711: "1", 5712: "1", 5713: "1", 6126: "1", 6127: "1", 6128: "1", 6129: "1", 6130: "1", 6131: "1", 6132: "1", 6133: "1", 6134: "1", 6135: "1", 6136: "1", 6137: "1", 6138: "1", 6139: "1", 6140: "1", 6141: "1", 6142: "1", 6143: "1", 6144: "1", 6145: "1", 6146: "1", 6147: "1", 6148: "1", 6149: "1", 6150: "1", 6151: "1", 6152: "1", 6153: "1", 6154: "1", 6155: "1", 5653: "1", 5654: "1", 5655: "1", 5656: "1", 5657: "1", 5658: "1", 5659: "1", 5660: "1", 5661: "1", 5662: "1", 5663: "1", 5664: "1", 5665: "1", 5666: "1", 5667: "1", 5668: "1", 5669: "1", 5670: "1", 5671: "1", 5672: "1", 5673: "1", 5674: "1", 5675: "1", 5676: "1", 5677: "1", 5678: "1", 5679: "1", 5680: "1", 5681: "1", 5682: "1", 4934: "1", 4935: "1", 4936: "1", 4937: "1", 4938: "1", 4939: "1", 4940: "1", 4941: "1", 4942: "1", 4943: "1", 4944: "1", 4945: "1", 4946: "1", 4947: "1", 4948: "1", 4950: "1", 4951: "1", 4952: "1", 4953: "1", 4954: "1", 4955: "1", 4956: "1", 4957: "1", 4958: "1", 4959: "1", 5866: "1", 5867: "1", 5868: "1", 5869: "1", 5870: "1", 5871: "1", 5398: "1", 5399: "1", 5400: "1", 5401: "1", 5402: "1", 5403: "1", 5404: "1", 5484: "1", 5485: "1", 5486: "1", 5487: "1", 5488: "1", 5489: "1", 5490: "1", 6543: "1", 6544: "1", 6545: "1", 6546: "1", 6547: "1", 6548: "1", 6549: "1", 5746: "1", 5747: "1", 5748: "1", 5749: "1", 5750: "1", 5751: "1", 5786: "1", 5787: "1", 5788: "1", 5789: "1", 5790: "1", 5791: "1", 5792: "1", 6505: "1", 6506: "1", 6507: "1", 6508: "1", 6509: "1", 6510: "1", 6511: "1", 5986: "1", 5988: "1", 5989: "1", 5366: "1", 5367: "1", 5368: "1", 5369: "1", 5370: "1", 5371: "1", 5372: "1", 5459: "1", 5460: "1", 5461: "1", 5462: "1", 5463: "1", 5464: "1", 5465: "1", 6283: "1", 6284: "1", 6285: "1", 6286: "1", 6287: "1", 6288: "1", 6289: "1", 4567: "1", 4568: "1", 6291: "1", 6292: "1", 5827: "1", 5828: "1", 5829: "1", 5830: "1", 5831: "1", 5832: "1", 5522: "1", 5523: "1", 5524: "1", 5525: "1", 5526: "1", 5527: "1", 5528: "1", 6379: "1", 6381: "1", 6395: "1", 6397: "1", };var opt_list = [25,32,33,35,36,37,38,47,45,150,151,138,229,99,259,257,218,209,212,145,221,206,232,188,186,252,200,197,250,113,215,191,193,223,42,247,58,226,55,146,207,189,194,253,198,201,251,216,187,192,235,133,236,204,196,243,245]; var more_txt = [], less_txt = [], optTmp = [], optTmpVal = [], isStock = 0; var changeStock = 0; var sid = '466'; var gwpurl = 'https://gwp.brweb.pl/i/466/'; var imgLimit = '30'; var moreLabel = '+'; var lessLabel = '-'; var showMLcnt = 1; var prevMopen = ''; var selectLangVal = ['','wybierz','choose','wählen','Vybrat','vali','izvēlēties','pasirinkti','választ','vyberte si','вибрати']; function oClick(e,type) { if (type == 'S') { selectClick(e); } else { radioClick(e); } setTimeout(showGWP,500); } function selectClick(e) { var id = e.id; var aId = id.split('__'); if (document.getElementById(aId[0]).value != aId[1] || document.getElementById(aId[0]).length == 1) { document.getElementById(aId[0]).value = aId[1]; if (document.getElementById('gwp_div_title_'+aId[0].replace('option_',''))) document.getElementById('gwp_div_title_'+aId[0].replace('option_','')).innerHTML = e.title; } else { document.getElementById(aId[0]).selectedIndex = '0'; if (document.getElementById('gwp_div_title_'+aId[0].replace('option_',''))) document.getElementById('gwp_div_title_'+aId[0].replace('option_','')).innerHTML = ''; id = aId[0] + '__' + document.getElementById(aId[0]).value; } document.getElementById(aId[0]).dispatchEvent(new Event('change')); var c = document.getElementsByClassName('c_' + aId[0]); for( var i = 0; i < c.length; i++){ c[i].parentElement.className = c[i].parentElement.className.replace(' gwp-opt-sel',''); if ( c[i].id == id ) { c[i].parentElement.className = c[i].parentElement.className + ' gwp-opt-sel'; } } optTmpVal[aId[0].replace('option_','')] = document.getElementById(aId[0]).value; } function radioClick(e) { var id = e.id; var aId = id.split('__'); document.getElementById(aId[0]+'_'+aId[1]).click(); if (document.getElementById('gwp_div_title_'+aId[0].replace('option_',''))) document.getElementById('gwp_div_title_'+aId[0].replace('option_','')).innerHTML = e.title; var c = document.getElementsByClassName('c_' + aId[0]); for( var i = 0; i < c.length; i++){ c[i].parentElement.className = c[i].parentElement.className.replace(' gwp-opt-sel',''); if ( c[i].id == id ) c[i].parentElement.className = c[i].parentElement.className + ' gwp-opt-sel'; } } function gwpMore(oid) { var h = document.getElementsByClassName('gwpHidden'+oid); var type = more_txt[oid] == document.getElementById('gwp_more'+oid).innerHTML ? 'block' : 'none'; for( var i = 0; i < h.length; i++){ h[i].style.display = (h[i].className == 'gwp-opt gwpHidden'+oid+' gwp-opt-sel') ? 'block' : type; } document.getElementById('gwp_more'+oid).innerHTML = type == 'block' ? less_txt[oid] : more_txt[oid] ; } function showGWP() { var isLoading = 0; var isDiff = 0; opt_list.forEach(function(opt_id) { var sr = document.getElementsByName('option_'+opt_id); if (sr.length == 0) { return; } var optValue = ''; if (sr[0].id == sr[0].name ) { var optType = 'S'; var s = sr[0]; var c = s.getElementsByTagName('option'); var optValue = s.value; } else { var optType = 'R'; var s = sr[0].parentElement.parentElement; var c = sr; for( var j = 0; j < c.length; j++){ if (c[j].checked == true) { optValue = c[j].innerHTML; } } } isDiff = (!optTmp[opt_id] || optTmp[opt_id] != s.innerHTML || optTmpVal[opt_id] != s.value) ? 1 : 0; var eStock = (optType == 'S') ? s.parentElement.className : sr[0].parentElement.className; if (eStock.indexOf('option_truestock ') != -1 && eStock.indexOf('loading') != -1) { isLoading++; } if (isDiff == 1 || changeStock == 1) { if (optType == 'R') { s.style.visibility = 'hidden'; s.style.width = '0px'; s.style.height = '0px'; s.style.position = 'absolute'; s.style.bottom = '0px'; } else { s.style.display = 'none'; } var sOptions = '', sPreview = '', sTitle = ''; var imgNo = 0; var optCnt = (optType == 'S') ? c.length - 1 : c.length; if (optType == 'R') { for( var j = 0; j < c.length; j++){ if (c[j].parentElement.className == 'radio-wrap none') { optCnt--; } } var rlabels = s.getElementsByTagName('label'); var rDict = new Array(); for( var rli = 0; rli < rlabels.length; rli++){ if (rlabels[1].innerHTML != '' || !rlabels[rli]) rDict[rlabels[rli].getAttribute('for')] = rlabels[rli].innerHTML; } } more_txt[opt_id] = moreLabel + (showMLcnt == 1 ? (optCnt - imgLimit + 1) : ''); less_txt[opt_id] = lessLabel + (showMLcnt == 1 ? (optCnt - imgLimit + 1) : ''); var smTitle = ''; for( var j = 0; j< c.length; j++){ if (!selectLangVal.includes(c[j].value) && c[j].parentElement.className != 'radio-wrap none') { imgNo++; var smIsSelect = ((optType == 'S' && (s.options[s.selectedIndex].value == c[j].value || s.value == c[j].value)) || (optType == 'R' && c[j].checked == true)) ? 1 : 0; smItenSelect = smIsSelect == 1 ? ' gwp-opt-sel' : ''; smItenDisplay = (imgNo < imgLimit || (imgNo == imgLimit && imgNo == optCnt)) ? 'block' : 'none'; var lastOpt = (imgNo == imgLimit - 1) ? '!important' : ''; var lastOptClass = (imgNo == imgLimit - 1) ? ' toHidden ' : ''; var lastOptId = (imgNo == imgLimit - 1) ? ' id="gwp_loi_'+oId+'" ' : ''; if (smIsSelect == 1) { smItenDisplay = 'block'; if (imgNo > imgLimit || (imgNo == imgLimit && imgNo < optCnt)) { sOptions = sOptions.replace('block!important','none'); sOptions = sOptions.replace('toHidden','gwpHidden'+opt_id); } } smItenHidden = (imgNo > imgLimit || (imgNo == imgLimit && imgNo != optCnt)) ? ' gwpHidden'+opt_id+' ' : ''; oName = (optType == 'S') ? c[j].innerHTML : rDict[c[j].id]; oId = (optType == 'S') ? s.id : c[j].name; if (smItenSelect == ' gwp-opt-sel') { smTitle = oName; } sOptions += '