/**
 * CallVideo
 *
 * Receives the path to a video (videoname) and the id tag (videobox) that the video is written to.
 * Requires swfobject.js to be loaded immediately before this function is called.
 *
 */

function CallVideo(videoname,videobox,astart)
{
	var paramname = "file=" + videoname + astart + "&fullscreen=true";
	var s1 = new SWFObject("player.swf","ply","400","320","9","#FFFFFF");
	s1.addParam("allowfullscreen","true");
	s1.addParam("allowscriptaccess","always");
	s1.addParam("flashvars",paramname);
	s1.write(videobox);
}