function newVideoPlayer(videoURL, movieWidth, movieHeight, waterMarkURL) {
		
	var vidId = 'flv_'+ Math.round(Math.random()*10000);
	
	if (!parseInt(movieWidth))
		movieWidth = 520;
	if (!parseInt(movieHeight))
		movieHeight = 410;

	var flashvars = {
		bgcolor: "#000000",
		videoURL: videoURL,
		stageWidth: movieWidth,
		stageHeight: movieHeight,
		waterMarkImageURL: waterMarkURL
	};
	var params = {
		quality: 'best',
		scale: 'noscale',
		salign: 'tl',
		allowScriptAccess: 'always'
	};
	var attributes = {
		'class': "flv gawkerVideo"
	};

	if (window.permalink)
		flashvars.permalink =  permalink;
	else
		flashvars.permalink =  "undefined";
		
	if (window.autoplay)
	{
		flashvars.autoplay = autoplay;
		window.autoplay = false;
	}
	else
		flashvars.autoplay = "undefined";

	document.writeln('<object class="flv gawkerVideo" style="height: '+ movieHeight+'px; width: '+ movieWidth +'px;" id="'+vidId+'"></object>');
	swfobject.embedSWF("http://cache-foo.gawker.com/gawker/assets/util/videoModule.swf", vidId, movieWidth, movieHeight, "9.0.0", "expressInstall.swf", flashvars, params, attributes);
}

