function insertQuicktime(filePath,width,height) {
	document.write(getQuicktimeHtml(filePath,width,height));
}

function getQuicktimeHtml(filePath, width, height) {
	html = '<object id="quicktimePlayer" '
       + '  classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ' 
		   + '  codebase="http://www.apple.com/qtactivex/qtplugin.cab"'
  	   + '  width="' + width + '" height="'+height + '"' 
  	   + ' > '
  	   + '  <param name="SRC" value="' + filePath + '">'
  	   + '  <param name="AUTOPLAY" value="true">'
  	   + '  <param name="CONTROLLER" value="true">'
  	   + '  <embed name="quicktimePlayer" src="' + filePath + '"' 
  	   + '    width="' + width + '" height="' + height + '"'
  	   + '    enablejavascript="true" autoplay="true" controller="true" '
  	   + '    pluginspage="http://www.apple.com/quicktime/download/"> ' 
  	   + '  </embed>'
  	   + '</object>';
	return html;
}

function insertFlash(filePath,width,height) {
	document.write(getFlashHtml(filePath,width,height));
	//alert(getFlashHtml(filePath,width,height));
}

function getFlashHtml(filePath,width,height) {
	html = '<object'  
  		 + '  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
  		 + '  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" '
   		 + '  width="' + width + '" height="'+height + '"> '
  		 + '  <param name="movie" value="' + filePath + '"/> '
       + '  <param name="quality" value="high"/> '
       + '  <embed src="' + filePath + '" quality="high" '
       + '    pluginspage="http://www.macromedia.com/go/getflashplayer" '
       + '    type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"> '
    	 + '  </embed> '
  		 + '</object> ';

	return html;
}



function showWaitDialog() {
	var srcNode = document.createElement("div");
	srcNode.innerHTML="Processing request. Please wait.";
	var btn = dojo.widget.createWidget("Dialog", {}, srcNode);
	
}


