//SLIDE SHOW JQUERY
function slideSwitch() {
var $active = $('#slideshow IMG.active');
if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
var $next =  $active.next().length ? $active.next()
: $('#slideshow IMG:first');
$active.addClass('last-active');
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
});
}

$(function() {
setInterval( "slideSwitch()", 8000 );
});


function caricaFlash(val,w,h)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'" hspace="0" vspace="0">\n');
document.write('<param name="movie" value="'+val+'">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="SCALE" value="exactfit">\n');
document.write('<PARAM NAME=wmode VALUE=transparent> \n');
document.write('<embed src="'+val+'" quality="high"  width="'+w+'" height="'+h+'" hspace="0" vspace="0" name="lay" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" scale="exactfit" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');
document.write('</object>');
}

