mw=null;
function openWindowDimBars(FileName,w,h,barre) {
	myWindow=window.open(FileName,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+barre+',resizable=0,top=10,left=10,width='+w+',height='+h);
	return myWindow;
}

function print_flash_movie(nomefile, width, height, version) {
	var str;
	
	str = ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + version + '" WIDTH="' + width + '" HEIGHT="' + height + '">');
	str = str + ('<PARAM NAME=movie VALUE="' + nomefile + '">');
	str = str + ('<PARAM NAME=quality VALUE=high>');
	str = str + ('<embed src="' + nomefile + '" quality=high ');
	str = str + ('swLiveConnect="FALSE" WIDTH="' + width + '" HEIGHT="' + height + '" border="0" TYPE="application/x-shockwave-flash"');
	str = str + ('PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed></OBJECT>');
	
	document.write(str);
}

function print_windows_media(id, param_filename_id, embed_id, nomefile, width, height, version, ShowControls, autostart, ShowTracker, return_str) {
	var str;
	
	str = ('<OBJECT classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version='+version+'" type="application/x-oleobject" height="'+height+'" width="'+width+'" standby="Loading Microsoft® Windows® Media Player components..." id="'+id+'">');
	str = str + ('<PARAM id="'+param_filename_id+'" name="FileName" value="'+nomefile+'" />');
	str = str + ('<PARAM name="ShowControls" value="'+ShowControls+'" />');
	str = str + ('<param name="autostart" value="'+autostart+'" />');
	str = str + ('<EMBED id="'+embed_id+'" src="'+nomefile+'" height="'+height+'" width="'+width+'" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="'+id+'" ShowTracker="'+ShowTracker+'"></EMBED></OBJECT>');
	
	if (return_str) {return str;}
	else {document.write(str);}
}
