function ShowPreview(){
	$('layerblack').show();
	HideIndicator() ;	
	Center( '_INFO_PREVIEW' );
	$('_INFO_PREVIEW').show();	
}
function HidePreview(){
	if ( $('trailer') ){
		var flashMovie=getFlashMovieObject("trailer");
		flashMovie.StopPlease();
	}
	$('layerblack').hide();
	$('_INFO_PREVIEW').hide();
}

function UpdateList(){
	$('indicator').show();
	new Ajax.Updater( 'list_play', 
		'mod-vod/ajax/allocine.php', 
		{
			onComplete: hideIndicator,
			method:"post",
			encoding:'ISO 8859-1',
			evalScripts:false,
			parameters:$('form_vod').serialize(true) 
		} 
	);	
}

function AllMyVOD(){
	new Ajax.Updater( 'mybvods', 
		'mod-vod/ajax/allocine.php', 
		{
			method:"post",
			encoding:'ISO 8859-1',
			evalScripts:true,
			parameters:'id=all' 
		} 
	);	
}
function DeleteVOD( id ){
	var vHtmlElt = 'VOD_'+id ;	
	ShowIndicator();
	$('buttonclosing').hide();
	new Ajax.Updater( '_INFODIV',
						   'mod-system/ajax/deleteselection.php', { 
								onComplete:HideIndicator, 
								method: "post", 
								evalScripts:true,
								parameters:{playlist:'VOD', HtmlElt:vHtmlElt, todelete:id}
								}
						  );		
}

