var op="";
op += "          <table cellpadding=0 id='openWrap' style='width:760px;' cellspacing=0>";
op += "           <tr>";
op += "            <td> ";
op += "             <img src='images/angolotondo_sxtop.png'>";
op += "           </td>";
op += "           <td style='background-color:#f1f1f1;width:732px;'>";
op += "            &nbsp;";
op += "           </td>";
op += "           <td> ";
op += "            <img src='images/angolotondo_dxtop.png'>";
op += "           </td>          ";
op += "          </tr>         ";
op += "         </table>  		";

var cl="";
cl += "          <table cellpadding=0 id='openWrap' style='width:760px;' cellspacing=0>";
cl += "           <tr>";
cl += "            <td> ";
cl += "             <img src='images/angolotondo_sxdown.png'>";
cl += "           </td>";
cl += "           <td style='background-color:#f1f1f1;width:732px;'>";
cl += "            &nbsp;";
cl += "           </td>";
cl += "           <td> ";
cl += "            <img src='images/angolotondo_dxdown.png'>";
cl += "           </td>          ";
cl += "          </tr>         ";
cl += "         </table>  		";

function changeMedia(strTitolo, strDescrizione, strSrc)
	{
	 var strHtml = '';
   strHtml += "<div style='width:740px;text-align:center;background-color:#f1f1f1;margin-top:0px;padding:10px;'>";
   strHtml +="  <div id='chiudi_video' style='width:700px;text-align:right;float:right;padding-bottom:10px;'><a id='chiudi_video' href='#' onclick='javascript:chiudivideo();'><img src='images/chiudi.gif'></a></div>";

	 strHtml +="<br><object width='740' height='576'><param name='movie' value='jwplayer.swf'><param name='allowFullScreen' value='true'><param name='allowscriptaccess' value='always'><param name='flashvars' value='height=390&width=480&file="+strSrc+"&image=&link=&searchbar=false&  autostart=true'><embed src='jwplayer.swf' mce_src='jwplayer.swf' allowscriptaccess='always' allowfullscreen='true' flashvars='height=390&width=480&file="+strSrc+"&image=&link=&searchbar=false&autostart=true' width='720' height='576'></object>";
	 
   //strHtml +="<div style='width:740px;text-align:center;font-weight:bold;font-size:14px;'>"+strTitolo+"</div>";
   //strHtml +="<div style='width:740px;text-align:center;font-size:12px;'>"+strDescrizione+"</div>";
   strHtml += " <b>"+strTitolo+"</b><br />";
   //strHtml +="<div style='width:740px;text-align:center;font-size:11px;'>"+strDescrizione+"</div>";
   strHtml += "</div>";
	 document.getElementById('wrapper').innerHTML=op+strHtml+cl;
	}
	
function chiudivideo()
  {
   document.getElementById('openWrap').style.visible="hidden";
   document.getElementById('wrapper').innerHTML="";
   document.getElementById('closeWrap').style.visible="hidden";
  }
  
function SuperPlayerMp3(strSrc,strTitle,x)
  {	
  /*
      if (x!="undefined")
        {
         var FU = { movie:"mp3player.swf",width:"100px",height:"20",majorversion:"7",build:"0",bgcolor:"#FFFFFF",flashvars:"autostart=true&file="+strSong };		
        }
      else
        {
         var FU = { movie:"mp3player.swf",width:"644px",height:"20",majorversion:"7",build:"0",bgcolor:"#FFFFFF",flashvars:"autostart=true&file="+strSong };		
        }      
      		
      UFO.create(FU,"mainplayer");		
  */	 
  var strHtml = '';
	 //strSrc = "http://www.teatrostabilegenova.it/"+strSrc;

	 strHtml +="<br><object width='600' height='20'><param name='movie' value='jwplayer.swf'><param name='allowFullScreen' value='true'><param name='allowscriptaccess' value='always'><param name='flashvars' value='height=20&width=480&file="+strSrc+"&image=&link=&searchbar=false&  autostart=true'><embed src='jwplayer.swf' mce_src='jwplayer.swf' allowscriptaccess='always' allowfullscreen='true' flashvars='height=20&width=480&file="+strSrc+"&image=&link=&searchbar=false&autostart=true' width='600' height='20'></object>";
	 /*
   strHtml +="<div style='width:720px;text-align:center;font-weight:bold;font-size:14px;'>"+strTitolo+"</div>";
   strHtml +="<div style='width:720px;text-align:center;font-size:12px;'>"+strDescrizione+"</div>";
   strHtml +="<div id='chiudi_video' style='width:720px;'><a id='chiudi_video' href='#' onclick='javascript:chiudivideo();'>Chiudi finestra video</a></div>";
	 */
	 eval("document.getElementById('wrapper').innerHTML=\""+op+strHtml+cl+"\"");      
  }	  
  
	function Immagine(alt,ds,nf)
		{
     var html = "";		 
     if (ds!="")
        {
         html += "<div style='width:740px;text-align:center;background-color:#f1f1f1;margin-top:0px;padding:10px;'>";
         html +="  <div id='chiudi_video' style='width:700px;text-align:right;float:right;padding-bottom:10px;'><a id='chiudi_video' href='#' onclick='javascript:chiudivideo();'><img src='images/chiudi.gif'></a></div>";
         html += " <img src='"+nf+"' alt='"+alt+"' title='"+alt+"'><br>";
         html += " <b>"+alt+"</b><br />";
         html += "</div>";
         //html += ds+"<br />";
        }		 
        //alert (html);
		 document.getElementById("wrapper").innerHTML = op+html+cl;   
		 document.location = "#bigMain";
		 //window.open("Immagini.asp?descrizione=`"+ds+"`&x="+xD+"&y="+yD+"&nomeFile="+nf,"Immagini","toolbars=0, menubar=0, width=550, height=550, scrollbars=1,top="+y+",left="+x+";");
		}  
  
function setDataMedia(desc,x,y,fs,t)
  {
   var html = "";
   if (desc!="")
      {   
       if (t==1)
          {
           html += "<b>"+desc+"</b><br />";
           html += x+"x"+y+" pixel, ";
           html += "Jpeg - "+fs+"<br>";
          }
       else
          {
           html += "<b>"+desc+"</b><br />";
           html += fs+"<br>";
          }          
      }
   document.getElementById("dataMedia").innerHTML =html;   
  }
  
  
  
  
  
  
  
