//Aggies enter top 10, Tide inch closer to No. 1 in class rankings

Aggies enter top 10, Tide inch closer to No. 1 in class rankings

.parent-two-tier a div img{margin-left:3px;}.parent-two-tier a div div{margin-right:3px;}body.classrank #mod-feature-mem div.tier-2-nav ul li{display:inline; width: 168px;}body.classrank #mod-feature-mem .tier-2-nav .scroll-pane{display:inline;}body.classrank #mod-feature-mem div.tier-2-nav ul{position:relative; width:5040px;}li ul .trending{float:left; width:22px; border-bottom:1px solid #E1E1E1; padding:2px 5px 2px 0; height:15px;}body.classrank #mod-feature-mem div.tier-2-nav ul li a{width:168px;}body.classrank ul.list_container li.ranklist{height:15px;}#dropdown{margin: -65px 0 0 76px;}.mod-page-actions li a .label{display:none;}.noRanks{height:140px; padding:10px; margin-top:10px;}body.classrank ul.graph_container{margin:13px 0 0 5px;}body.classrank ul.list_container li.commitlist{width:410px;}body.classrank ul.graph_container li.rankcol{width:25px;}body.classrank ul.graph_container li.teamcol{width:170px;}body.classrank ul.graph_container li.commitcol{width:400px;}body.classrank ul.list_container .totalnum{color:#000;}body.classrank .bargraph{background: url(http://a.espncdn.com/i/recruiting/classrankings/horiz_graph_0-40.gif) no-repeat top left;}body.classrank ul.list_container{background: url(“http://a.espncdn.com/i/recruiting/classrankings/vert_graph_0-40.png”) repeat-y scroll 199px top transparent;}body.classrank ul.graph_container li.thirty{margin:2px 12px 0 0;}

RecruitingNation Class Rankings

‘);
} else {
$(‘.player-popup-fave’).html(‘

‘);
}
$(‘.player-popup-addfav-btn’).click(function(){
var sportId = $(‘.player-popup-fave’).attr(‘sportId’);
var playerId = $(‘.player-popup-fave’).attr(‘playerId’);
var langString = $(‘.player-popup-fave’).attr(‘lang’);
var playerName = $(‘.player-popup-fave’).attr(‘playerName’);
var sportName = $(‘.player-popup-fave’).attr(‘sport’);
addPlayerPopupFave(sportId, playerId, langString);
anTrackLink(this,’espn’,’playerpopup’,sportName+’_playerId=’+playerId+’_’+playerName+’_addfavorite_loggedin-add’);
return false;
});
return false;
}

function isFaveHtml(langString) {
var playerName = $(‘.player-popup-fave’).attr(‘playerName’);
var playerId = $(‘.player-popup-fave’).attr(‘playerId’);
var sportName = $(‘.player-popup-fave’).attr(‘sport’);
if (langString == ‘ES’) {
$(‘.player-popup-fave’).html(‘

‘);
} else {
$(‘.player-popup-fave’).html(‘

‘);
}
return false;
}

function addLoginHtml(langString) {
var playerName = $(‘.player-popup-fave’).attr(‘playerName’);
var playerId = $(‘.player-popup-fave’).attr(‘playerId’);
var sportName = $(‘.player-popup-fave’).attr(‘sport’);
if (langString == ‘ES’) {
$(‘.player-popup-fave’).html(‘

‘);
} else {
$(‘.player-popup-fave’).html(‘

‘);
}
}

function closePlayerPopup() {
if ($(‘.player-popup-content’).length > 0) {
$(‘.player-popup-content’).hide();
$(‘.player-popup-arrow’).hide();
}
return false;
}

function openPlayerPopup(obj,link) {
var array = link.split(‘/’);
var sport = ”;
var id = 0;
var idIndex = 0;
$.each(array, function(i, val) {
if (val.length == 3 || val == ‘college-football’ || val == ‘mens-college-basketball’ || val == ‘college-sports’ || val == ‘colleges’) {
sport = val;
if (val == ‘college-football’) { sport = ‘ncf’; }
if (val == ‘mens-college-basketball’) { sport = ‘ncb’; }
if (val == ‘college-sports’) { sport = ‘ncaa’; }
return false;
}
});
if (link.indexOf(‘playerId=’) > -1) {
id = link.substring(link.indexOf(‘playerId=’)+9, link.length);
} else {
$.each(array, function(i, val) {
if (val == ‘id’) {
idIndex = i;
return false;
}
});
if (idIndex != 0 && array.length > idIndex+1) {
id = array[idIndex+1];
}
}
if (sport != ” && id != 0) {
var lang = ‘EN’
if (link.indexOf(‘deportes’) > -1) {
lang = ‘ES’
}
if ($(‘.player-popup-content’).length == 0) {
$(‘#content-wrapper’).append(‘

‘);
$(‘.player-popup-content’).hide();
$(‘.player-popup-arrow’).hide();
}
var popupContent = $(‘.player-popup-content’);
var popupArrow = $(‘.player-popup-arrow’);
var postop = obj.offset().top;
var posleft = obj.position().left;
var stringlength = obj.width();
var parentoffset = $(‘.span-4’).offset().top + $(window).scrollTop();
$.ajax({
type:”GET”,
url: ‘/’+sport+’/format/popupPlayerCard’,
data: ‘id=’+id+’&lang=’+lang+’&link=’+link,
dataType: “html”,
success: function(html){
if (parentoffset > postop-280) {
popupArrow.html(‘
‘);
popupArrow.css(‘top’,postop-80);
popupContent.css(‘top’,postop-50);
} else {
popupArrow.html(‘
‘);
popupArrow.css(‘top’,postop-280);
popupContent.css(‘top’,postop-280);
}
popupArrow.css(‘left’,posleft+stringlength+340);
popupContent.css(‘left’,posleft+90+stringlength+340);
popupContent.html(html);
popupArrow.show();
popupContent.show();
if ($(‘.player-popup-fave’).length > 0) {
var loggedIn = espn.core.loggedIn;
if (loggedIn) {
var showAddButton = true;
var sportId = $(‘.player-popup-fave’).attr(‘sportId’);
espn.p13n.get({
“success” : function(data) {
if (data!=null && data!=’UNDEF’ && typeof(data.myPlayers) != ‘UNDEF’ && data.myPlayers != null) {
$.each(data.myPlayers, function(i,item) {
if (typeof(item.sport) != ‘UNDEF’ && item.sport != null) {
if (item.sport == sportId && item.id == id){
showAddButton = false;
}
}
});
}
if (showAddButton) {
addFaveHtml(lang);
return false;
} else {
isFaveHtml(lang);
return false;
}
}
});
} else {
addLoginHtml(lang);
}
var playerFullName = $(‘.player-popup-fave’).attr(‘playerName’);
anTrackLink(this,’espn’, ‘player-popup’, sport+’_playerId=’+id+’_’+playerFullName);
}
$(document).click(function(e){
if (e.button != 2 && !$(e.target).parents().is(‘.player-popup-content’)) {
closePlayerPopup();
}
});
}
});
}
return false;
}

function addPlayerPopupFave(sportId, playerId, langString) {
espn.p13n.add(
{“players”:sportId+”:”+playerId},
{“success”:function(){
isFaveHtml(langString);
}}
);
return false;
}

$(“.closePopup”).live(‘click’,function(e){
if (e.button != 2) {
closePlayerPopup();
}
return false;
});

$(“a[href*=’mlb/players/profile’],a[href*=’mlb/player/_/’],a[href*=’nfl/players/profile’],a[href*=’nfl/player/_/’],a[href*=’nhl/players/profile’],a[href*=’nhl/player/_/’],a[href*=’ncf/player/profile’],a[href*=’ncf/player/_/’],a[href*=’college-football/player/profile’],a[href*=’college-football/player/_/’],a[href*=’ncb/player/profile’],a[href*=’ncb/player/_/’],a[href*=’mens-college-basketball/player/profile’],a[href*=’mens-college-basketball/player/_/’],a[href*=’nba/player/_/’],a[href*=’football/recruiting/player/_/’]”).click(function(){
var thisLink = $(this).attr(‘href’);
if (thisLink.indexOf(‘deportes’) == -1) {
openPlayerPopup($(this),thisLink);
return false;
}
});

});