Flash detect

by ghazal

HTML

<object style="visibility: visible;" id="vinaora-3d-slideshow139" data="https://dl-web.dropbox.com/get/Public/labo/old_man.swf?w=a3531380" type="application/x-shockwave-flash" height="450" width="912"><param value="" name="wmode"><param value="slider139" name="id"><param value="xml=/media/mod_vinaora_cu3er_3d_slideshow/config/V139-20120223-053220.xml&amp;font=" name="flashvars"></object>

CSS

#myNewElement{background: url("http://farm1.staticflickr.com/199/442779525_2287860185_m.jpg") no-repeat transparent; width:200px;height: 200px; object-fit: contain;}

JavaScript

if(Browser.Platform.ios || Browser.Platform.android || Browser.Platform.webos ) {
        var myNewElement = new Element('div#myNewElement');
                myNewElement.replaces(document.id('vinaora-3d-slideshow139'));
}