var ua; var ie = (document.all) ? 1 : 0; var n4 = (document.layers) ? 1 : 0; var n6 = ((!document.all)&&(document.getElementById)) ? 1 : 0; if (ie==1) {ua="ie"} else if (n4==1) {ua="n4"} else if (n6==1) {ua="n6"} else {ua="ie"}
var swfsrc
// header
var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		flashinstalled = 2;
		if (x.description)
		{
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else flashinstalled = 1;
}
else MSDetect = "true";

function printFlash(url, width, height) {
document.write(swfStr = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=" + width + " HEIGHT=" + height + "><PARAM NAME=movie VALUE=\"" + url + "\"><PARAM NAME=quality VALUE=high><EMBED align=right quality=high WIDTH=" + width + " HEIGHT=" + height + " src=\"" + url + "\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED></OBJECT>")
}
function catFlash(url, width, height) {
	return(swfStr = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=" + width + " HEIGHT=" + height + "><PARAM NAME=movie VALUE=\"" + url + "\"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED align=right quality=high bgcolor=#FFFFFF  WIDTH=" + width + " HEIGHT=" + height + " src=\"" + url + "\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED></OBJECT>")
}
// ns
function resize(e) {if (document.layers){history.go(0);}}
if (document.layers) window.captureEvents(Event.RESIZE)
window.onresize = resize
