function videoPlayer(divID, size, playlist) {
	var width;
	var height;
	
	switch(size) {
		case "tiny":
			width = "256";
			height = "179";
			break
		case "standard":
			width = "448";
			height = "287";
			break
		case "large":
			width = "512";
			height = "323";
			break;
		default:
			width = "448";
			height = "287";
	}
	
	var emp = new bbc.Emp();
	emp.setWidth(width);
	emp.setHeight(height);
	emp.setDomId(divID);

	// Change this XML location to specify video. This must be an absolute live url in order to work
	emp.setPlaylist("http://www.bbc.co.uk/switch/propermessy/video/" + playlist + ".xml");
	emp.set("config_settings_skin", "black");
	emp.write();
}