function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)
		
	if (this.ie)
	{
		var vecVers = navigator.userAgent.split(";");
		this.verNum = parseFloat(vecVers[1].substring(vecVers[1].indexOf("MSIE ") + "MSIE ".length));
	}
	else
	{
		var vecVers = navigator.appVersion.split(" ");
		this.verNum = parseFloat(vecVers[0]);
	}
}

// automatically create the "is" object
is = new BrowserCheck()

function writeSwf(pFile,pW,pH,pVer)
{
	var shtml = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
	shtml += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + pVer + "\"";
	shtml += "  width=\"" + pW + "\" height=\"" + pH + "\" id=\"" + pFile + "\" align=\"\">";
	shtml += " <param name=movie value=\"" + pFile + "\">";
	shtml += " <param name=quality value=high>";
	shtml += " <param name=menu value=false>";
	shtml += " <embed src=\"" + pFile + "\" menu=false quality=high width=\"" + pW + "\" height=\"" + pH + "\" name=\"" + pFile + "\" align=\"\"";
	shtml += "  type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
	shtml += "     </object>"
	document.write(shtml)
}