var width = 640;
var height = 480;

function initialize(nWidth, nHeight){
	width = nWidth;
	height = nHeight;
}

function changeVideo(video){
	var videoURL = 'videos/' + video + '.mov';

	var args = new Array();
	args[0] = videoURL;
	args[1] = width;
	args[2] = height;
	args[3] = '';
	args[4] = 'obj#id';
	args[5] = 'movie';
	args[6] = 'emb#name';
	args[7] = 'movie1';
	args[8] = 'enablejavascript';
	args[9] = 'true';
	args[10] = 'showlogo';
	args[11] = 'false';
	args[12] = 'scale';
	args[13] = 'tofit';
	args[14] = 'saveembedtags';
	args[15] = 'true';
	args[16] = 'postdomevents';
	args[17] = 'true';
	args[18] = 'controller';
	args[19] = 'true';
	args[20] = 'aggressivecleanup';
	args[21] = 'false';
	args[22] = 'autostart';
	args[23] = 'true';
	args[24] = 'cache';
	args[25] = 'true';
var video = _QTGenerate('QT_WriteOBJECT', true, args);
	document.getElementById("videoContainer").innerHTML = video; 

}

function play(){
	document.movie.Play();
}

function pause(){
	document.movie.Stop();
}

function stop(){
	document.movie.Stop();
	document.movie.Rewind();
}

function rewind(){
	document.movie.Step(-100);
	play();
}

function forward(){
	document.movie.Step(100);
	play();
}

