<?php
////////////////////
///ТАБЛИЦА - библиотека3------ расчитывается
 $biblio3 = array($sluch_mashtab_for_metod_izmeneniya_size_name,
$metod_razmnogeniya_name,
$metod_rotate_name,
$metod_kraska_name,
$random_stilizaciya_name,
$metod_deformacii_name,
'To write under the object:'.$random_vopros_name,
'To cover the object by a big piece of cloth - it should be' .$metod_kraska,
'Illuminate the object from all sides.',
'Break it.',
'Deconstruct and recombinate '.$random_predmet_name,
'Cut it on two pieces',
'Shoot it.',
'Cremate it.',
'Pour the object with kerosene and burn' .$random_predmet_name,
'Put it in the box.',
'Pour  paint in '.$metod_kraska,
'Pour acid.'
);
///Конец ТАБЛИЦА - библиотека3

///ТАБЛИЦА - библиотека5_деформация ------ расчитывается
 $biblio5_deformaciya = array('Burn it.','Covered the object with soil.','Cut it.','Sprinkle with serpentine.',
'Hang garlands on the object.','Deconstruct it.','Pour ketchup.','Bury it.');
///Конец ТАБЛИЦА - библиотека5_деформация


///ТАБЛИЦА - библиотека10_стилизация ------ расчитывается
 $biblio10_stilizaciya = array(' The object has to be represented together with its picture and vocabulary entry. ',
' Make the object print in clay. This print is an artwork. ',
' Plunge the object in a blue color and make a print on canvas. This print is an artwork. ',
' Take a picture of the object and make some prints. The number of copies is' .$metod_razmnogeniya,
' Cut the object in half and put both parts into 2 glass vessels filled with formalin. Place them opposite each other about 1m apart.',
' Put the object on a pedestal. Put monitor with a web-cam in front of  it to translate the object on a monitor.',
);
///Конец ТАБЛИЦА - библиотека10_стилизация



///ТАБЛИЦА - библиотека9_название
 $biblio9_nazvanie = array(
'Frozen ',' Dull ',' Equitable ',' Caller ',' Cheap ','Foreign',' International ',' Strange ','Political','Free','Simple','Wild','Difficult','Abstract','Temporary','Fertilized','Symbolic','Sexy','Reflexive ',' Stable ',' Quiet ',' Spontaneous','Soulful','Mass',' Mental ',' Serious','Useless',' Analytical ',' Aesthetic','Democratic','Serial','Fantastic','Profitable','Educated ','Typical','Successful','Respectable','Permanent','Radical','Global','Total','Ironic','Individual','Right','Outside','Internal','Paradoxical ',' Absurd ','Local','Current','Nonconformist','Conformist','Avant-garde','Deconstructed','Clear','Central','Grand','Critical','Cynical','Big','New','Natural','Helpless','Explosive','Dummy','Effective'
 );
///Конец ТАБЛИЦА - библиотека9_название

///ТАБЛИЦА - библиотека9_2_название
 $biblio9_2_nazvanie = array('vulgarity','everyday','thoughtful','compound','attraction','slave','improvisation','truth','depression','expression','modernity','temporality','pantamorphia','childishness','indifference','metaphor','power','weakness','stability','harmony','revolution','solidarity','simplicity','complexity','religion','sincerity','stability','eternity','ovulation ','pedantry ',' sex ',' goodness','Russia','USA','Europe','power','threat','theory','position','claim','epoch','investment','generation','strategy','mentality','product','privilege','struggle','interpretation','victory','form','irony','pornography','Utopia','figure','statistic','culture','appearance','speed','history','artistry','fiction','Fairy Tale','structure','formality','banality','originality','allegory','dependency','expansion','tautology');
///Конец ТАБЛИЦА - библиотека9_2_название

///ТАБЛИЦА - библиотека9_3_название
 $biblio9_3_nazvanie = array(' ',' ','mini','neo',' ',' ','proto','meta','super',' ','mega','hiper','','','','','' );
///Конец ТАБЛИЦА - библиотека9_3_название

///ТАБЛИЦА - библиотека8_1_экспонирование
 $biblio8_1_eksponirovanie = array('in contemporary art museum','in historical museum','in art gallery','on square','in a forest','in a field','in church','on the street','in the flat','in the basement','at landfill','in an abandoned room','at the factory', 'in a garden','at school','in park','in hospital');
///Конец ТАБЛИЦА - библиотека8_1_экспонирование

///ТАБЛИЦА - библиотека8_2_экспонирование
 $biblio8_2_eksponirovanie = array(' and hang it in the air. ',' and put it on a pedestal.','on the floor.',' and attach it vertically to anything.');
///Конец ТАБЛИЦА - библиотека8_2_экспонирование

///ТАБЛИЦА - библиотека11_вопросы
 $biblio11_voprosi = array(' Why?',' What`s going on?',' For what it is?',' Who needs it?',' What is it?',' And what?',' Now what?',' What is the meaning?',' What is next?',' Now how?',' What to do next?',' Who is next?',' What is the meaning of this art?',' This is art?',' This is not art.',' This is bad art.',' This is good art.');
///Конец ТАБЛИЦА - библиотека11_вопросы

///ТАБЛИЦА - библиотека4_краски
 $biblio4_kraski = array(' red',' blue',' green',' yellow',' dark blue',' pink.',' violet.',' brown.',' white',' gray');
///Конец ТАБЛИЦА - библиотека4_краски





///ТАБЛИЦА - библиотека_кем_сделано
 $biblio_kem_sdelano = array('manually by the artist.','by hired mexicans.','by hired tajiks.','by hired black workers.','by hired chinese.','by hired russian workers.','by hired americans.','by the artist using contemporary technology. ');
///Конец ТАБЛИЦА - библиотека_кем_сделано


///ТАБЛИЦА - библиотека2
 $biblio2 = array('made of plastic','made of wood','made of glass','made of paper','made of bread','made of clay','made of cardboard','made of  gypsum','made of polished aluminum','made of wax','made of porcelain','made of white marble','made of black marble','made of bronze','made of copper','made of ice','made of stone','made of polyurethane','made of iron','made of textile materials','made of papier-mache','made of silicone');
///Конец ТАБЛИЦА - библиотека2

///ТАБЛИЦА - библиотека1
 $biblio1 = array(array('a chair','ХУ','расчленяемый','НЖ'),array('a cat','Х','расчленяемый','Ж'),array('a pie','ХУ','расчленяемый','НЖ'),array('a book','У','нерасчленяемый','НЖ'),array('a keyboard','ХУ','расчленяемый','НЖ'),array('a phone','ХУ','расчленяемый','НЖ'),array('a televizor','ХУ','расчленяемый','НЖ'),array('a fork','ХУ','нерасчленяемый','НЖ'),array('a bike','ХУ','расчленяемый','НЖ'),array('Putin','Х','расчленяемый','Ж'),array('Mickey Mouse','Х','расчленяемый','Ж'),array('Hitler','Х','расчленяемый','Ж'),array('Lenin','Х','расчленяемый','Ж'),array('a cactus','У','нерачленяемый','НЖ'),array('a fish','Х','нерасчленяемый','НЖ'),array('a sheep','Х','расчленяемый','Ж'),array('a baby','Х','расчленяемый','Ж'),array('a fly','Х','расчленяемый','НЖ'),array('Marylin Monro ','Х','расчленяемый','Ж'),array('a dog','Х','расчленяемый','Ж'),array('a parrot','ХУ','расчленяемый','НЖ'),array('a word SHIT','Х','расчленяемый','НЖ'),array('a word GOD','Х','расчленяемый',''),array('a word MOTHER','Х','расчленяемый',''),array('a word ART','Х','расчленяемый','НЖ'),array('a word RUSSIA','Х','расчленяемый','НЖ'),array('brand Coca-Cola','Х','расчленяемый','НЖ'),array('Santa Claus','Х','','Ж'),array('a penis','ХУ','',''),array('a mushroom','Х','','НЖ'),array('a zebra','Х','','Ж'),array('a cross','Х','',''),array('a word DOWN!','Х','','НЖ'),array('mannequin','ХУ','','Ж'),array('Homer Simpson','Х','','Ж'),array('Batman','Х','','Ж'),array('a pig','Х','','Ж'),array('a hamburger','Х','','НЖ'),array('shoes','ХУ','','НЖ'),array('tomato','ХУ','',''),array('Venus de Milo','Х','','Ж'),array('chinese','Х','','Ж'),array('a clock','ХУ','','НЖ'),array('a lamp','У','',''),array('table lamp','У','','НЖ'),array('a kettle','У','','НЖ'),array('a ladle','У','','НЖ'),array('a vacuum cleaner','У','','НЖ'),array('urinal','ХУ','','НЖ'),array('a pipe','У','','НЖ'),array('a tube','У','','НЖ'),array('Buddha statue','Х','','Ж'),array('brand Macdonald`s','Х','','НЖ'),array('a word SOUL','Х','',''),array('refrigerator','У','','НЖ'),array('a cupboard','ХУ','','НЖ'),array('a gun','ХУ','','НЖ'),array('a flower','ХУ','','НЖ'),array('a word WAR','Х','','НЖ'),array('cockroach','Х','','Ж'),array('soup Campbell','У','','НЖ'),array('a skull','ХУ','','НЖ'),array('a toilet roll','ХУ','','НЖ'),array('pliers','ХУ','','НЖ'),array('a hammer','ХУ','','НЖ'),array('boots','У','',''),array('a portrait of Stalin','У','','НЖ'),array('a bread','ХУ','','НЖ'),array('a computer mouse','ХУ','',''),array('a fan','ХУ','',''),array('a knife','ХУ','',''),array('ear','Х','',''),array('nose','Х','',''),array('bear','Х','','Ж'),array('caucasian','Х','','Ж'),array('knuckles','ХУ','','НЖ'),array('a sigarette','ХУ','','НЖ'),array('world map','ХУ','','НЖ'),array('a book "Capital"','ХУ','','НЖ'),array('a toothbrush','ХУ','',''),array(' aplastic cup','У','','НЖ'),array('easel','ХУ','','НЖ'),array('bed','ХУ','',''),array('scissors','ХУ','',''),array('a mandarin','Х','','НЖ'),array('candy','Х','','НЖ'),array('Medvedev','Х','','Ж'),array('slogan NOT ONE STEP BACK!','Х','',''),array('an apple','Х','',''),array('a soldier','Х','','Ж'),array('a mannequin without head','У','','НЖ'),array('a head of mannequin','У','','НЖ'),array('brain','Х','',''),array('a coffin','У','',''),array('Surrealist Manifesto','У','','НЖ'),array('manifesto of futurism ','У','','НЖ'),array('georgian','Х','','Ж'),array('passport','ХУ','','НЖ'),array('a policeman','Х','','Ж'),array('a cap','У','','НЖ'),array('popcorn','ХУ','',''),array('cowboy','Х','','Ж'),array('a baseball bat','У','',''),array('a trap','У','','НЖ'),array('a piece of cheese','Х','','НЖ'),array('a rabbit','Х','','Ж'),array('a wooden fence','У','',''),array('a bomb','Х','',''),array('Kennedy','Х','','Ж'),array('an article Kossuth "Art after Philosophy"','У','','НЖ'),array('a medal of Merit','ХУ','',''),array('a carpet','У','','НЖ'),array('a milk bottle','ХУ','',''),array('a bench','ХУ','',''),array('condom','ХУ','',''),array('a videotape','ХУ','',''),array('a dustbin','У','',''),array('a ladder','ХУ','',''),array('a globe','ХУ','','НЖ'),array('a racoon','Х','','Ж'),array('a coin','ХУ','','НЖ'),array('1 euro','ХУ','','НЖ'),array('a pillow','ХУ','',''),array('mattress','ХУ','',''),array('mailbox','ХУ','','НЖ'),array('toilet brush','ХУ','',''),array('Michael Jackson ','Х','','Ж'),array('swastika','Х','','НЖ'),array('a symbol Hammer and Sickle','Х','','НЖ'),array('Pope','Х','','Ж'),array('an ax','ХУ','',''),array('a pan','ХУ','',''),array('a cake','ХУ','',''),array('a tombstone','ХУ','',''));
///Конец ТАБЛИЦА - библиотека1

///ТАБЛИЦА - оФОРМЛЕНИЕ
 $oformlenie = array('Объект ','Взять','Экспонировать готовый объект','Объект должен быть сделан ');
///Конец ТАБЛИЦА - оФОРМЛЕНИЕ

/////////////////////////////////////////////////////////////////////
// init constant
$kemsdelano_count = count($biblio_kem_sdelano)-1;
$voprosi_count = count($biblio11_voprosi)-1;
 $predmeti_count = count($biblio1)-1;
 $materiali_count = count($biblio2)-1;
$metody_count = count($biblio3)-1;
 $kraski_count = count($biblio4_kraski)-1;
$sposobi_deformacii_count = count($biblio5_deformaciya)-1;
$name_count=count($biblio6_imena)-1;
$stilizaciya_count=count($biblio10_stilizaciya)-1;
$sreda_eksponirovaniya_count = count($biblio8_1_eksponirovanie)-1;
$sposob_eksponirovaniya_count = count($biblio8_2_eksponirovanie)-1;
$prilagatelnoe_count = count($biblio9_nazvanie)-1;
$pristavka_count = count($biblio9_3_nazvanie)-1;
$sushestvitelnoe_count = count($biblio9_2_nazvanie)-1;
/////////////////
 $auto_random_number = rand(10,100)/100;
$tek_float_random_number = rand(10,100)/100;
$tek_int_random_number = rand();
$tek_float_random_number2 = rand(10,100)/100;
$tek_int_random_number2 = rand();
$tek_float_random_number3 = rand(10,100)/100;
$tek_int_random_number3 = rand();
$metod_count = 9;
$metod_count1 = 5;
 $a1 = rand(0,$metod_count);
 $a2 = rand(0,$metod_count);
 while ($a2 == $a1) echo $a2 = rand(0,$metod_count);
 $a3 = rand(0,$metod_count);
 while ($a3 == $a1 or $a3 == $a2) echo $a3 = rand(0,$metod_count);
///////////////////////////////// end init constant

 $var = 0;
   $i = 0;
   while(++$i <= $var)
   {
      echo($i); echo('<br>');  
   }

/////////////////////РАСЧЕТЫ
 $random_predmet_number = rand(0,$predmeti_count);
  $random_predmet_name = $biblio1[$random_predmet_number][0];
  $random_predmet_material = $biblio1[$random_predmet_number][1];
  $sluch_vozmoznost_ispol_nerodn_materiala = $tek_int_random_number%2;

 $sluch_vibranniy_material = ($tek_int_random_number%$materiali_count)+1;
 $sluch_vibranniy_material_name = $biblio2[$sluch_vibranniy_material];

if($random_predmet_material=='Х' || ($random_predmet_material=='ХУ' && $sluch_vozmoznost_ispol_nerodn_materiala==1))
{
$sluch_vibranniy_material_name_result = $sluch_vibranniy_material_name;
}else
{
$sluch_vibranniy_material_name_result ='';
}
 
/////////////////
 $random_count_metods = ($tek_int_random_number%3)+1;


 $sluch_mashtab_for_metod_izmeneniya_size =round(rand(10,500)/100,1);
 $sluch_mashtab_for_metod_izmeneniya_size_name = "Change size of  $random_predmet_name to $sluch_mashtab_for_metod_izmeneniya_size  m.";

$metod_razmnogeniya =($tek_int_random_number%45)+5;
 $metod_razmnogeniya_name = "Increase the quantity of objects to $metod_razmnogeniya. ";

 $metod_rotate_name = "Rotate the object on 90 degrees.";

$random_kraska = rand(0,$kraski_count);
 $metod_kraska = $biblio4_kraski[$random_kraska];
 $metod_kraska_name = "To paint $random_predmet_name in $metod_kraska color.";



$random_stilizaciya = ($tek_int_random_number%$stilizaciya_count)+1;
$random_stilizaciya_name = $biblio10_stilizaciya[$random_stilizaciya];

$predmet_properties = $biblio1[$random_predmet_number][3];

$random_resize_predmet_for_NG = ($tek_int_random_number%4)+3;
$random_resize_predmet_for_NG_part1 = ($tek_int_random_number%$random_resize_predmet_for_NG)+1;
$random_resize_predmet_for_NG_part2 = (($tek_int_random_number+(($tek_int_random_number%$random_resize_predmet_for_NG-1)+1))%$random_resize_predmet_for_NG)+1;

if($predmet_properties=='Х')
{
$resize_predmet_for_NG_promeg_rezult = 'разделить объект на 5 частей - 4 конечности (верхние - части №1 и №2, нижние - части №3 и №4) и голову(часть №5)';
}else
{
if($random_resize_predmet_for_NG<=4){$chasti="части";}else{$chasti="частей";}
$resize_predmet_for_NG_promeg_rezult ="разделить на $random_resize_predmet_for_NG $chasti";
}


$metod_recombination_rezult = "$resize_predmet_for_NG_promeg_rezult. Поменять местами $random_resize_predmet_for_NG_part1-ю и $random_resize_predmet_for_NG_part2-ю части.";

$metod_apropriacii = rand(0,$name_count);
$metod_apropriacii_name = $biblio6_imena[$metod_apropriacii];




$sreda_eksponirovaniya = ($tek_int_random_number%$sreda_eksponirovaniya_count)+1;
$sreda_eksponirovaniya_name = $biblio8_1_eksponirovanie[$sreda_eksponirovaniya];

$sposob_eksponirovaniya = ($tek_int_random_number%$sposob_eksponirovaniya_count)+1;
$sposob_eksponirovaniya_name = $biblio8_2_eksponirovanie[$sposob_eksponirovaniya];

$random_prilagatelnoe = rand(0,$prilagatelnoe_count);
$random_prilagatelnoe_name = $biblio9_nazvanie[$random_prilagatelnoe];

$random_pristavka = rand(0,$pristavka_count);
$random_pristavka_name = $biblio9_3_nazvanie[$random_pristavka];

$random_sushestvitelnoe = rand(0,$sushestvitelnoe_count);
$random_sushestvitelnoe_name = $biblio9_2_nazvanie[$random_sushestvitelnoe];



$random_vopros = rand(0,$voprosi_count);
$random_vopros_name = $biblio11_voprosi[$random_vopros];


 $random_kemsdelano = rand(0,$kemsdelano_count);
$random_kemsdelano_name = $biblio_kem_sdelano[$random_kemsdelano];

 $random_deform = rand(0,$sposobi_deformacii_count);
  $metod_deformacii = $biblio5_deformaciya[$random_deform];
 $metod_deformacii_name = $metod_deformacii;

///ТАБЛИЦА - библиотека3------ расчитывается
 $biblio3 = array($sluch_mashtab_for_metod_izmeneniya_size_name,
$metod_razmnogeniya_name,
$metod_rotate_name,
$metod_kraska_name,
$random_stilizaciya_name,
$metod_deformacii_name,
'To write under the object:'.$random_vopros_name,
'To cover the object by a big piece of cloth - it should be' .$metod_kraska,
'Illuminate the object from all sides.',
'Break it.',
'Deconstruct and recombinate '.$random_predmet_name,
'Cut it on two pieces',
'Shoot it.',
'Cremate it.',
'Pour the object with kerosene and burn' .$random_predmet_name,
'Put it in the box.',
'Pour paint $random_predmet_name in '.$metod_kraska,
'Pour acid.'
);
///Конец ТАБЛИЦА - библиотека3

///ТАБЛИЦА - библиотека5_деформация ------ расчитывается
 $biblio5_deformaciya = array('Burn it.','Covered the object with soil.','Cut it.','Sprinkle with serpentine.',
'Hang garlands on the object.','Deconstruct it.','Pour ketchup.','Bury it.');
///Конец ТАБЛИЦА - библиотека5_деформация


///ТАБЛИЦА - библиотека10_стилизация ------ расчитывается
 $biblio10_stilizaciya = array(' The object has to be represented together with its picture and vocabulary entry. ',
' Make the object print in clay. This print is an artwork. ',
' Plunge the object in a blue color and make a print on canvas. This print is an artwork. ',
' Take a picture of the object and make some prints. The number of copies is' .$metod_razmnogeniya,
' Cut the object in half and put both parts into 2 glass vessels filled with formalin. Place them opposite each other about 1m apart.',
' Put the object on a pedestal. Put monitor with a web-cam in front of  it to translate the object on a monitor.',
);
///Конец ТАБЛИЦА - библиотека10_стилизация


$vibranniy_metod_1 = $a1;
 $vibranniy_metod_1_name = $biblio3[$vibranniy_metod_1];

 $vibranniy_metod_2 = $a2;
  $vibranniy_metod_2_name = $biblio3[$vibranniy_metod_2];

 $vibranniy_metod_3 = $a3;
  $vibranniy_metod_3_name = $biblio3[$vibranniy_metod_3];
$all_metod ="$vibranniy_metod_1_name  ";
if($random_count_metods>=2)
{
$all_metod .=' '.$vibranniy_metod_2_name.'';
}
if($random_count_metods>=3)
{
$all_metod .=' '.$vibranniy_metod_3_name;
}
//////////////////КОНЕЦ РАСЧЕТОВ

//ВИЗУАЛИЗАЦИЯ 

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<META http-equiv="Content-Type" content="text/html; charset=UTF8">
<div id="wrapper" style="width:899px;margin:auto;border:1px solid white; height:356px">
&nbsp;<p><font face="Helvetica">
<a style="float:right;margin-right:20px;" href="index_text_en.htm">
<font color="#000080">about</font></a></font>
<a style="margin:20px" href="index.html"><font color="#000080">Home</font></a></a><font color="#000080">
</font>

<h1 align="center">&nbsp;</h1>
<h1 align="center">Instruction for creating a piece of art</h1>
<br>
<div style="font-size:20px;font-weight:bold;margin:20px;font-family: Helvetica, sans-serif;font-weight:bold;">
	<span style="font-weight: 400"><font-family: Helvetica, sans-serif;'>Art object <?php echo $random_prilagatelnoe_name.' '.$random_pristavka_name.$random_sushestvitelnoe_name;?>  
	</font></span>  </div>

<div style="font-size:16px;margin:20px;font-family: Helvetica, sans-serif;"><span style="font-size: 16pt">Take <?php echo $random_predmet_name.' '.$sluch_vibranniy_material_name_result;?>  
	</font></span>  </div>
<div style="font-size:16px;margin:20px;font-family: Helvetica, sans-serif;"> <span style="font-size: 16pt"> <?php echo $all_metod ?>  
</font>	</span>  </div>
<div style="font-size:16px;margin:20px;font-family: Helvetica, sans-serif;"><span style="font-size: 16pt">This object must be made <?php echo $random_kemsdelano_name ?>  
</font>	</span>  </div>
<div style="font-size:16px;margin:20px;font-family: Helvetica, sans-serif;"><span style="font-size: 16pt">Expose art object <?php echo $sreda_eksponirovaniya_name.', '.$sposob_eksponirovaniya_name ?>  
</font>	</span>
	<p>&nbsp;</div>

<b><font face="Arial">

<a style="margin:20px; font-size:17px; font-family: Helvetica, sans-serif;" href="idea_en.php"><font color="#000080">Generate again</font></a><u><font color="#000080">
 </font></u></font></b>
</div>


