function flashVersion() {
	var flash = new Array();
	flash[0] = 0;
	flash[1] = 0;

	if (navigator.plugins && navigator.plugins.length) {
		x = navigator.plugins["Shockwave Flash"];
		if (x) {
			flash[0] = 2;
			if (x.description) {
				y = x.description;
				flash[1] = y.charAt(y.indexOf('.')-1);
			}
		}
		else
			flash[0] = 1;
		if (navigator.plugins["Shockwave Flash 2.0"]) {
			flash[0] = 2;
			flash[1] = 2;
		}
	}
	
	else if (navigator.mimeTypes && navigator.mimeTypes.length) {
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		if (x && x.enabledPlugin)
			flash[0] = 2;
		else
			flash[0] = 1;
	}
	
	else if (typeof flashVersionVBS != "undefined") {
		flash = VBArray(flashVersionVBS()).toArray();
	}
	
	return flash;
}
