function getFlashVersion(){ 
	    // ie 
	    try { 
	      try { 
		// avoid fp6 minor version lookup issues 
		// see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/ 
		var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); 
		try { axo.AllowScriptAccess = 'always'; } 
		catch(e) { return '6,0,0'; } 
	      } catch(e) {} 
	      return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; 
	    // other browsers 
	    } catch(e) { 
	      try { 
		if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){ 
		  return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; 
		} 
	      } catch(e) {} 
	    } 
	    return '0,0,0'; 
	  }
          
          function showFlash(){
                var version = getFlashVersion().split(',').shift();
                
                if(version != 0){
                    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
                      document.write('      codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"');
                      document.write('      width="670"');
                      document.write('      height="250"');
                      document.write('      align="middle"');
                      document.write('      id="main">');
                      document.write('  <param name="allowScriptAccess" value="sameDomain" />');
                      document.write('  <param name="movie" value="slideshow.swf" />');
                      document.write('  <param name="quality" value="high" />');
                      document.write('  <param name="wmode" value="transparent" />');
                      document.write('  <param name="bgcolor" value="#ffffff" />');
                      document.write('  <embed src="slideshow.swf"');
                      document.write('	 width="670"');
                      document.write('	 height="250"');
                      document.write('	 autostart="true"');
                      document.write('	 quality="high"');
                      document.write('	 wmode="transparent"');
                      document.write('	 bgcolor="#ffffff"');
                      document.write('	 name="main"');
                      document.write('	 align="middle"');
                      document.write('	 allowScriptAccess="sameDomain"');
                      document.write('	 type="application/x-shockwave-flash"');
                      document.write('	 pluginspage="http://www.macromedia.com/go/getflashplayer" />');
                    document.write('</object>');
                }
          }
          
	  