function changeMotionImage (imageName) {
  document.getElementById('motionImage').src = imageName;
}

function playMotion(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 playVideo(id) {
	window.open("http://sports.espn.go.com/broadband/ivp/index?id="+id, "mWin", "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();
	}	
}
