	 var sport = document.cnnSASDSport;
	 var teamname = document.cnnSASDPageType;

	 var topic ='';
	 var teamname_topic = '';
	 var url = '';
     var isTopic = false;
     var isSport = true;
     var isTeam = true;
	 if(sport =='nfl'){
	 			if(teamname == 'redskins'){
               		topic = 'Washington_Redskins';
				} else if(teamname =='cardinals'){
				  topic = 'Arizona_Cardinals';
				} else if(teamname =='falcons'){
				  topic = 'Atlanta_Falcons';
				} else if(teamname =='bills'){
				  topic = 'Buffalo_Bills';
				} else if(teamname =='ravens'){
				  topic = 'Baltimore_Ravens';
				} else if(teamname =='panthers'){
				  topic = 'Carolina_Panthers';
				} else if(teamname =='bears'){
				  topic = 'Chicago_Bears';
				} else if(teamname =='bengals'){
				  topic = 'Cincinnati_Bengals';
				} else if(teamname =='browns'){
				  topic = 'Cleaveland_Browns';
				} else if(teamname =='cowboys'){
				  topic = 'Dallas_Cowboys';
				} else if(teamname =='broncos'){
				  topic = 'Denver_Broncos';
				} else if(teamname =='lions'){
				  topic = 'Detroit_Lions';
				} else if(teamname =='packers'){
				  topic = 'Green_Bay_Packers';
				} else if(teamname =='texans'){
				  topic = 'Houston_Texans';
				} else if(teamname =='colts'){
				  topic = 'Indianapolis_Colts';
				} else if(teamname =='jaguars'){
				  topic = 'Jacksonville_Jaguars';
				} else if(teamname =='chiefs'){
				  topic = 'Kansas_City_Chiefs';
				} else if(teamname =='dolphins'){
				  topic = 'Miami_Dolphins';
				} else if(teamname =='vikings'){
				  topic = 'Minnesota_Vikings';
				} else if(teamname =='patriots'){
				  topic = 'New_England_Patriots';
				} else if(teamname =='saints'){
				  topic = 'New_Orleans_Saints';
				} else if(teamname =='giants'){
				  topic = 'New_York_Giants';
				} else if(teamname =='jets'){
				  topic = 'New_York_jets';
				} else if(teamname =='raiders'){
				  topic = 'Oakland_Raiders';
				} else if(teamname =='eagles'){
				  topic = 'Philadelphia_Eagles';
				} else if(teamname =='steelers'){
				  topic = 'Pittsburgh_Steelers';
				} else if(teamname =='chargers'){
				  topic = 'San_Diego_Chargers';
				} else if(teamname =='49ers'){
				  topic = 'San_Francisco_49ers';
				} else if(teamname =='seahawks'){
				  topic = 'Seattle_Seahawks';
				} else if(teamname =='rams'){
				  topic = 'St_Louis_Rams';
				} else if(teamname =='buccaneers'){
				  topic = 'Tampa_Bay_Buccaneers';
				} else if(teamname =='titans'){
				  topic = 'Tennessee_Titans';
				} else  {
                	isTeam = false;
                }
                
	 } else if (sport == 'mlb'){
	 	  if(teamname =='diamondbacks'){
				  topic = 'Arizona_Diamondbacks';
			}else if(teamname =='braves'){
				  topic = 'Atlanta_braves';
			} else if(teamname =='orioles'){
				  topic = 'Baltimore_Orioles';
			} else if(teamname =='red_sox'){
				  topic = 'Boston_Red_Sox';
			} else if(teamname =='cubs'){
				  topic = 'Chicago_Cubs';
			} else if(teamname =='white_sox'){
				  topic = 'Chicago_White_Sox';
			} else if(teamname =='reds'){
				  topic = 'cincinnati_Reds';
			} else if(teamname =='indians'){
				  topic = 'Cleveland_Indians';
			} else if(teamname =='rockies'){
				  topic = 'Colorado_Rockies';
			} else if(teamname =='tigers'){
				  topic = 'Detroit_Tigers';
			} else if(teamname =='marlins'){
				  topic = 'Florida_Marlins';
			} else if(teamname =='astros'){
				  topic = 'Houston_Astros';
			} else if(teamname =='royals'){
				  topic = 'Kansas_City_Royals';
			} else if(teamname =='angels'){
				  topic = 'Los_Angeles_Angels_of_Anaheim';
			} else if(teamname =='dogers'){
				  topic = 'Los_Angeles_Dodgers';
			} else if(teamname =='brewers'){
				  topic = 'Milwaukee_Brewers';
			} else if(teamname =='twins'){
				  topic = 'Minnesota_Twins';
			} else if(teamname =='mets'){
				  topic = 'New_York_Mets';
			} else if(teamname =='yankees'){
				  topic = 'New_York_Yankees';
			} else if(teamname =='athletics'){
				  topic = 'Oakland_Athletics';
			} else if(teamname =='phillies'){
				  topic = 'Philadelphia_Phillies';
			}	else if(teamname =='pirates'){
				  topic = 'Pittsburgh_Pirates';
			}	else if(teamname =='padres'){
				  topic = 'San_Diego_Padres';
			}	else if(teamname =='giants'){
				  topic = 'San_Francisco_Giants';
			}	else if(teamname =='mariners'){
				  topic = 'Seattle_Mariners'; 
			}	else if(teamname =='cardinals'){
				  topic = 'St_Louis_Cardinals';
			}	else if(teamname =='rays'){
				  topic = 'Tampa_Bay_Rays';
			}	else if(teamname =='rangers'){
				  topic = 'Texas_Rangers';
			}	else if(teamname =='blue_jays'){
				  topic = 'Toronto_Blue_Jays';
			}	else if(teamname =='nationals'){
				  topic = 'Washington_Nationals';
			} else {
            	isTeam = false;
            } 
	 }else if (sport == 'nhl'){
	 	  if(teamname =='ducks'){
				  topic = 'Anaheim_Ducks';
			}	else if(teamname =='thrashers'){
				  topic = 'Atlanta_Thrashers';
			}	else if(teamname =='bruins'){
				  topic = 'Boston_Bruins';
			}	else if(teamname =='sabres'){
				  topic = 'Buffalo_Sabres';
			}	else if(teamname =='flames'){
				  topic = 'Calgary_Flames';
			}	else if(teamname =='hurricanes'){
				  topic = 'Carolina_Hurricanes';
			}	else if(teamname =='blackhawks'){
				  topic = 'Chicago_Blackhawks';
			}	else if(teamname =='avalanche'){
				  topic = 'Colorado_Avalanche';
			}	else if(teamname =='blue_jackets'){
				  topic = 'Columbus_Blue_Jackets';
			}	else if(teamname =='stars'){
				  topic = 'Dallas_Stars';
			}	else if(teamname =='red_wings'){
				  topic = 'Detroit_Red_Wings';
			}	else if(teamname =='oilers'){
				  topic = 'Edmonton_Oilers';
			}	else if(teamname =='panthers'){
				  topic = 'Florida_Panthers';
			}	else if(teamname =='kings'){
				  topic = 'Los_Angeles_Kings';
			}	else if(teamname =='wild'){
				  topic = 'Minnesota_Wild';
			}	else if(teamname =='canadiens'){
				  topic = 'Montreal_Canadiens';
			}	else if(teamname =='predators'){
				  topic = 'Nashville_Predators';
			}	else if(teamname =='devils'){
				  topic = 'New_Jersey_Devils';
			}	else if(teamname =='islanders'){
				  topic = 'New_York_Islanders';
			}	else if(teamname =='rangers'){
				  topic = 'New_York_Rangers';
			}	else if(teamname =='senators'){
				  topic = 'Ottawa_Senators';
			}	else if(teamname =='flyers'){
				  topic = 'Philadelphia_Flyers';
			}	else if(teamname =='coyotes'){
				  topic = 'Pheonix_Coyotes';
			}	else if(teamname =='penguins'){
				  topic = 'Pittsburgh_Penguins';
			}	else if(teamname =='sharks'){
				  topic = 'San_Jose_Sharks';
			}	else if(teamname =='blues'){
				  topic = 'St_Louis_Blues';
			} else if(teamname =='lightning'){
				  topic = 'Tampa_Bay_Lightning';
			} else if(teamname =='maple_leafs'){
				  topic = 'Toronto_Maple_Leafs';
			} else if(teamname =='canucks'){
				  topic = 'Vancouver_Canucks';
			} else if(teamname =='capitals'){
				  topic = 'Washington_Capitals';
			} else {
            	isTeam = false;
            }
	 } else if(sport == 'nba'){
	 	 	if(teamname =='76ers'){
				  topic = 'Philadelphia_76ers';
			} else if(teamname =='bobcats'){
				  topic = 'Charlotte_Bobcats';
			} else if(teamname =='bucks'){
				  topic = 'Milwaukee_Bucks';
			} else if(teamname =='bulls'){
				  topic = 'Chicago_Bulls';
			} else if(teamname =='cavaliers'){
				  topic = 'Cleveland_Caveliers';
			} else if(teamname =='celtics'){
				  topic = 'Boston_Celtics';
			} else if(teamname =='clippers'){
				  topic = 'Los_Angeles_Clippers';
			} else if(teamname =='grizzlies'){
				  topic = 'Memphis_Grizzlies';
			} else if(teamname =='hawks'){
				  topic = 'Atlanta_Hawks';
			} else if(teamname =='heat'){
				  topic = 'Miami_Heat';
			} else if(teamname =='hornets'){
				  topic = 'New_Orleans_Hornets';
			} else if(teamname =='jazz'){
				  topic = 'Utah_Jazz';
			} else if(teamname =='kings'){
				  topic = 'Sacremento_Kings';
			} else if(teamname =='knicks'){
				  topic = 'New_York_Knicks';
			} else if(teamname =='lakers'){
				  topic = 'Los_Angeles_Lakers';
			} else if(teamname =='lakers'){
				  topic = 'Los_Angeles_Lakers';
			} else if(teamname =='magic'){
				  topic = 'Orlando_Magic';
			} else if(teamname =='mavericks'){
				  topic = 'Dallas_Mavericks';
			} else if(teamname =='nets'){
				  topic = 'New_Jersey_Nets';
			} else if(teamname =='nuggets'){
				  topic = 'Denver_Nuggets';
			} else if(teamname =='pacers'){
				  topic = 'Indiana_Pacers';
			} else if(teamname =='pistons'){
				  topic = 'Detroit_Pistons';
			} else if(teamname =='raptors'){
				  topic = 'Toronto_Raptors';
			} else if(teamname =='spurs'){
				  topic = 'San_Antonio_Spurs';
			} else if(teamname =='suns'){
				  topic = 'Phoenix_Suns';
			} else if(teamname =='supersonics'){
				  topic = 'Seattle_SuperSonics';
			} else if(teamname =='timberwolves'){
				  topic = 'Minnesota_Timberwolves';
			} else if(teamname =='trail_blazers'){
				  topic = 'Portland_Trail_Blazers';
			} else if(teamname =='warriors'){
				  topic = 'Golden_State_Warriors';
			} else if(teamname =='wizards'){
				  topic = 'Washington_Wizards';
			} else if(teamname == 'thunder'){
				  topic = 'oklahoma_city_thunder';
			} else {
            	isTeam = false;
            } 
   } else if(sport == 'ncaaf' || sport == 'ncaab'){ 
	 	 	if(teamname =='gatech'){
				  topic = 'Georgia_Institute_of_Technology';
			} else if(teamname =='duke'){
				  topic = 'Duke_Blue_Devils';
			} else if(teamname =='vatech'){
				  topic = 'Virginia_Tech_Hokies';
			} else if(teamname =='mia_fl'){
				  topic = 'Miami_Hurricanes';
			} else if(teamname =='unc'){
				  topic = 'North_Carolina_Tar_Heels';
			} else if(teamname =='uva'){
				  topic = 'Virginia_Cavaliers';
			} else if(teamname =='clemso'){
				  topic = 'Clemson_Tigers';
			} else if(teamname =='clemso'){
				  topic = 'Clemson_Tigers';
			} else if(teamname =='wakef'){
				  topic = 'Wake_Forest_University';
			} else if(teamname =='mrylnd'){
				  topic = 'Maryland_Terrapins';
			} else if(teamname =='ncstat'){
				  topic = 'North_Carolina_State_University';
			} else if(teamname =='bc'){
				  topic = 'Boston_College';
			} else if(teamname =='flast'){
				  topic = 'Florida_State_Seminoles';
			} else if(teamname =='alabam'){
				  topic = 'Alabama_Crimson_Tide';
			} else if(teamname =='auburn'){
				  topic = 'Auburn_Tigers';
			} else if(teamname =='arkans'){
				  topic = 'Arkansas_Razorbacks';
			} else if(teamname =='florid'){
				  topic = 'Florida_Gators';
			} else if(teamname =='georgi'){
				  topic = 'Georgia_Bulldogs';
			} else if(teamname =='kentuc'){
				  topic = 'Kentucky_Wildcats';
			} else if(teamname =='lsu'){
				  topic = 'Louisiana_State_Tigers';
			} else if(teamname =='olemis'){
				  topic = 'University_of_Mississippi';
			} else if(teamname =='missst'){
				  topic = 'Mississippi_State_University';
			} else if(teamname =='soucar'){
				  topic = 'South_Carolina_Gamecocks';
			} else if(teamname =='tenn'){
				  topic = 'Tennessee_Volunteers';
			} else if(teamname =='vandy'){
				  topic = 'Vanderbilt_Universiy';
			} else if(teamname =='notred'){
				  topic = 'Notre_Dame_Fighting_Irish';
			} else if(teamname =='navy'){
				  topic = 'Navy_Midshipmen';
			} else if(teamname =='westky'){
				  topic = 'Western_Kentucky_Hilltoppers';
			} else if(teamname =='indian'){
				  topic = 'Indiana_Hoosiers';
			} else if(teamname =='mich'){
				  topic = 'Michigan_Wolverines';
			} else if(teamname =='northw'){
				  topic = 'Northwestern_Wildcats';
			} else if(teamname =='illino'){
				  topic = 'Illinois_Fighting_Illini';
			} else if(teamname =='minnes'){
				  topic = 'Minnesota_Golden_Gophers';
			} else if(teamname =='psu'){
				  topic = 'Penn_State_Nittany_Lions';
			} else if(teamname =='purdue'){
				  topic = 'Purdue_University';
			} else if(teamname =='ohiost'){
				  topic = 'Ohio_State_Buckeyes';
			} else if(teamname =='wisc'){
				  topic = 'Wisconsin_Badgers';
			} else if(teamname =='iowa'){
				  topic = 'Iowa_Hawkeyes';
			} else if(teamname =='arizst'){
				  topic = 'Arizona_State_University';
			} else if(teamname =='calif'){
				  topic = 'California_Golden_Bears';
			} else if(teamname =='ucla'){
				  topic = 'UCLA_Bruins';
			} else if(teamname =='usc'){
				  topic = 'USC_Trojans';
			} else if(teamname =='arizon'){
				  topic = 'Arizona_Wildcats';
			} else if(teamname =='stanfo'){
				  topic = 'Stanford_University';
			} else if(teamname =='wash'){
				  topic = 'Washington_Huskies';
			} else if(teamname =='oregon'){
				  topic = 'Oregon_Ducks';
			} else if(teamname =='oregst'){
				  topic = 'Oregon_State_Beavers';
			} else if(teamname =='pitt'){
				  topic = 'Pittsburgh_Panthers';
			} else if(teamname == 'cin'){
				  topic = 'cincinnati_bearcats';
			} else if(teamname == 'syracu'){
				  topic = 'syracuse_orange';
			} else if(teamname == 'wvu'){
				  topic = 'west_virginia_mountaineers';
			} else if(teamname == 'rutger'){
				  topic = 'rutgers_scarlet_knights';
			} else if(teamname == 'lou'){
				  topic = 'louisville_cardinals';
			} else if(teamname == 'uconn'){
				  topic = 'uconn_huskies';
			} else if(teamname == 'texam'){
				  topic = 'texas_a_m_aggies';
			} else if(teamname == 'oklast'){
				  topic = 'oklahoma_state_university';
			} else if(teamname == 'baylor'){
				  topic = 'baylor_bears';
			} else if(teamname == 'okla'){
				  topic = 'oklahoma_sooners';
			} else if(teamname == 'txtech'){
				  topic = 'texas_tech_university';
			} else if(teamname == 'texas'){
				  topic = 'texas_longhorns';
			} else if(teamname == 'kansas'){
				  topic = 'kansas_jayhawks';
			} else if(teamname == 'nebras'){
				  topic = 'nebraska_cornhuskers';
			} else if(teamname == 'iowast'){
				  topic = 'iowa_state_cyclones';
			} else if(teamname == 'missou'){
				  topic = 'missouri_tigers';
			} else if(teamname == 'colo'){
				  topic = 'colorado_buffaloes';
			} else if(teamname == 'kstate'){
				  topic = 'kansas_state_university';
			} else if(teamname == 'sofla'){
				  topic = 'South_Florida_Bulls';
			} else if(teamname == 'msu'){
				  topic = 'Michigan_State_Spartans';
			} else if(teamname == 'washst'){
				  topic = 'Washington_State_University';
			} else {
            	isTeam = false;
            }
     } else {
     	isSport = false;
     }
     if(isTeam == true && isSport == true) isTopic = true;
    


