function InsertSampleMovie(videoURL, width, height) {
	document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + width + '" height="' + height + '" class="video">\n');
	document.write('<param name="' + videoURL + '" value="URL">\n');
	document.write('<param name="autoplay" value="true">\n');
	document.write('<param name="controller" value="true">\n');
	document.write('<embed src="' + videoURL + '" width="' + width + '" height="' + height + '" autoplay="true" controller="true" pluginspace="http://www.apple.com/quicktime/download/"></embed>\n');
	document.write('</object>\n');
}

/* define function that shows percentage of movie loaded */
function showProgress() {
}

/* define function that executes when movie loading is complete */
function movieLoaded() {
}

var movieFinishedLoading = false;

/* define function that executes when movie is completed playback */
function movieCompleted() {
	var mv = document.getElementById("mainScreencast");
	var ps = document.getElementById("playScreencast");
	var nr = document.getElementById("newRibbon");
	var sli = document.getElementById("slInfo");
	movieFinishedLoading = true;
	if(mv && ps) {
		mv.style.display = 'none';
		mv.style.zIndex = '-20';
		ps.style.display = 'block';
		if (sli)
			sli.style.display = 'block';
		if (nr)
			nr.style.display = 'block';
	}
}

/* define function that adds another function as a DOM event listener */
function myAddListener(obj, evt, handler, captures) {
	if(document.addEventListener) {
		obj.addEventListener(evt, handler, captures);
	} else {
		// IE
		obj.attachEvent('on' + evt, handler);
	}
}

/* define functions that register each listener */
function RegisterListener(eventName, objID, embedID, listenerFcn) {
	// var obj = document.getElementById(objID);
	// 
	// if(!obj) {
	// 	obj = document.getElementById(embedID);
	// }
	// if(obj) {
	// 	myAddListener(obj, eventName, listenerFcn, false);
	// }
	
	// ^-- doesn't work on Safari and not my code (grabbed from some tut)
	// instead we do it like this:	
	$(document.objID).bind(eventName, listenerFcn);
	
	// for reason:
	// http://developer.apple.com/mac/library/DOCUMENTATION/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/QuickTimeandJavaScri.html
}
/*
$(document).ready(function () {
	// banner swizzling
	$(".playScreencast").click(function(event) {
		$('#mainScreencast').css("display", "block");
		$('#mainScreencast').css("zIndex", "1");
		$('#playScreencast').css("display", "none");
		$('#slInfo').css("display", "none");
		$('#newRibbon').css("display", "none");
		return false;
	});
	
});
*/