function showVideo(id, height, width){
	document.getElementById(id).innerHTML = 
	'<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="' + width + '" height="' + height + '">' +
		'<param name="movie" value="player.swf" />' +
		'<param name="allowfullscreen" value="true" />' +
		'<param name="allowscriptaccess" value="always" />' +
		'<param name="flashvars" value="file=video/' + id + '.flv&image=pictures/' + id + '_small.png" /><!-- video.flv&image=preview.jpg -->' +
		'<object type="application/x-shockwave-flash" data="player.swf" width="' + width + '" height="' + height + '">' +
			'<param name="movie" value="player.swf" />' +
			'<param name="allowfullscreen" value="true" />' +
			'<param name="allowscriptaccess" value="always" />' +
			'<param name="flashvars" value="file=video/' + id + '.flv&image=pictures/' + id + '_small.png" /><!-- video.flv&image=preview.jpg -->' +
			'<p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p>' +
		'</object>' +
	'</object>'
	

}

var movability = '<br><center><div style="font-family: Verdana;  width:350px;">The objects in the world interest the robot. He would like to see if he can manipulate them, so he attempts to push around each individual object. Some stand firm, others he manages to move. Using the knowledge from these experiments, he induces the concept of movability, by describing the two possible outcomes of his pushing action.</div</center>';
var stability = '<br><center><div style="font-family: Verdana; width:350px;">The robot notices new objects in his world. Some are boxes and some are balls. They are smaller then the other ones, so he tries to grab them. Achieving this, he goes even further and starts placing objects on top of each other. Experimenting this way, he learns that structures built by placing objects on boxes are stable, whereas the ones where he places objects on balls are not.</div</center>';
var dof = '<br><center><div style="font-family: Verdana; width:350px;">Knowing that he is able to move the boxes, the robot wonders how far he is able to push them. He chooses a box and begins to push it in one direction until he hits a wall. Suprised that the box is suddenly unmovable, he tries pushing it in other directions and succeeds to slide the box along the wall, until he reaches a corner. Being unable to pull the box, he is now powerless to move it. From the data obtained this way, he builds a model that describes what we know as degrees of freedom.</div</center>';
var orientation = '<br><center><div style="font-family: Verdana; width:350px;">The robot wakes up in an unknown environment. He is curious and would like to learn as much as possible about his new surroundings. There are several objects around him, so he takes a walk around and observes them. He learns how the distance and the angle from his orientation to each of the objects change in respect to his movements.</div</center>';


function changeText(id){
	switch (id){
		case "movability":
			document.getElementById(id).innerHTML = movability;
			break;
		case "stability":
			document.getElementById(id).innerHTML = stability;
			break;
		case "dof":
			document.getElementById(id).innerHTML = dof;
			break;
		case "orientation":
			document.getElementById(id).innerHTML = orientation;
			break;
	}

}