<?php

function get_radio($file="config/radio.php"){
$full = trim(ltrim(file_get_contents($file)));
$ol=unserialize(trim(ltrim($full))); 
return $ol;
}

function save_radio($arrs,$file="config/radio.php"){
$old=file_get_contents($file);
$n=array();
$n[name]=$arrs[1];
$n[url]=$arrs[2];
for($i=3;$i<13;$i++) $n[items][]=$arrs[$i];
$ol=unserialize(trim(ltrim($old))); $new_save=array();

for($i=1;$i<7;$i++){
	if($i!=$arrs[0]) $new_save[$i]=$ol[$i]; else $new_save[$i]=$n;
}

$f=fopen($file,"w+");
if(flock($f, LOCK_EX)===TRUE){
fputs($f,serialize($new_save));
flock($f, LOCK_UN);
}
fclose($f);
}


function save_full($arrs,$file="config/settings.txt"){
$old=file_get_contents($file);
$f=fopen($file,"w+");
if(flock($f, LOCK_EX)===TRUE){
fputs($f,implode("{raznoe}",$arrs));
flock($f, LOCK_UN);
}
fclose($f);
$new=file_get_contents($file);
if(strlen($new)<10) save_full($arrs,$file);
}

function get_full_list($file="config/settings.txt"){
$full = trim(ltrim(file_get_contents($file)));

$arr=array();
list($ssvar,$ssoften,$ssoftens,$sspostr,$sscache,$sshh,$ssmm,$ssss,$sslyr,$sslim,$sslim_play,$sslimtime,$ssbit,$sssize,$sscharset,$ssservers,$ssstop,$ssctime,$ssoneurl,$sscomm,$ssoneurltime,$ssctime2,$europa1,$europa2,$europa3,$europa4,$europa5,$europa6,$europa7,$europa8,$europa9,$europa10,$europa11,$europa12,$europa13,$europa14,$europa15,$europa16,$europa17,$europa18,$europa19,$europa20,$russkoe1,$russkoe2,$russkoe3,$russkoe4,$russkoe5,$russkoe6,$russkoe7,$russkoe8,$russkoe9,$russkoe10,$russkoe11,$russkoe12,$russkoe13,$russkoe14,$russkoe15,$russkoe16,$russkoe17,$russkoe18,$russkoe19,$russkoe20,$maximum1,$maximum2,$maximum3,$maximum4,$maximum5,$maximum6,$maximum7,$maximum8,$maximum9,$maximum10,$maximum11,$maximum12,$maximum13,$maximum14,$maximum15,$maximum16,$maximum17,$maximum18,$maximum19,$maximum20,$dfm1,$dfm2,$dfm3,$dfm4,$dfm5,$dfm6,$dfm7,$dfm8,$dfm9,$dfm10,$dfm11,$dfm12,$dfm13,$dfm14,$dfm15,$dfm16,$dfm17,$dfm18,$dfm19,$dfm20,$nashe1,$nashe2,$nashe3,$nashe4,$nashe5,$nashe6,$nashe7,$nashe8,$nashe9,$nashe10,$nashe11,$nashe12,$nashe13,$nashe14,$nashe15,$nashe16,$nashe17,$nashe18,$nashe19,$nashe20,$shanson1,$shanson2,$shanson3,$shanson4,$shanson5,$shanson6,$shanson7,$shanson8,$shanson9,$shanson10,$shanson11,$shanson12,$shanson13,$shanson14,$shanson15,$shanson16,$shanson17,$shanson18,$shanson19,$shanson20) = explode('{raznoe}', $full);
$arr=array('ssvar'=>$ssvar,'ssoften'=>$ssoften,'ssoftens'=>$ssoftens,'sspostr'=>$sspostr, 'sscache'=>$sscache, 'sshh'=>$sshh, 'ssmm'=>$ssmm, 'ssss'=>$ssss, 'sslyr'=>$sslyr, 'sslim'=>$sslim, 'sslim_play'=>$sslim_play, 'sslimtime'=>$sslimtime, 'ssbit'=>$ssbit,'sssize'=>$sssize,'sscharset'=>$sscharset,'ssservers'=>$ssservers,'ssstop'=>$ssstop,'ssctime'=>$ssctime,'ssoneurl'=>$ssoneurl,'sscomm'=>$sscomm,'ssoneurltime'=>$ssoneurltime,'ssctime'=>$ssctime,'europa1'=>$europa1,'europa2'=>$europa2,'europa3'=>$europa3,'europa4'=>$europa4,'europa5'=>$europa5,'europa6'=>$europa6,'europa7'=>$europa7,'europa8'=>$europa8,'europa9'=>$europa9,'europa10'=>$europa10,'europa11'=>$europa11,'europa12'=>$europa12,'europa13'=>$europa13,'europa14'=>$europa14,'europa15'=>$europa15,'europa16'=>$europa16,'europa17'=>$europa17,'europa18'=>$europa18,'europa19'=>$europa19,'europa20'=>$europa20,'russkoe1'=>$russkoe1,'russkoe2'=>$russkoe2,'russkoe3'=>$russkoe3,'russkoe4'=>$russkoe4,'russkoe5'=>$russkoe5,'russkoe6'=>$russkoe6,'russkoe7'=>$russkoe7,'russkoe8'=>$russkoe8,'russkoe9'=>$russkoe9,'russkoe10'=>$russkoe10,'russkoe11'=>$russkoe11,'russkoe12'=>$russkoe12,'russkoe13'=>$russkoe13,'russkoe14'=>$russkoe14,'russkoe15'=>$russkoe15,'russkoe16'=>$russkoe16,'russkoe17'=>$russkoe17,'russkoe18'=>$russkoe18,'russkoe19'=>$russkoe19,'russkoe20'=>$russkoe20,'maximum1'=>$maximum1,'maximum2'=>$maximum2,'maximum3'=>$maximum3,'maximum4'=>$maximum4,'maximum5'=>$maximum5,'maximum6'=>$maximum6,'maximum7'=>$maximum7,'maximum8'=>$maximum8,'maximum9'=>$maximum9,'maximum10'=>$maximum10,'maximum11'=>$maximum11,'maximum12'=>$maximum12,'maximum13'=>$maximum13,'maximum14'=>$maximum14,'maximum15'=>$maximum15,'maximum16'=>$maximum16,'maximum17'=>$maximum17,'maximum18'=>$maximum18,'maximum19'=>$maximum19,'maximum20'=>$maximum20,'dfm1'=>$dfm1,'dfm2'=>$dfm2,'dfm3'=>$dfm3,'dfm4'=>$dfm4,'dfm5'=>$dfm5,'dfm6'=>$dfm6,'dfm7'=>$dfm7,'dfm8'=>$dfm8,'dfm9'=>$dfm9,'dfm10'=>$dfm10,'dfm11'=>$dfm11,'dfm12'=>$dfm12,'dfm13'=>$dfm13,'dfm14'=>$dfm14,'dfm15'=>$dfm15,'dfm16'=>$dfm16,'dfm17'=>$dfm17,'dfm18'=>$dfm18,'dfm19'=>$dfm19,'dfm20'=>$dfm20,'nashe1'=>$nashe1,'nashe2'=>$nashe2,'nashe3'=>$nashe3,'nashe4'=>$nashe4,'nashe5'=>$nashe5,'nashe6'=>$nashe6,'nashe7'=>$nashe7,'nashe8'=>$nashe8,'nashe9'=>$nashe9,'nashe10'=>$nashe10,'nashe11'=>$nashe11,'nashe12'=>$nashe12,'nashe13'=>$nashe13,'nashe14'=>$nashe14,'nashe15'=>$nashe15,'nashe16'=>$nashe16,'nashe17'=>$nashe17,'nashe18'=>$nashe18,'nashe19'=>$nashe19,'nashe20'=>$nashe20,'shanson1'=>$shanson1,'shanson2'=>$shanson2,'shanson3'=>$shanson3,'shanson4'=>$shanson4,'shanson5'=>$shanson5,'shanson6'=>$shanson6,'shanson7'=>$shanson7,'shanson8'=>$shanson8,'shanson9'=>$shanson9,'shanson10'=>$shanson10,'shanson11'=>$shanson11,'shanson12'=>$shanson12,'shanson13'=>$shanson13,'shanson14'=>$shanson14,'shanson15'=>$shanson15,'shanson16'=>$shanson16,'shanson17'=>$shanson17,'shanson18'=>$shanson18,'shanson19'=>$shanson19,'shanson20'=>$shanson20);
return $arr;
}

function stop_ll($txt){
global $full_list;
$txt=iconv('utf-8','windows-1251',$txt);
$txt=strtolower($txt);
$list=explode("\n",$full_list[ssstop]);
if(count($list)) foreach($list as $k=>$v) if(trim(ltrim($v))=="") unset($list[$k]); else {  $list[$k]=iconv('utf-8','windows-1251',trim(ltrim($v)));
 $list[$k]=strtolower(trim(ltrim($list[$k]))); }
$n=0;
if(count($list)) foreach($list as $k=>$v){
	//if(strpos()===true) $xs=str_replace("+","|",$v)."|"; else $xs='';
	if(preg_match("~".str_replace("+","|",$v)."|".$v."~",$txt,$as)){$n=1; break; }
}
if($n==1) return true; else return false;
}

function get_db_list($file="config/dbconfig.txt"){
$akks = trim(ltrim(file_get_contents($file)));
$arr=array();
list($host, $login,$pass,$dbname,$coll) = explode(';;;', $akks);
$arr=array('host'=>$host, 'login'=>$login, 'pass'=>$pass, 'dbname'=>$dbname, 'coll'=>$coll);
return $arr;
}

function save_db($arrs,$file="config/dbconfig.txt"){
$f=fopen($file,"w");
fputs($f,implode(";;;",$arrs));
fclose($f);
}

function check_db($arrs){
if($db = new db_connect($arrs[0], $arrs[1], $arrs[2], $arrs[3], true) AND $db->connect) return 'DB Connect!';
else return 'ERROR! DB disconnect!';
}


function add_akk($arrs,$file="config/account.txt"){
file_put_contents($file, "\n".implode(';', $arrs) . "\n", FILE_APPEND);
}

function check_idd($vkid,$apiid){
$sig_vk = md5(
  $vkid.'api_id='.$apiid.'count=1lyrics=0method=audio.searchoffset=0q=toolsort=0test_mode=1v=3.0');
 $xml_response = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$apiid.'&count=1&lyrics=0&method=audio.search&offset=0&q=tool&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$apiid.'_'.$apiid);
 
  /*ob_start();*/
  $parse = simplexml_load_string(trim(ltrim($xml_response)));
  /*echo $xml_response;
  echo "\n---\n";
  print_r($parse);
  echo $parse->count." - c\n";
  echo $parse->item." - i\n";
  $asg=ob_get_contents();
  ob_end_flush();
  file_put_contents("111.txt",$asg);
  */
  if(!isset($parse->error_msg) AND (isset($parse->count) OR isset($parse->item))) return true;
  else return false;
}

function check_akk($arrs,$file="config/account.txt"){
$outer=array();
$akks = preg_split("/[\r\n]+/", file_get_contents($file), -1, PREG_SPLIT_NO_EMPTY);
$max = count($akks);
for ($i = 0; $i < $max; $i++) {
	list($vkid,$apiid) = explode(';', $akks[$i]);
	if (isset($arrs[md5($vkid.$apiid)])){
		if ($arrs[md5($vkid.$apiid)]=="true"){
			if(check_idd($vkid,$apiid)) $outer[]=md5($vkid.$apiid).'=true';
			else $outer[]=md5($vkid.$apiid).'=false';
		} else $outer[]=md5($vkid.$apiid).'=no';
	} else $outer[]=md5($vkid.$apiid).'=no';
}
return implode(";",$outer);
}

function del_akk($arrs,$file="config/account.txt"){
$akks = preg_split("/[\r\n]+/", file_get_contents($file), -1, PREG_SPLIT_NO_EMPTY);
$max = count($akks);
for ($i = 0; $i < $max; $i++) {
	list($vkid,$apiid) = explode(';', $akks[$i]);
	if ($arrs[md5($vkid.$apiid)]=="true") unset($akks[$i]);
}
file_put_contents($file, implode("\n", $akks) . "\n");
}

function get_akk_list($file="config/account.txt"){
$akks = preg_split("/[\r\n]+/", file_get_contents($file), -1, PREG_SPLIT_NO_EMPTY);
$arr=array();
for ($i = 0; $i < count($akks); $i++) {
list($vkid, $apiid) = explode(';', $akks[$i]);
if(strlen($vkid)>0 AND strlen($apiid)>0) $arr[]=array('vk_id'=>$vkid, 'api_id'=>$apiid);
}
return $arr;
}





function cache_xx($query,$p,$akk_on,$sig_vk,$skoka_viv){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cache/".$tmpfname.".txt"))
		{
		$xml_response=file_get_contents(dirname(__FILE__)."/../cache/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_response=get_xml_response($akk_on,$sig_vk,$query,$skoka_viv);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_response)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_response,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cache/".$tmpfname.".txt", w);
			fputs($fpt,$xml_response);
			fclose($fpt);
			}
		}
} else $xml_response=get_xml_response($akk_on,$sig_vk,$query,$skoka_viv); 
return $xml_response;
}

function get_xml_response($akk_on,$sig_vk,$query,$skoka_viv){
	global $full_list;
 $xml_response = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count='.$full_list['ssoften'].''.
    '&lyrics=0&method=audio.search&offset='.$skoka_viv.'&q='.urlencode($query).'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_response;
}

function get_sig($akk_on,$query,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count='.$full_list['ssoften']
  .'lyrics=0method=audio.searchoffset='.$skoka_viv.'q='.$query.'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function query_write($q,$file='zapros.php'){
global $db;
$armar=array();
$armar=unserialize( trim( @file_get_contents($file) ) );
    if(count($armar)<=1) $armar[3]="TOOL";
@array_unshift($armar, $q);
$armar = @array_unique($armar);
if(count($armar)>50) { $armar=array_chunk($armar, 50);  $armar=$armar[0];}
//print_r($armar);
$fff=fopen($file,w); flock($fff, LOCK_EX);
fputs($fff,serialize($armar) );
flock($fff, LOCK_UN); 
fclose($fff);


}

function get_lyr($id){
	global $akk_list;
$akk_on=new_apiid($akk_list);
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'lyrics_id='.$id.'method=audio.getLyricstest_mode=1v=3.0');
 $xml_response = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&lyrics_id='.$id.'&method=audio.getLyrics&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
$parse = @simplexml_load_string(trim(ltrim($xml_response)));
if($parse->lyrics->text AND strlen($parse->lyrics->text)>3) return $parse->lyrics->text;
else return false;
}

function Send_Post($post_url, $post_data, $refer)
{ //echo "<br>--POST--<br>";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $post_url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_REFERER, $refer);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
  curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.00');
   $data = curl_exec($ch);
  curl_close($ch);
  return $data;
}





function delete_temp_f($directory,$hh,$mm,$ss)
{ global $full_list;

$time1=trim(ltrim(file_get_contents(dirname(__FILE__)."/time.txt")));

if(($time1+(10*60))<time()){
 if(!is_dir($directory)) { mkdir($directory, 0755); chmod($directory, 0755); } 
   $dir = opendir ($directory);
   while (( $file = readdir ($dir)))
   {
     if( is_file ($directory."/".$file))
     {
       $acc_time = fileatime ($directory."/".$file);
       $time =  time();
       if (($time - $acc_time) > ( $hh*60*60 + $mm*60 + $ss) )
       {
 @unlink ($directory."/".$file);
       }
     }
     else if ( is_dir ($directory."/".$file) && ($file != ".") && ($file != ".."))
     {
       delete_temp_f ($directory."/".$file,$hh,$mm,$ss);
     }
   }
   closedir ($dir);
   $full_list[ssctime]=time();



$f=fopen(dirname(__FILE__)."/time.txt","w+");
if(flock($f, LOCK_EX)===TRUE){
fputs($f,time());
flock($f, LOCK_UN);
}
fclose($f);

}
}
	
if(!function_exists('totranslit')){
function totranslit($string)
{
$arr=array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','à','á','â','ã','ä','å','¸','æ','ç','è','é','ê','ë','ì','í','î','ï','ð','ñ','ò','ó','ô','õ','ö','÷','ø','ù','ú','û','ü','ý','þ','ÿ','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','À','Á','Â','Ã','Ä','Å','¨','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ','Ö','×','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß','1','2','3','4','5','6','7','8','9','0','!',',','.','-','_','+','@','#','$','&','(',')','=','\'','"','~','`','¹',' ');
$arr2=array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b','v','g','d','e','e','zh','z','i','y','k','l','m','n','o','p','r','s','t','u','f','h','c','ch','sh','sch','\'','i','\'','ye','yu','ya','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','A','B','V','G','D','E','E','ZH','Z','I','Y','K','L','M','N','O','P','R','S','T','U','F','H','C','CH','SH','SCH','\'','I','\'','YE','YU','YA','1','2','3','4','5','6','7','8','9','0','!',',','.','-','_','_','@','#','$','&','(',')','=','\'','"','~','`','¹','_');
$string = str_replace($arr,$arr2,$string);
return($string);
}
}

function clean_text($string)
{ global $full_list;
$arr=array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','à','á','â','ã','ä','å','¸','æ','ç','è','é','ê','ë','ì','í','î','ï','ð','ñ','ò','ó','ô','õ','ö','÷','ø','ù','ú','û','ü','ý','þ','ÿ','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','À','Á','Â','Ã','Ä','Å','¨','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ','Ö','×','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß','1','2','3','4','5','6','7','8','9','0','!',',','.','-','_','+','@','#','$','&','(',')','=','\'','"','~','`','¹',' ');

$string=iconv(get_encoding($string), 'windows-1251', $string);
$new="";
$my=str_split($string,1);
	/*echo "len:".count($my)."<br>";*/
for($i=0; $i<count($my);$i++){
	if(array_search($my[$i],$arr, true)!==FALSE) $new.=$my[$i];
	if($i+1<count($my) AND array_search($my[$i].$my[$i+1],$arr, true)!==FALSE) $new.=$my[$i].$my[$i+1];
}
	
return $new;
}

function get_encoding($str){
    $cp_list = array('utf-8', 'windows-1251', 'windows-1252', 'cp1251', 'windows-1251','KOI-7','KOI-8','KOI8-R','KOI8-T','KOI8-U','KOI8','KOI8R','KOI8U','KOI-7');
    foreach ($cp_list as $k=>$codepage){
        if (md5($str) === md5(iconv($codepage, $codepage, $str))){
            return $codepage;
        }
    }
    return 'utf-8';
}

function get_bitrate($info,$bufer=5,$tdir=""){
	if($tdir=="") $tdir=dirname(__FILE__)."/../cache/";
	$outer=array();
preg_match("~^http://(.*)/(.*)$~Ui",$info,$out);
$fname='/'.$out[2];
$fhost=$out[1];
if(!function_exists(getMP3data)) require dirname(__FILE__)."/getMP3info.php";

$fp = @fsockopen($fhost, 80, $errno, $errstr, 5);
fputs($fp,"GET $fname HTTP/1.0\nHOST: $fhost\n\n");
while($xs=fgets($fp,2048) AND !feof($fp) AND $xs!="\r\n"){
	if(preg_match("/Content-Length: ([0-9]+)/",$xs,$size)) $outer[size]=$size[1];
	unset($xs);
	}
$x='';
while(!feof($fp)){
$x.=fgets($fp,1024);

	if(strlen($x)>=($bufer*1024)) break;
	}
fclose($fp);
	$fs=fopen($tdir.md5($info).".mp3",w); 
	fputs($fs,$x);
	fclose($fs);
	$kalo = @getMP3data($tdir.md5($info).".mp3");
unlink($tdir.md5($info).".mp3");
$outer[bit]=$kalo[bitrate];
return $outer;
}


function remote_filesize($url)      
{   
   ob_start();  
   $ch = curl_init($url);   
   curl_setopt($ch, CURLOPT_HEADER, 1);   
   curl_setopt($ch, CURLOPT_NOBODY, 1);   
   $ok = curl_exec($ch);   
   curl_close($ch);   
   $head = ob_get_contents();   
   ob_end_clean();   
   $regex = '/Content-Length:\s([0-9].+?)\s/';   
   $count = preg_match($regex, $head, $matches);   
   return isset($matches[1]) ? array('size'=>$matches[1]) : array('size'=>'0');   
} 

function crat_size($bytes, $format = '', $force = ''){
  $force = strtoupper($force);
  $defaultFormat = '%01d %s';
  if (strlen($format) == 0)
  $format = $defaultFormat;
  $bytes = max(0, (int) $bytes);
  $units = array('B', 'KB', 'MB&nbsp;', 'GB', 'TB', 'PB');
  $power = array_search($force, $units);
  if ($power === false)
  $power = $bytes > 0 ? floor(log($bytes, 1024)) : 0;
  return sprintf($format, $bytes / pow(1024, $power), $units[$power]);
}

function get_servers(){
	global $full_list;
	$lis=explode("\n",$full_list[ssservers]);
	$ne=array();
	for($i=0;$i<count($lis);$i++) if(strlen(trim(ltrim($lis[$i])))>2) $ne[]=trim(ltrim($lis[$i]));
	return $ne[rand(0,count($ne)-1)];
} 




function cache_v($query,$p,$akk_on,$sig_vk,$skoka_vivv){
global $full_list,$xtem;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cache_video/".$tmpfname.".txt"))
		{ //echo "<br>-cache-<br>";
		$xml_responsev=file_get_contents(dirname(__FILE__)."/../cache_video/".$tmpfname.".txt");
		}
		else
		{
		//Äåëàåì POST-çàïðîñ ê API, ïåðåäàâàÿ ïîäãîòîâëåííûå ïàðàìåòðû 
		$xml_responsev=get_xml_responsev($akk_on,$sig_vk,$query,$skoka_vivv);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsev)));
			if(!strpos($xml_responsev,"error_msg") AND strpos($xml_responsev,"<video>") AND count($aaasd->video)>0)
			{ 
			$fpt=fopen(dirname(__FILE__)."/../cache_video/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsev);
			fclose($fpt);
			}
		}
} else $xml_responsev=get_xml_responsev($akk_on,$sig_vk,$query,$skoka_vivv); 
return $xml_responsev;
}

// ÇÀÏÐÎÑ
function get_xml_responsev($akk_on,$sig_vk,$query,$skoka_vivv){
	global $full_list;
 $xml_responsev = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count='.$full_list[sslimtime].''.
    '&lyrics=0&method=video.search&offset=4&q='.$query.'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vkontakte.ru/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsev;
}

// ÔÎÐÌÈÐÎÂÀÍÈÅ ÏÎÄÏÈÑÈ
function get_sigv($akk_on,$query,$skoka_vivv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count='.$full_list[sslimtime].'lyrics=0method=video.searchoffset=4q='.$query.'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function get_list($uid){
	if (file_exists(dirname(__FILE__)."/../userl/".$uid."/plist.txt")){
		$count=0;
		$text=file_get_contents(dirname(__FILE__)."/../userl/".$uid."/plist.txt");
		$text=explode("\n",$text); 
		if(count($text)>0) foreach($text as $ke=>$va) if(strlen($va)<10) unset($text[$ke]);
		$item=array();
		if(count($text)>0) foreach($text as $ke=>$va){
			if(list($pos, $aid, $oid, $autor, $title, $time) = explode("{red}",$va)){
				$item[$pos][pos]=$pos;
				$item[$pos][aid]=$aid;
				$item[$pos][oid]=$oid;
				$item[$pos][autor]=$autor;
				$item[$pos][title]=$title;
				$item[$pos][time]=$time;
				$count++;
				ksort($item);
				reset($item);
			}
		}
	return array('count'=>$count,'item'=>$item);
	} else return array('count'=>0,'item'=>'');
}



function get_dir($abc,$page=0,$dirr=''){
	$abc=strtolower ($abc);
	$dirr=($dirr=="")?dirname(__FILE__)."/../txtbd/":$dirr;
	$directory=$dirr.$abc;
if(!is_dir($directory)) {return array('count'=>0,'item'=>''); break;} // mkdir($directory, 0755); chmod($directory, 0755); } // åñëè êàòàëîã äëÿ âðåìåííûõ ôàéëîâ íå ñóùåñòâóåò, ñîçäàåì åãî
   $dir = opendir ($directory); $count=0; $text='';
   while (( $file = readdir ($dir)))
   { //$file=iconv('windows-1251','utf-8',$file);
     if( is_file ($directory."/".$file))
     { $count++;
		//$directory."/".$file
		 $text=file_get_contents($directory.'/'.$abc."_".$page.".txt");
     }
   }
   closedir ($dir);
   $count=$count*100;
   return array('count'=>$count,'item'=>$text);
}

function cache_xxd($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsed=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsed=get_xml_responsed($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsed)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsed,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsed);
			fclose($fpt);
			}
		}
} else $xml_responsed=get_xml_responsed($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsed;
}

function get_xml_responsed($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsed = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count='.$full_list['ssoftens'].''.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q=*&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsed;
}

function get_sigd($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count='.$full_list['ssoftens']
  .'lyrics=0method=audio.searchoffset='.$skoka_vivg.'q=*sort=0test_mode=1v=3.0');
return $sig_vk;
}



















function cache_xxeuropa1($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa1=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa1=get_xml_responseeuropa1($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa1,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa1);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa1=get_xml_responseeuropa1($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa1;
}

function get_xml_responseeuropa1($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa1 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa1'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa1;
}

function get_sigeuropa1($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa1'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxeuropa2($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa2=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa2=get_xml_responseeuropa2($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa2,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa2);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa2=get_xml_responseeuropa2($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa2;
}

function get_xml_responseeuropa2($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa2 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa2'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa2;
}

function get_sigeuropa2($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa2'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxeuropa3($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa3=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa3=get_xml_responseeuropa3($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa3,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa3);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa3=get_xml_responseeuropa3($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa3;
}

function get_xml_responseeuropa3($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa3 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa3'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa3;
}

function get_sigeuropa3($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa3'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxeuropa4($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa4=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa4=get_xml_responseeuropa4($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa4,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa4);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa4=get_xml_responseeuropa4($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa4;
}

function get_xml_responseeuropa4($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa4 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa4'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa4;
}

function get_sigeuropa4($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa4'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxeuropa5($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa5=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa5=get_xml_responseeuropa5($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa5,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa5);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa5=get_xml_responseeuropa5($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa5;
}

function get_xml_responseeuropa5($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa5 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa5'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa5;
}

function get_sigeuropa5($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa5'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxeuropa6($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa6=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa6=get_xml_responseeuropa6($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa6,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa6);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa6=get_xml_responseeuropa6($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa6;
}

function get_xml_responseeuropa6($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa6 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa6'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa6;
}

function get_sigeuropa6($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa6'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxeuropa7($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa7=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa7=get_xml_responseeuropa7($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa7,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa7);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa7=get_xml_responseeuropa7($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa7;
}

function get_xml_responseeuropa7($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa7 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa7'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa7;
}

function get_sigeuropa7($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa7'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxeuropa8($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa8=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa8=get_xml_responseeuropa8($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa8,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa8);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa8=get_xml_responseeuropa8($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa8;
}

function get_xml_responseeuropa8($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa8 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa8'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa8;
}

function get_sigeuropa8($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa8'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxeuropa9($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa9=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa9=get_xml_responseeuropa9($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa9,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa9);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa9=get_xml_responseeuropa9($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa9;
}

function get_xml_responseeuropa9($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa9 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa9'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa9;
}

function get_sigeuropa9($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa9'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}



function cache_xxeuropa10($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa10=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa10=get_xml_responseeuropa10($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa10,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa10);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa10=get_xml_responseeuropa10($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa10;
}

function get_xml_responseeuropa10($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa10 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa10'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa10;
}

function get_sigeuropa10($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa10'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxeuropa11($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa11=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa11=get_xml_responseeuropa11($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa11,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa11);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa11=get_xml_responseeuropa11($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa11;
}

function get_xml_responseeuropa11($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa11 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa11'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa11;
}

function get_sigeuropa11($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa11'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxeuropa12($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa12=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa12=get_xml_responseeuropa12($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa12,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa12);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa12=get_xml_responseeuropa12($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa12;
}

function get_xml_responseeuropa12($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa12 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa12'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa12;
}

function get_sigeuropa12($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa12'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxeuropa13($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa13=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa13=get_xml_responseeuropa13($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa13,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa13);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa13=get_xml_responseeuropa13($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa13;
}

function get_xml_responseeuropa13($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa13 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa13'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa13;
}

function get_sigeuropa13($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa13'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxeuropa14($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa14=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa14=get_xml_responseeuropa14($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa14,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa14);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa14=get_xml_responseeuropa14($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa14;
}

function get_xml_responseeuropa14($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa14 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa14'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa14;
}

function get_sigeuropa14($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa14'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxeuropa15($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa15=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa15=get_xml_responseeuropa15($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa15,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa15);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa15=get_xml_responseeuropa15($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa15;
}

function get_xml_responseeuropa15($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa15 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa15'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa15;
}

function get_sigeuropa15($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa15'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxeuropa16($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa16=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa16=get_xml_responseeuropa16($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa16,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa16);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa16=get_xml_responseeuropa16($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa16;
}

function get_xml_responseeuropa16($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa16 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa16'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa16;
}

function get_sigeuropa16($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa16'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxeuropa17($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa17=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa17=get_xml_responseeuropa17($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa17,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa17);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa17=get_xml_responseeuropa17($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa17;
}

function get_xml_responseeuropa17($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa17 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa17'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa17;
}

function get_sigeuropa17($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa17'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxeuropa18($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa18=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa18=get_xml_responseeuropa18($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa18,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa18);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa18=get_xml_responseeuropa18($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa18;
}

function get_xml_responseeuropa18($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa18 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa18'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa18;
}

function get_sigeuropa18($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa18'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxeuropa19($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa19=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa19=get_xml_responseeuropa19($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa19,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa19);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa19=get_xml_responseeuropa19($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa19;
}

function get_xml_responseeuropa19($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa19 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa19'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa19;
}

function get_sigeuropa19($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa19'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxeuropa20($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseeuropa20=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseeuropa20=get_xml_responseeuropa20($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseeuropa)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseeuropa20,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseeuropa20);
			fclose($fpt);
			}
		}
} else $xml_responseeuropa20=get_xml_responseeuropa20($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseeuropa20;
}

function get_xml_responseeuropa20($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseeuropa20 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['europa20'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseeuropa20;
}

function get_sigeuropa20($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['europa20'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe1($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe1=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe1=get_xml_responserusskoe1($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe1,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe1);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe1=get_xml_responserusskoe1($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe1;
}

function get_xml_responserusskoe1($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe1 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe1'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe1;
}

function get_sigrusskoe1($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe1'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe2($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe2=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe2=get_xml_responserusskoe2($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe2,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe2);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe2=get_xml_responserusskoe2($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe2;
}

function get_xml_responserusskoe2($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe2 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe2'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe2;
}

function get_sigrusskoe2($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe2'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxrusskoe3($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe3=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe3=get_xml_responserusskoe3($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe3,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe3);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe3=get_xml_responserusskoe3($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe3;
}

function get_xml_responserusskoe3($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe3 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe3'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe3;
}

function get_sigrusskoe3($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe3'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe4($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe4=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe4=get_xml_responserusskoe4($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe4,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe4);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe4=get_xml_responserusskoe4($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe4;
}

function get_xml_responserusskoe4($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe4 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe4'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe4;
}

function get_sigrusskoe4($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe4'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxrusskoe5($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe5=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe5=get_xml_responserusskoe5($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe5,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe5);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe5=get_xml_responserusskoe5($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe5;
}

function get_xml_responserusskoe5($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe5 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe5'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe5;
}

function get_sigrusskoe5($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe5'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxrusskoe6($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe6=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe6=get_xml_responserusskoe6($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe6,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe6);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe6=get_xml_responserusskoe6($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe6;
}

function get_xml_responserusskoe6($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe6 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe6'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe6;
}

function get_sigrusskoe6($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe6'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxrusskoe7($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe7=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe7=get_xml_responserusskoe7($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe7,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe7);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe7=get_xml_responserusskoe7($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe7;
}

function get_xml_responserusskoe7($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe7 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe7'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe7;
}

function get_sigrusskoe7($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe7'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxrusskoe8($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe8=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe8=get_xml_responserusskoe8($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe8,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe8);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe8=get_xml_responserusskoe8($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe8;
}

function get_xml_responserusskoe8($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe8 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe8'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe8;
}

function get_sigrusskoe8($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe8'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe9($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe9=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe9=get_xml_responserusskoe9($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe9,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe9);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe9=get_xml_responserusskoe9($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe9;
}

function get_xml_responserusskoe9($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe9 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe9'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe9;
}

function get_sigrusskoe9($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe9'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}



function cache_xxrusskoe10($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe10=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe10=get_xml_responserusskoe10($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe10,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe10);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe10=get_xml_responserusskoe10($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe10;
}

function get_xml_responserusskoe10($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe10 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe10'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe10;
}

function get_sigrusskoe10($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe10'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxrusskoe11($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe11=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe11=get_xml_responserusskoe11($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe11,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe11);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe11=get_xml_responserusskoe11($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe11;
}

function get_xml_responserusskoe11($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe11 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe11'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe11;
}

function get_sigrusskoe11($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe11'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxrusskoe12($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe12=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe12=get_xml_responserusskoe12($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe12,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe12);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe12=get_xml_responserusskoe12($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe12;
}

function get_xml_responserusskoe12($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe12 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe12'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe12;
}

function get_sigrusskoe12($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe12'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxrusskoe13($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe13=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe13=get_xml_responserusskoe13($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe13,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe13);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe13=get_xml_responserusskoe13($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe13;
}

function get_xml_responserusskoe13($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe13 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe13'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe13;
}

function get_sigrusskoe13($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe13'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxrusskoe14($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe14=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe14=get_xml_responserusskoe14($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe14,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe14);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe14=get_xml_responserusskoe14($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe14;
}

function get_xml_responserusskoe14($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe14 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe14'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe14;
}

function get_sigrusskoe14($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe14'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe15($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe15=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe15=get_xml_responserusskoe15($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe15,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe15);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe15=get_xml_responserusskoe15($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe15;
}

function get_xml_responserusskoe15($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe15 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe15'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe15;
}

function get_sigrusskoe15($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe15'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe16($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe16=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe16=get_xml_responserusskoe16($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe16,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe16);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe16=get_xml_responserusskoe16($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe16;
}

function get_xml_responserusskoe16($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe16 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe16'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe16;
}

function get_sigrusskoe16($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe16'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe17($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe17=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe17=get_xml_responserusskoe17($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe17,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe17);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe17=get_xml_responserusskoe17($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe17;
}

function get_xml_responserusskoe17($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe17 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe17'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe17;
}

function get_sigrusskoe17($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe17'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxrusskoe18($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe18=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe18=get_xml_responserusskoe18($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe18,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe18);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe18=get_xml_responserusskoe18($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe18;
}

function get_xml_responserusskoe18($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe18 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe18'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe18;
}

function get_sigrusskoe18($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe18'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe19($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe19=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe19=get_xml_responserusskoe19($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe19,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe19);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe19=get_xml_responserusskoe19($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe19;
}

function get_xml_responserusskoe19($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe19 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe19'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe19;
}

function get_sigrusskoe19($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe19'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxrusskoe20($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responserusskoe20=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responserusskoe20=get_xml_responserusskoe20($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responserusskoe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responserusskoe20,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responserusskoe20);
			fclose($fpt);
			}
		}
} else $xml_responserusskoe20=get_xml_responserusskoe20($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responserusskoe20;
}

function get_xml_responserusskoe20($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responserusskoe20 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['russkoe20'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responserusskoe20;
}

function get_sigrusskoe20($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['russkoe20'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxmaximum1($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum1=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum1=get_xml_responsemaximum1($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum1,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum1);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum1=get_xml_responsemaximum1($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum1;
}

function get_xml_responsemaximum1($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum1 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum1'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum1;
}

function get_sigmaximum1($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum1'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxmaximum2($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum2=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum2=get_xml_responsemaximum2($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum2,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum2);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum2=get_xml_responsemaximum2($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum2;
}

function get_xml_responsemaximum2($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum2 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum2'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum2;
}

function get_sigmaximum2($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum2'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxmaximum3($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum3=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum3=get_xml_responsemaximum3($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum3,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum3);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum3=get_xml_responsemaximum3($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum3;
}

function get_xml_responsemaximum3($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum3 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum3'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum3;
}

function get_sigmaximum3($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum3'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxmaximum4($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum4=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum4=get_xml_responsemaximum4($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum4,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum4);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum4=get_xml_responsemaximum4($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum4;
}

function get_xml_responsemaximum4($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum4 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum4'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum4;
}

function get_sigmaximum4($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum4'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxmaximum5($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum5=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum5=get_xml_responsemaximum5($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum5,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum5);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum5=get_xml_responsemaximum5($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum5;
}

function get_xml_responsemaximum5($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum5 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum5'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum5;
}

function get_sigmaximum5($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum5'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxmaximum6($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum6=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum6=get_xml_responsemaximum6($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum6,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum6);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum6=get_xml_responsemaximum6($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum6;
}

function get_xml_responsemaximum6($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum6 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum6'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum6;
}

function get_sigmaximum6($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum6'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxmaximum7($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum7=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum7=get_xml_responsemaximum7($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum7,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum7);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum7=get_xml_responsemaximum7($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum7;
}

function get_xml_responsemaximum7($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum7 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum7'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum7;
}

function get_sigmaximum7($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum7'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxmaximum8($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum8=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum8=get_xml_responsemaximum8($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum8,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum8);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum8=get_xml_responsemaximum8($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum8;
}

function get_xml_responsemaximum8($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum8 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum8'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum8;
}

function get_sigmaximum8($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum8'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxmaximum9($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum9=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum9=get_xml_responsemaximum9($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum9,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum9);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum9=get_xml_responsemaximum9($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum9;
}

function get_xml_responsemaximum9($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum9 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum9'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum9;
}

function get_sigmaximum9($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum9'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}



function cache_xxmaximum10($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum10=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum10=get_xml_responsemaximum10($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum10,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum10);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum10=get_xml_responsemaximum10($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum10;
}

function get_xml_responsemaximum10($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum10 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum10'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum10;
}

function get_sigmaximum10($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum10'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxmaximum11($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum11=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum11=get_xml_responsemaximum11($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum11,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum11);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum11=get_xml_responsemaximum11($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum11;
}

function get_xml_responsemaximum11($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum11 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum11'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum11;
}

function get_sigmaximum11($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum11'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxmaximum12($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum12=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum12=get_xml_responsemaximum12($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum12,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum12);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum12=get_xml_responsemaximum12($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum12;
}

function get_xml_responsemaximum12($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum12 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum12'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum12;
}

function get_sigmaximum12($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum12'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxmaximum13($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum13=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum13=get_xml_responsemaximum13($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum13,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum13);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum13=get_xml_responsemaximum13($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum13;
}

function get_xml_responsemaximum13($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum13 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum13'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum13;
}

function get_sigmaximum13($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum13'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxmaximum14($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum14=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum14=get_xml_responsemaximum14($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum14,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum14);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum14=get_xml_responsemaximum14($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum14;
}

function get_xml_responsemaximum14($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum14 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum14'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum14;
}

function get_sigmaximum14($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum14'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxmaximum15($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum15=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum15=get_xml_responsemaximum15($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum15,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum15);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum15=get_xml_responsemaximum15($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum15;
}

function get_xml_responsemaximum15($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum15 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum15'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum15;
}

function get_sigmaximum15($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum15'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxmaximum16($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum16=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum16=get_xml_responsemaximum16($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum16,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum16);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum16=get_xml_responsemaximum16($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum16;
}

function get_xml_responsemaximum16($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum16 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum16'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum16;
}

function get_sigmaximum16($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum16'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxmaximum17($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum17=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum17=get_xml_responsemaximum17($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum17,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum17);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum17=get_xml_responsemaximum17($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum17;
}

function get_xml_responsemaximum17($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum17 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum17'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum17;
}

function get_sigmaximum17($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum17'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxmaximum18($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum18=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum18=get_xml_responsemaximum18($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum18,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum18);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum18=get_xml_responsemaximum18($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum18;
}

function get_xml_responsemaximum18($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum18 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum18'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum18;
}

function get_sigmaximum18($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum18'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxmaximum19($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum19=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum19=get_xml_responsemaximum19($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum19,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum19);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum19=get_xml_responsemaximum19($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum19;
}

function get_xml_responsemaximum19($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum19 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum19'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum19;
}

function get_sigmaximum19($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum19'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxmaximum20($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsemaximum20=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsemaximum20=get_xml_responsemaximum20($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsemaximum)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsemaximum20,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsemaximum20);
			fclose($fpt);
			}
		}
} else $xml_responsemaximum20=get_xml_responsemaximum20($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsemaximum20;
}

function get_xml_responsemaximum20($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsemaximum20 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['maximum20'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsemaximum20;
}

function get_sigmaximum20($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['maximum20'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxdfm1($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm1=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm1=get_xml_responsedfm1($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm1,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm1);
			fclose($fpt);
			}
		}
} else $xml_responsedfm1=get_xml_responsedfm1($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm1;
}

function get_xml_responsedfm1($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm1 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm1'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm1;
}

function get_sigdfm1($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm1'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxdfm2($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm2=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm2=get_xml_responsedfm2($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm2,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm2);
			fclose($fpt);
			}
		}
} else $xml_responsedfm2=get_xml_responsedfm2($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm2;
}

function get_xml_responsedfm2($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm2 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm2'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm2;
}

function get_sigdfm2($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm2'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxdfm3($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm3=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm3=get_xml_responsedfm3($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm3,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm3);
			fclose($fpt);
			}
		}
} else $xml_responsedfm3=get_xml_responsedfm3($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm3;
}

function get_xml_responsedfm3($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm3 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm3'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm3;
}

function get_sigdfm3($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm3'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxdfm4($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm4=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm4=get_xml_responsedfm4($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm4,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm4);
			fclose($fpt);
			}
		}
} else $xml_responsedfm4=get_xml_responsedfm4($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm4;
}

function get_xml_responsedfm4($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm4 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm4'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm4;
}

function get_sigdfm4($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm4'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxdfm5($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm5=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm5=get_xml_responsedfm5($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm5,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm5);
			fclose($fpt);
			}
		}
} else $xml_responsedfm5=get_xml_responsedfm5($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm5;
}

function get_xml_responsedfm5($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm5 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm5'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm5;
}

function get_sigdfm5($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm5'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxdfm6($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm6=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm6=get_xml_responsedfm6($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm6,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm6);
			fclose($fpt);
			}
		}
} else $xml_responsedfm6=get_xml_responsedfm6($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm6;
}

function get_xml_responsedfm6($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm6 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm6'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm6;
}

function get_sigdfm6($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm6'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxdfm7($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm7=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm7=get_xml_responsedfm7($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm7,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm7);
			fclose($fpt);
			}
		}
} else $xml_responsedfm7=get_xml_responsedfm7($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm7;
}

function get_xml_responsedfm7($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm7 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm7'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm7;
}

function get_sigdfm7($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm7'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxdfm8($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm8=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm8=get_xml_responsedfm8($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm8,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm8);
			fclose($fpt);
			}
		}
} else $xml_responsedfm8=get_xml_responsedfm8($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm8;
}

function get_xml_responsedfm8($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm8 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm8'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm8;
}

function get_sigdfm8($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm8'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxdfm9($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm9=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm9=get_xml_responsedfm9($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm9,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm9);
			fclose($fpt);
			}
		}
} else $xml_responsedfm9=get_xml_responsedfm9($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm9;
}

function get_xml_responsedfm9($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm9 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm9'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm9;
}

function get_sigdfm9($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm9'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}



function cache_xxdfm10($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm10=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm10=get_xml_responsedfm10($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm10,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm10);
			fclose($fpt);
			}
		}
} else $xml_responsedfm10=get_xml_responsedfm10($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm10;
}

function get_xml_responsedfm10($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm10 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm10'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm10;
}

function get_sigdfm10($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm10'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxdfm11($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm11=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm11=get_xml_responsedfm11($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm11,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm11);
			fclose($fpt);
			}
		}
} else $xml_responsedfm11=get_xml_responsedfm11($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm11;
}

function get_xml_responsedfm11($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm11 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm11'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm11;
}

function get_sigdfm11($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm11'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxdfm12($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm12=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm12=get_xml_responsedfm12($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm12,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm12);
			fclose($fpt);
			}
		}
} else $xml_responsedfm12=get_xml_responsedfm12($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm12;
}

function get_xml_responsedfm12($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm12 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm12'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm12;
}

function get_sigdfm12($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm12'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxdfm13($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm13=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm13=get_xml_responsedfm13($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm13,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm13);
			fclose($fpt);
			}
		}
} else $xml_responsedfm13=get_xml_responsedfm13($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm13;
}

function get_xml_responsedfm13($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm13 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm13'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm13;
}

function get_sigdfm13($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm13'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxdfm14($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm14=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm14=get_xml_responsedfm14($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm14,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm14);
			fclose($fpt);
			}
		}
} else $xml_responsedfm14=get_xml_responsedfm14($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm14;
}

function get_xml_responsedfm14($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm14 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm14'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm14;
}

function get_sigdfm14($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm14'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxdfm15($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm15=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm15=get_xml_responsedfm15($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm15,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm15);
			fclose($fpt);
			}
		}
} else $xml_responsedfm15=get_xml_responsedfm15($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm15;
}

function get_xml_responsedfm15($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm15 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm15'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm15;
}

function get_sigdfm15($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm15'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxdfm16($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm16=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm16=get_xml_responsedfm16($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm16,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm16);
			fclose($fpt);
			}
		}
} else $xml_responsedfm16=get_xml_responsedfm16($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm16;
}

function get_xml_responsedfm16($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm16 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm16'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm16;
}

function get_sigdfm16($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm16'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxdfm17($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm17=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm17=get_xml_responsedfm17($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm17,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm17);
			fclose($fpt);
			}
		}
} else $xml_responsedfm17=get_xml_responsedfm17($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm17;
}

function get_xml_responsedfm17($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm17 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm17'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm17;
}

function get_sigdfm17($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm17'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxdfm18($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm18=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm18=get_xml_responsedfm18($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm18,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm18);
			fclose($fpt);
			}
		}
} else $xml_responsedfm18=get_xml_responsedfm18($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm18;
}

function get_xml_responsedfm18($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm18 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm18'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm18;
}

function get_sigdfm18($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm18'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxdfm19($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm19=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm19=get_xml_responsedfm19($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm19,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm19);
			fclose($fpt);
			}
		}
} else $xml_responsedfm19=get_xml_responsedfm19($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm19;
}

function get_xml_responsedfm19($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm19 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm19'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm19;
}

function get_sigdfm19($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm19'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxdfm20($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsedfm20=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsedfm20=get_xml_responsedfm20($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsedfm)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsedfm20,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsedfm20);
			fclose($fpt);
			}
		}
} else $xml_responsedfm20=get_xml_responsedfm20($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsedfm20;
}

function get_xml_responsedfm20($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsedfm20 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['dfm20'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsedfm20;
}

function get_sigdfm20($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['dfm20'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxnashe1($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe1=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe1=get_xml_responsenashe1($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe1,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe1);
			fclose($fpt);
			}
		}
} else $xml_responsenashe1=get_xml_responsenashe1($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe1;
}

function get_xml_responsenashe1($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe1 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe1'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe1;
}

function get_signashe1($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe1'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxnashe2($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe2=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe2=get_xml_responsenashe2($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe2,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe2);
			fclose($fpt);
			}
		}
} else $xml_responsenashe2=get_xml_responsenashe2($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe2;
}

function get_xml_responsenashe2($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe2 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe2'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe2;
}

function get_signashe2($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe2'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxnashe3($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe3=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe3=get_xml_responsenashe3($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe3,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe3);
			fclose($fpt);
			}
		}
} else $xml_responsenashe3=get_xml_responsenashe3($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe3;
}

function get_xml_responsenashe3($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe3 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe3'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe3;
}

function get_signashe3($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe3'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxnashe4($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe4=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe4=get_xml_responsenashe4($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe4,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe4);
			fclose($fpt);
			}
		}
} else $xml_responsenashe4=get_xml_responsenashe4($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe4;
}

function get_xml_responsenashe4($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe4 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe4'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe4;
}

function get_signashe4($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe4'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxnashe5($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe5=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe5=get_xml_responsenashe5($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe5,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe5);
			fclose($fpt);
			}
		}
} else $xml_responsenashe5=get_xml_responsenashe5($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe5;
}

function get_xml_responsenashe5($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe5 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe5'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe5;
}

function get_signashe5($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe5'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxnashe6($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe6=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe6=get_xml_responsenashe6($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe6,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe6);
			fclose($fpt);
			}
		}
} else $xml_responsenashe6=get_xml_responsenashe6($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe6;
}

function get_xml_responsenashe6($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe6 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe6'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe6;
}

function get_signashe6($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe6'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxnashe7($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe7=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe7=get_xml_responsenashe7($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe7,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe7);
			fclose($fpt);
			}
		}
} else $xml_responsenashe7=get_xml_responsenashe7($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe7;
}

function get_xml_responsenashe7($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe7 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe7'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe7;
}

function get_signashe7($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe7'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxnashe8($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe8=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe8=get_xml_responsenashe8($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe8,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe8);
			fclose($fpt);
			}
		}
} else $xml_responsenashe8=get_xml_responsenashe8($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe8;
}

function get_xml_responsenashe8($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe8 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe8'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe8;
}

function get_signashe8($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe8'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxnashe9($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe9=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe9=get_xml_responsenashe9($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe9,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe9);
			fclose($fpt);
			}
		}
} else $xml_responsenashe9=get_xml_responsenashe9($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe9;
}

function get_xml_responsenashe9($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe9 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe9'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe9;
}

function get_signashe9($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe9'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}



function cache_xxnashe10($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe10=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe10=get_xml_responsenashe10($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe10,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe10);
			fclose($fpt);
			}
		}
} else $xml_responsenashe10=get_xml_responsenashe10($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe10;
}

function get_xml_responsenashe10($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe10 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe10'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe10;
}

function get_signashe10($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe10'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxnashe11($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe11=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe11=get_xml_responsenashe11($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe11,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe11);
			fclose($fpt);
			}
		}
} else $xml_responsenashe11=get_xml_responsenashe11($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe11;
}

function get_xml_responsenashe11($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe11 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe11'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe11;
}

function get_signashe11($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe11'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxnashe12($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe12=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe12=get_xml_responsenashe12($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe12,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe12);
			fclose($fpt);
			}
		}
} else $xml_responsenashe12=get_xml_responsenashe12($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe12;
}

function get_xml_responsenashe12($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe12 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe12'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe12;
}

function get_signashe12($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe12'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxnashe13($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe13=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe13=get_xml_responsenashe13($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe13,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe13);
			fclose($fpt);
			}
		}
} else $xml_responsenashe13=get_xml_responsenashe13($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe13;
}

function get_xml_responsenashe13($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe13 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe13'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe13;
}

function get_signashe13($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe13'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxnashe14($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe14=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe14=get_xml_responsenashe14($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe14,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe14);
			fclose($fpt);
			}
		}
} else $xml_responsenashe14=get_xml_responsenashe14($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe14;
}

function get_xml_responsenashe14($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe14 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe14'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe14;
}

function get_signashe14($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe14'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxnashe15($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe15=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe15=get_xml_responsenashe15($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe15,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe15);
			fclose($fpt);
			}
		}
} else $xml_responsenashe15=get_xml_responsenashe15($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe15;
}

function get_xml_responsenashe15($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe15 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe15'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe15;
}

function get_signashe15($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe15'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxnashe16($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe16=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe16=get_xml_responsenashe16($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe16,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe16);
			fclose($fpt);
			}
		}
} else $xml_responsenashe16=get_xml_responsenashe16($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe16;
}

function get_xml_responsenashe16($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe16 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe16'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe16;
}

function get_signashe16($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe16'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxnashe17($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe17=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe17=get_xml_responsenashe17($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe17,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe17);
			fclose($fpt);
			}
		}
} else $xml_responsenashe17=get_xml_responsenashe17($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe17;
}

function get_xml_responsenashe17($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe17 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe17'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe17;
}

function get_signashe17($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe17'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxnashe18($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe18=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe18=get_xml_responsenashe18($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe18,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe18);
			fclose($fpt);
			}
		}
} else $xml_responsenashe18=get_xml_responsenashe18($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe18;
}

function get_xml_responsenashe18($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe18 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe18'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe18;
}

function get_signashe18($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe18'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxnashe19($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe19=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe19=get_xml_responsenashe19($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe19,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe19);
			fclose($fpt);
			}
		}
} else $xml_responsenashe19=get_xml_responsenashe19($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe19;
}

function get_xml_responsenashe19($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe19 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe19'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe19;
}

function get_signashe19($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe19'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxnashe20($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responsenashe20=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responsenashe20=get_xml_responsenashe20($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responsenashe)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responsenashe20,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responsenashe20);
			fclose($fpt);
			}
		}
} else $xml_responsenashe20=get_xml_responsenashe20($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responsenashe20;
}

function get_xml_responsenashe20($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responsenashe20 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['nashe20'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responsenashe20;
}

function get_signashe20($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['nashe20'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxshanson1($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson1=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson1=get_xml_responseshanson1($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson1,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson1);
			fclose($fpt);
			}
		}
} else $xml_responseshanson1=get_xml_responseshanson1($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson1;
}

function get_xml_responseshanson1($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson1 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson1'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson1;
}

function get_sigshanson1($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson1'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxshanson2($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson2=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson2=get_xml_responseshanson2($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson2,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson2);
			fclose($fpt);
			}
		}
} else $xml_responseshanson2=get_xml_responseshanson2($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson2;
}

function get_xml_responseshanson2($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson2 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson2'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson2;
}

function get_sigshanson2($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson2'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxshanson3($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson3=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson3=get_xml_responseshanson3($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson3,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson3);
			fclose($fpt);
			}
		}
} else $xml_responseshanson3=get_xml_responseshanson3($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson3;
}

function get_xml_responseshanson3($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson3 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson3'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson3;
}

function get_sigshanson3($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson3'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxshanson4($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson4=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson4=get_xml_responseshanson4($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson4,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson4);
			fclose($fpt);
			}
		}
} else $xml_responseshanson4=get_xml_responseshanson4($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson4;
}

function get_xml_responseshanson4($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson4 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson4'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson4;
}

function get_sigshanson4($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson4'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxshanson5($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson5=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson5=get_xml_responseshanson5($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson5,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson5);
			fclose($fpt);
			}
		}
} else $xml_responseshanson5=get_xml_responseshanson5($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson5;
}

function get_xml_responseshanson5($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson5 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson5'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson5;
}

function get_sigshanson5($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson5'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxshanson6($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson6=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson6=get_xml_responseshanson6($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson6,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson6);
			fclose($fpt);
			}
		}
} else $xml_responseshanson6=get_xml_responseshanson6($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson6;
}

function get_xml_responseshanson6($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson6 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson6'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson6;
}

function get_sigshanson6($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson6'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxshanson7($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson7=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson7=get_xml_responseshanson7($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson7,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson7);
			fclose($fpt);
			}
		}
} else $xml_responseshanson7=get_xml_responseshanson7($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson7;
}

function get_xml_responseshanson7($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson7 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson7'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson7;
}

function get_sigshanson7($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson7'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxshanson8($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson8=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson8=get_xml_responseshanson8($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson8,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson8);
			fclose($fpt);
			}
		}
} else $xml_responseshanson8=get_xml_responseshanson8($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson8;
}

function get_xml_responseshanson8($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson8 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson8'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson8;
}

function get_sigshanson8($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson8'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxshanson9($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson9=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson9=get_xml_responseshanson9($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson9,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson9);
			fclose($fpt);
			}
		}
} else $xml_responseshanson9=get_xml_responseshanson9($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson9;
}

function get_xml_responseshanson9($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson9 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson9'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson9;
}

function get_sigshanson9($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson9'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}



function cache_xxshanson10($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson10=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson10=get_xml_responseshanson10($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson10,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson10);
			fclose($fpt);
			}
		}
} else $xml_responseshanson10=get_xml_responseshanson10($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson10;
}

function get_xml_responseshanson10($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson10 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson10'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson10;
}

function get_sigshanson10($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson10'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxshanson11($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson11=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson11=get_xml_responseshanson11($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson11,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson11);
			fclose($fpt);
			}
		}
} else $xml_responseshanson11=get_xml_responseshanson11($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson11;
}

function get_xml_responseshanson11($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson11 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson11'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson11;
}

function get_sigshanson11($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson11'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxshanson12($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson12=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson12=get_xml_responseshanson12($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson12,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson12);
			fclose($fpt);
			}
		}
} else $xml_responseshanson12=get_xml_responseshanson12($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson12;
}

function get_xml_responseshanson12($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson12 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson12'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson12;
}

function get_sigshanson12($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson12'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxshanson13($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson13=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson13=get_xml_responseshanson13($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson13,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson13);
			fclose($fpt);
			}
		}
} else $xml_responseshanson13=get_xml_responseshanson13($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson13;
}

function get_xml_responseshanson13($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson13 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson13'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson13;
}

function get_sigshanson13($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson13'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}


function cache_xxshanson14($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson14=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson14=get_xml_responseshanson14($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson14,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson14);
			fclose($fpt);
			}
		}
} else $xml_responseshanson14=get_xml_responseshanson14($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson14;
}

function get_xml_responseshanson14($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson14 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson14'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson14;
}

function get_sigshanson14($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson14'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxshanson15($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson15=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson15=get_xml_responseshanson15($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson15,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson15);
			fclose($fpt);
			}
		}
} else $xml_responseshanson15=get_xml_responseshanson15($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson15;
}

function get_xml_responseshanson15($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson15 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson15'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson15;
}

function get_sigshanson15($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson15'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxshanson16($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson16=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson16=get_xml_responseshanson16($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson16,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson16);
			fclose($fpt);
			}
		}
} else $xml_responseshanson16=get_xml_responseshanson16($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson16;
}

function get_xml_responseshanson16($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson16 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson16'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson16;
}

function get_sigshanson16($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson16'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxshanson17($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson17=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson17=get_xml_responseshanson17($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson17,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson17);
			fclose($fpt);
			}
		}
} else $xml_responseshanson17=get_xml_responseshanson17($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson17;
}

function get_xml_responseshanson17($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson17 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson17'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson17;
}

function get_sigshanson17($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson17'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}
function cache_xxshanson18($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson18=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson18=get_xml_responseshanson18($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson18,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson18);
			fclose($fpt);
			}
		}
} else $xml_responseshanson18=get_xml_responseshanson18($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson18;
}

function get_xml_responseshanson18($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson18 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson18'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson18;
}

function get_sigshanson18($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson18'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxshanson19($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson19=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson19=get_xml_responseshanson19($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson19,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson19);
			fclose($fpt);
			}
		}
} else $xml_responseshanson19=get_xml_responseshanson19($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson19;
}

function get_xml_responseshanson19($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson19 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson19'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson19;
}

function get_sigshanson19($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson19'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}

function cache_xxshanson20($query,$p,$akk_on,$sig_vk,$skoka_vivg){
global $full_list;
if($full_list[sscache]=="true")
{
	$tmpfname=md5($query.$p);
		if(is_file(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt"))
		{
		$xml_responseshanson20=file_get_contents(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt");
		}
		else
		{
		
		$xml_responseshanson20=get_xml_responseshanson20($akk_on,$sig_vk,$skoka_vivg);
		$aaasd = @simplexml_load_string(trim(ltrim($xml_responseshanson)));
			if(!strpos($xml_response,"error_msg") AND strpos($xml_responseshanson20,"<audio>") AND $aaasd->count>0)
			{
			$fpt=fopen(dirname(__FILE__)."/../cacheg/".$tmpfname.".txt", w);
			fputs($fpt,$xml_responseshanson20);
			fclose($fpt);
			}
		}
} else $xml_responseshanson20=get_xml_responseshanson20($akk_on,$sig_vk,$skoka_vivg); 
return $xml_responseshanson20;
}

function get_xml_responseshanson20($akk_on,$sig_vk,$skoka_vivg){
	global $full_list;
 $xml_responseshanson20 = Send_Post(
    'http://api.vkontakte.ru/api.php', 
    'api_id='.$akk_on['api_id'].'&count=1'.
    '&lyrics=0&method=audio.search&offset='.$skoka_vivg.'&q='.$full_list['shanson20'].'&sort=0&test_mode=1&v=3.0&sig='.$sig_vk, 
    'http://vk.com/app'.$akk_on['api_id'].'_'.$akk_on['api_id'].''
  );
return $xml_responseshanson20;
}

function get_sigshanson20($akk_on,$skoka_viv){
	global $full_list;
$sig_vk = md5(
  $akk_on['vk_id'].'api_id='.$akk_on['api_id'].'count=1lyrics=0method=audio.searchoffset='.$skoka_vivg.'q='.$full_list['shanson20'].'sort=0test_mode=1v=3.0');
return $sig_vk;
}