
function najcitanije_teme()
		{
			document.getElementById('najcitanije_teme').style.visibility='visible';
			document.getElementById('najcitanije_teme').style.display='inline';
			document.getElementById('najcitanije_teme').readonly = false;
			document.getElementById('najvise_kometara').style.visibility='hidden';
			document.getElementById('najvise_kometara').style.display='none';
			document.getElementById('najvise_kometara').readonly = true;
		}
function najvise_kometara()
		{
			document.getElementById('najvise_kometara').style.visibility='visible';
			document.getElementById('najvise_kometara').style.display='inline';
			document.getElementById('najvise_kometara').readonly = false;
			document.getElementById('najcitanije_teme').style.visibility='hidden';
			document.getElementById('najcitanije_teme').style.display='none';
			document.getElementById('najcitanije_teme').readonly = true;
		}
function najnoviji()
		{
			document.getElementById('najnoviji').style.visibility='visible';
			document.getElementById('najnoviji').style.display='inline';
			document.getElementById('najnoviji').readonly = false;
			document.getElementById('najcool').style.visibility='hidden';
			document.getElementById('najcool').style.display='none';
			document.getElementById('najcool').readonly = true;
		}
function najcool()
		{
			document.getElementById('najcool').style.visibility='visible';
			document.getElementById('najcool').style.display='inline';
			document.getElementById('najcool').readonly = false;
			document.getElementById('najnoviji').style.visibility='hidden';
			document.getElementById('najnoviji').style.display='none';
			document.getElementById('najnoviji').readonly = true;
		}
function idi_na_anketu()
	{
		location.href='anketa.php';
	}		
 
 
 
$(function() {
$(".online_button").click(function() {
var id = $(this).attr("id");
var dataString = 'online='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
}); 

 
$(function() {
$(".delete_button").click(function() {
var id = $(this).attr("id");
var dataString = 'id='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
});

$(function() {
$(".delete_button_anketa_komentar").click(function() {
var id = $(this).attr("id");
var dataString = 'id_anketa_komentar='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
});



$(function() {
$(".cool_button").click(function() {
var id = $(this).attr("id");
var dataString = 'coolid='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
});


$(function() {
$(".iscoolirano_button").click(function() {
var id = $(this).attr("id");
var dataString = 'iscooliranoid='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
});



$(function() {
$(".temacoolid").click(function() {
var id = $(this).attr("id");
var dataString = 'temacoolid='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
});


$(function() {
$(".temaiscooliranoid").click(function() {
var id = $(this).attr("id");
var dataString = 'temaiscooliranoid='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
});


$(function() {
$(".cool_button_anketa").click(function() {
var id = $(this).attr("id");
var dataString = 'anketa_coolid='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
});


$(function() {
$(".iscoolirano_button_anketa").click(function() {
var id = $(this).attr("id");
var dataString = 'anketa_iscooliranoid='+ id ;
var parent = $(this).parent();
	
$.ajax({
   type: "POST",
   url: "http://www.cooliranje.com/delete.php",
   data: dataString,
   cache: false,

   beforeSend: function()
   {
   parent.animate({'backgroundColor':'#fb6c6c'},300).animate({ opacity: 0.35 }, "slow");;
   }, 
   success: function()
   {
   
	parent.slideUp('slow', function() {$(this).remove();});
	
  }
   
 });

return false;
	});
});




