// JavaScript Document
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function updateSize(oParam){
	if (parseInt(oParam.width)) $("#flashcontent").width(parseInt(oParam.width));
	if (parseInt(oParam.height)) $("#flashcontent").height(parseInt(oParam.height));
}

//call flash to reload the specified movie
function startvideo(videoname, clientname){	
     var flashMovie=getFlashMovieObject("myvideo");
	 //path="/clients/getclientmovie.php?download=" + videoname;
	 path="/clients/secure/"+clientname+"/"+videoname
	 if(videoname !="" ){
		 if( clientname != "" ){
			 flashMovie.jloadmovie(path);
		 }
		 $(".note").hide();
		 $("#note_" + (videoname.replace(".","_"))).show("fast");
		 //alert("after after video");		 
		 //flashMovie.width=width;
		// flashMovie.height=height;
	 }
}



//call flash to reload the specified movie
function loadvideo(videoname){	
     var flashMovie=getFlashMovieObject("myvideo");
     
	 if( width != 0 && height != 0 ){
		 flashMovie.jloadmovie(videoname);
		// flashMovie.width=width;
		// flashMovie.height=height;
		 }

}