

function addFlash(altezza,larghezza,path){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  style="position:absolute;" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+larghezza+'" height="'+altezza+'" id="tcp"><param name="bgcolor" value="#ffffff">');
	document.write('<param name="movie" value="'+path+'" />');
	document.write('<param name="Flashvars" value="numero_foto=5">');
	document.write('<param name="quality" value="high" />');
	document.write('<embed src="'+path+'" quality="high" width="'+larghezza+'" height="'+altezza+'" name="tcp" flashvars="numero_foto=5" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer"')
	document.write('></embed></object>')

}

/**
 * Simple encryption to hide email addresses from crawlers in webpages.
 * This code is Free Software provided under an MIT License.
 * Written by Diego Doval: bnaeQ0bvPXOnZQYgaZqp1ZQO
 * http://www.dynamicobjects.com/d2r/
 */

var key = "BAD4@.56CEGFHIJKLVWdfTUhijXYZbacemngMNOPQRSopqrstuvz018923klwxy7";
var base = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@.0123456789";
function generateMailLink(encoded, linkText)
{
  document.write("<a hr"+"ef=\"ma"+"ilto"+":"+decode(encoded)+"\">"+linkText+"</"+"a>");
}

function decode(str)
{
  return codec(key, base, str);
}

function codec(from, to, str)
{
  var codedResult = "";
  for (i = 0; i < str.length; i++) {
    current = str.charAt(i);
    idx = from.indexOf(current);
    nextVal = (idx == -1) ? current : to.charAt(idx);
    codedResult += nextVal;
  }
  return codedResult;
}
