// FLASH
	var hasFlash = false;
	function detectFlash() {
	    if (hasFlash) return;
	    
	    var p = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	    if (p) {
	        hasFlash = parseInt(p.description.substring(p.description.indexOf(".")-2)) >= 6;
		} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0) {
	        document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	        document.write('on error resume next \n');
	        document.write('hasFlash = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	        document.write('if ( hasFlash <= 0 ) then hasFlash = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	        document.write('<\/SCRIPT\> \n');
		}
	}
	
	function writeFlash(ourSwf, ourWidth, ourHeight, ourBg, msgOrPage, noFlashMsg) {
	    detectFlash();
	    if (hasFlash) {
	        document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	        document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
	        document.write(' ID=FLASH_AD WIDTH='+ourWidth+' HEIGHT='+ourHeight+'>');
	        document.write(' <PARAM NAME=movie VALUE="'+ourSwf+'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE='+ourBg+'> '); 
	        document.write(' <EMBED src="'+ourSwf+'" quality=high ');
	        document.write(' swLiveConnect=FALSE WIDTH='+ourWidth+' HEIGHT='+ourHeight+' bgcolor='+ourBg);
	        document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	        document.write(' </EMBED>');
	        document.write(' </OBJECT>');
		} else { // if the right flash player version has not been found:
			if (msgOrPage==1) { document.write('<meta http-equiv="Refresh" content="1; URL='+noFlashMsg+'">'); }
			else if (msgOrPage==2) { EB.window.popup(noFlashMsg,'noflash',350,350); }
			else if (msgOrPage==3) { document.write('<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">'+noFlashMsg+'</a>');  }
			else if (msgOrPage==4) { alert(noFlashMsg); }
			else if (msgOrPage==5) { document.write('<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"><img src="'+noFlashMsg+'" width="'+ourWidth+'" height="'+ourHeight+'" style="border: 0" /></a>');  }
		}
	}
	
	function fade() {
		document.getElementById('foto').style.display='none';
		document.getElementById('site').style.display='block';
	}