// visuals.js
SThumb = new Array();
SThumb[W] = SBotton[W];
SThumb[H] = Math.round(97 * scale);
SThumb[X] = new Array();
SThumb[Y] = new Array();
SThumb[X][0] = Math.round(6 * scale);
SThumb[X][1] = Math.round((6 + (1 * (133 + 6))) * scale);
SThumb[X][2] = Math.round((6 + (2 * (133 + 6))) * scale);
SThumb[X][3] = Math.round((6 + (4 * (133 + 6))) * scale);
SThumb[Y][0] = SContent[H] - Math.round((46 * scale) + (4 * (12 + 97) * scale));
SThumb[Y][1] = SContent[H] - Math.round((46 * scale) + (3 * (12 + 97) * scale));
SThumb[Y][2] = SContent[H] - Math.round((46 * scale) + (2 * (12 + 97) * scale));
SThumb[Y][3] = SContent[H] - Math.round((46 * scale) + (1 * (12 + 97) * scale));
var ThumbI = 0;

setstyle('Visuals', [
  ['left', SContent[X]],
  ['top', SContent[Y]],
  ['width', SContent[W]],
  ['height', SContent[H]]
]);
for (var y = 0; y <= 3; y++) {
  for (var x = 0; x <= 2; x++) {
    setstyle('Thumb' + ThumbI, [['left', SThumb[X][x]], ['top', SThumb[Y][y]], ['width', SThumb[W]], ['height', SThumb[H]]]);
    setstyle('ThumbImg' + ThumbI, [['width', SThumb[W]], ['height', SThumb[H]]]);
    ThumbI++;
  }
}
for (var y = 0; y <= 3; y++) {
  setstyle('Thumb' + ThumbI, [['left', SThumb[X][3]], ['top', SThumb[Y][y]], ['width', SThumb[W]], ['height', SThumb[H]]]);
  setstyle('ThumbImg' + ThumbI, [['width', SThumb[W]], ['height', SThumb[H]]]);
  ThumbI++;
}
setstyle('Label0', [
  ['left', SThumb[X][0]],
  ['top', SThumb[Y][0] - Math.round(35 * scale)],
  ['width', Math.round(3 * SThumb[W] + 12)],
  ['height', Math.round(35 * scale)]
]);
setstyle('TLabel0', [
  ['fontFamily', FontFamily],
  ['color', Petrol],
  ['fontSize', Math.round(11 * scale) + 'px']
]);
setstyle('Label1', [
  ['left', SThumb[X][3]],
  ['top', SThumb[Y][0] - Math.round(35 * scale)],
  ['width', SThumb[W]],
  ['height', Math.round(35 * scale)]
]);
setstyle('TLabel1', [
  ['fontFamily', FontFamily],
  ['color', Petrol],
  ['fontSize', Math.round(11 * scale) + 'px']
]);