
$(document).ready(function(){FriendFeed_init();});function FriendFeed_init(){$('.FriendsFeed .entry .FeedNewFavoriteSite .showSite').mouseover(function(){$(this).siblings('.sitePreview').show();}).mouseout(function(){$(this).siblings('.sitePreview').hide();});$('.FriendsFeed .entry .FeedGift .gift').mouseover(function(){$(this).addClass('giftOver');$(this).children('.details').show();}).mouseout(function(){$(this).removeClass('giftOver');$(this).children('.details').hide();});$('.FriendsFeed .entry .FeedOwned .ownedPhoto').mouseover(function(){$(this).addClass('OwnedOver');$(this).children('.details').show();}).mouseout(function(){$(this).removeClass('OwnedOver');$(this).children('.details').hide();});$('.FriendsFeed .entry .FeedWhatImUpTo .displayText').mouseover(function(){var curr=$(this).children('.currentlyText').html();var prev=$(this).children('.previouslyText').html();$(this).siblings('blockquote').children('.text').html(curr+'<br />'+prev).end().show();}).mouseout(function(){$(this).siblings('blockquote').hide();});$('.FriendsFeed .entry .FeedProfileInfo .displayText').mouseover(function(){var added=$(this).children('.added').html();var removed=$(this).children('.removed').html();$(this).siblings('blockquote').html(added+'<br />'+removed).show();}).mouseout(function(){$(this).siblings('blockquote').hide();});$('.FriendsFeed .entry .FeedVideo .video img').each(function(){var src=$(this).attr('src');if(src&&src.indexOf('http://')==-1){var VE_api=VE_getPlayerAPI('1.4');$(this).attr('src',VE_api.getThumbnailURL({file:src}));}});$('.feedUnwrapPG').click(premiumGiftUnwrapPopUp);$('.vipGiftOpen').click(function(){var vipGiftID=$(this).parents('.entry').find('.vipImageArea span').text();var popup=new VIPGiftOpen(vipGiftID);});$('.FriendsFeed .entry .FeedPlaylistSong .songLink').click(function(){window.open($(this).attr('href'),'myYearbookImeemSongPreview','height=120, location=no, menubar=no, resizable=no, scrollbars=no, status=no, width=290');return false;});$('#HALRecentActivity .feed .content a').click(function(){$.ajax({data:{page:'hal',type:$(this).parents('div.content').attr('class')},url:'/apps/feedStats',type:'POST'});});$('.FriendsFeed .entry .FeedPlaylistSong .playlistLink').click(function(){window.open($(this).attr('href'),'myYearbookImeemPlaylistPreview','height=280, location=no, menubar=no, resizable=no, scrollbars=no, status=no, width=240');return false;});}