Object.extend(String.English,{});Socialsprout=SC.Object.create({server:SC.Server.create({prefix:['Socialsprout']}),FIXTURES:[]});function main(){Socialsprout.loadFriends();};Socialsprout.loadFriends=function(){var req=opensocial.newDataRequest();var friends_params={};friends_params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]=[opensocial.Person.Field.GENDER,opensocial.Person.Field.PROFILE_URL];req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.OWNER_FRIENDS,friends_params),'owner_friends');req.send(Socialsprout.loadFriendsCallback);} Socialsprout.loadFriendsCallback=function(data){if(data.hadError()){alert('error getting opensocial friends');}else{var owner_friends=data.get('owner_friends').getData();if(owner_friends.size()>0){friends_array=owner_friends.asArray();for(i=0;i