// Uses Windows Media Player plugin/activeX control to embed an mpg video in the element with an id of "video".
function playVideo(url, start) {
	var sStart = start?"true":"false";
	var nStart = start?1:0;
							
	var s = "<object id=\"MediaPlayer\" width=\"380\" height=\"259\" classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" standby=\"Loading Windows Media Player components...\" type=\"application/x-oleobject\">";
	s += "<param name=\"FileName\" value=\"" + url + "\">";
	s += "<param name=\"ShowControls\" value=\"true\">";
	s += "<param name=\"ShowStatusBar\" value=\"false\">";
	s += "<param name=\"ShowDisplay\" value=\"false\">";
	s += "<param name=\"autostart\" value=\"" + sStart + "\">";
	s += "<embed type=\"application/x-mplayer2\" src=\"" + url + "\" name=\"MediaPlayer\" width=\"380\" height=\"259\" showcontrols=\"1\" showstatusbar=\"0\" showdisplay=\"0\" autostart=\"" + nStart + "\"></embed>";
	s += "</object>";
							
	var div = document.getElementById("video");
	if(div != null) {
		div.innerHTML = s;
	}
}
						
/*
// Uses SWFobject.js to embed a flash video player (swf) in the element with an id of "video", to play flv movies.
function playVideo(url) {
    var so = new SWFObject("/aus/promo/Asia-Recruitment/videos/videoplayer.swf", "videoplayer", "380", "240", "8", "#FFFFFF");
						    
    if(url != null) {
		so.addVariable("movieSource", url);
	}
    so.write("video");
}
*/
