function isFlash(){
var isIE = !-[1,];
if(isIE){
try{
var swf1 = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
}
catch(e){
return false;
}
}
else {
try{
var swf2 = navigator.plugins['Shockwave Flash'];
if(swf2 == undefined){
return false;
}
}
catch(e){
return false;
}
}
return true;
}