/*
##############################################################################################
########                                                                            ##########
########                              Author:Vass-bg                                ##########
########                             vassbg@gmail.com                               ##########
########                                                                            ##########
##############################################################################################
*/	
var n = 40;
cards = 3;

var dir = "http://charm-bg.com/oracle/"

text = new Array;
	  text[0] = "&#1042;&#1089;&#1077;&#1083;&#1077;&#1085;&#1072;&#1090;&#1072; &#1042;&#1080; &#1076;&#1072;&#1074;&#1072; &#1075;&#1086;&#1083;&#1103;&#1084;&#1072; &#1080; &#1082;&#1088;&#1072;&#1089;&#1080;&#1074;&#1072; &#1083;&#1102;&#1073;&#1086;&#1074;, &#1090;&#1103; &#1084;&#1086;&#1078;&#1077; &#1076;&#1072; &#1089;&#1098;&#1097;&#1077;&#1089;&#1090;&#1074;&#1091;&#1074;&#1072; &#1074;&#1077;&#1095;&#1077; &#1074; &#1085;&#1072;&#1089;&#1090;&#1086;&#1103;&#1097;&#1072;&#1090;&#1072; &#1042;&#1080; &#1074;&#1088;&#1098;&#1079;&#1082;&#1072; &#1080;&#1083;&#1080; &#1076;&#1072; &#1089;&#1077; &#1087;&#1086;&#1103;&#1074;&#1080; &#1084;&#1085;&#1086;&#1075;&#1086; &#1089;&#1082;&#1086;&#1088;&#1086;!";
      text[1] = "&#1055;&#1088;&#1077;&#1076;&#1089;&#1090;&#1086;&#1103;&#1090; &#1042;&#1080; &#1084;&#1085;&#1086;&#1075;&#1086; &#1087;&#1072;&#1088;&#1080;, &#1073;&#1086;&#1075;&#1072;&#1090;&#1089;&#1090;&#1074;&#1086; &#1080; &#1091;&#1089;&#1087;&#1077;&#1096;&#1077;&#1085; &#1073;&#1080;&#1079;&#1085;&#1077;&#1089;. &#1040;&#1082;&#1086; &#1077; &#1074; &#1082;&#1086;&#1084;&#1073;&#1080;&#1085;&#1072;&#1094;&#1080;&#1103; &#1089; &#1085;&#1077;&#1075;&#1072;&#1090;&#1080;&#1074;&#1085;&#1072; &#1082;&#1072;&#1088;&#1090;&#1072;, &#1086;&#1079;&#1085;&#1072;&#1095;&#1072;&#1074;&#1072; &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;&#1080; &#1089; &#1087;&#1072;&#1088;&#1080; &#1080;&#1083;&#1080; &#1079;&#1072;&#1075;&#1091;&#1073;&#1072;!";
      text[2] = "&#1054;&#1082;&#1086;&#1083;&#1086; &#1042;&#1072;&#1089; &#1080;&#1084;&#1072; &#1074;&#1077;&#1088;&#1085;&#1080; &#1087;&#1088;&#1080;&#1103;&#1090;&#1077;&#1083;&#1080;, &#1085;&#1072; &#1082;&#1086;&#1080;&#1090;&#1086; &#1084;&#1086;&#1078;&#1077;&#1090;&#1077; &#1076;&#1072; &#1088;&#1072;&#1079;&#1095;&#1080;&#1090;&#1072;&#1090;&#1077; &#1074; &#1090;&#1088;&#1091;&#1076;&#1085;&#1080; &#1084;&#1086;&#1084;&#1077;&#1085;&#1090;&#1080;!";
      text[3] = "&#1042;&#1089;&#1077;&#1083;&#1077;&#1085;&#1072;&#1090;&#1072; &#1080;&#1079;&#1080;&#1089;&#1080;&#1087;&#1074;&#1072; &#1088;&#1086;&#1075;&#1072; &#1085;&#1072; &#1080;&#1079;&#1086;&#1073;&#1080;&#1083;&#1080;&#1077;&#1090;&#1086; &#1074;&#1098;&#1088;&#1093;&#1091; &#1042;&#1072;&#1089;, &#1073;&#1098;&#1076;&#1077;&#1090;&#1077; &#1075;&#1086;&#1090;&#1086;&#1074;&#1080; &#1076;&#1072; &#1075;&#1086; &#1087;&#1088;&#1080;&#1077;&#1084;&#1077;&#1090;&#1077;!";
      text[4] = "&#1055;&#1088;&#1077;&#1076;&#1089;&#1090;&#1086;&#1080; &#1042;&#1080; &#1074;&#1072;&#1078;&#1085;&#1072; &#1087;&#1088;&#1086;&#1084;&#1103;&#1085;&#1072; &#1074; &#1078;&#1080;&#1074;&#1086;&#1090;&#1072;. &#1054;&#1073;&#1084;&#1080;&#1089;&#1083;&#1077;&#1090;&#1077; &#1103;, &#1087;&#1088;&#1077;&#1076;&#1080; &#1076;&#1072; &#1103; &#1087;&#1088;&#1077;&#1076;&#1087;&#1088;&#1080;&#1077;&#1084;&#1077;&#1090;&#1077;!";
      text[5] = "&#1055;&#1088;&#1077;&#1076;&#1089;&#1090;&#1086;&#1080; &#1042;&#1080; &#1076;&#1098;&#1083;&#1075;&#1086; &#1087;&#1098;&#1090;&#1091;&#1074;&#1072;&#1085;&#1077;. &#1040;&#1082;&#1086; &#1074; &#1073;&#1083;&#1080;&#1079;&#1086;&#1089;&#1090; &#1080;&#1084;&#1072; &#1082;&#1072;&#1088;&#1090;&#1072; &#1086;&#1079;&#1085;&#1072;&#1095;&#1072;&#1074;&#1072;&#1097;&#1072; &#1086;&#1087;&#1072;&#1089;&#1085;&#1086;&#1089;&#1090; &#1080;&#1083;&#1080; &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;, &#1042;&#1080; &#1087;&#1088;&#1077;&#1087;&#1086;&#1088;&#1098;&#1095;&#1074;&#1072;&#1084;&#1077; &#1076;&#1072; &#1075;&#1086; &#1086;&#1090;&#1083;&#1086;&#1078;&#1080;&#1090;&#1077; &#1079;&#1072; &#1089;&#1077;&#1075;&#1072;!";
      text[6] = "&#1054;&#1095;&#1072;&#1082;&#1074;&#1072;&#1081;&#1090;&#1077; &#1089;&#1082;&#1086;&#1088;&#1086; &#1080;&#1079;&#1074;&#1077;&#1089;&#1090;&#1080;&#1077; &#1080;&#1083;&#1080; &#1088;&#1072;&#1073;&#1086;&#1090;&#1072; &#1089; &#1076;&#1086;&#1082;&#1091;&#1084;&#1077;&#1085;&#1090;&#1080;, &#1080;&#1079;&#1093;&#1086;&#1076;&#1072; &#1086;&#1090; &#1082;&#1086;&#1080;&#1090;&#1086; &#1089;&#1077; &#1086;&#1087;&#1088;&#1077;&#1076;&#1077;&#1083;&#1103; &#1086;&#1090; &#1086;&#1082;&#1086;&#1083;&#1085;&#1080;&#1090;&#1077; &#1082;&#1072;&#1088;&#1090;&#1080;!";
      text[7] = "&#1065;&#1077; &#1089;&#1077; &#1079;&#1072;&#1087;&#1086;&#1079;&#1085;&#1072;&#1077;&#1090;&#1077; &#1089; &#1095;&#1086;&#1074;&#1077;&#1082;, &#1082;&#1086;&#1081;&#1090;&#1086; &#1097;&#1077; &#1079;&#1072;&#1077;&#1084;&#1072; &#1074;&#1072;&#1078;&#1085;&#1072; &#1088;&#1086;&#1083;&#1103; &#1074; &#1078;&#1080;&#1074;&#1086;&#1090;&#1072; &#1042;&#1080;!";
      text[8] = "&#1042;&#1085;&#1080;&#1084;&#1072;&#1074;&#1072;&#1081;&#1090;&#1077; &#1076;&#1072; &#1085;&#1077; &#1042;&#1080; &#1080;&#1079;&#1084;&#1072;&#1084;&#1103;&#1090; &#1080;&#1083;&#1080; &#1087;&#1088;&#1077;&#1076;&#1072;&#1076;&#1072;&#1090; &#1093;&#1086;&#1088;&#1072;, &#1085;&#1072; &#1082;&#1086;&#1080;&#1090;&#1086; &#1080;&#1084;&#1072;&#1090;&#1077; &#1076;&#1086;&#1074;&#1077;&#1088;&#1080;&#1077;!";
      text[9] = "&#1054;&#1082;&#1086;&#1083;&#1086; &#1042;&#1072;&#1089; &#1080;&#1084;&#1072; &#1074;&#1088;&#1072;&#1075;, &#1082;&#1086;&#1081;&#1090;&#1086; &#1084;&#1086;&#1078;&#1077; &#1089;&#1082;&#1086;&#1088;&#1086; &#1076;&#1072; &#1042;&#1080; &#1089;&#1098;&#1079;&#1076;&#1072;&#1076;&#1077; &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;&#1080;!";
      text[10] = "&#1053;&#1077;&#1087;&#1088;&#1080;&#1103;&#1090;&#1085;&#1086;&#1089;&#1090;&#1080;, &#1082;&#1086;&#1080;&#1090;&#1086; &#1084;&#1086;&#1075;&#1072;&#1090; &#1076;&#1072; &#1076;&#1086;&#1074;&#1077;&#1076;&#1072;&#1090; &#1076;&#1086; &#1082;&#1088;&#1072;&#1093; &#1080;&#1083;&#1080; &#1089;&#1084;&#1098;&#1088;&#1090;!";
      text[11] = "&#1054;&#1095;&#1072;&#1082;&#1074;&#1072;&#1081;&#1090;&#1077; &#1087;&#1088;&#1086;&#1074;&#1072;&#1083;&#1103;&#1085;&#1077; &#1085;&#1072; &#1087;&#1083;&#1072;&#1085;&#1086;&#1074;&#1077;&#1090;&#1077; &#1089;&#1080;, &#1085;&#1077;&#1087;&#1088;&#1080;&#1103;&#1090;&#1085;&#1086;&#1089;&#1090;&#1080; &#1080; &#1090;&#1088;&#1091;&#1076;&#1085;&#1086;&#1089;&#1090;&#1080;!";
      text[12] = "&#1052;&#1085;&#1086;&#1075;&#1086; &#1089;&#1082;&#1086;&#1088;&#1086; &#1077; &#1074;&#1098;&#1079;&#1084;&#1086;&#1078;&#1085;&#1086; &#1076;&#1072; &#1080;&#1084;&#1072;&#1090;&#1077; &#1079;&#1076;&#1088;&#1072;&#1074;&#1086;&#1089;&#1083;&#1086;&#1074;&#1085;&#1080; &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;&#1080;, &#1086;&#1073;&#1098;&#1088;&#1085;&#1077;&#1090;&#1077; &#1080;&#1084; &#1074;&#1085;&#1080;&#1084;&#1072;&#1085;&#1080;&#1077; &#1076;&#1086;&#1082;&#1072;&#1090;&#1086; &#1077; &#1074;&#1088;&#1077;&#1084;&#1077;!";
      text[13] = "&#1042; &#1087;&#1088;&#1077;&#1076;&#1089;&#1090;&#1086;&#1103;&#1097;&#1080;&#1103; &#1087;&#1077;&#1088;&#1080;&#1086;&#1076; &#1082;&#1098;&#1089;&#1084;&#1077;&#1090;&#1072; &#1097;&#1077; &#1077; &#1089; &#1042;&#1072;&#1089; &#1087;&#1088;&#1080; &#1074;&#1089;&#1080;&#1095;&#1082;&#1080; &#1086;&#1073;&#1089;&#1090;&#1086;&#1103;&#1090;&#1077;&#1083;&#1089;&#1090;&#1074;&#1072;!";
      text[14] = "&#1056;&#1072;&#1076;&#1086;&#1089;&#1090; &#1080;&#1083;&#1080; &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;&#1080; &#1086;&#1090; &#1076;&#1077;&#1094;&#1072;!";
      text[15] = "&#1042;&#1085;&#1080;&#1084;&#1072;&#1074;&#1072;&#1081;&#1090;&#1077;, &#1080;&#1084;&#1072; &#1075;&#1086;&#1083;&#1103;&#1084;&#1072; &#1086;&#1087;&#1072;&#1089;&#1085;&#1086;&#1089;&#1090; &#1089;&#1082;&#1086;&#1088;&#1086; &#1074;&#1088;&#1077;&#1084;&#1077; &#1076;&#1072; &#1042;&#1080; &#1086;&#1075;&#1088;&#1072;&#1073;&#1103;&#1090; &#1080;&#1083;&#1080; &#1076;&#1072; &#1079;&#1072;&#1075;&#1091;&#1073;&#1080;&#1090;&#1077; &#1094;&#1077;&#1085;&#1085;&#1080; &#1074;&#1077;&#1097;&#1080;!";
      text[16] = "&#1050;&#1098;&#1097;&#1072;, &#1087;&#1088;&#1086;&#1084;&#1103;&#1085;&#1072; &#1085;&#1072; &#1084;&#1077;&#1089;&#1090;&#1086;&#1078;&#1080;&#1074;&#1077;&#1077;&#1085;&#1077; &#1080;&#1083;&#1080; &#1088;&#1077;&#1084;&#1086;&#1085;&#1090; &#1074; &#1089;&#1090;&#1072;&#1088;&#1086;&#1090;&#1086; &#1078;&#1080;&#1083;&#1080;&#1097;&#1077;!";
      text[17] = "&#1057;&#1098;&#1076;&#1073;&#1072;&#1090;&#1072; &#1042;&#1080; &#1087;&#1086;&#1082;&#1088;&#1086;&#1074;&#1080;&#1090;&#1077;&#1083;&#1089;&#1090;&#1074;&#1072; &#1087;&#1088;&#1077;&#1079; &#1090;&#1086;&#1079;&#1080; &#1087;&#1077;&#1088;&#1080;&#1086;&#1076;. &#1040;&#1082;&#1086; &#1077; &#1082;&#1086;&#1084;&#1073;&#1080;&#1085;&#1080;&#1088;&#1072;&#1085;&#1072; &#1089; &#1052;&#1072;&#1075;&#1080;&#1103;, &#1086;&#1079;&#1085;&#1072;&#1095;&#1072;&#1074;&#1072;, &#1095;&#1077; &#1084;&#1072;&#1075;&#1080;&#1103;&#1090;&#1072; &#1087;&#1088;&#1086;&#1084;&#1077;&#1085;&#1103; &#1089;&#1098;&#1076;&#1073;&#1072;&#1090;&#1072; &#1042;&#1080; &#1082;&#1098;&#1084; &#1083;&#1086;&#1096;&#1086;!";
      text[18] = "&#1065;&#1077; &#1073;&#1098;&#1076;&#1077;&#1090;&#1077; &#1079;&#1076;&#1088;&#1072;&#1074;&#1080; &#1087;&#1088;&#1077;&#1079; &#1090;&#1086;&#1079;&#1080; &#1087;&#1077;&#1088;&#1080;&#1086;&#1076;, &#1080;&#1083;&#1080; &#1083;&#1077;&#1089;&#1085;&#1086; &#1086;&#1079;&#1076;&#1088;&#1072;&#1074;&#1103;&#1074;&#1072;&#1085;&#1077;, &#1072;&#1082;&#1086; &#1080;&#1084;&#1072; &#1073;&#1086;&#1083;&#1077;&#1089;&#1090;!";
      text[19] = "&#1041;&#1098;&#1076;&#1077;&#1090;&#1077; &#1074;&#1085;&#1080;&#1084;&#1072;&#1090;&#1077;&#1083;&#1085;&#1080;, &#1085;&#1077; &#1087;&#1088;&#1077;&#1076;&#1087;&#1088;&#1080;&#1077;&#1084;&#1072;&#1081;&#1090;&#1077; &#1088;&#1080;&#1089;&#1082;&#1086;&#1074;&#1080; &#1087;&#1086;&#1089;&#1090;&#1098;&#1087;&#1082;&#1080;, &#1082;&#1086;&#1080;&#1090;&#1086; &#1084;&#1086;&#1075;&#1072;&#1090; &#1076;&#1072; &#1042;&#1080; &#1085;&#1072;&#1074;&#1088;&#1077;&#1076;&#1103;&#1090;!";
      text[20] = "&#1055;&#1088;&#1077;&#1076;&#1089;&#1090;&#1086;&#1103;&#1090; &#1042;&#1080; &#1085;&#1077;&#1087;&#1088;&#1080;&#1103;&#1090;&#1085;&#1086;&#1089;&#1090;&#1080;, &#1082;&#1086;&#1085;&#1092;&#1083;&#1080;&#1082;&#1090;&#1080; &#1080; &#1082;&#1072;&#1074;&#1075;&#1080;!";
      text[21] = "&#1056;&#1072;&#1079;&#1095;&#1080;&#1090;&#1072;&#1081;&#1090;&#1077; &#1085;&#1072; &#1084;&#1098;&#1078; &#1087;&#1088;&#1080;&#1103;&#1090;&#1077;&#1083;, &#1072;&#1082;&#1086; &#1077; &#1079;&#1072; &#1078;&#1077;&#1085;&#1072; &#1089; &#1083;&#1102;&#1073;&#1086;&#1074;&#1085;&#1072; &#1082;&#1072;&#1088;&#1090;&#1072; &#1077; &#1084;&#1098;&#1078;, &#1082;&#1086;&#1081;&#1090;&#1086; &#1042;&#1080; &#1086;&#1073;&#1080;&#1095;&#1072;!";
      text[22] = "&#1056;&#1072;&#1079;&#1095;&#1080;&#1090;&#1072;&#1081;&#1090;&#1077; &#1085;&#1072; &#1078;&#1077;&#1085;&#1072; &#1087;&#1088;&#1080;&#1103;&#1090;&#1077;&#1083;&#1082;&#1072;, &#1072;&#1082;&#1086; &#1077; &#1079;&#1072; &#1084;&#1098;&#1078; &#1080; &#1077; &#1074; &#1082;&#1086;&#1084;&#1073;&#1080;&#1085;&#1072;&#1094;&#1080;&#1103; &#1089; &#1083;&#1102;&#1073;&#1086;&#1074;&#1085;&#1072; &#1082;&#1072;&#1088;&#1090;&#1072;, &#1077; &#1078;&#1077;&#1085;&#1072;, &#1082;&#1086;&#1103;&#1090;&#1086; &#1042;&#1080; &#1086;&#1073;&#1080;&#1095;&#1072;!";
      text[23] = "&#1053;&#1072;&#1081;-&#1074;&#1072;&#1078;&#1085;&#1086;&#1090;&#1086; &#1089;&#1077;&#1075;&#1072; &#1077; &#1088;&#1072;&#1073;&#1086;&#1090;&#1072;&#1090;&#1072; &#1080;/&#1080;&#1083;&#1080; &#1086;&#1073;&#1088;&#1072;&#1079;&#1086;&#1074;&#1072;&#1085;&#1080;&#1077;&#1090;&#1086;, &#1086;&#1089;&#1090;&#1072;&#1074;&#1077;&#1090;&#1077; &#1076;&#1088;&#1091;&#1075;&#1080;&#1090;&#1077; &#1085;&#1072;&#1095;&#1080;&#1085;&#1072;&#1085;&#1080;&#1103; &#1080; &#1082;&#1086;&#1085;&#1094;&#1077;&#1085;&#1090;&#1088;&#1080;&#1088;&#1072;&#1081;&#1090;&#1077; &#1091;&#1089;&#1080;&#1083;&#1080;&#1103;&#1090;&#1072; &#1089;&#1080; &#1090;&#1072;&#1084;!";
      text[24] = "&#1055;&#1088;&#1077;&#1076;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077; &#1079;&#1072; &#1078;&#1077;&#1085;&#1080;&#1090;&#1073;&#1072;, &#1083;&#1102;&#1073;&#1086;&#1074;&#1085;&#1086; &#1086;&#1073;&#1103;&#1089;&#1085;&#1077;&#1085;&#1080;&#1077;!";
      text[25] = "&#1055;&#1088;&#1077;&#1076;&#1089;&#1090;&#1086;&#1080; &#1042;&#1080; &#1074;&#1072;&#1078;&#1085;&#1072; &#1089;&#1088;&#1077;&#1097;&#1072;, &#1085;&#1072; &#1082;&#1086;&#1103;&#1090;&#1086; &#1097;&#1077; &#1087;&#1086;&#1083;&#1091;&#1095;&#1080;&#1090;&#1077; &#1087;&#1086;&#1076;&#1082;&#1088;&#1077;&#1087;&#1072; &#1080; &#1076;&#1086;&#1073;&#1088;&#1080; &#1085;&#1086;&#1074;&#1080;&#1085;&#1080;. &#1040;&#1082;&#1086; &#1089;&#1077; &#1087;&#1080;&#1090;&#1072;&#1090;&#1077; &#1079;&#1072; &#1083;&#1102;&#1073;&#1086;&#1074;- &#1089;&#1088;&#1077;&#1097;&#1072; &#1089; &#1083;&#1102;&#1073;&#1080;&#1084;&#1080;&#1103;, &#1089;&#1088;&#1077;&#1097;&#1072; &#1089;&#1098;&#1089; &#1079;&#1072;&#1087;&#1086;&#1079;&#1085;&#1072;&#1085;&#1089;&#1090;&#1074;&#1086; &#1089; &#1087;&#1086;&#1090;&#1077;&#1085;&#1094;&#1080;&#1072;&#1083;&#1077;&#1085; &#1083;&#1102;&#1073;&#1080;&#1084; /&#1083;&#1102;&#1073;&#1080;&#1084;&#1072; !";
      text[26] = "&#1055;&#1086;&#1074;&#1086;&#1076;, &#1079;&#1072; &#1087;&#1088;&#1072;&#1079;&#1085;&#1091;&#1074;&#1072;&#1085;&#1077; &#1080;&#1079;&#1087;&#1098;&#1083;&#1085;&#1077;&#1085; &#1089; &#1084;&#1085;&#1086;&#1075;&#1086; &#1088;&#1072;&#1076;&#1086;&#1089;&#1090; &#1080; &#1074;&#1077;&#1089;&#1077;&#1083;&#1080;&#1077;!";
      text[27] = "&#1045;&#1076;&#1085;&#1072; &#1086;&#1090; &#1085;&#1072;&#1081;-&#1093;&#1091;&#1073;&#1072;&#1074;&#1080;&#1090;&#1077; &#1082;&#1072;&#1088;&#1090;&#1080;, &#1091;&#1089;&#1087;&#1077;&#1093; &#1080; &#1087;&#1086;&#1073;&#1077;&#1076;&#1072; &#1074; &#1085;&#1072;&#1095;&#1080;&#1085;&#1072;&#1085;&#1080;&#1077;&#1090;&#1086;, &#1082;&#1086;&#1077;&#1090;&#1086; &#1089;&#1090;&#1077; &#1087;&#1088;&#1077;&#1076;&#1087;&#1088;&#1080;&#1077;&#1083;&#1080;!";
      text[28] = "&#1065;&#1077; &#1085;&#1072;&#1091;&#1095;&#1080;&#1090;&#1077; &#1074;&#1072;&#1078;&#1085;&#1072; &#1090;&#1072;&#1081;&#1085;&#1072;!";
      text[29] = "&#1055;&#1088;&#1077;&#1076;&#1089;&#1090;&#1086;&#1103;&#1090; &#1042;&#1080; &#1084;&#1085;&#1086;&#1075;&#1086; &#1084;&#1098;&#1082;&#1072; &#1080; &#1089;&#1098;&#1083;&#1079;&#1080;!";
      text[30] = "&#1055;&#1088;&#1080;&#1103;&#1090;&#1085;&#1086; &#1080; &#1088;&#1086;&#1084;&#1072;&#1085;&#1090;&#1080;&#1095;&#1085;&#1086; &#1087;&#1088;&#1077;&#1078;&#1080;&#1074;&#1103;&#1074;&#1072;&#1085;&#1077; &#1089; &#1083;&#1102;&#1073;&#1080;&#1084; &#1095;&#1086;&#1074;&#1077;&#1082;!";
      text[31] = "&#1042; &#1085;&#1072;&#1081;-&#1089;&#1082;&#1086;&#1088;&#1086; &#1074;&#1088;&#1077;&#1084;&#1077; &#1097;&#1077; &#1087;&#1086;&#1083;&#1091;&#1095;&#1080;&#1090;&#1077; &#1089;&#1082;&#1098;&#1087;&#1072; &#1087;&#1088;&#1080;&#1076;&#1086;&#1073;&#1080;&#1074;&#1082;&#1072;, &#1074;&#1098;&#1079;&#1084;&#1086;&#1078;&#1085;&#1086; &#1077; &#1076;&#1072; &#1077; &#1087;&#1086;&#1076;&#1072;&#1088;&#1098;&#1082;!";
      text[32] = "&#1055;&#1088;&#1077;&#1076;&#1089;&#1090;&#1086;&#1080; &#1042;&#1080; &#1076;&#1072; &#1074;&#1079;&#1077;&#1084;&#1077;&#1090;&#1077; &#1084;&#1072;&#1083;&#1082;&#1072; &#1089;&#1091;&#1084;&#1072; &#1087;&#1072;&#1088;&#1080;!";
      text[33] = "&#1052;&#1086;&#1083;&#1080;&#1090;&#1074;&#1080;&#1090;&#1077; &#1042;&#1080; &#1089;&#1072; &#1095;&#1091;&#1090;&#1080;, &#1080;&#1084;&#1072;&#1081;&#1090;&#1077; &#1074;&#1103;&#1088;&#1072;, &#1095;&#1077; &#1089;&#1082;&#1086;&#1088;&#1086; &#1097;&#1077; &#1042;&#1080; &#1089;&#1077; &#1087;&#1086;&#1084;&#1086;&#1075;&#1085;&#1077;!";
      text[34] = "&#1055;&#1088;&#1077;&#1089;&#1090;&#1072;&#1085;&#1077;&#1090;&#1077; &#1076;&#1072; &#1089;&#1077; &#1087;&#1088;&#1080;&#1090;&#1077;&#1089;&#1085;&#1103;&#1074;&#1072;&#1090;&#1077;. &#1052;&#1080;&#1089;&#1083;&#1077;&#1090;&#1077; &#1087;&#1086;&#1079;&#1080;&#1090;&#1080;&#1074;&#1085;&#1086; &#1080; &#1074;&#1089;&#1080;&#1095;&#1082;&#1086; &#1097;&#1077; &#1073;&#1098;&#1076;&#1077; &#1076;&#1086;&#1073;&#1088;&#1077;!";
      text[35] = "&#1042;&#1098;&#1088;&#1093;&#1091; &#1042;&#1072;&#1089; &#1080;&#1084;&#1072; &#1084;&#1072;&#1075;&#1080;&#1103;, &#1085;&#1091;&#1078;&#1085;&#1086; &#1077; &#1089;&#1087;&#1077;&#1096;&#1085;&#1086; &#1076;&#1072; &#1087;&#1086;&#1090;&#1098;&#1088;&#1089;&#1080;&#1090;&#1077; &#1087;&#1086;&#1084;&#1086;&#1097;, &#1079;&#1072; &#1076;&#1072; &#1089;&#1077; &#1087;&#1088;&#1077;&#1084;&#1072;&#1093;&#1085;&#1077;. &#1058;&#1072;&#1079;&#1080; &#1082;&#1072;&#1088;&#1090;&#1072;, &#1082;&#1086;&#1084;&#1073;&#1080;&#1085;&#1080;&#1088;&#1072;&#1085;&#1072; &#1089; &#1074;&#1089;&#1103;&#1082;&#1072; &#1076;&#1088;&#1091;&#1075;&#1072; &#1082;&#1072;&#1088;&#1090;&#1072; &#1087;&#1088;&#1077;&#1076;&#1089;&#1082;&#1072;&#1079;&#1074;&#1072; &#1079;&#1072;&#1075;&#1091;&#1073;&#1080; &#1080; &#1085;&#1077;&#1087;&#1088;&#1080;&#1103;&#1090;&#1085;&#1086;&#1089;&#1090;&#1080;!";
      text[36] = "&#1042;&#1098;&#1079;&#1084;&#1086;&#1078;&#1085;&#1080; &#1089;&#1072; &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;&#1080; &#1089;&#1098;&#1089; &#1079;&#1072;&#1074;&#1080;&#1089;&#1080;&#1084;&#1086;&#1089;&#1090;&#1080; &#1082;&#1072;&#1090;&#1086; &#1093;&#1072;&#1079;&#1072;&#1088;&#1090;, &#1072;&#1083;&#1082;&#1086;&#1093;&#1086;&#1083;&#1080;&#1079;&#1098;&#1084;, &#1085;&#1072;&#1088;&#1082;&#1086;&#1084;&#1072;&#1085;&#1080;&#1103;, &#1082;&#1072;&#1082;&#1090;&#1086; &#1080; &#1079;&#1072;&#1074;&#1080;&#1089;&#1080;&#1084;&#1086;&#1089;&#1090; &#1082;&#1098;&#1084; &#1095;&#1086;&#1074;&#1077;&#1082; &#1080;&#1083;&#1080; &#1074;&#1077;&#1097;!";
      text[37] = "&#1042;&#1080;&#1089;&#1096;&#1080;&#1090;&#1077; &#1089;&#1080;&#1083;&#1080; &#1042;&#1080; &#1079;&#1072;&#1082;&#1088;&#1080;&#1083;&#1103;&#1090; &#1080; &#1074;&#1080; &#1087;&#1086;&#1084;&#1072;&#1075;&#1072;&#1090;!";
      text[38] = "&#1057;&#1098;&#1076;&#1077;&#1073;&#1085;&#1080; &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;&#1080;, &#1085;&#1077;&#1087;&#1088;&#1080;&#1103;&#1090;&#1085;&#1086;&#1089;&#1090;&#1080; &#1089;&#1098;&#1089; &#1079;&#1072;&#1082;&#1086;&#1085;&#1072;, &#1089; &#1087;&#1086;&#1079;&#1080;&#1090;&#1080;&#1074;&#1085;&#1072; &#1082;&#1072;&#1088;&#1090;&#1072; &#1077; &#1087;&#1077;&#1095;&#1077;&#1083;&#1077;&#1085;&#1077; &#1085;&#1072; &#1076;&#1077;&#1083;&#1086; &#1080;&#1083;&#1080; &#1091;&#1089;&#1087;&#1077;&#1096;&#1077;&#1085; &#1080;&#1079;&#1093;&#1086;&#1076; &#1087;&#1088;&#1080; &#1074;&#1079;&#1072;&#1080;&#1084;&#1086;&#1076;&#1077;&#1081;&#1089;&#1090;&#1074;&#1080;&#1077; &#1089; &#1076;&#1098;&#1088;&#1078;&#1072;&#1074;&#1085;&#1080; &#1080;&#1085;&#1089;&#1090;&#1080;&#1090;&#1091;&#1094;&#1080;&#1080;!";
      text[39] = "&#1065;&#1077; &#1086;&#1090;&#1080;&#1076;&#1077;&#1090;&#1077; &#1085;&#1072; &#1075;&#1086;&#1089;&#1090;&#1080; &#1080;&#1083;&#1080; &#1097;&#1077; &#1087;&#1086;&#1089;&#1088;&#1077;&#1097;&#1085;&#1077;&#1090;&#1077; &#1075;&#1086;&#1089;&#1090;&#1080;!";

images = new Array;
for (i=0; i<n; i++) {
	images[i] = new Image();
	images[i].src = dir + i +'.png';
}

if (images.length!=text.length) {
alert("Броя на изображенията и броя на описанията не съвпада");
}
else{
rand1 = Math.floor(Math.random() * images.length);
if (cards>=2){
do
{
rand2 = Math.floor(Math.random() * images.length);
}
while (rand2 == rand1);
}
if (cards>=3){
do
{
rand3 = Math.floor(Math.random() * images.length);
}
while ((rand3 == rand1)||(rand3 == rand2));
}
if (cards>=4){
do
{
rand4 = Math.floor(Math.random() * images.length);
}
while ((rand4 == rand1)||(rand4 == rand2)||(rand4 == rand3));
}
if (cards>=5){
do
{
rand5 = Math.floor(Math.random() * images.length);
}
while ((rand5 == rand1)||(rand5 == rand2)||(rand5 == rand3)||(rand5 == rand4));
}

function pick() {
document.img1.src = images[rand1].src;
document.getElementById('desc1').innerHTML = text[rand1];
if (cards>=2){
document.img2.src = images[rand2].src;
document.getElementById('desc2').innerHTML = text[rand2];
}
if (cards>=3){
document.img3.src = images[rand3].src;
document.getElementById('desc3').innerHTML = text[rand3];
}
if (cards>=4){
document.img4.src = images[rand4].src;
document.getElementById('desc4').innerHTML = text[rand4];
}
if (cards=5){
document.img5.src = images[rand5].src;
document.getElementById('desc5').innerHTML = text[rand5];
}
}
}
