	var $j = jQuery.noConflict();
            $j(function(){


                 $j("#panel").hover(function() {
                        $j(this).css("top", "0px");
                 }, function() {
                        $j(this).css("top", "-40px");                 
                 });
                $j.get('/vote.php', function(data) {
                    $j("#votediv").html(data);
                });

			$j('#dialog').dialog({
				autoOpen: false,
				width: 600,
				modal: true,
				resizable: false, 
				draggable: false, 
				buttons: {
					"Ok": function() { 
						$j(this).dialog("close"); 
					}, 
				}
			});


            });



function dosearch(te) {
	var $j = jQuery.noConflict();
	$j.post("/include/ajax/search.php", { text: te },
	   function(data){
	          $j('#result').html(data);
	   });
}

function dosearch1(te) {
	var $j = jQuery.noConflict();
	$j.post("/include/ajax/search1.php", { text: te },
	   function(data){
	          $j('#result').html(data);
	   });
}


function make() {
	var $j = jQuery.noConflict();
        $j('#result').html('Не закрывайте окно до зовершения операции!!!');
	$j.post("/preview_generator_user.php", { text: '' },
	   function(data){
	          $j('#result').html('Ваш трек загружен, обработан и отправлен на рассмотрение администрацией. Спасибо!');
	   });
}


function setrating(rat, i) {
	var $j = jQuery.noConflict();
	$j.post("/include/ajax/setrating.php", { rating: rat, id: i },
	   function(data){
	          $j('#rating').html(data);
	   });
}

function send_vote() {
	if ($j("input[name=answer]:checked").val() != "") {
		$j.post("/include/ajax/govote.php", { question: $j("#question_id").val(), id: $j("input[name=answer]:checked").val() },
		   function(data){
	                $j('#dialog').html(data);
			$j('#dialog').dialog('open');
		          
		          
		   });
	}
}
