// JavaScript Document

function showVlog(divName, movSrc, movWidth, movHeight, movAutoplay, movController) {
	var vlogDiv = document.getElementById(divName);
	if (vlogDiv != null && movSrc != null) {
		
		if (movWidth == null) 
			movWidth = "320";
		if (movHeight == null)
			movHeight = "260";
		if (movAutoplay == null) 
			movAutoplay = "false";
		if (movController == null)
			movController = "true";
		vlogDiv.innerHTML ="<object width='" + movWidth + "' height='" + movHeight + "' classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab'> <param name='src' value='" + movSrc + "'><param name='autoplay' value='" + movAutoplay + "'><param name='controller' value='" + movController + "'><embed src='" + movSrc + "' width='"+ movWidth + "' height='" + movHeight + "' autoplay='" + movAutoplay + "' controller='" + movController + "' pluginspage='http://www.apple.com/quicktime/download/'></embed></object>";

	}
}

function playVlog(divName, movSrc, movWidth, movHeight) {
	var vlogDiv = document.getElementById(divName);
	if (vlogDiv != null && movSrc != null) {
		
		if (movWidth == null) 
			movWidth = "320";
		if (movHeight == null)
			movHeight = "260";
		showVlog(divName, movSrc, movWidth, movHeight, true, true);
	}
}