function playVideo(name){
	var url = window.CR+"/play-video.php?name=" + name + "&k="+ Math.round(100000*Math.random());
	curtain.load();
	new Ajax.Request(url, { method: 'get',  onSuccess: function(playVideo2) {
			curtain.content(playVideo2.responseText);
			//var s0 = new SWFObject(window.CR + '/flash/player.swf','player','640','480','9'); old mp4 videos
			var s0 = new SWFObject(window.CR + '/flash/player.swf','player','640','360','9');
			s0.addParam('allowfullscreen','true');
			s0.addParam('allowscriptaccess','always');
			s0.addParam('wmode','opaque');
			//s0.addVariable('icons','false'); //set this to false to hide the play button and buffering icon in the middle of the video. Available since 4.2.
			s0.addVariable('controlbar','bottom'); //position of the controlbar. Can be set to bottom, over and none
			s0.addVariable('skin',window.CR + '/flash/skins/modieus/stylish.swf');
			//s0.addVariable("file",window.CR + '/video/' + name + '.mp4');
			s0.addVariable("file",window.CR + '/video/' + name + '.mov');
			//s0.addVariable("image",window.CR + '/images/' + name + '-landing.png'); // old mp4 videos
			s0.addVariable("image",window.CR + '/images/' + name + '-landing.jpg');
			//s0.addVariable("width","640"); old mp4 videos
			//s0.addVariable("height","480"); old mp4 videos
			s0.addVariable('autostart','true');
			s0.write(name + '-video');
		}
	});
}