function popup(url) 
{
 var width  = 900;
 var height =  screen.height;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=yes';
 params += ', scrollbars=yes';
 params += ', status=yes';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}
$(document).ready(function(){ 
	$("#meteo li a").click(function(){
		 var aM = $(this).attr("id");
		 $.get("hava-namaz.php?id="+encodeURIComponent(aM), function(data){
			 $('.tnt').html(data);
		 });
	 });
	$("#meteo li a").eq(33).click();
 
 
	 $('#inner span').click(function(){
		 $(this).prevAll().andSelf().addClass('enabled');  
		 var a = $(this).attr("id");
		 var cID = $("#inner input.content").attr("id");
		 var tval = $("#inner input.table").attr("id");
		 var urll = "http://www.haber7.com/ajax/dorating.php?value=" + encodeURIComponent(a) + "&cID=" + encodeURIComponent(cID)+ "&tval=" + encodeURIComponent(tval);
		 $.get(urll, function(data){
			 $('.tnt1').html(data);
		 })
	 
	 }); 
     
	$('#vote span').click(function(){
		 $(this).prevAll().andSelf().addClass('enabled');  
		 var a = $(this).attr("id");
		 var cID = $(".vote input.content").attr("id");
		 var tval = $("#vote input.table").attr("id");
		 var urll = "http://www.haber7.com/ajax/dorating.php?value=" + encodeURIComponent(a) + "&cID=" + encodeURIComponent(cID)+ "&tval=" + encodeURIComponent(tval);
	
		 $.get(urll, function(data){
			 $('.tnt1').html(data);
		 })
	 
	 });  
	$('.comLike span').click(function(){
	 
	 var a = 1;
	 var tval = 4;
	 var cID = $(this).attr("id");
	 var urll = "http://www.haber7.com/ajax/dorating.php?value=" + encodeURIComponent(a) + "&cID=" + encodeURIComponent(cID)+ "&tval=" + encodeURIComponent(tval);
		 $.get(urll, function(data){
			 $('.tnt1').html(data);
		 })
	 	$(this).addClass("clicked");
	 }); 


   
});
