function insertFlash(url, width, height, alt_text, is_transparent, object_id)
{
	document.write('<object ');
	if(object_id) document.write('id="'+object_id+'" ');
	document.writeln('classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" alt="'+alt_text+'">');
	document.writeln('<param name=movie value="'+url+'"');
	document.writeln('<param name=quality value=high>');
	if(is_transparent>0) document.writeln('<param name="wmode" value="transparent">');
	document.write('<embed src="'+url+'" quality=high pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" ');
	if(is_transparent>0) document.write('wmode="transparent" ');
	document.writeln('alt="'+alt_text+'"></embed>');
	document.writeln('</object>');
}

function entrance(logurl, winx, winy)
{
  var logwin = '';
  logwin = logwin + 'width=' + winx + ',height=' + winy + ',';
  if (window.screen) {
    dx = (screen.availWidth - winx) / 2;
    dy = (screen.availHeight - winy) / 2;
    logwin = logwin + 'left=' + dx + ',top=' + dy + ',';
    }
  logwin = logwin + 'location=0,toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0';
  window.open(logurl, 'logon', logwin)
}
