var bname = navigator.appName;
var isIE=false;
if (bname == "Microsoft Internet Explorer")
{
    isIE=true;
}





var currentPage="";


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%>');
  if (isIE) {
    document.write("<iframe width=0 height=0 src='showpage.html' id='historyframe' frameborder=0></iframe>");
  }
  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 loadFlashPage(p) {
    
    if (isIE) {
        //alert("IS IE");
        document.getElementById("historyframe").src="showpage.html?page="+p;
    } else {
        document.location.href="#"+p;
        setPage(p);
    }
}


function setPage(page) {
    currentPage=page;
	if (window.document.main) {
		window.document.main.SetVariable("page_action", page);
	} else {
		//alert("no movie to go back!"+window.document.main);
	}
}
function checkNavURL() {
    var fullurl=""+document.location.href;
    var page=fullurl.split("#")[1];
    if (currentPage!=page) {
        setPage(page);
    }
}
function reloadPage() {
	setPage(parent.historyframe.getPage());
}

if (!isIE) {
    setInterval("checkNavURL()", 200);
}
*/
