function oN(id)
{
	var m = window.open("newsdet.aspx?N=" + id, "DETAIL", "toolbar=no, width=500, height=650, scrollbars=yes");
	m.focus();
}

function farmacia(id)
{
	var m = window.open("farmacia.aspx", "DETAIL", "toolbar=no, width=500, height=650, scrollbars=yes");
	m.focus();
}
function cinema(id)
{
	var m = window.open("cinema.aspx", "DETAIL", "toolbar=no, width=500, height=650, scrollbars=yes");
	m.focus();
}

function oNC(id, Contrada)
{
	var m = window.open("newsdet.aspx?N=" + id + "&C=" + Contrada, "DETAIL", "toolbar=no, width=500, height=650, scrollbars=yes");
	m.focus();
}
function fotogallery(id)
{
	var m = window.open("http://www.sienanews.it/gallery.aspx?ID=" + id, "DETAIL", "toolbar=no, width=950, height=950, scrollbars=yes");
	m.focus();
}

function resetta()
{	
	document.Form1.txt_cerca.value = "";
}
function poll()
{
	if(document.Form1.VOTED.value == '1')
	{
		alert("Il suo voto e' gia' stato memorizzato!");
		return;
	}
	document.Form1.ACTION.value = "POLL";
	document.Form1.submit();
}

function clickButton(e){ 

            if(navigator.appName.indexOf("Netscape")>(-1)){ 
				 
					if (e.keyCode == 13){ 
	                   
						location.href = 'standard.aspx?QRY=' + document.Form1.txt_cerca.value; 
					
					}
                  
            } 
            if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
                  if (event.keyCode == 13){ 
							location.href = 'standard.aspx?QRY=' + document.Form1.txt_cerca.value; 
							return false; 
                  } 
            } 
 
}
function send(ID)
{
	var m = window.open("/send.aspx?NID=" + ID, "MANDA", "width=450, height=450, toolbar=no");
	m.focus();
} 

function search()
{
	
			location.href = 'search.aspx'; 
			return false; 
    
}

function scrivi(id)
{
	var m = window.open("scrivi.aspx?ID=" + id , "MANDA", "width=450, height=450, toolbar=no");
	m.focus();
}

/*script per il player silverlight*/
function showSNTV(file, preview) {

    var cnt = document.getElementById("mediaspace");
    var src = 'SilverLightPlayer/wmvplayer.xaml';
    var cfg = {
                file: '/public/video/' + file,
                image: '/public/video/' + preview + '.jpg',
                height: '120',
                width: '190'
              };

    var ply = new jeroenwijering.Player(cnt, src, cfg);
    document.getElementById("MSBTV").style.display = '';
}