var flashinstalled = 0; var flashversion = 0; var flashUrl = "flash"; MSDetect = "false"; if (navigator.plugins && navigator.plugins.length){ x = navigator.plugins["Shockwave Flash"]; if (x){ flashinstalled = 2; if (x.description){ y = x.description; flashversion = y.charAt(y.indexOf('.')-1); } }else{ flashinstalled = 1; } if (navigator.plugins["Shockwave Flash 2.0"]){ flashinstalled = 2; flashversion = 2; } }else { if (navigator.mimeTypes && navigator.mimeTypes.length){ x = navigator.mimeTypes['application/x-shockwave-flash']; if (x && x.enabledPlugin){ flashinstalled = 2; }else{ flashinstalled = 1; } }else{ MSDetect = "true"; } } function ow(Q) { w = window.screen.availWidth; h = window.screen.availHeight; if (Q){ Q = "?Q=0&"+Q; }else{ Q = ""; } if (flashversion>6){ window.open("http://www.the-ledge.com/flash/ledge.php"+Q,'theledge','left=0,top=0,width='+w+',height='+h); }else{ parent.location = "http://www.the-ledge.com/flash/noflash.php"; } } function om(Q) { if (Q){ Q = "?lan="+Q; }else{ Q = ""; } window.open("http://www.the-ledge.com/PUB/mailinglist.php"+Q,'theledgemailinglist','left=0,top=0,width=500,height=500'); } function writeFlashProps(){ if (flashinstalled == 2){ if (flashversion){ if (flashversion>6){ document.write("flash " + flashversion + " is installed. "); }else{ document.write("flash " + flashversion + " is installed. 7 is required
please update " + flashUrl); } }else{ document.write("flash is installed, but the version cannot be detected.
download "+ flashUrl); } }else if (flashinstalled == 1) { document.write("Flash is not installed.
please download " + flashUrl); }else{ document.write("I can't find out if you have Flash installed.
download " + flashUrl); } }