function CreateVideo(videoName, container)
{
	var clipName = 'mp4:'+ videoName;
	$f(container, "http://static.conversionassociates.com/video/flowplayer-3.2.5.swf", {
		plugins: { 
			streamer: { 
				url: 'flowplayer.rtmp-3.2.3.swf', 
				netConnectionUrl: 'rtmp://72ole0iqq.rtmphost.com/customvp'
			}	
		},
		clip: { 
		    url: clipName,
			provider: 'streamer', 
			autoPlay: true,
			autoBuffering: true,
			onStart: function(clip) {
					duration = clip.duration;
					var i = 0; var points = [];
					while (i < duration * 1000) {
						i += 5000;
						points.push(i);
					}
					clip.onCuepoint(points, 
						function(clip, point) { 
							var t = point/1000;
							if ((typeof cat == "object") && (typeof cat.VideoData == "function")) {
								cat.VideoData(videoName, 'time', t, t);
							}
							else {  }
						}
					);
			}
		}   
	});
}

function CreateLocalVideo(videoName, container)
{
	$f(container, "http://static.conversionassociates.com/video/flowplayer-3.2.5.swf", {
		clip: { 
		    url: videoName,
			autoPlay: true,
			autoBuffering: true,
			onStart: function(clip) {
					duration = clip.duration;
					var i = 0; var points = [];
					while (i < duration * 1000) {
						i += 5000;
						points.push(i);
					}
					clip.onCuepoint(points, 
						function(clip, point) { 
							var t = point/1000;
							if ((typeof cat == "object") && (typeof cat.VideoData == "function")) {
								cat.VideoData(videoName, 'time', t, t);
							}
							else {  }
						}
					);
			}
		}   
	});
}

