/*
var t;

function show_friend_box () {
����//console.log(id);
����// Show it
����var popdiv = $(this).parent().parent().find(".friendpop");
����popdiv.css("top", $(this).position().top - popdiv.height() + 180);
����popdiv.css("left", $(this).position().left + 70);
����popdiv.show();
}

function hide_friend_box () {
����$(this).parent().parent().find(".friendpop").hide();
}

// Init function
$(function () {
����// Find all the friend divs and assign hover handlers
����$(".friendsBox .friend img.user").mouseover(show_friend_box);
����$(".friendsBox .friend img.user").mouseout(hide_friend_box);
})
*/  
window.Obj = {
  Events: {
     funcover: function(event) {
		var popdiv = $(this).parent().parent().find(".friendpop");
		popdiv.css("top", $(this).position().top - popdiv.height() + 125);
		popdiv.css("left", $(this).position().left + 75);
		popdiv.show();
	},
    funcout: function(event) {
		$(this).parent().parent().find(".friendpop").hide();
	},
    funcovera: function(event) {
		var popdiv = $(this).parent().parent().find(".friendpop");
		popdiv.css("top", $(this).parent().parent().find("a img").position().top - popdiv.height() + 130);
		popdiv.css("left", $(this).parent().parent().find("a img").position().left + 195);
		popdiv.show();
	},
    funcouta: function(event) {
		$(this).parent().parent().find(".friendpop").hide();
	}
  },
  
  go: function() {
    $('.people-list img.user').hover(Obj.Events.funcover, Obj.Events.funcout);
    $('.people-list a.name').hover(Obj.Events.funcovera, Obj.Events.funcouta);
  }
};

jQuery(document).ready(Obj.go);
