function hasFlashPlugin(){
try{
new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
return true;
}catch(ex){
for(var i=0; i<navigator.plugins.length; i++){
if(navigator.plugins[i].name.toLowerCase().indexOf('flash') > -1){
return true;
}
}
return false;
}
}