
     
function centeredPopUp_basic(pPage,Wwidth,Wheight) {
    var iMyWidth;
    var iMyHeight;
    //gets top and left positions based on user's resolution so hint window is centered.
    iMyWidth = (window.screen.width/2) - (Wwidth/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyHeight = (window.screen.height/2) - (Wheight/2 + 10); //half the screen height minus half the new window height (plus title and 5 pixel bottom).
    var win2 = window.open(pPage,"Window2","status=no,height=" + Wheight + ",width=" + Wwidth + ",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
    win2.focus();
}


$(function() {
$(".follow").click(function(){
var element = $(this);
var I = element.attr("id");
var uid = element.attr("uid");
var typ = element.attr("typ");
var info = 'id=' + I + '&uid=' + uid;
$("#loading"+I).html('<img src="loader.gif" align="absmiddle">&nbsp;loading...');

 $.ajax({
   type: "POST",
   url: "http://www.umbrella.pl/portawww/ajax/follow.php",
   data: info, 
   success: function(html){
   
   $("#loading"+I).ajaxComplete(function()
	 {
		
	   
   
   }).slideUp();
 
    $('#follow'+I).fadeOut(200).hide();
    $('#remove'+I).fadeIn(200).show();
    $('#ile'+I).html(html);
   
   if (typ==2)
  {
  wybierajasie();
  }
   
   
   }
 });
 
  
	
return false;

});

});



$(function() {
$(".remove").click(function(){
var element = $(this);
var I = element.attr("id");
var uid = element.attr("uid");
var typ = element.attr("typ");

var info = 'id=' + I + '&uid=' + uid;
$("#loading"+I).html('<img src="loader.gif" align="absmiddle">&nbsp;loading...');

 $.ajax({
   type: "POST",
   url: "http://www.umbrella.pl/portawww/ajax/nofollow.php",
   data: info,
   success: function(html){
   $("#loading"+I).ajaxComplete(function()
	 {}).slideUp();
   
    $('#remove'+I).fadeOut(200).hide();
    $('#follow'+I).fadeIn(200).show();
    $('#ile'+I).html(html);
   
  if (typ==2)
  {
  wybierajasie();
  }
   
   }
 });
 
  
	
return false;

});

});


function wybierajasie() {

var spotkanieID = $("#spotkanieID").val();
var userID = $("#userID").val();

var dataString = 'spotkanieID='+ spotkanieID + '&userID=' + userID;

 $.ajax({
   type: "POST",
   url: "http://www.umbrella.pl/portawww/ajax/wybierajasie.php",
   data: dataString,
   cache: true,
   success: function(html){
   $("p#lista").html(html);
   }
 });  
	
return false;
};


      
 
function roll(img_name, img_src)
   {
   document[img_name].src = img_src;
   }

$(function() {

 

$('a.forumrowthread').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: "#",
	fade: 250
});

$('img.tooltip').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: "#",
	fade: 250
}); 

});
