

function displayFlash(flashfile, flashid, flashwidth, flashheight, flashvars, align, salign, minWidth, minHeight, bgcolor) {
  document.write('<table border=0 cellpadding=0 cellspacing=0 width=100% height=100%><tr><td width=100% height=100%>');
  document.write('<table border=0 cellpadding=0 cellspacing=0 width=100% height=100%><tr><td width=100% height=100%>');
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+flashwidth+'" height="'+flashheight+'" id="'+flashid+'" align="'+align+'" VIEWASTEXT>\n');
  document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
  document.write('<param name="movie" value="'+flashfile+'" />\n');
  document.write('<param name="quality" value="high" />\n');
  document.write('<param name="scale" value="noscale" />\n');
  document.write('<param name="salign" value="'+salign+'" />\n');
  document.write('<param name="bgcolor" value="'+bgcolor+'" />\n');
  document.write('<embed src="'+flashfile+'" quality="high" scale="noscale" salign="'+salign+'" bgcolor="'+bgcolor+'" width="'+flashwidth+'" height="'+flashheight+'" name="'+flashid+'" align="'+align+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
  document.write('</object>\n');
  document.write('</td></tr></table>');
  document.write('<img src="images/blank.gif" width='+minWidth+' height=1>');
  document.write('</td><td width=1 height='+minHeight+'><img src="images/blank.gif" width=1 height='+minHeight+'></td></tr></table>');
}
function setPage(page) {

	if (window.document.main) {
		window.document.main.SetVariable("page_action", page);
	} else {
		//alert("no movie to go back!"+window.document.main);
	}

}
function reloadPage() {
	setPage(parent.historyframe.getPage());
}


