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 playVideoHub(id,cat,ch,mode) {
	if(id==null){
		id="";
	}
	window.location="http://sports.espn.go.com/broadband/video/videopage?videoId="+id;
}
function playVideo(id,cat,ch,mode){
	var catstr = "";
	var chstr = "";
	var modestr = "";
	
	if (id=="3007473") {
		playVideoFantasy(id,cat,ch,mode);
	} else {
		if(id==null)
			id = "";	
		if(cat!=null)
			catstr = "&catname="+cat;
		if(ch!=null)
			chstr = "&channel="+ch;
		if(mode!=null)
			modestr = "&mode="+mode;
		window.open("http://sports.espn.go.com/broadband/ivp/index?id="+id+catstr+chstr+modestr, "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 playVideoFantasy(id,cat,ch,mode){ 
        var catstr = ""; 
        var chstr = ""; 
        var modestr = ""; 
        if(id==null) 
                id = "";        
        if(cat!=null) 
                catstr = "&catname="+cat; 
        if(ch!=null) 
                chstr = "&channel="+ch; 
        if(mode!=null) 
                modestr = "&mode="+mode; 
        window.open("http://sports.espn.go.com/broadband/ivp/index?swf=ffn&id="+id+catstr+chstr+modestr, "mWin", "status=0,top=0,left=0,width=794,height=492");

        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");
}





	