/* $Id: fd.js,v 1.1 2006/05/22 14:36:38 roland Exp $ */

function fd() {
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (
			navigator.plugins["Shockwave Flash 2.0"]
			|| navigator.plugins["Shockwave Flash"]
		) {
			return navigator.plugins["Shockwave Flash" +
				(navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "")
			].description.split(" ")[2].split(".")[0];
		}
	}
	if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) {
		return 4;
	}
	if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) {
		return 3;
	}
	if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) {
		return 2;
	}
	if (typeof(FlashDetect) != 'undefined') {
		return FlashDetect();
	}
	return 0;
}
