function getFlashVarsion() {
var objFlash,i;
var description,flashPlugin;
if ( document.all ) {
for( i = 10; i >= 5; i-- ) {
try {
objFlash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i );
break;
}
catch( e ) {
if ( i == 5 ) {
i = 0;
break;
}
}
}
}
else {
i = 0;
if ( navigator.plugins && navigator.plugins.length > 0) {
flashPlugin = navigator.plugins['Shockwave Flash'];
if (typeof flashPlugin == 'object') {
description = flashPlugin.description;
for( i = 10; i > 4; i-- ) {
if (description.indexOf(i+'.') != -1) {
break;
}
}
if ( i == 4 ) {
i = 0;
}
}
}
}
return i;
}