// JavaScript Document


function vetrina() {
	document.write('<object type="application/x-shockwave-flash" data="images/vetrina_4.swf" width="536" height="200">\n');
	document.write('<param name="movie" value="images/vetrina_4.swf" /> \n');
	document.write('<param name="wmode" value="transparent" /> \n');
	document.write('<param name="quality" value="high" /> \n');
	document.write('</object>\n');
}

function gallery(data,i,nmax,titolo,autore) {
	if (i ==1) {
	document.getElementById('extra').innerHTML='<h2>'+titolo+'</h2><div style="float:right;margin-top:10px"><strong>'+i+'</strong> / '+nmax+'</div><div style="float:left;margin-top:10px"><img src="images/left_arrow_off.jpg" alt=""> <a href="javascript:gallery(\''+data+'\','+(i+1)+','+nmax+',\''+titolo+'\',\''+autore+'\')"><img src="images/right_arrow_on.jpg" alt=""></a></div><img src="gallery/'+data+'_'+i+'.jpg" alt="" class="bordo" style="clear:both;margin-top: 10px" width="344"><br/>'+autore;
	}
	if ((i > 1) & (i< nmax)) {
	document.getElementById('extra').innerHTML='<h2>'+titolo+'</h2><div style="float:right;margin-top:10px"><strong>'+i+'</strong> / '+nmax+'</div><div style="float:left;margin-top:10px"><a href="javascript:gallery(\''+data+'\','+(i-1)+','+nmax+',\''+titolo+'\',\''+autore+'\')"><img src="images/left_arrow_on.jpg" alt=""></a> <a href="javascript:gallery(\''+data+'\','+(i+1)+','+nmax+',\''+titolo+'\',\''+autore+'\')"><img src="images/right_arrow_on.jpg" alt=""></a></div><img src="gallery/'+data+'_'+i+'.jpg" alt="" class="bordo" style="clear:both;margin-top: 10px" width="344"><br/>'+autore;
	}	
	if (i==nmax) {
	document.getElementById('extra').innerHTML='<h2>'+titolo+'</h2><div style="float:right;margin-top:10px"><strong>'+i+'</strong> / '+nmax+'</div><div style="float:left;margin-top:10px"><a href="javascript:gallery(\''+data+'\','+(i-1)+','+nmax+',\''+titolo+'\',\''+autore+'\')"><img src="images/left_arrow_on.jpg" alt=""></a> <img src="images/right_arrow_off.jpg" alt=""></div><img src="gallery/'+data+'_'+i+'.jpg" alt="" class="bordo" style="clear:both;margin-top: 10px" width="344"><br/>'+autore;
	}
	document.location.href="#top";
}

/* video RASSEGNA STAMPA */

function video_08122005() {
	document.location.href="#top";	
	document.getElementById('extra').innerHTML="<h2>08/12/2005<br>TG RAI 3</h2><object width=\"354\" height=\"290\"><param name=\"movie\" value=\"http://www.youtube.com/v/xOW1wwOJfyI\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/xOW1wwOJfyI\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"354\" height=\"290\"></embed></object><br/>&copy; Rai 3";
}

function video_13012005() {
	document.getElementById('extra').innerHTML="<h2>13/01/2005<br>TG RAI 3</h2><object width=\"354\" height=\"290\"><param name=\"movie\" value=\"http://www.youtube.com/v/Jjj9PSU6eHs\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/Jjj9PSU6eHs\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"354\" height=\"290\"></embed></object><br/>&copy; Rai 3";
}
function video_25022008() {
	document.getElementById('extra').innerHTML="<h2>25/02/2008<br>Music Marche</h2><object width=\"354\" height=\"290\"><param name=\"movie\" value=\"http://www.youtube.com/v/1hWA2WQxSCA&hl=it_IT&fs=1&\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/1hWA2WQxSCA&hl=it_IT&fs=1&\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"354\" height=\"290\"></embed></object><br/>&copy; Vallesina.tv";
}
function video_08052008() {
	document.getElementById('extra').innerHTML="<h2>08/05/2008<br>Vallesina.tv / RVE</h2><object width=\"354\" height=\"290\"><param name=\"movie\" value=\"http://www.youtube.com/v/tHe1EgweIuU&hl\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/tHe1EgweIuU&hl\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"354\" height=\"290\"></embed></object><br/>&copy; Vallesina.tv";
}
function video_31122009() {
	document.getElementById('extra').innerHTML="<h2>31/12/2009<br>Rai News 24</h2><object width=\"354\" height=\"290\"><param name=\"movie\" value=\"http://www.youtube.com/v/adTvfH85JZE&hl=it_IT&fs=1&\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/adTvfH85JZE&hl=it_IT&fs=1&\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"354\" height=\"290\"></embed></object><br/>&copy; Rai News 24 / Laura Tangherlini";
}