﻿		// attach hover to usernames;		
		$(function() {
				$(".favorite_set li").each(function(i) {
					$(this).hover(function(){
							thisEl = this;
							showFavInfo(thisEl);
						},function(){
							$(this).find(".favorite-info").hide();
					});					
				});
				// append pointer image div;
				$(".favorite-info").append("<div class='pointer'></div>");					
		});

		function showFavInfo(el) {
			// get location of movie 			
			var offset = {};
			$(el).offset({ scroll: true }, offset);
			var areaOffset = {};
			$(".tab-content").offset({ scroll: true }, areaOffset);
			// location of element - location of containing div = info bubble position;
			currLeft = offset.left-areaOffset.left+80;
			currTop = offset.top-areaOffset.top+50;
			if(jQuery.browser.safari){
				if(currTop > 275) {return false}; // safari activates hover for all items in overflow; this catches those that are hidden;
			}
			currInfo = $(el).find(".favorite-info");
			$(currInfo).css("top",(currTop+"px")).css("left",(currLeft+"px")).show();	
		}

