var args;
var isInternetExplorer;
function showPlayer(org,vidN,vidS)
{
	document.write('<embed name="mStreamPlayer" type="application/x-mplayer2" width="100%" height="100%" src="mms://a1170.v16732b.c16732.g.vm.akamaistream.net/7/1170/16732/0/sas-qp.onstreammedia.com/Origin/centretek/' + org + '/wmv/' + vidN + '_' + vidS + '.wmv" ShowStatusBar=1 ShowControls=1 ShowDisplay=0 autostart=1 autorewind=0 ShowPositionControls=1 ShowTracker=1 bgcolor="#1b2e66"></embed>');
}

function showQuicktime(org, vidN,vidS)
{
		document.write('<object id="mStreamPlayer" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="100%" height="100%">');
		document.write('<param name="cache" value="true">');
		document.write('<param name="src" value="http://interface.audiovideoweb.com/lnk/va91quick35060/' + org + '/' + vidN + '_' + vidS + '.mov/play.qtl">');
		document.write('<param name="autoplay" value="true">');
		document.write('<param name="controller" value="true">');
		document.write('<param name="bgcolor" value="#000000">');
		document.write('</object>');
}
function showFlash(org,vidN,vidS){
	var so = new SWFObject('/scripts/flvPlayer.swf','mpl','320','285','7');
	so.addParam('allowfullscreen','true');
	so.addParam('allowscriptaccess','always');
	so.addVariable('file','rtmp://sas-Flash.OnstreamMedia.com/ondemand/FlashDMSP/centretek/' + org + '/Flash/');
	so.addVariable('id',vidN + '_' + vidS);
	so.addVariable('autostart','true');
	so.write();
}

function videoSize(p_w, p_h) {
    if(document.all && !document.getElementById) {
	  document.all['videoDiv'].style.pixelWidth = p_w;
	  document.all['videoDiv'].style.pixelHeight = p_h;
    } else {
	  document.getElementById('videoDiv').style.width = p_w;
	  document.getElementById('videoDiv').style.height = p_h;
    }
}

 function appendParameter(p_args, p_name, p_value) {
	    if (p_args == "")
			  return p_name+"="+escape(p_value);
	    else
			  return p_args+"&"+p_name+"="+escape(p_value);
 }

                




