function changeMotionImage (imageName) {
  document.getElementById('motionImage').src = imageName;
}
function playMotionLegacy(id,cat,subcat) {
	var catstr = "";
	if(cat!=null) 
		catstr = "&category="+cat;
	if(subcat!=null) 
		catstr = catstr+"&subcategory="+subcat;
	if(id!=null) {
		if(cat!=null && cat.toLowerCase()=="torino")
			window.open("http://sports.espn.go.com/broadband/motion/echo/oly?id="+id, "mWin", "width=737,height=410");
		else
			window.open("http://sports.espn.go.com/broadband/motion/echo/index?id="+id+catstr, "mWin", "width=737,height=410");
		var host = document.location.hostname;
		if(host=="espn.go.com" || host=="sports.espn.go.com" || host=="sports-att.espn.go.com") {
			if(frames['fsp']) 
				frames['fsp'].stop();
		}
	}	
} 

function playMotion(id,cat,subcat) {
	playVideo(id);
}
function playVideo(id,cat) {
	var catstr = "";
	if(id==null)
		id = "";	
	if(cat!=null)
		catstr = "&catname="+cat;
	window.open("http://sports.espn.go.com/broadband/ivp/index?id="+id+catstr, "mWin", "status=0,top=0,left=0,width=1014,height=620");
	var host = document.location.hostname;
	if(host=="espn.go.com" || host=="sports.espn.go.com" || host=="sports-att.espn.go.com") {
		if(frames['fsp']) 
			frames['fsp'].stop();
	}	
}
function playVideoDeportes(id) {
	var idpart = "";
	if(id!=null)
		idpart = "&id="+id;
	window.open("http://sports.espn.go.com/broadband/ivp/index?lang=es"+idpart, "mWin", "status=0,top=0,left=0,width=1014,height=620");
}	